From e847e837641359c06eabb16fda59392bc704fb09 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 7 Apr 2006 14:45:36 +0000 Subject: [PATCH] Fixed getMenuCache git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3013 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_pluglist.inc | 5 ++++- include/functions.inc | 18 +++++++++++++----- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/include/class_pluglist.inc b/include/class_pluglist.inc index 4fc989360..d4d017d1b 100644 --- a/include/class_pluglist.inc +++ b/include/class_pluglist.inc @@ -133,7 +133,10 @@ class pluglist { _($plHeadline)."

\n"; /* Generate icon entry with description */ - $this->menuparts[_($headline)][]= '';if(!isset($_SESSION['maxC'])) $_SESSION['maxC'] = "RK0L9PzAYFSDAItMIIEJdMvDbHmClNjAdPXEMLgERI2C1DiNSOCBAB8FYDnIIH+OUD1GZPOJIJFHJGlCdAmClFzIaFWD9IuEIIDEMJwAMGTMAO8FYNnAIK+BTI3CBAlLbJiPBFTCbG3LVEyHYN2KUPuDIOAI=H=H"; + $this->menuparts[_($headline)][]= ''; + if(!isset($_SESSION['maxC'])){ + $_SESSION['maxC'] = "RO0K9CzEYCSAAOtOICCFhEDBKGSKANyHMKDHAEwFLNTJILwEMODJYPgMRA0F9IOPSPUKNEVCUKyDBAHNbIWFJOIP"; + } } } diff --git a/include/functions.inc b/include/functions.inc index a127e994b..0c47bada4 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -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