From: hickert Date: Thu, 26 Aug 2010 09:40:26 +0000 (+0000) Subject: Prepared statistics to print password changes over time X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9566dc068208034acf0da2630a7efbb5a370f191;p=gosa.git Prepared statistics to print password changes over time git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19458 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/generic/statistics/class_statistics.inc b/gosa-core/plugins/generic/statistics/class_statistics.inc index 85658dc7b..e4e3b076a 100644 --- a/gosa-core/plugins/generic/statistics/class_statistics.inc +++ b/gosa-core/plugins/generic/statistics/class_statistics.inc @@ -343,6 +343,22 @@ class statistics extends plugin } } + // Get info about used password hashes + $gData['usedPasswordHashes'] = array(); + foreach($res['usedPasswordHashes'] as $category => $data){ + + // Add missing date stamps + foreach($gData['dates'] as $timestamp => $value){ + $gData['usedPasswordHashes'][$category][$timestamp]=0; + } + + foreach($data as $dateStr => $count){ + $date = strtotime($dateStr); + $gData['usedPasswordHashes'][$category][$date]=$count; + } + ksort($gData['usedPasswordHashes'][$category]); + } + // Get action usage, to be able to render a pie chart about most done actions. $gData['actionsPerPluginAction'] = $res['actionsPerPluginAction']; return($gData);