From 6e463139928d7785534b6b0fde56ad631a34048a Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 23 Feb 2006 12:54:55 +0000 Subject: [PATCH] Fixed repository edit & deletion git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2731 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servRepository.inc | 10 +++++----- plugins/admin/systems/class_workstationStartup.inc | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/admin/systems/class_servRepository.inc b/plugins/admin/systems/class_servRepository.inc index 0d4453468..617ba8f46 100644 --- a/plugins/admin/systems/class_servRepository.inc +++ b/plugins/admin/systems/class_servRepository.inc @@ -119,7 +119,7 @@ class servrepository extends plugin if((preg_match("/^delete_/",$name))&&(!$once)){ $value = preg_replace("/delete_/","",$name); - $value = preg_replace("/_.$/","",$value); + $value = base64_decode(preg_replace("/_.*$/","",$value)); if(isset($this->repositories[$value])){ $once = true; @@ -129,7 +129,7 @@ class servrepository extends plugin if((preg_match("/^edit_/",$name))&&(!$once)){ $value = preg_replace("/edit_/","",$name); - $value = preg_replace("/_.$/","",$value); + $value = base64_decode(preg_replace("/_.$/","",$value)); if(isset($this->repositories[$value])){ $once = true; $obj = $this->repositories[$value]; @@ -143,7 +143,7 @@ class servrepository extends plugin } if((isset($_GET['act']))&&($_GET['act']=="open")&&(isset($_GET['id']))){ - $obj = $this->repositories[$_GET['id']]; + $obj = $this->repositories[base64_decode($_GET['id'])]; $obj['initialy_was'] = $obj['Release']; $this->dialog = new servRepositorySetup($this->config,$this->dn,$obj); $this->dialog->acl = $this->acl; @@ -214,9 +214,9 @@ class servrepository extends plugin } $divlist->AddEntry(array( - array("string"=>preg_replace("/%s/",$name,$link),"attach"=>"style='width:80px;'"), + array("string"=>preg_replace("/%s/",($name),$link),"attach"=>"style='width:80px;'"), array("string"=>sprintf($link,$name,_("Sections")." :".$str)), - array("string"=>preg_replace("/%s/",$name,$edit.$delete),"attach"=>"style='border-right:0px;width:55px;text-align:right;'") + array("string"=>preg_replace("/%s/",base64_encode($name),$edit.$delete),"attach"=>"style='border-right:0px;width:55px;text-align:right;'") )); } } diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc index 29246952e..6f9d7a22f 100644 --- a/plugins/admin/systems/class_workstationStartup.inc +++ b/plugins/admin/systems/class_workstationStartup.inc @@ -559,7 +559,7 @@ class workstartup extends plugin }elseif(isset($this->parent->by_object['workgeneric'])){ $this->objectclasses = array("GOhard", "FAIobject"); }else{ - print "unknown"; + print "Object Type Configuration : unknown"; exit(); } -- 2.30.2