From: hickert Date: Mon, 2 Aug 2010 10:54:42 +0000 (+0000) Subject: Ensure we either call the plugins constructor or manually set the initTime variable... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d6861fe1adc0dd3dc7e1ce73e1a5851e5f4be988;p=gosa.git Ensure we either call the plugins constructor or manually set the initTime variable for the new statistics plugin. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19335 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/index.php b/gosa-core/html/index.php index d66a96cc2..5c9207166 100644 --- a/gosa-core/html/index.php +++ b/gosa-core/html/index.php @@ -367,6 +367,9 @@ if (($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])) || $htacces /* Not account expired or password forced change go to main page */ new log("security","login","",array(),"User \"$username\" logged in successfully") ; $plist= new pluglist($config, $ui); + + stats::log('global', 'global', array(), $action = 'login', $amount = 1, 0); + if(isset($plug) && isset($plist->dirlist[$plug])) { header ("Location: main.php?plug=".$plug."&global_check=1"); }else{