From 3b025e5d5db6344c74ff93b07a4ffb351ce4dc1b Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 7 Dec 2006 04:53:07 +0000 Subject: [PATCH] Renamed post names git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5328 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_divListSystem.inc | 6 +++--- .../admin/systems/class_systemManagement.inc | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/plugins/admin/systems/class_divListSystem.inc b/plugins/admin/systems/class_divListSystem.inc index 34dfaac5c..88380ad5f 100644 --- a/plugins/admin/systems/class_divListSystem.inc +++ b/plugins/admin/systems/class_divListSystem.inc @@ -261,7 +261,7 @@ class divListSystem extends MultiSelectWindow $acl = $ui->get_permissions($val['dn'],$tabs[$type]['ACL']); $action= ""; + alt='"._("edit")."' name='system_edit_%KEY%' title='"._("Edit system")."'>"; if(preg_match("/(c.*w|w.*c)/",$acl_all)){ $action.= $this->GetSnapShotActions($val['dn']); }else{ @@ -270,7 +270,7 @@ class divListSystem extends MultiSelectWindow if(preg_match("/d/",$acl)){ $action.= ""; + alt='"._("delete")."' name='system_del_%KEY%' title='"._("Delete system")."'>"; }else{ $action.= $empty; } @@ -313,7 +313,7 @@ class divListSystem extends MultiSelectWindow $pwd_acl = $ui->get_permissions($val['dn'],"terminal/termgeneric","gotoRootPasswd"); } if(preg_match("/w/",$pwd_acl)){ - $action2 = ""; + $action2 = ""; }else{ $action2 = $empty; } diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc index 1ab430adb..ec97ddc4c 100644 --- a/plugins/admin/systems/class_systemManagement.inc +++ b/plugins/admin/systems/class_systemManagement.inc @@ -54,7 +54,7 @@ class systems extends plugin /* Call parent execute */ plugin::execute(); - $_SESSION['LOCK_VARS_TO_USE'] = array("/^user_edit_/i","/^user_del_/","/^act/","/^id/"); + $_SESSION['LOCK_VARS_TO_USE'] = array("/^system_edit_/i","/^system_del_/","/^act/","/^id/"); /******************** Check for functional posts, edit|delete|add|... system devices @@ -67,21 +67,21 @@ class systems extends plugin /* Test Posts */ foreach($_POST as $key => $val){ // Post for delete - if(preg_match("/user_del.*/",$key)){ + if(preg_match("/system_del.*/",$key)){ $s_action = "del"; - $s_entry = preg_replace("/user_".$s_action."_/i","",$key); + $s_entry = preg_replace("/system_del_/i","",$key); // Post for edit - }elseif(preg_match("/user_edit_.*/",$key)){ + }elseif(preg_match("/system_edit_.*/",$key)){ $s_action="edit"; - $s_entry = preg_replace("/user_".$s_action."_/i","",$key); + $s_entry = preg_replace("/system_edit_/i","",$key); // Post for new - }elseif(preg_match("/user_new.*/",$key)){ + }elseif(preg_match("/system_new.*/",$key)){ $s_action="new"; - }elseif(preg_match("/user_tplnew.*/i",$key)){ + }elseif(preg_match("/system_tplnew.*/i",$key)){ $s_action="new_tpl"; - }elseif(preg_match("/user_setpwd_.*/i",$key)){ + }elseif(preg_match("/system_setpwd_.*/i",$key)){ $s_action="change_pw"; - $s_entry = preg_replace("/user_setpwd_/i","",$key); + $s_entry = preg_replace("/system_setpwd_/i","",$key); }elseif(preg_match("/gen_cd_.*/i",$key)){ $s_action="gen_cd"; $s_entry = preg_replace("/gen_cd_/i","",$key); -- 2.30.2