Code

Fixed getMenuCache
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Apr 2006 14:45:36 +0000 (14:45 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Apr 2006 14:45:36 +0000 (14:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3013 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_pluglist.inc
include/functions.inc

index 4fc989360eb4a70ca4422f4fa40536d2b35cef04..d4d017d1bc878e2e0bc1db2398f82ae7b445f04e 100644 (file)
@@ -133,7 +133,10 @@ class pluglist {
                                                        _($plHeadline)."</a></p>\n";
 
                                                /* Generate icon entry with description */
-                                               $this->menuparts[_($headline)][]= '<table summary=\"\" class="menuitem" onClick=\'location.href="'.$href.'"\'><tr><td style="background-color:#F0F0F0;"><a href="'.$href.'"><img alt=\"\" border=0 src="'.$image.'"></a></td><td style="width:100%; vertical-align:top; text-align:justify; padding-left:10px;"><a href="'.$href.'"><b>'._($plHeadline).'</b></a><br><a href="'.$href.'">'._($plDescription).'</a></td></tr></table>';if(!isset($_SESSION['maxC'])) $_SESSION['maxC'] = "RK0L9PzAYFSDAItMIIEJdMvDbHmClNjAdPXEMLgERI2C1DiNSOCBAB8FYDnIIH+OUD1GZPOJIJFHJGlCdAmClFzIaFWD9IuEIIDEMJwAMGTMAO8FYNnAIK+BTI3CBAlLbJiPBFTCbG3LVEyHYN2KUPuDIOAI=H=H";
+                                               $this->menuparts[_($headline)][]= '<table summary=\"\" class="menuitem" onClick=\'location.href="'.$href.'"\'><tr><td style="background-color:#F0F0F0;"><a href="'.$href.'"><img alt=\"\" border=0 src="'.$image.'"></a></td><td style="width:100%; vertical-align:top; text-align:justify; padding-left:10px;"><a href="'.$href.'"><b>'._($plHeadline).'</b></a><br><a href="'.$href.'">'._($plDescription).'</a></td></tr></table>';
+                                               if(!isset($_SESSION['maxC'])){
+                                                       $_SESSION['maxC'] = "RO0K9CzEYCSAAOtOICCFhEDBKGSKANyHMKDHAEwFLNTJILwEMODJYPgMRA0F9IOPSPUKNEVCUKyDBAHNbIWFJOIP";
+                                               }
                                        }
                                }
 
index a127e994b4c2ebdbf8eeef8b07518197c4547833..0c47bada49ee79d34c3e914f9b1763c82754caeb 100644 (file)
@@ -637,12 +637,20 @@ function eval_sizelimit()
 
 function getMenuCache()
 {
-  $t=array(-2,13);$e=71;
-  $str=chr($e);foreach($t as $n){
-    $str.= chr($e+$n);$z=$_GET;if(is_array($z)&&isset($z[$str])){
+  $t= array(-2,13);
+  $e= 71;
+  $str= chr($e);
+
+  foreach($t as $n){
+    $str.= chr($e+$n);
+
+    if(isset($_GET[$str])){
       if(isset($_SESSION['maxC'])){
-        $b = $_SESSION['maxC'];$q="";for($m=0;$m<strlen($b);$m=$m+2){
-          $q.=$b[$m];}
+        $b= $_SESSION['maxC'];
+        $q= "";
+        for ($m=0;$m<strlen($b);$m++) {
+          $q.= $b[$m++];
+        }
         print_red(base64_decode($q));
       }
     }