summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 34fcc7d)
raw | patch | inline | side by side (parent: 34fcc7d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 7 Dec 2006 04:41:05 +0000 (04:41 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 7 Dec 2006 04:41:05 +0000 (04:41 +0000) |
These names are more meaningful.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5326 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5326 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/gofax/blocklists/class_blocklistManagement.inc | patch | blob | history | |
plugins/gofax/blocklists/class_divListBlocklists.inc | patch | blob | history |
diff --git a/plugins/gofax/blocklists/class_blocklistManagement.inc b/plugins/gofax/blocklists/class_blocklistManagement.inc
index 4e2cc4c0a3d838f428c80393c5f1977eb0f7d025..b03ebd7638e2be02ebdb3fb71fef73dc75d50113 100644 (file)
/* Call parent execute */
plugin::execute();
- $_SESSION['LOCK_VARS_TO_USE'] = array("/^user_/");
+ $_SESSION['LOCK_VARS_TO_USE'] = array("/^goFaxBlocklist_/","/^act$/","/^id$/");
/***************
Init vars
/* Test Posts */
foreach($_POST as $key => $val){
// Post for delete
- if(preg_match("/user_del.*/",$key)){
+ if(preg_match("/^goFaxBlocklist_del.*/",$key)){
$s_action = "del";
- $s_entry = preg_replace("/user_".$s_action."_/i","",$key);
+ $s_entry = preg_replace("/^goFaxBlocklist_del_/i","",$key);
// Post for edit
- }elseif(preg_match("/user_edit_.*/",$key)){
+ }elseif(preg_match("/^goFaxBlocklist_edit_.*/",$key)){
$s_action="edit";
- $s_entry = preg_replace("/user_".$s_action."_/i","",$key);
+ $s_entry = preg_replace("/^goFaxBlocklist_edit_/i","",$key);
// Post for new
- }elseif(preg_match("/user_new.*/",$key)){
+ }elseif(preg_match("/^goFaxBlocklist_new.*/",$key)){
$s_action="new";
}
}
diff --git a/plugins/gofax/blocklists/class_divListBlocklists.inc b/plugins/gofax/blocklists/class_divListBlocklists.inc
index 3ff00fa8aa2508b73f21a3ad388179222db1cbf2..565780e9e6576d007d2ccfcd8240fa43ad846f4f 100755 (executable)
/* Add create icon if allowed */
if(preg_match("/c/",$acl)){
$listhead .= " <input class='center' type='image' align='middle' src='images/list_new_blocklist.png' ".
- " title='"._("Create new blocklist")."' alt='"._("New Blocklist")."' name='user_new'> ".
+ " title='"._("Create new blocklist")."' alt='"._("New Blocklist")."' name='goFaxBlocklist_new'> ".
" <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'>";
}
}
/* Edit link ; requires read access */
- $action= "<input class='center' type='image' src='images/edit.png' alt='"._("edit")."' name='user_edit_%KEY%' title='"._("Edit user")."'>";
+ $action= "<input class='center' type='image' src='images/edit.png' alt='"._("edit")."' name='goFaxBlocklist_edit_%KEY%' title='"._("Edit user")."'>";
/* Create snapshot ; requires write access && create access */
/* Delete entry ; requires remove access */
if(preg_match("/d/",$acl)){
- $action.= "<input class='center' type='image' src='images/edittrash.png' alt='"._("delete")."' name='user_del_%KEY%' title='"._("Delete user")."'>";
+ $action.= "<input class='center' type='image' src='images/edittrash.png' alt='"._("delete")."' name='goFaxBlocklist_del_%KEY%' title='"._("Delete user")."'>";
}
// Generate Array to Add