From 1f46cf52fd9c46cd2ddddb3a574b36b79178fe66 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 22 Mar 2010 12:56:31 +0000 Subject: [PATCH] Updated repository service git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16995 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../repository/class_servRepositorySetup.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gosa-plugins/fai/admin/systems/services/repository/class_servRepositorySetup.inc b/gosa-plugins/fai/admin/systems/services/repository/class_servRepositorySetup.inc index 61e59d8cb..15ef168ee 100644 --- a/gosa-plugins/fai/admin/systems/services/repository/class_servRepositorySetup.inc +++ b/gosa-plugins/fai/admin/systems/services/repository/class_servRepositorySetup.inc @@ -84,7 +84,8 @@ class servRepositorySetup extends plugin if(preg_match("/^delete_/",$name)){ $val = preg_replace("/^delete_/","",$name); - $val = base64_decode(preg_replace("/_.*$/","",$val)); + echo $val; + $val = postDecode($val); if(isset($this->Sections[$val])){ unset($this->Sections[$val]); @@ -95,16 +96,15 @@ class servRepositorySetup extends plugin $divlist = new divSelectBox("servRepositorySetup"); $divlist->setHeight("220"); + $dellink = ""; if(preg_match("/w/",$this->parent->getacl("Section"))){ - $dellink = ""; - }else{ - $dellink = ""; + $dellink = image('images/lists/trash.png','delete_%s'); } - + foreach($this->Sections as $sec){ $divlist->AddEntry(array( array("string"=>$sec), - array("string"=>sprintf($dellink,base64_encode($sec),$sec), + array("string"=>preg_replace("/%s/",postEncode($sec), $dellink), "attach"=>"style='border-right:0px;width:20px;'") )); } -- 2.30.2