From: hickert Date: Fri, 30 Jul 2010 14:13:54 +0000 (+0000) Subject: Updated main.inc X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ddd819c88ce0f5b4fc83d73a4ec9bd2d623231c2;p=gosa.git Updated main.inc -Support stats plugin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19298 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/main.php b/gosa-core/html/main.php index c03c69b9d..4be9b3944 100644 --- a/gosa-core/html/main.php +++ b/gosa-core/html/main.php @@ -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;