summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bbf3866)
raw | patch | inline | side by side (parent: bbf3866)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 28 Jul 2005 06:41:26 +0000 (06:41 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 28 Jul 2005 06:41:26 +0000 (06:41 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1019 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/departments/class_departmentManagement.inc | patch | blob | history |
diff --git a/plugins/admin/departments/class_departmentManagement.inc b/plugins/admin/departments/class_departmentManagement.inc
index 38753f4b171a9a38fd8b77c4e86453203709576f..cbfef6f7d23e4f723026041912d01d687572e91c 100644 (file)
if(preg_match("/dep_del.*/",$key)){
$s_action = "del";
$s_entry = preg_replace("/dep_".$s_action."_/i","",$key);
+ $s_entry = preg_replace("/_.*/","",$s_entry);
+ $s_entry = base64_decode($s_entry);
// Post for edit
}elseif(preg_match("/dep_edit_.*/",$key)){
$s_action="edit";
$s_entry = preg_replace("/dep_".$s_action."_/i","",$key);
+ $s_entry = preg_replace("/_.*/","",$s_entry);
+ $s_entry = base64_decode($s_entry);
// Post for new
}elseif(preg_match("/dep_new.*/",$key)){
$s_action="new";
}elseif(preg_match("/dep_root.*/i",$key)){
$s_action="root";
}
+
}
if(isset($_POST['depselect']) && $_POST['depselect']){
$this->reload();
}
-
- $s_entry = preg_replace("/_.*/","",$s_entry);
-
if (isset($_GET['search'])){
$s= mb_substr($_GET['search'], 0, 1, "UTF8")."*";
if ($s == "**"){
}
$field0 = array("string" => "<img src='images/folder.png' alt='department'>","attach"=>"style='width:20px;'");
$field1 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "width='100%'");
- $field2 = array("string" => preg_replace("/%KEY%/", $key, $actions),"attach"=>"style='text-align:right;border:none'");
+ $field2 = array("string" => preg_replace("/%KEY%/", base64_encode($key), $actions),"attach"=>"style='text-align:right;border:none'");
$divlist->AddEntry( array($field0,$field1,$field2));