Code

Renamed blocklist management posts.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 Dec 2006 04:41:05 +0000 (04:41 +0000)
committerhickert <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

plugins/gofax/blocklists/class_blocklistManagement.inc
plugins/gofax/blocklists/class_divListBlocklists.inc

index 4e2cc4c0a3d838f428c80393c5f1977eb0f7d025..b03ebd7638e2be02ebdb3fb71fef73dc75d50113 100644 (file)
@@ -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";
       }
     }
index 3ff00fa8aa2508b73f21a3ad388179222db1cbf2..565780e9e6576d007d2ccfcd8240fa43ad846f4f 100755 (executable)
@@ -116,7 +116,7 @@ class divListBlocklist extends MultiSelectWindow
     /* 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'>&nbsp;".
+        "  title='"._("Create new blocklist")."' alt='"._("New Blocklist")."' name='goFaxBlocklist_new'>&nbsp;".
         " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'>";
     }
   
@@ -157,7 +157,7 @@ class divListBlocklist extends MultiSelectWindow
       }  
 
       /* 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 */
@@ -167,7 +167,7 @@ class divListBlocklist extends MultiSelectWindow
       
       /* 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