From: hickert Date: Thu, 7 Dec 2006 04:41:05 +0000 (+0000) Subject: Renamed blocklist management posts. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6fbe00a3e40707ebb6dd88dcd42155ab9ebf4ea2;p=gosa.git Renamed blocklist management posts. These names are more meaningful. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5326 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofax/blocklists/class_blocklistManagement.inc b/plugins/gofax/blocklists/class_blocklistManagement.inc index 4e2cc4c0a..b03ebd763 100644 --- a/plugins/gofax/blocklists/class_blocklistManagement.inc +++ b/plugins/gofax/blocklists/class_blocklistManagement.inc @@ -39,7 +39,7 @@ class blocklist extends plugin /* Call parent execute */ plugin::execute(); - $_SESSION['LOCK_VARS_TO_USE'] = array("/^user_/"); + $_SESSION['LOCK_VARS_TO_USE'] = array("/^goFaxBlocklist_/","/^act$/","/^id$/"); /*************** Init vars @@ -59,15 +59,15 @@ class blocklist extends plugin /* 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 3ff00fa8a..565780e9e 100755 --- a/plugins/gofax/blocklists/class_divListBlocklists.inc +++ b/plugins/gofax/blocklists/class_divListBlocklists.inc @@ -116,7 +116,7 @@ class divListBlocklist extends MultiSelectWindow /* Add create icon if allowed */ if(preg_match("/c/",$acl)){ $listhead .= "  ". + " title='"._("Create new blocklist")."' alt='"._("New Blocklist")."' name='goFaxBlocklist_new'> ". " "; } @@ -157,7 +157,7 @@ class divListBlocklist extends MultiSelectWindow } /* Edit link ; requires read access */ - $action= ""; + $action= ""; /* Create snapshot ; requires write access && create access */ @@ -167,7 +167,7 @@ class divListBlocklist extends MultiSelectWindow /* Delete entry ; requires remove access */ if(preg_match("/d/",$acl)){ - $action.= ""; + $action.= ""; } // Generate Array to Add