Code

Oups - a couple of member= fixes needed to make it work completely...
[gosa.git] / gosa-core / plugins / admin / acl / class_aclManagement.inc
index 7a1b2ab2b2895bab6bd00b6f4aa156b161e0dc13..6db90f32fb63cc137bcdaf6f8aa45e7f6483a16c 100644 (file)
@@ -54,7 +54,7 @@ class aclManagement extends plugin
     /* Call parent execute */
     plugin::execute();
 
-    $_SESSION['LOCK_VARS_TO_USE'] = array("/^list/","/^id_/","/^list_acl_role_del/","/^list_acl_del/");
+    session::set('LOCK_VARS_TO_USE',array("/^list/","/^id_/","/^list_acl_role_del/","/^list_acl_del/"));
 
     $smarty       = get_smarty();                 // Smarty instance
     $s_action     = "";                           // Contains the action to be taken
@@ -192,7 +192,7 @@ class aclManagement extends plugin
         }
 
         /* Set ACL and move DN to the headline */
-        $_SESSION['objectinfo']= $this->dn;
+        session::set('objectinfo',$this->dn);
       }else{
         print_red(_("You are not allowed to edit this acl."));
       }
@@ -204,7 +204,7 @@ class aclManagement extends plugin
      ********************/
     if(isset($_POST['delete_lock'])){
       del_lock ($this->dn);
-      unset($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
     /* Reset all relevant data, if we get a _cancel request */
@@ -214,7 +214,7 @@ class aclManagement extends plugin
         unset ($this->acltabs);
       }
       $this->acltabs= NULL;
-      unset ($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
 
@@ -297,7 +297,7 @@ class aclManagement extends plugin
         /* Check locking, save current plugin in 'back_plugin', so
            the dialog knows where to return. */
         if (($acl= get_lock($this->dn)) != ""){
-          $_SESSION['LOCK_VARS_TO_USE'] = array("/^list_acl_edit/","/^list_acl_del/","/^id_/");
+          session::set('LOCK_VARS_TO_USE',array("/^list_acl_edit/","/^list_acl_del/","/^id_/"));
           return(gen_locked_message ($acl, $this->dn));
         }
 
@@ -387,7 +387,7 @@ class aclManagement extends plugin
 
           unset ($this->acltabs);
           $this->acltabs= NULL;
-          unset ($_SESSION['objectinfo']);
+          session::un_set('objectinfo');
         }
       } else {
         /* Ok. There seem to be errors regarding to the tab data,