Code

Updated main.inc
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 30 Jul 2010 14:13:54 +0000 (14:13 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 30 Jul 2010 14:13:54 +0000 (14:13 +0000)
-Support stats  plugin

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19298 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/html/main.php

index c03c69b9d28a3ed9fcff362f06e38e5a7888eefe..4be9b39448dfff8d771305364060a6d84500d7bc 100644 (file)
@@ -41,6 +41,15 @@ session::set('errorsAlreadyPosted',array());
 session::global_set('runtime_cache',array());
 session::set('limit_exceeded',FALSE);
 
+// Count number of page reloads 
+if(!session::is_set('clicks')){
+    session::set('clicks', 0);
+}
+$clicks = session::get('clicks');
+$clicks ++ ;
+session::set('clicks', $clicks);
+
+
 pathNavigator::clear();
 
 if ($_SERVER["REQUEST_METHOD"] == "POST"){
@@ -475,6 +484,8 @@ if($config->get_cfg_value("core","storeFilterSettings") == "true"){
   @setcookie("GOsa_Filter_Settings",base64_encode(serialize($cookie)),time() + (60*60*24));
 }
 
+stats::show();
+
 /* Show page... */
 echo $display;