summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 938d224)
raw | patch | inline | side by side (parent: 938d224)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 7 Dec 2006 04:53:07 +0000 (04:53 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 7 Dec 2006 04:53:07 +0000 (04:53 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5328 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_divListSystem.inc | patch | blob | history | |
plugins/admin/systems/class_systemManagement.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_divListSystem.inc b/plugins/admin/systems/class_divListSystem.inc
index 34dfaac5cd5c3a36f6f08feca84bf646618fceb7..88380ad5fffaffdaeeeae4386e3556350f151e7f 100644 (file)
$acl = $ui->get_permissions($val['dn'],$tabs[$type]['ACL']);
$action= "<input class='center' type='image' src='images/edit.png'
- alt='"._("edit")."' name='user_edit_%KEY%' title='"._("Edit system")."'>";
+ alt='"._("edit")."' name='system_edit_%KEY%' title='"._("Edit system")."'>";
if(preg_match("/(c.*w|w.*c)/",$acl_all)){
$action.= $this->GetSnapShotActions($val['dn']);
}else{
if(preg_match("/d/",$acl)){
$action.= "<input class='center' type='image' src='images/edittrash.png'
- alt='"._("delete")."' name='user_del_%KEY%' title='"._("Delete system")."'>";
+ alt='"._("delete")."' name='system_del_%KEY%' title='"._("Delete system")."'>";
}else{
$action.= $empty;
}
$pwd_acl = $ui->get_permissions($val['dn'],"terminal/termgeneric","gotoRootPasswd");
}
if(preg_match("/w/",$pwd_acl)){
- $action2 = "<input class='center' type='image' src='images/certs.png' alt='"._("Password")."' name='user_setpwd_%KEY%' title='"._("Set root password")."'>";
+ $action2 = "<input class='center' type='image' src='images/certs.png' alt='"._("Password")."' name='system_setpwd_%KEY%' title='"._("Set root password")."'>";
}else{
$action2 = $empty;
}
diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc
index 1ab430adb90966e4ce224dde8f37136d48c9fc58..ec97ddc4ca61fc4cb3cd16abfb051ecc252c80e5 100644 (file)
/* 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
/* 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);