Code

Mass checkin.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Jan 2008 07:20:34 +0000 (07:20 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Jan 2008 07:20:34 +0000 (07:20 +0000)
Modified session assignments from
$_SESSION['...'] = ...;
to
session::set('...','...');

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8204 594d385d-05f5-0310-b6e9-bd551577e9d8

81 files changed:
gosa-core/include/class_MultiSelectWindow.inc
gosa-core/include/class_acl.inc
gosa-core/include/class_config.inc
gosa-core/include/class_msg_dialog.inc
gosa-core/include/class_plugin.inc
gosa-core/include/class_userinfo.inc
gosa-core/include/functions.inc
gosa-core/include/functions_FAI.inc
gosa-core/include/functions_helpviewer.inc
gosa-core/plugins/addons/godfs/class_dfsManagment.inc
gosa-core/plugins/addons/godfs/main.inc
gosa-core/plugins/addons/gotomasses/main.inc
gosa-core/plugins/addons/ldapmanager/main.inc
gosa-core/plugins/addons/logview/main.inc
gosa-core/plugins/addons/mailqueue/main.inc
gosa-core/plugins/addons/notifications/main.inc
gosa-core/plugins/admin/acl/class_aclManagement.inc
gosa-core/plugins/admin/acl/class_aclRole.inc
gosa-core/plugins/admin/acl/main.inc
gosa-core/plugins/admin/applications/class_applicationGeneric.inc
gosa-core/plugins/admin/applications/class_applicationManagement.inc
gosa-core/plugins/admin/applications/main.inc
gosa-core/plugins/admin/departments/class_departmentManagement.inc
gosa-core/plugins/admin/departments/main.inc
gosa-core/plugins/admin/devices/class_deviceManagement.inc
gosa-core/plugins/admin/devices/main.inc
gosa-core/plugins/admin/fai/class_askClassName.inc
gosa-core/plugins/admin/fai/class_divListFai.inc
gosa-core/plugins/admin/fai/class_faiHook.inc
gosa-core/plugins/admin/fai/class_faiManagement.inc
gosa-core/plugins/admin/fai/class_faiPackageEntry.inc
gosa-core/plugins/admin/fai/class_faiPartitionTable.inc
gosa-core/plugins/admin/fai/class_faiProfileEntry.inc
gosa-core/plugins/admin/fai/class_faiScript.inc
gosa-core/plugins/admin/fai/class_faiTemplate.inc
gosa-core/plugins/admin/fai/class_faiTemplateEntry.inc
gosa-core/plugins/admin/fai/class_faiVariable.inc
gosa-core/plugins/admin/fai/main.inc
gosa-core/plugins/admin/groups/class_groupManagement.inc
gosa-core/plugins/admin/groups/main.inc
gosa-core/plugins/admin/mimetypes/class_mimetypeGeneric.inc
gosa-core/plugins/admin/mimetypes/class_mimetypeManagement.inc
gosa-core/plugins/admin/mimetypes/main.inc
gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc
gosa-core/plugins/admin/ogroups/main.inc
gosa-core/plugins/admin/systems/class_systemManagement.inc
gosa-core/plugins/admin/systems/class_workstationStartup.inc
gosa-core/plugins/admin/systems/main.inc
gosa-core/plugins/admin/systems/services/glpi/class_glpiAttachmentPool.inc
gosa-core/plugins/admin/systems/services/glpi/class_glpiDeviceManagement.inc
gosa-core/plugins/admin/systems/services/glpi/class_glpiPrinterCartridges.inc
gosa-core/plugins/admin/systems/services/glpi/class_glpiSelectUser.inc
gosa-core/plugins/admin/systems/tabs_server.inc
gosa-core/plugins/admin/users/class_userManagement.inc
gosa-core/plugins/admin/users/main.inc
gosa-core/plugins/generic/welcome/main.inc
gosa-core/plugins/gofax/blocklists/class_blocklistManagement.inc
gosa-core/plugins/gofax/blocklists/main.inc
gosa-core/plugins/gofax/faxaccount/main.inc
gosa-core/plugins/gofax/faxreports/class_faxreport.inc
gosa-core/plugins/gofax/faxreports/main.inc
gosa-core/plugins/gofon/conference/class_phoneConferenceManagment.inc
gosa-core/plugins/gofon/conference/main.inc
gosa-core/plugins/gofon/fonreports/main.inc
gosa-core/plugins/gofon/macro/class_gofonMacroManagement.inc
gosa-core/plugins/gofon/macro/main.inc
gosa-core/plugins/gofon/phoneaccount/main.inc
gosa-core/plugins/personal/connectivity/main.inc
gosa-core/plugins/personal/environment/main.inc
gosa-core/plugins/personal/generic/class_user.inc
gosa-core/plugins/personal/generic/main.inc
gosa-core/plugins/personal/mail/main.inc
gosa-core/plugins/personal/nagios/main.inc
gosa-core/plugins/personal/netatalk/main.inc
gosa-core/plugins/personal/password/class_password.inc
gosa-core/plugins/personal/posix/class_posixAccount.inc
gosa-core/plugins/personal/posix/main.inc
gosa-core/plugins/personal/samba/main.inc
gosa-core/plugins/personal/scalix/main.inc
gosa-core/setup/class_setupStep_Language.inc
gosa-core/setup/main.inc

index f2be830346eab428ba3064d51f5c76ae3e72bcd6..3b8761790a12c0c217c070e6eb8239c702b16ff6 100644 (file)
@@ -533,7 +533,7 @@ class MultiSelectWindow{
         }
       }
     }
-    $_SESSION['CurrentMainBase'] = $this->selectedBase;
+    session::set('CurrentMainBase',$this->selectedBase);
 
                if(isset($_POST['MultiSelectWindow'.$this->filterName])){
 
@@ -655,7 +655,7 @@ class MultiSelectWindow{
                /* check for a valid base */
                if(!$base){
                        if(!isset($_SESSION['CurrentMainBase'])){
-                               $_SESSION['CurrentMainBase'] = $this->config->current['BASE'];
+                               session::set('CurrentMainBase',$this->config->current['BASE']);
                        }
                        $base = $_SESSION['CurrentMainBase'];
                }
index f5b26e32f21effdef7c567bee067226cc8355290..a9d7bc85dfd0803b1ff5012009c2a61393425faf 100644 (file)
@@ -1058,7 +1058,7 @@ class acl extends plugin
     /* Refresh users ACLs */
     $ui= get_userinfo();
     $ui->loadACL();
-    $_SESSION['ui']= $ui;
+    session::set('ui',$ui);
   }
 
 
index 3ad4fd81cd4c2a6244f15a105a2b1b3e50e4af16..0b4b92eb6aa63fb964f2ec1ec65261c75a61c775 100644 (file)
@@ -226,8 +226,8 @@ class config  {
     }
 
     if (!isset($_SESSION['size_limit'])){
-      $_SESSION['size_limit']= $this->current['SIZELIMIT'];
-      $_SESSION['size_ignore']= $this->current['SIZEIGNORE'];
+      session::set('size_limit',$this->current['SIZELIMIT']);
+      session::set('size_ignore',$this->current['SIZEIGNORE']);
     }
 
     if ($sizelimit){
@@ -257,7 +257,7 @@ class config  {
     }
 
     if (isset($this->current['INITIAL_BASE'])){
-      $_SESSION['CurrentMainBase']= $this->current['INITIAL_BASE'];
+      session::set('CurrentMainBase',$this->current['INITIAL_BASE']);
     }
   
     /* Remove possibly added ',' from end of group and people ou */
index 538dc152a35d300aed29bcbb2f28c71c54d1ad5f..4293414ca1b3c563a5d6a530714407359271da88 100644 (file)
@@ -24,7 +24,7 @@ class msg_dialog
                }
 
                if((!isset($_SESSION['errorsAlreadyPosted'])) || !is_array($_SESSION['errorsAlreadyPosted'])){
-                       $_SESSION['errorsAlreadyPosted'] = array();
+                       session::set('errorsAlreadyPosted',array());
                }
 
                if(!isset($_SESSION['errorsAlreadyPosted'][$s_title.$s_message])){
@@ -47,7 +47,7 @@ class msg_dialog
                                $this->a_Trace   = debug_backtrace();
                        }
                        if(!isset($_SESSION['msg_dialogs'])){
-                               $_SESSION['msg_dialogs'] = array();
+                               session::set('msg_dialogs',array());
                        }
                        if($this->i_Type == FATAL_ERROR_DIALOG){
                                restore_error_handler();
index fea28591a191eb8a638346544e88869678138171..b33e609e29fa9432d76d589c2661ca09ed6c9f7f 100644 (file)
@@ -239,10 +239,11 @@ class plugin
   function execute()
   {
     /* This one is empty currently. Fabian - please fill in the docu code */
-    $_SESSION['current_class_for_help'] = get_class($this);
+    session::set('current_class_for_help',get_class($this));
 
     /* Reset Lock message POST/GET check array, to prevent perg_match errors*/
-    $_SESSION['LOCK_VARS_TO_USE'] = $_SESSION['LOCK_VARS_USED'] =array();
+    session::set('LOCK_VARS_TO_USE',array());
+    session::set('LOCK_VARS_USED',array());
   }
 
   /*! \brief execute plugin
@@ -1755,10 +1756,11 @@ class plugin
   function multiple_execute()
   {
     /* This one is empty currently. Fabian - please fill in the docu code */
-    $_SESSION['current_class_for_help'] = get_class($this);
+    session::set('current_class_for_help',get_class($this));
 
     /* Reset Lock message POST/GET check array, to prevent perg_match errors*/
-    $_SESSION['LOCK_VARS_TO_USE'] = $_SESSION['LOCK_VARS_USED'] =array();
+    session::set('LOCK_VARS_TO_USE',array());
+    session::set('LOCK_VARS_USED',array());
     
     return("Multiple edit is currently not implemented for this plugin.");
   }
index 097c7ccdc90f2030cdd4cbc0d35b5e28ba0ff126..77015dad2290a8992a921968fd50cb3281efdf62 100644 (file)
@@ -66,7 +66,7 @@ class userinfo
     $this->ip= $_SERVER['REMOTE_ADDR'];
 
     /* Initialize ACL_CACHE */
-    $_SESSION['ACL_CACHE']= array();
+    session::set('ACL_CACHE',array());
     $this->reset_acl_cache();
   }
 
@@ -74,7 +74,7 @@ class userinfo
   public function reset_acl_cache()
   {
     /* Initialize ACL_CACHE */
-    $_SESSION['ACL_CACHE']= array();
+    session::set('ACL_CACHE',array());
   }
 
   function loadACL()
index 77ccf4d134300976211759b3f7378fecfeb3ca3a..6937598f281545d9f3c4c80542e673b7c0017579 100644 (file)
@@ -360,7 +360,7 @@ function ldap_login_user_htaccess ($username)
   $ui->loadACL();
 
   /* TODO: check java script for htaccess authentication */
-  $_SESSION['js']= true;
+  session::set('js',true);
 
   return ($ui);
 }
index d01cfbc7e36a1302620bf4b962aac0f1a5af63a6..92a350e4dab9ca386ff4aa265565073dfd72c73c 100644 (file)
@@ -378,7 +378,7 @@ function save_release_changes_now()
       }
     }
   } 
-  $_SESSION['FAI_objects_to_save'] = array();
+  session::set('FAI_objects_to_save',array());
 }
 
 
index 2f2e9c8142dee217999ba466d97b517eb78bfe25..1339332ac34e5591be194bd173abd7789edcb111 100644 (file)
@@ -272,7 +272,7 @@ function search($arr,$word)
   $result['global']['maxhit'] = 0;
   session::un_set('lastresults');
   unset($_SESSION['parsed_search_keyword']);
-  $_SESSION['parsed_search_keyword']="";
+  session::set('parsed_search_keyword',"");
 
   error_reporting(E_ALL | E_STRICT);
 
@@ -341,7 +341,7 @@ function search($arr,$word)
   }
 
   /* Save result in Session, so we can mark words later, or go back to search, without searching again*/
-  $_SESSION['lastresults'] = $result;
+  session::set('lastresults',$result);
   return($result);
 }
 
index 4144eac58a60f742c98010ea64fa8885d6c50e7c..cb8db375fca49e28f17ab75acdb8f4df2e151943 100644 (file)
@@ -96,7 +96,7 @@ class dfsManagment extends plugin {
         $this->dfstab = new dfstabs($this->config, $this->config->data['TABS']['DFSTABS'], $this->dn);
         $this->dfstab->set_acl($this->acl);
         $this->dfstab->save_object();
-        $_SESSION['objectinfo']= $this->dn;
+        session::set('objectinfo',$this->dn);
       }
     } 
       
index 433f9be92fdf44e77ac3c545efe3d2f2f960fd1d..1bd11d47cb9d453ba142ee86e8db72f5367a6aa4 100644 (file)
@@ -36,7 +36,7 @@
      $display.= $output;
     
      # show page
-     $_SESSION['dfsManagment'] = $dfsManagment;
+     session::set('dfsManagment',$dfsManagment);
   }
 
 ?>
index 2de0445728c7141a87b435c59487ea17a1f7c210..4e06270fea521599b5d099dfc11db0e18b147887 100644 (file)
@@ -51,5 +51,5 @@ if (!$remove_lock){
        $display= print_header(get_template_path('images/system.png'), _("System deployment")).$display;
 
        /* Store changes  in session */
-       $_SESSION['gotomasses']= $gotomasses;
+       session::set('gotomasses',$gotomasses);
 }
index f2955a35ca3d46717648b77404fe1643d780cebb..87cd43179ef65360a6612ed021d5d7b44c4b08f1 100644 (file)
@@ -34,6 +34,6 @@ if (!$remove_lock){
        $display= print_header(get_template_path('images/ldif.png'), _("LDAP manager")).$display;
 
        /* Store changes  in session */
-       $_SESSION['ldif']= $ldif;
+       session::set('ldif',$ldif);
 }
 ?>
index 9ecb3161d79537089928cd9b0d00c86aff805f30..f6767de944d7ea63daeb92276cf11975f8923e50 100644 (file)
@@ -34,6 +34,6 @@ if (!$remove_lock){
        $display= print_header(get_template_path('images/logview.png'), _("System log view")).$display;
 
        /* Store changes  in session */
-       $_SESSION['log_tabs']= $log_tabs;
+       session::set('log_tabs',$log_tabs);
 }
 ?>
index 37dca88c24dbf73f2dc515e6042fcff7ca862903..4962d5db63ee957f5314697624c9d8637041b254 100644 (file)
@@ -42,6 +42,6 @@ if (!$remove_lock){
        $display= print_header(get_template_path('images/mailqueue.png'), _("Mail queue")).$display;
 
        /* Store changes  in session */
-       $_SESSION['mailqueue']= $mailqueue;
+       session::set('mailqueue',$mailqueue);
 }
 ?>
index 6d7245c7505708b6e50f8b328c365994a98d130b..b2e0a0339f01daa760f3ed7b9887b65b337b7a36 100644 (file)
@@ -46,6 +46,6 @@ if (!$remove_lock){
        $display= print_header(get_template_path('images/notifications.png'), _("Notifications")).$display;
 
        /* Store changes  in session */
-       $_SESSION['msgplug']= $msgplug;
+       session::set('msgplug',$msgplug);
 }
 ?>
index 7e77a07c763d9867d3a2c973c4cb359583c099be..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."));
       }
@@ -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));
         }
 
index 18bf440dc06395e02229391fde536fc0653c2370..16c7e44737d83da46fcef82d26e37af4c103cef2 100644 (file)
@@ -566,7 +566,7 @@ class aclrole extends acl
     /* Refresh users ACLs */
     $ui= get_userinfo();
     $ui->loadACL();
-    $_SESSION['ui']= $ui;
+    session::set('ui',$ui);
   }
 
 
index 914817c8ec0858a65c7fcaa8f4800c870777d959..3383a010efa15d25d5531b890e7bbb0767f8646f 100644 (file)
@@ -52,6 +52,6 @@ if (!session::is_set('macl') || (isset($_GET['reset']) && $_GET['reset'] == 1)){
        }
 
        $display.= $output;
-       $_SESSION['macl']= $macl;
+       session::set('macl',$macl);
 }
 ?>
index 65cb8b75afb6a98be055173301e4007411de49d2..a8fb6bf243024b6802298a75ae07ad4eca1d0ab2 100644 (file)
@@ -49,8 +49,8 @@ class application extends plugin
     if ($this->iconData == ""){
       $this->set_picture("");
     }
-    $_SESSION['binary']= $this->iconData;
-    $_SESSION['binarytype']= "image/jpeg";
+    session::set('binary',$this->iconData);
+    session::set('binarytype',"image/jpeg");
     $this->gosaApplicationIcon= $this->iconData;
 
     /* This is always an account */
@@ -138,17 +138,17 @@ class application extends plugin
     /* Download requested */
     foreach($_POST as $name => $value){
       if(preg_match("/^downloadScript/",$name)){
-        $_SESSION['binary']       = $this->gotoLogonScript;
-        $_SESSION['binarytype']   = "octet-stream";
-        $_SESSION['binaryfile']   = $this->cn.".gosaApplication";
+        session::set('binary',$this->gotoLogonScript);
+        session::set('binarytype',"octet-stream");
+        session::set('binaryfile',$this->cn.".gosaApplication");
         header("location: getbin.php ");
         exit();
       }
     }
 
     /* Reassign picture data, sometimes its corrupt cause we started a download of application scripts */
-    $_SESSION['binary']     = $this->iconData;
-    $_SESSION['binarytype'] = "image/jpeg";
+    session::set('binary',$this->iconData);
+    session::set('binarytype',"image/jpeg");
     
     $smarty->assign("rand", rand(0, 10000));
     $head = $this->generateTemplate();
@@ -487,8 +487,8 @@ class application extends plugin
     if (file_exists($filename)){
       $fd = fopen ($filename, "rb");
       $this->iconData= fread ($fd, filesize ($filename));
-      $_SESSION['binary']= $this->iconData;
-      $_SESSION['binarytype']= "image/jpeg";
+      session::set('binary',$this->iconData);
+      session::set('binarytype',"image/jpeg");
       $this->gosaApplicationIcon= $this->iconData;
 
       fclose ($fd);
index 9804b330a218e86553e9315ba8524968da45465b..c7810321e3df5bcf872bf9a2d17526662be04c7d 100644 (file)
@@ -105,7 +105,7 @@ class applicationManagement extends plugin
 
     /* These vars will be stored if you try to open a locked app, 
         to be able to perform your last requests after showing a warning message */
-    $_SESSION['LOCK_VARS_TO_USE'] = array("/^act$/","/^id$/","/^appl_edit_/","/^appl_del_/","/^item_selected/","/^remove_multiple_applications/");
+    session::set('LOCK_VARS_TO_USE',array("/^act$/","/^id$/","/^appl_edit_/","/^appl_del_/","/^item_selected/","/^remove_multiple_applications/"));
 
     $smarty       = get_smarty();             // Smarty instance
     $s_action     = "";                       // Contains the action to proceed
@@ -274,7 +274,7 @@ class applicationManagement extends plugin
       /* Register apptabs to trigger edit dialog */
       $this->apptabs= new apptabs($this->config,$this->config->data['TABS']['APPSTABS'], $this->dn,"application");
       $this->apptabs->set_acl_base($this->dn);
-      $_SESSION['objectinfo']= $this->dn;
+      session::set('objectinfo',$this->dn);
     }
 
 
index 51011b31a37e88971ecfcbf2a9625d053a3f6373..9d2b4d373438d897ca98a8b6089c7dce0d06013b 100644 (file)
@@ -49,7 +49,7 @@ if ($remove_lock){
 
        /* Show and save dialog */
        $display.= $output;
-       $_SESSION['applicationManagement']= $applicationManagement;
+       session::set('applicationManagement',$applicationManagement);
 }
 
 ?>
index 99e30816715382096b1b4a360ffbf9ccc2588095..5eef200994725951d4d1f0dc10d42c7ed6718c58 100644 (file)
@@ -63,7 +63,7 @@ class departmentManagement extends plugin
       Var init 
      ***************/
 
-    $_SESSION['LOCK_VARS_TO_USE'] = array("/^act$/","/^id$/","/^dep_edit_.*/","/^dep_del_.*/","/^item_selected/","/^remove_multiple_departments/");
+    session::set('LOCK_VARS_TO_USE',array("/^act$/","/^id$/","/^dep_edit_.*/","/^dep_del_.*/","/^item_selected/","/^remove_multiple_departments/"));
 
     /* Reload departments */
     $smarty                                            = get_smarty();
@@ -143,7 +143,7 @@ class departmentManagement extends plugin
       $this->deptabs= new deptabs($this->config,$this->config->data['TABS']['DEPTABS'], $this->dn,"department");
       $this->deptabs->set_acl_base($this->dn);
 
-      $_SESSION['objectinfo']= $this->dn;
+      session::set('objectinfo',$this->dn);
     }
 
 
@@ -241,7 +241,7 @@ class departmentManagement extends plugin
 
         /* Check locking */
         if (($user= get_lock($this->dn)) != ""){
-          $_SESSION['dn']= $this->dn;
+          session::set('dn',$this->dn);
           return(gen_locked_message($user, $this->dn));
         } else {
           add_lock ($this->dn, $this->ui->dn);
index 76d816ccb9750d1767d38f2873e96010f5c7c8f6..f0dbab6b2ca084fd40921fe86eb2322af0df5173 100644 (file)
@@ -50,7 +50,7 @@ if ($remove_lock){
        }
 
        $display.= $output;
-       $_SESSION['department']= $department;
+       session::set('department',$department);
        $config = $department->config;
 }
 
index a70644c5495fcb67f16aedd079acf6b0912c5576..d66e15c39edcc0245f314728fd5f488d3b5d4c61 100644 (file)
@@ -210,7 +210,7 @@ class deviceManagement extends plugin
       /* Register devicetabs to trigger edit dialog */
       $this->devicetabs= new devicetabs($this->config,$this->config->data['TABS']['DEVICETABS'], $this->dn,"devices");
       $this->devicetabs->set_acl_base($this->dn);
-      $_SESSION['objectinfo']= $this->dn;
+      session::set('objectinfo',$this->dn);
     }
 
 
index e56937a628d1762b5ba07a58f2822097a731da55..86769df39d992b8eb81ea753450fc64ed96041d1 100755 (executable)
@@ -52,6 +52,6 @@ if ($remove_lock){
 
                /* Show and save dialog */
                $display.= $output;
-               $_SESSION['DeviceManagement']= $DeviceManagement;
+               session::set('DeviceManagement',$DeviceManagement);
 }
 ?>
index 54ec897fbd380a9268459ae5f32bde566815f843..64d2466954ec29eb448c0e09d45ef4617f813da1 100644 (file)
@@ -23,7 +23,7 @@ class askClassName extends plugin
     $this->objectClass = $objectClass;
     plugin::plugin ($config, $dn);
     if(!isset($_SESSION['CurrentMainBase'])){
-      $_SESSION['CurrentMainBase'] = $this->config->current['BASE'];
+      session::set('CurrentMainBase',$this->config->current['BASE']);
     }
   }
 
index b15485c82dc890e3d8dd540711496e1f7d38e1c1..602283d837abc431f2ac5bbe3fdc99fe12bc774d 100644 (file)
@@ -35,7 +35,7 @@ class divListFai extends MultiSelectWindow
 
     /* Set default base */
     if(!isset($_SESSION['CurrentMainBase'])){
-      $_SESSION['CurrentMainBase'] = $this->config->current['BASE'];
+      session::set('CurrentMainBase',$this->config->current['BASE']);
     }
     $this->selectedBase = $_SESSION['CurrentMainBase'];
 
index ce60202a3a8428ca8d599923753986228012be02..d7cba42ea97cb24f7a82137ba218d4029b3dba55 100644 (file)
@@ -174,7 +174,7 @@ class faiHook extends plugin
         $this->dialog->set_acl_base($this->acl_base_for_current_object($obj['dn']));
         $this->dialog->set_acl_category("fai");
 
-        $_SESSION['objectinfo'] = $obj['dn'];
+        session::set('objectinfo',$obj['dn']);
         $this->dialog->parent = &$this;
         $this->is_dialog=true;
       }
@@ -207,7 +207,7 @@ class faiHook extends plugin
         }
         $this->dialog= new $this->subClassName($this->config,$this->dn,$obj);
         $this->dialog->acl = $this->acl;
-        $_SESSION['objectinfo'] = $obj['dn'];
+        session::set('objectinfo',$obj['dn']);
         $this->dialog->parent = &$this;
         $this->is_dialog=true;
       }
index b0e6a92ea431c789e851ae901d4b557eaf288b8d..005a6ea273967d74a88b1f4fcc62d083ebd148d7 100644 (file)
@@ -83,7 +83,7 @@ class faiManagement extends plugin
                $s_entry        = "";
     
     /* If an entry was locked, these vars will be stored in a session to allow direct edit */
-    $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit_entry$/","/^id$/","/^entry_edit_/","/^entry_delete_/","/^item_selected/","/^remove_multiple_fai_objects/");
+    session::set('LOCK_VARS_TO_USE',array("/^edit_entry$/","/^id$/","/^entry_edit_/","/^entry_delete_/","/^item_selected/","/^remove_multiple_fai_objects/"));
 
 
     /****************
@@ -400,7 +400,7 @@ class faiManagement extends plugin
         #$this->dialog->set_acl(array("*none*"))  ;    
         echo "Dawn it is freezed.";
       }
-                       $_SESSION['objectinfo'] = $this->dn;
+                       session::set('objectinfo',$this->dn);
                }
 
 
@@ -476,7 +476,7 @@ class faiManagement extends plugin
      ****************/
 
     if((isset($_POST['UseBranchName']))&&(($this->dispNewBranch)||($this->dispNewFreeze))){
-      $_SESSION['LASTPOST'] = $_POST;
+      session::set('LASTPOST',$_POST);
 
       if($this->dispNewBranch){
         $type = "branch";
index 1b22ba86966df7adf96f9765832ee18d4127468c..9474935015e46da25df3e7536d75b93dfcc88e89 100644 (file)
@@ -147,7 +147,7 @@ $CHKS = "<input type='hidden' value='chkchange' name='chkchange'><table summary=
       }
     }
 
-    $_SESSION['searchStrPKG']       = $this->searchStrPKG;
+    session::set('searchStrPKG',$this->searchStrPKG);
     $smarty->assign("CHKS"          , $CHKS);
     $smarty->assign("searchStrPKG"  , $this->searchStrPKG);
     $smarty->assign("faihead"       , "");
index 216d6c3ed1e257395fd65276e4449cc80b66d35a..e7ab5a9b053d604770e33eedd319f9c67ba2b364 100644 (file)
@@ -153,7 +153,7 @@ class faiPartitionTable extends plugin
      */    
 
     if($this->dn != "new"){
-      $_SESSION['objectinfo']= $this->dn;
+      session::set('objectinfo',$this->dn);
     }
 
     if((isset($_POST['EditDisk']))&&(isset($_POST['disks']))){
@@ -169,10 +169,10 @@ class faiPartitionTable extends plugin
 
         /* Set object info string, which will be displayed in plugin info line */ 
         if(isset($this->disks[$Udisk]['dn'])){
-          $_SESSION['objectinfo'] = $this->disks[$Udisk]['dn'];
+          session::set('objectinfo',$this->disks[$Udisk]['dn']);
           $dn = $this->disks[$Udisk]['dn'];
         }else{
-          $_SESSION['objectinfo'] = "";
+          session::set('objectinfo',"");
           $dn = "new";
         }
 
index 1dbcad7f0bbde6974fa4fd8a76eaac7b6cad66d2..7819137a3470d7e38d03ab28b5b55f8a260bb048 100644 (file)
@@ -123,7 +123,7 @@ class faiProfileEntry extends plugin
     }
   
     /* Save current searchfilter in session*/
-    $_SESSION['SUBfaifilter']= $SUBfaifilter;
+    session::set('SUBfaifilter',$SUBfaifilter);
 
     /* Check if we used a checkboxe from the list, to select dselect an entry */
     foreach($_POST as $name => $value){
index 928aa0e94a41384702d3ca74a21bc5228caf36d6..b5310e40ebffb04f13cc1ddc1ab0e48f7dcfdb52 100644 (file)
@@ -161,7 +161,7 @@ class faiScript extends plugin
     }
 
     if($this->dn != "new"){
-      $_SESSION['objectinfo']= $this->dn;
+      session::set('objectinfo',$this->dn);
     }
 
     /* Handle posts */
@@ -206,7 +206,7 @@ class faiScript extends plugin
       $this->dialog->set_acl_category("fai");
 
       /* Assign some additional dialog informations like headline and parent  */
-      $_SESSION['objectinfo'] = $obj['dn'];
+      session::set('objectinfo',$obj['dn']);
       $this->dialog->parent = &$this;
       $this->is_dialog=true;
     }
index 5f4fcbf14509115508ad4e98578618488d741cac..d35648a8e0c5c953a469c894a6e5943ad03c4e9c 100644 (file)
@@ -152,7 +152,7 @@ class faiTemplate extends plugin
           $this->dialog->set_acl_base($this->acl_base);
           $this->dialog->set_acl_category("fai");
 
-          $_SESSION['objectinfo'] = $obj['dn'];
+          session::set('objectinfo',$obj['dn']);
           $this->dialog->parent = &$this;
           $this->is_dialog=true;
         }
@@ -185,7 +185,7 @@ class faiTemplate extends plugin
         }
         $this->dialog= new $this->subClassName($this->config,$this->dn,$obj);
         $this->dialog->acl = $this->acl;
-        $_SESSION['objectinfo'] = $obj['dn'];
+        session::set('objectinfo',$obj['dn']);
         $this->dialog->parent = &$this;
         $this->is_dialog=true;
       }
@@ -206,7 +206,7 @@ class faiTemplate extends plugin
     }
 
     if($this->dn != "new"){
-      $_SESSION['objectinfo']= $this->dn;
+      session::set('objectinfo',$this->dn);
     }
 
     /* Save Dialog */
index 05c6b72acc303e30832adefe168fdf9b8cfc91b4..bef885e00fd700ea73a5894d116efcdc3cb06773 100644 (file)
@@ -53,13 +53,13 @@ class faiTemplateEntry extends plugin
     $this->group = $this->user[1];
     $this->user = $this->user[0];
 
-    $_SESSION['binary'] = $this->FAItemplateFile;
-    $_SESSION['binarytype'] = 'octet-stream';
+    session::set('binary',$this->FAItemplateFile);
+    session::set('binarytype','octet-stream');
     $_SESSION['binaryfile'] = basename( $this->FAItemplatePath );
 
     if(!empty($this->dn) && $this->dn != "new"){
       $ldap = $this->config->get_ldap_link();
-      $_SESSION['binary'] =$ldap->get_attribute($this->dn,"FAItemplateFile");
+      session::set('binary',$ldap->get_attribute($this->dn,"FAItemplateFile"));
       $this->FAItemplateFile = $_SESSION['binary'];
     }
     
@@ -86,8 +86,8 @@ class faiTemplateEntry extends plugin
           $this->FAItemplatePath = $_FILES['FAItemplateFile']['name'];
         }
 
-        $_SESSION['binary']     = $this->FAItemplateFile;
-        $_SESSION['binarytype'] = 'octet-stream';
+        session::set('binary',$this->FAItemplateFile);
+        session::set('binarytype','octet-stream');
         $_SESSION['binaryfile'] = basename( $this->FAItemplatePath );
       }
     }
index ae6b79a99fa36686b6ac0c409ae3fd66f1817e93..a3cbe09dc904083db53c7b25bd5f1ec4bc6b9ae0 100644 (file)
@@ -128,7 +128,7 @@ class faiVariable extends plugin
     }
 
     if($this->dn != "new"){
-      $_SESSION['objectinfo']= $this->dn;
+      session::set('objectinfo',$this->dn);
     }
 
 
@@ -141,7 +141,7 @@ class faiVariable extends plugin
       $this->dialog->set_acl_category("fai");
       $this->dialog->set_acl_base($c_dn);
       $this->dialog->parent = &$this;
-      $_SESSION['objectinfo'] = $this->SubObjects[$var]['dn'];
+      session::set('objectinfo',$this->SubObjects[$var]['dn']);
       $this->is_dialog=true;
     }
     
index edf3a59e3c0b3054c577811c2ccf8095029a7501..d9ccd1069a75c1827570298c7bc994bfbf119558 100644 (file)
@@ -49,7 +49,7 @@ if ($remove_lock){
        }
        $display.= $output;
 
-       $_SESSION['FAI']= $FAI;
+       session::set('FAI',$FAI);
 }
 
 ?>
index fb8d0148982f0c221952cb20eb2e2a554e828ef2..7ff67d26a29291468213e0d1c5a0693a453b2744 100644 (file)
@@ -67,7 +67,7 @@ class groupManagement extends plugin
        plugin::execute();
 
     /* Store these posts if the current object is locked (used by somebody else)*/
-    $_SESSION['LOCK_VARS_TO_USE'] = array("/^act$/","/^id$/","/^group_edit_/","/^group_del_/","/^item_selected/","/^remove_multiple_groups/");
+    session::set('LOCK_VARS_TO_USE',array("/^act$/","/^id$/","/^group_edit_/","/^group_del_/","/^item_selected/","/^remove_multiple_groups/"));
 
     /* Save data */
     $s_action   = "";
@@ -239,7 +239,7 @@ class groupManagement extends plugin
       /* Register grouptab to trigger edit dialog */
       $this->grouptab= new grouptabs($this->config,$this->config->data['TABS']['GROUPTABS'], $this->dn);
       $this->grouptab->set_acl_base($this->dn);
-      $_SESSION['objectinfo']= $this->dn;
+      session::set('objectinfo',$this->dn);
     }
 
 
index 2f30e04b16b24352bf30a2d8dce5d8084012f3ed..f8f82c586832b98d48c2f6f1813b61e27336ab2a 100644 (file)
@@ -53,7 +53,7 @@ if ($remove_lock){
   }
 
   /* Show and save dialog */
-  $_SESSION['groupManagement']= $groupManagement;
+  session::set('groupManagement',$groupManagement);
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
index 5d90a5ecdc3207f8fdea7711e3cd75d7f398a739..c9eac57aba94380cc6d64a353d64903c4160aaac 100644 (file)
@@ -575,8 +575,8 @@ class mimetype extends plugin
     if (file_exists($filename)){
       $fd = fopen ($filename, "rb");
       $this->iconData= fread ($fd, filesize ($filename));
-      $_SESSION['binary']= $this->iconData;
-      $_SESSION['binarytype']= "image/jpeg";
+      session::set('binary',$this->iconData);
+      session::set('binarytype',"image/jpeg");
       fclose ($fd);
     }
   }
@@ -584,8 +584,8 @@ class mimetype extends plugin
   /* Get picture link */
   function get_picture()
   {
-    $_SESSION['binary']= $this->iconData;
-    $_SESSION['binarytype']= "image/jpeg";
+    session::set('binary',$this->iconData);
+    session::set('binarytype',"image/jpeg");
     return("getbin.php");
   }
 
index b52fed080668705687ea4e01343c3c8efb44c76f..7af6280d70ceddc8439d09d2b68f9b252844ce6f 100755 (executable)
@@ -100,7 +100,7 @@ class mimetypeManagement extends plugin
 
     /* These vars will be stored if you try to open a locked mime, 
         to be able to perform your last requests after showing a warning message */
-    $_SESSION['LOCK_VARS_TO_USE'] = array("/^act$/","/^id$/","/^mime_edit_/","/^mime_del_/","/^item_selected/","/^remove_multiple_mimetypes/");
+    session::set('LOCK_VARS_TO_USE',array("/^act$/","/^id$/","/^mime_edit_/","/^mime_del_/","/^item_selected/","/^remove_multiple_mimetypes/"));
 
     $smarty       = get_smarty();             // Smarty instance
     $s_action     = "";                       // Contains the action to proceed
@@ -271,7 +271,7 @@ class mimetypeManagement extends plugin
       /* Register mimetabs to trigger edit dialog */
       $this->mimetabs= new mimetabs($this->config,$this->config->data['TABS']['MIMETABS'], $this->dn,"mimetypes");
       $this->mimetabs->set_acl_base($this->dn);
-      $_SESSION['objectinfo']= $this->dn;
+      session::set('objectinfo',$this->dn);
     }
 
 
index fb64f754f1d41df28f95d661954881410e1410a2..edfe3d9b32e9d7c01fa4c2624b0de6feb3ea7cf0 100755 (executable)
@@ -52,6 +52,6 @@ if ($remove_lock){
 
                /* Show and save dialog */
                $display.= $output;
-               $_SESSION['MimeTypeManagement']= $MimeTypeManagement;
+               session::set('MimeTypeManagement',$MimeTypeManagement);
 }
 ?>
index 9bce9c372cbc3152c9a8046466f974e0f7b7807f..0c529fd122e4ae119cb73e8e8b01977d39d67118 100644 (file)
@@ -59,7 +59,7 @@ class ogroupManagement extends plugin
       Variable intialisation && Check posts for commands  
      ****************/
 
-    $_SESSION['LOCK_VARS_TO_USE'] = array("/^act$/","/^id$/","/^group_edit_/","/^group_del_/","/^item_selected/","/^remove_multiple_ogroups/");
+    session::set('LOCK_VARS_TO_USE',array("/^act$/","/^id$/","/^group_edit_/","/^group_del_/","/^item_selected/","/^remove_multiple_ogroups/"));
 
     $smarty     = get_smarty();
     $s_action   = "";
@@ -334,7 +334,7 @@ class ogroupManagement extends plugin
       /* Register grouptab to trigger edit dialog */
       $this->ogroup= new ogrouptabs($this->config, $this->config->data['TABS']['OGROUPTABS'], $this->dn, "ogroups");
       $this->ogroup->set_acl_base($this->dn);
-      $_SESSION['objectinfo']= $this->dn;
+      session::set('objectinfo',$this->dn);
     }
 
 
index 9d13b8cc0e4146a44a474203e1a483abfa26da26..701087ab9bbc811c780118ed02f19e13bc7b69f4 100644 (file)
@@ -43,7 +43,7 @@ if (!$remove_lock){
   $display.= $output;
 
   /* Store changes  in session */
-  $_SESSION['ogroup']= $ogroup;
+  session::set('ogroup',$ogroup);
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
index bb986e9dc20fb27e698ed5a4ca16ac9a8b2521d9..58c0d0fc3214d8dfc735d515db13410ee835c9bf 100644 (file)
@@ -63,7 +63,7 @@ class systems extends plugin
     /* Call parent execute */
     plugin::execute();
 
-    $_SESSION['LOCK_VARS_TO_USE'] = array("/^system_edit_/i","/^system_del_/","/^act/","/^id/","/^item_selected/","/^remove_multiple_systems/");
+    session::set('LOCK_VARS_TO_USE',array("/^system_edit_/i","/^system_del_/","/^act/","/^id/","/^item_selected/","/^remove_multiple_systems/"));
 
     /********************
       Check for functional posts, edit|delete|add|... system devices 
@@ -172,7 +172,7 @@ class systems extends plugin
      ********************/
     if ($s_action=="gen_cd"){
       $this->dn= $this->terminals[$s_entry]['dn'];
-      $_SESSION['objectinfo']= $this->dn;
+      session::set('objectinfo',$this->dn);
       return ($smarty->fetch(get_template_path('gencd.tpl', TRUE)));
     }
 
@@ -357,7 +357,7 @@ class systems extends plugin
 
         $this->systab= new $tabclass($this->config, $this->config->data['TABS'][$class], $this->dn,$acl_cat);
         $this->systab->set_acl_base($this->dn);
-        $_SESSION['objectinfo']= $this->dn;
+        session::set('objectinfo',$this->dn);
         add_lock ($this->dn, $this->ui->dn);
       }else{ 
         print_red (_("You can't edit this object type yet!"));
@@ -385,7 +385,7 @@ class systems extends plugin
       $tabacl   = $ui->get_permissions($this->DivListSystem->selectedBase,$acl_cat."/".$tabname,"gotoRootPasswd");
       if(preg_match("/w/",$tabacl)){
         $this->dn= $this->terminals[$s_entry]['dn'];
-        $_SESSION['objectinfo']= $this->dn;
+        session::set('objectinfo',$this->dn);
         return ($smarty->fetch(get_template_path('password.tpl', TRUE)));
       }else{
         print_red(_("You are not allowed to change the password for this object."));
index 9e9a4732d027fecb581326de42e7ec6ad0e681c9..37196680193613c456c11b17cf0aac89890b50aa 100644 (file)
@@ -112,8 +112,8 @@ class workstartup extends plugin
      */
     if($this->fai_activated) {
 
-      $_SESSION['getAvailableClassesForThisRelease_CACHE'] = array();
-      $_SESSION['getAvailableClassesForThisRelease_CACHED_CLASSES'] = array();
+      session::set('getAvailableClassesForThisRelease_CACHE',array());
+      session::set('getAvailableClassesForThisRelease_CACHED_CLASSES',array());
 
       /* Search all FAI objects */
       $ldap->search("(|(objectClass=FAIpackageList)(objectClass=FAItemplate)(objectClass=FAIvariable)(objectClass=FAIscript)(objectClass=FAIhook)(objectClass=FAIprofile)(objectClass=FAIpartitionTable))",array("cn","objectClass","FAIdebianSection",'description'));
index a129e719642190ad8b27da5e23ccb3ef71a2cadf..2e6e2edc36fa62a4f7e299bec340aaeecae36139 100644 (file)
@@ -49,7 +49,7 @@ if ($remove_lock){
 
        /* Show and save dialog */
        $display.= $output;
-       $_SESSION['systems']= $systems;
+       session::set('systems',$systems);
 }
 
 ?>
index b500660298b80ad14dd2502dd6a4c055b6624e63..7e5897a43f89ca345776b95866650341c1638a9b 100644 (file)
@@ -29,7 +29,7 @@ class glpiAttachmentPool extends plugin
   {
     plugin::plugin ($config, $dn);
     if(!isset($_SESSION['GlpiAttachmentFilter'])){
-      $_SESSION['GlpiAttachmentFilter'] = array("filter"=>"*");
+      session::set('GlpiAttachmentFilter',array("filter"=>"*"));
     }
 
     /* Assign used attributes */
index 0f24300d800375a24d1e9bf285cc3bff4c654d74..619e8015f446952527f69d96ac3610ce1fcd39f4 100644 (file)
@@ -32,7 +32,7 @@ class glpiDeviceManagement extends plugin
 
     if(!isset($_SESSION['glpiDeviceRegex'])){
       $tmp['device_regex'] = "*";
-      $_SESSION['glpiDeviceRegex'] = $tmp;
+      session::set('glpiDeviceRegex',$tmp);
     }
     $this->ui = get_userinfo();  
 
index 3d9d6301001a0e5dbe7b8ff89567c44aa178f7ed..68413a0646323d1efa024bfd335dc5982755d223 100644 (file)
@@ -30,7 +30,7 @@ class glpiPrinterCartridges extends plugin
     /* Assign some basic settings */
     $this->ui = get_userinfo();  
     if(!isset($_SESSION['glpiCartridgeRegex'])){
-      $_SESSION['glpiCartridgeRegex'] = "*";
+      session::set('glpiCartridgeRegex',"*");
     }
   
     /* Only display cartridges for this type of printer */
@@ -54,7 +54,7 @@ class glpiPrinterCartridges extends plugin
     if(empty($filter)) {
       $filter = "*";
     }
-    $_SESSION['glpiCartridgeRegex']= $filter;
+    session::set('glpiCartridgeRegex',$filter);
 
     /* Open dialog which allows to edit the manufacturers
      */
index 7073b12a40564807837d986f706cd683fb9f518b..7b580df3161dfd3823d7f8436297a386718036da 100644 (file)
@@ -28,7 +28,7 @@ class glpiSelectUser extends plugin
     if(!isset($_SESSION['glpi_user_filter'])){
       $tmp['users_regex'] = "*";
       $tmp['base']       = $this->config->current['BASE'];
-      $_SESSION['glpi_user_filter'] = $tmp;
+      session::set('glpi_user_filter',$tmp);
     }
 
     $this->ui = get_userinfo();  
@@ -97,7 +97,7 @@ class glpiSelectUser extends plugin
       $filter['base']= ($this->config->departments[$entry]); 
     }    
 
-    $_SESSION['glpi_user_filter'] = $filter;
+    session::set('glpi_user_filter',$filter);
 
     $this->reload();
 
index 608a02fd1e3c5b4b543bde9f34a8ccf4488ea046..ea674e9de7f5fac96c95518eee5244e1495f04eb 100644 (file)
@@ -58,7 +58,7 @@ class servtabs extends tabs
     /* Reload server settings after saving */
     $config= $_SESSION['config'];
     $config->load_servers();
-    $_SESSION['config']= $config;
+    session::set('config',$config);
 
     /* Fix tagging if needed */
     $baseobject->handle_object_tagging();
index f4641b984a2791e074c751eaf4cb22cb569b4d5a..922c68ffdea7d13a7f5a4af3d8c9d0bccf0e60c8 100644 (file)
@@ -62,7 +62,7 @@ class userManagement extends plugin
     plugin::execute();
 
     /* LOCK MESSAGE Vars */
-    $_SESSION['LOCK_VARS_TO_USE'] = array("/^act$/","/^id$/","/^user_edit_/","/^user_del_/","/^item_selected/","/^remove_multiple_users/","/^multiple_edit/","/menu_action/");
+    session::set('LOCK_VARS_TO_USE',array("/^act$/","/^id$/","/^user_edit_/","/^user_del_/","/^item_selected/","/^remove_multiple_users/","/^multiple_edit/","/menu_action/"));
 
     $smarty       = get_smarty();                 // Smarty instance
     $s_action     = "";                           // Contains the action to be taken
@@ -287,7 +287,7 @@ class userManagement extends plugin
 
         /* User is allowed to change passwords, save 'dn' and 'acl' for next
            dialog. */
-        $_SESSION['objectinfo']= $this->dn;
+        session::set('objectinfo',$this->dn);
         return ($smarty->fetch(get_template_path('password.tpl', TRUE)));
         
 
@@ -328,7 +328,7 @@ class userManagement extends plugin
 
       /* Set ACL and move DN to the headline */
       $this->usertab->set_acl_base($this->dn);
-      $_SESSION['objectinfo']= $this->dn;
+      session::set('objectinfo',$this->dn);
     }
 
 
@@ -352,7 +352,7 @@ class userManagement extends plugin
       if($tmp->multiple_available()){
         $this->usertab = $tmp;
         $this->usertab->set_active_tab($s_tab);
-        $_SESSION['objectinfo']= $this->usertab->get_object_info();
+        session::set('objectinfo',$this->usertab->get_object_info());
       }
     }
 
index b3a0a4251b6d2b8c489645fca2e0703ab3498896..e7dd663721a7e2fd05cc79ade7c117946e0718fd 100644 (file)
@@ -58,7 +58,7 @@ if ($remove_lock){
   }
 
   /* Show and save dialog */
-  $_SESSION['userManagement']= $userManagement;
+  session::set('userManagement',$userManagement);
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
index eb0c63cd937165f3e72a62ac46f5e75b77afb615..b5205012ca5d554caf011fb4e19b50c32057c4e2 100644 (file)
@@ -19,7 +19,7 @@
 */
 
 if (!$remove_lock){
-       $_SESSION['plugin_dir']= dirname(__FILE__);
+       session::set('plugin_dir',dirname(__FILE__));
        $smarty->assign("iconmenu", $plist->show_iconmenu());
        $smarty->assign("header", print_header(get_template_path('images/hdd_linux_unmount.png'), sprintf(_("Welcome %s!"), $ui->cn)));
        $smarty->assign("year", date("Y"));
index 5b0ac1d0c4a74f9ca16c01d6dd56bd8aa82875d5..2476c807b5bca6fa038abcf682dd18739b01fd1a 100644 (file)
@@ -31,7 +31,7 @@ class blocklist extends plugin
     /* Call parent execute */
     plugin::execute();
 
-    $_SESSION['LOCK_VARS_TO_USE'] = array("/^goFaxBlocklist_/","/^act$/","/^id$/","/^remove_multiple_blocklists/","/^item_selected/");
+    session::set('LOCK_VARS_TO_USE',array("/^goFaxBlocklist_/","/^act$/","/^id$/","/^remove_multiple_blocklists/","/^item_selected/"));
 
     /***************
       Init vars 
@@ -180,7 +180,7 @@ class blocklist extends plugin
       }else{
         add_lock ($this->dn, $this->ui->dn);
       }
-      $_SESSION['objectinfo']= trim($this->dn);
+      session::set('objectinfo',trim($this->dn));
       $this->dialog = new faxblocktabs($this->config,$this->config->data['TABS']['FAXBLOCKTABS'],$this->dn);
       $this->dialog->set_acl_base($this->dn);
     }    
@@ -277,7 +277,7 @@ class blocklist extends plugin
 
       /* Check locking */
       if (($user= get_lock($this->dn)) != ""){
-        $_SESSION['dn']= $this->dn;
+        session::set('dn',$this->dn);
         return(gen_locked_message($user, $this->dn));
       } else {
 
index 5951a6307bc28cf7ace1ed0eabef5d77566fe36f..74b4739bab87bdfd93e32d06b3edca3e42a1edbe 100644 (file)
@@ -29,6 +29,6 @@ if ($remove_lock){
        }
        $display.= $output;
 
-       $_SESSION['blocklist']= $blocklist;
+       session::set('blocklist',$blocklist);
 }
 ?>
index aa8393cc9b2249fe830ddd92c8c943679de768d1..605e17f47d6334f005ccd43bd6ed5b9824e46339 100644 (file)
@@ -33,16 +33,16 @@ if (!$remove_lock){
 
                /* Check locking */
                if (($username= get_lock($ui->dn)) != ""){
-                       $_SESSION['back_plugin']= $plug;
-                       $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit$/","/^plug$/");
+                       session::set('back_plugin',$plug);
+                       session::set('LOCK_VARS_TO_USE',array("/^edit$/","/^plug$/"));
                        $lock_msg =  gen_locked_message ($username, $ui->dn);
 
                }else{
 
                        /* Lock the current entry */
                        add_lock ($ui->dn, $ui->dn);
-                       $_SESSION['dn']= $ui->dn;
-                       $_SESSION['edit']= TRUE;
+                       session::set('dn',$ui->dn);
+                       session::set('edit',TRUE);
                }
        }
 
@@ -75,7 +75,7 @@ if (!$remove_lock){
 
        /* Store changes  in session */
        if (isset ($_SESSION['edit'])){
-               $_SESSION['gofaxAccount']= $gofaxAccount;
+               session::set('gofaxAccount',$gofaxAccount);
        }
 
        /* Show page footer depending on the mode */
index 41e0fc47160179a046cf8865be4222448fb46e5b..53b915ee719a442aa58d0ff479d6d668e02de4af 100644 (file)
@@ -200,7 +200,7 @@ class faxreport extends plugin
       /* The user is allowed to download all fax images from those users 
           that are listed in $_SESSION['fuserfilter'] 
          Don't forget to check getfax.php if you change somthing here */
-      $_SESSION['fuserfilter']= $this->userfilter;
+      session::set('fuserfilter',$this->userfilter);
       $smarty->assign("plug", "?plug=".validate($_GET['plug']));
       $smarty->assign("detail", validate($_GET['detail']));
 
index 61dd4cea05a975e9688b7b1171a9c6330f313ec0..b2421c97967218266b44c5e8b2d2980a26dad723 100644 (file)
@@ -14,6 +14,6 @@ if (!$remove_lock){
        $display= print_header(get_template_path('images/reports.png'), _("FAX reports")).$display;
 
        /* Store changes  in session */
-       $_SESSION['faxreport']= $faxreport;
+       session::set('faxreport',$faxreport);
 }
 ?>
index 2f711df44f52de1bad5cdce09268195a17aac28e..65fccd9b99001380315869f562eee0bc036d5154 100644 (file)
@@ -62,7 +62,7 @@ class phoneConferenceManagment extends plugin
     /* Call parent execute */
     plugin::execute();
 
-    $_SESSION['LOCK_VARS_TO_USE'] = array("/^id$/","/^act$/","/^conference_/","/^item_selected/","/^remove_multiple_conferences/");
+    session::set('LOCK_VARS_TO_USE',array("/^id$/","/^act$/","/^conference_/","/^item_selected/","/^remove_multiple_conferences/"));
 
     /***************
       Variable initialisation
@@ -250,7 +250,7 @@ class phoneConferenceManagment extends plugin
 
         /* Check locking */
         if (($conf= get_lock($this->dn)) != ""){
-          $_SESSION['dn']= $this->dn;
+          session::set('dn',$this->dn);
           return(gen_locked_message($conf, $this->dn));
         } else {
           add_lock ($this->dn, $this->ui->dn);
@@ -301,7 +301,7 @@ class phoneConferenceManagment extends plugin
       /* Register conftab to trigger edit dialog */
       $this->conftab= new conferencetabs($this->config,$this->config->data['TABS']['CONFERENCETABS'], $this->dn,"gofonconference");
       $this->conftab->set_acl_base($this->dn);
-      $_SESSION['objectinfo']= $this->dn;
+      session::set('objectinfo',$this->dn);
     }
 
 
index 0cc2451dd9f7e594700ad20d6751ecc07e983523..b6496a4b4fe0e65f731ff587dd90608cc1f70f98 100644 (file)
@@ -50,7 +50,7 @@ if ($remove_lock){
        /* Show and save dialog */
        $conference->save_object();
        $display.= $output;
-       $_SESSION['conference']= $conference;
+       session::set('conference',$conference);
 }
 
 ?>
index 98b245346ba2a96affdc88525dca3a89609f5fbc..f6defcac495fb66b6646119ab1c21c415f9ef969 100644 (file)
@@ -16,6 +16,6 @@ if (!$remove_lock){
        $display= print_header(get_template_path('images/phonereport.png'), _("Phone reports")).$display;
 
        /* Store changes  in session */
-       $_SESSION['fonreport']= $fonreport;
+       session::set('fonreport',$fonreport);
 }
 ?>
index 91738fd7e137bcdd524799f3050e73dca2796a9a..9d552be2aa5857c86a26471a62704cfee75bc354 100755 (executable)
@@ -52,7 +52,7 @@ class goFonMacro extends plugin
     /* Call parent execute */
     plugin::execute();
 
-    $_SESSION['LOCK_VARS_TO_USE'] = array("/^goFonMacro_/","/^act$/","/^id$/","/^item_selected/","/^remove_multiple_macros/");
+    session::set('LOCK_VARS_TO_USE',array("/^goFonMacro_/","/^act$/","/^id$/","/^item_selected/","/^remove_multiple_macros/"));
 
     /*****************
       Variable initialisation
@@ -229,7 +229,7 @@ class goFonMacro extends plugin
         /* Register macrotabs to trigger edit dialog */
         $this->macrotabs= new macrotabs($this->config,
             $this->config->data['TABS']['MACROTABS'], $this->dn,"gofonmacro");
-        $_SESSION['objectinfo']= $this->dn;
+        session::set('objectinfo',$this->dn);
       }
     }
 
index 36e0d65df41a8d76ce703302518c37d6bee57976..402ca2e7c40e0fecf7743558a617ab9af14723c4 100755 (executable)
@@ -55,7 +55,7 @@ if ($remove_lock){
 
   /* Show and save dialog */
   $display.= $output;
-  $_SESSION['macroManagment']= $macroManagment;
+  session::set('macroManagment',$macroManagment);
 }
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>
index 75ed8a9bcaf5c1b94f3a496cf4b054f7c59d6486..06d7f6ccf23e1aae3c6de789c5f2240fa89985f1 100644 (file)
@@ -48,16 +48,16 @@ if (!$remove_lock){
 
                /* Check locking */
                if (($username= get_lock($ui->dn)) != ""){
-                       $_SESSION['back_plugin']= $plug;
-                       $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit$/","/^plug$/");
+                       session::set('back_plugin',$plug);
+                       session::set('LOCK_VARS_TO_USE',array("/^edit$/","/^plug$/"));
                        $lock_msg =  gen_locked_message ($username, $ui->dn);
 
                }else{
 
                        /* Lock the current entry */
                        add_lock ($ui->dn, $ui->dn);
-                       $_SESSION['dn']= $ui->dn;
-                       $_SESSION['edit']= TRUE;
+                       session::set('dn',$ui->dn);
+                       session::set('edit',TRUE);
                }
 
        }
@@ -76,7 +76,7 @@ if (!$remove_lock){
                        sess_del ('edit');
 
                        /* Write back to session */
-                       $_SESSION['phoneAccount']= $phoneAccount;
+                       session::set('phoneAccount',$phoneAccount);
                } else {
                        /* Errors found, show message */
                        show_errors ($message);
@@ -92,7 +92,7 @@ if (!$remove_lock){
 
        /* Store changes  in session */
        if (isset ($_SESSION['edit'])){
-               $_SESSION['phoneAccount']= $phoneAccount;
+               session::set('phoneAccount',$phoneAccount);
        }
 
        $info= "";
index a1684f74472fdbe154caf7ad8cedad80ea178403..16b66c13e979a71a694dd215d71278534e6ad372 100644 (file)
@@ -54,7 +54,7 @@ if (!$remove_lock){
 
     /* Check locking */
     if ((($username= get_lock($ui->dn)) != "") && (!session::is_set('edit'))){
-      $_SESSION['back_plugin']= $plug;
+      session::set('back_plugin',$plug);
       gen_locked_message ($username, $ui->dn);
       exit ();
     }
@@ -62,8 +62,8 @@ if (!$remove_lock){
 
     /* Lock the current entry */
     add_lock ($ui->dn, $ui->dn);
-    $_SESSION['dn']= $ui->dn;
-    $_SESSION['edit']= TRUE;
+    session::set('dn',$ui->dn);
+    session::set('edit',TRUE);
   }
 
   /* save changes to LDAP and disable edit mode */
@@ -91,7 +91,7 @@ if (!$remove_lock){
 
   /* Store changes  in session */
   if (isset ($_SESSION['edit'])){
-    $_SESSION['connectivity']= $connectivity;
+    session::set('connectivity',$connectivity);
   }
 
   $info= "";
index 4cb24346f7fe1dfe91aa7f3bd31d71d7f1b61ff1..7142f96e7b894a8ff5ae76b791df75a8b9d7fbed 100644 (file)
@@ -46,16 +46,16 @@ if (!$remove_lock){
   
    /* Check locking */
     if (($username= get_lock($ui->dn)) != ""){
-      $_SESSION['back_plugin']= $plug;
-      $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit$/","/^plug$/");
+      session::set('back_plugin',$plug);
+      session::set('LOCK_VARS_TO_USE',array("/^edit$/","/^plug$/"));
       $lock_msg =  gen_locked_message ($username, $ui->dn);
 
     }else{
 
       /* Lock the current entry */
       add_lock ($ui->dn, $ui->dn);
-      $_SESSION['dn']= $ui->dn;
-      $_SESSION['edit']= TRUE;
+      session::set('dn',$ui->dn);
+      session::set('edit',TRUE);
     }
   }
 
@@ -88,7 +88,7 @@ if (!$remove_lock){
 
   /* Store changes  in session */
   if (isset ($_SESSION['edit'])){
-    $_SESSION['environment']= $environment;
+    session::set('environment',$environment);
   }
 
   $info= "";
index 49a732cce2e1cc1ade56f9fde15e6d24d9b59074..ff26df46fc5707feb98b13f80a5bf38d142aa37b 100644 (file)
@@ -396,8 +396,8 @@ class user extends plugin
       $this->photoData= $this->old_photoData;
 
       /* Update picture */
-      $_SESSION['binary']= $this->photoData;
-      $_SESSION['binarytype']= "image/jpeg";
+      session::set('binary',$this->photoData);
+      session::set('binarytype',"image/jpeg");
       $this->picture_dialog= FALSE;
       $this->dialog= FALSE;
     }
@@ -980,7 +980,7 @@ class user extends plugin
 
     if(isset($this->attrs['preferredLanguage'])){
       $_SESSION['ui']->language = $this->preferredLanguage;
-      $_SESSION['Last_init_lang'] = "update";
+      session::set('Last_init_lang',"update");
     }
 
     $ldap->cd ($this->dn);
@@ -1194,8 +1194,8 @@ class user extends plugin
 
       /* Set picture */
       $this->photoData= $data;
-      $_SESSION['binary']= $this->photoData;
-      $_SESSION['binarytype']= "image/jpeg";
+      session::set('binary',$this->photoData);
+      session::set('binarytype',"image/jpeg");
       $this->jpegPhoto= "";
     }
   }
@@ -1247,8 +1247,8 @@ class user extends plugin
 
     $fd = fopen ($filename, "rb");
     $this->photoData= fread ($fd, filesize ($filename));
-    $_SESSION['binary']= $this->photoData;
-    $_SESSION['binarytype']= "image/jpeg";
+    session::set('binary',$this->photoData);
+    session::set('binarytype',"image/jpeg");
     $this->jpegPhoto= "";
 
     fclose ($fd);
@@ -1322,8 +1322,8 @@ class user extends plugin
   {
     $str = "";
 
-    $_SESSION['binary'] = $this->photoData
-    $_SESSION['binarytype']= "image/jpeg";
+    session::set('binary',$this->photoData)
+    session::set('binarytype',"image/jpeg");
 
     /* Get random number for pictures */
     srand((double)microtime()*1000000); 
index 68c98d85c2ecd4cabe39496bbc2f820d4459f4ca..556cfe8ec10b227e2f315bcffad32c21cb97ecea 100644 (file)
@@ -50,16 +50,16 @@ if (!$remove_lock){
 
     /* Check locking */
     if (($username= get_lock($ui->dn)) != ""){
-      $_SESSION['back_plugin']= $plug;
-      $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit$/","/^plug$/");
+      session::set('back_plugin',$plug);
+      session::set('LOCK_VARS_TO_USE',array("/^edit$/","/^plug$/"));
       $lock_msg =  gen_locked_message ($username, $ui->dn);
   
     }else{
 
       /* Lock the current entry */
       add_lock ($ui->dn, $ui->dn);
-      $_SESSION['dn']= $ui->dn;
-      $_SESSION['edit']= TRUE;
+      session::set('dn',$ui->dn);
+      session::set('edit',TRUE);
     }
   }
 
@@ -121,7 +121,7 @@ if (!$remove_lock){
       /* Need to reset the password? */
       if($user->password_change_needed()){
         /* Save object */
-        $_SESSION['user']= $user;
+        session::set('user',$user);
 
         $display.= $smarty->fetch(get_template_path('password.tpl', TRUE));
         return ($display);
@@ -144,7 +144,7 @@ if (!$remove_lock){
 
   /* Store changes  in session */
   if (isset ($_SESSION['edit'])){
-    $_SESSION['user']= $user;
+    session::set('user',$user);
   }
 
   $info = "";
index a247e9e5a07d4f0b8eb9bad2bc4c7f7effe43f99..492639f32231980ec0b0fd77dbf94314e2b19bd6 100644 (file)
@@ -48,16 +48,16 @@ if (!$remove_lock){
 
     /* Check locking */
     if (($username= get_lock($ui->dn)) != ""){
-      $_SESSION['back_plugin']= $plug;
-      $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit$/","/^plug$/");
+      session::set('back_plugin',$plug);
+      session::set('LOCK_VARS_TO_USE',array("/^edit$/","/^plug$/"));
       $lock_msg =  gen_locked_message ($username, $ui->dn);
 
     }else{
 
       /* Lock the current entry */
       add_lock ($ui->dn, $ui->dn);
-      $_SESSION['dn']= $ui->dn;
-      $_SESSION['edit']= TRUE;
+      session::set('dn',$ui->dn);
+      session::set('edit',TRUE);
     }
   }
 
@@ -90,7 +90,7 @@ if (!$remove_lock){
 
   /* Store changes  in session */
   if (isset ($_SESSION['edit'])){
-    $_SESSION['mailAccount']= $mailAccount;
+    session::set('mailAccount',$mailAccount);
   }
 
   $info= "";
index feb399ed17b2615525f65adc5b574398af1c5fbc..e554b0e8eda1e3ebf648338d5cd25fb96038f47d 100644 (file)
@@ -49,16 +49,16 @@ if (!$remove_lock){
 
     /* Check locking */
     if (($username= get_lock($ui->dn)) != ""){
-      $_SESSION['back_plugin']= $plug;
-      $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit$/","/^plug$/");
+      session::set('back_plugin',$plug);
+      session::set('LOCK_VARS_TO_USE',array("/^edit$/","/^plug$/"));
       $lock_msg =  gen_locked_message ($username, $ui->dn);
 
     }else{
 
       /* Lock the current entry */
       add_lock ($ui->dn, $ui->dn);
-      $_SESSION['dn']= $ui->dn;
-      $_SESSION['edit']= TRUE;
+      session::set('dn',$ui->dn);
+      session::set('edit',TRUE);
     }
   }
 
@@ -91,7 +91,7 @@ if (!$remove_lock){
 
   /* Store changes  in session */
   if (isset ($_SESSION['edit'])){
-    $_SESSION['nagiosAccount']= $nagiosAccount;
+    session::set('nagiosAccount',$nagiosAccount);
   }
 
   $info= "";
index e1a62c9653389f9fc3f806f39214a0e41ad2a8b2..bb03aa91871914daf89ad8b48409c3e6a3732681 100644 (file)
@@ -46,15 +46,15 @@ if (!$remove_lock) {
 
     /* Check locking */
     if (($username = get_lock($ui->dn)) != "") {
-      $_SESSION['back_plugin'] = $plug;
+      session::set('back_plugin',$plug);
       gen_locked_message($username, $ui->dn);
       exit ();
     }
 
     /* Lock the current entry */
     add_lock($ui->dn, $ui->dn);
-    $_SESSION['dn'] = $ui->dn;
-    $_SESSION['edit'] = TRUE;
+    session::set('dn',$ui->dn);
+    session::set('edit',TRUE);
   }
 
   /* save changes to LDAP and disable edit mode */
@@ -82,7 +82,7 @@ if (!$remove_lock) {
 
   /* Store changes  in session */
   if (isset ($_SESSION['edit'])) {
-    $_SESSION['netatalk'] = $netatalk;
+    session::set('netatalk',$netatalk);
   }
 
   $info = "";
index f9d5ac44a4b2cc2ef8944c17955dc2fe47f72e7c..2a4df8481964d61e4f26af68fd68d9228b5f9d51 100644 (file)
@@ -115,7 +115,7 @@ class password extends plugin
             change_password ($ui->dn, $_POST['new_password']);
             gosa_log ("User/password has been changed");
             $ui->password= $_POST['new_password'];
-            $_SESSION['ui']= $ui;
+            session::set('ui',$ui);
 #$this->handle_post_events("modify",array("userPassword" => $_POST['new_password']));
             return($smarty->fetch(get_template_path("changed.tpl", TRUE)));
           }
index 4eb7a33442bf87bc00be34539a7c0069ff1628ad..911718e96d5820b5345b2e30f7a18795574da211 100644 (file)
@@ -236,7 +236,7 @@ class posixAccount extends plugin
 
     /* Department has changed? */
     if(isset($_POST['depselect'])){
-      $_SESSION['CurrentMainBase']= validate($_POST['depselect']);
+      session::set('CurrentMainBase',validate($_POST['depselect']));
     }
 
     if($this->multiple_support_active){
@@ -1306,7 +1306,7 @@ class posixAccount extends plugin
   
     /* check sizelimit */
     if (preg_match("/size limit/i", $ldap->error)){
-      $_SESSION['limit_exceeded']= TRUE;
+      session::set('limit_exceeded',TRUE);
     }
 
     /* Create a list of users */
index 560bc04161b077cc5282ce503e969dc5b748441a..86d01d3b07f777da48081903c0acb1a88b577dc2 100644 (file)
@@ -49,16 +49,16 @@ if (!$remove_lock){
     
     /* Check locking */
     if (($username= get_lock($ui->dn)) != ""){
-      $_SESSION['back_plugin']= $plug;
-      $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit$/","/^plug$/");
+      session::set('back_plugin',$plug);
+      session::set('LOCK_VARS_TO_USE',array("/^edit$/","/^plug$/"));
       $lock_msg =  gen_locked_message ($username, $ui->dn);
 
     }else{
 
       /* Lock the current entry */
       add_lock ($ui->dn, $ui->dn);
-      $_SESSION['dn']= $ui->dn;
-      $_SESSION['edit']= TRUE;
+      session::set('dn',$ui->dn);
+      session::set('edit',TRUE);
     }
   }
 
@@ -92,7 +92,7 @@ if (!$remove_lock){
 
   /* Store changes  in session */
   if (isset ($_SESSION['edit'])){
-    $_SESSION['posixAccount']= $posixAccount;
+    session::set('posixAccount',$posixAccount);
   }
 
   /* Show page footer depending on the mode */
index 934c242379703230d8b2764cf6d27e60f2b959a4..e97e1ca7e5b0af906cf4cd14e64347316baf0c3a 100644 (file)
@@ -49,16 +49,16 @@ if (!$remove_lock){
 
     /* Check locking */
     if (($username= get_lock($ui->dn)) != ""){
-      $_SESSION['back_plugin']= $plug;
-      $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit$/","/^plug$/");
+      session::set('back_plugin',$plug);
+      session::set('LOCK_VARS_TO_USE',array("/^edit$/","/^plug$/"));
       $lock_msg =  gen_locked_message ($username, $ui->dn);
 
     }else{
 
       /* Lock the current entry */
       add_lock ($ui->dn, $ui->dn);
-      $_SESSION['dn']= $ui->dn;
-      $_SESSION['edit']= TRUE;
+      session::set('dn',$ui->dn);
+      session::set('edit',TRUE);
     }
   }
 
@@ -91,7 +91,7 @@ if (!$remove_lock){
 
   /* Store changes  in session */
   if (isset ($_SESSION['edit'])){
-    $_SESSION['sambaAccount']= $sambaAccount;
+    session::set('sambaAccount',$sambaAccount);
   }
 
   $info= "";
index c086e8d7d520fffc76f4dfe70f0dd6e49f56e434..bb2e1fd44fbc82d90d05f362e7dcb63f71f1fe2d 100644 (file)
@@ -47,16 +47,16 @@ if (!$remove_lock){
 
     /* Check locking */
     if (($username= get_lock($ui->dn)) != ""){
-      $_SESSION['back_plugin']= $plug;
-      $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit$/","/^plug$/");
+      session::set('back_plugin',$plug);
+      session::set('LOCK_VARS_TO_USE',array("/^edit$/","/^plug$/"));
       $lock_msg =  gen_locked_message ($username, $ui->dn);
 
     }else{
 
       /* Lock the current entry */
       add_lock ($ui->dn, $ui->dn);
-      $_SESSION['dn']= $ui->dn;
-      $_SESSION['edit']= TRUE;
+      session::set('dn',$ui->dn);
+      session::set('edit',TRUE);
     }
   }
 
@@ -87,7 +87,7 @@ if (!$remove_lock){
 
   /* Store changes  in session */
   if (isset ($_SESSION['edit'])){
-    $_SESSION['scalixAccount']= $scalixAccount;
+    session::set('scalixAccount',$scalixAccount);
   }
 
  /* Show page footer depending on the mode */
index e1b5e72ab61c11b2487740b8afb5063b924d967f..ebb9c497b5dbf840ebfa0fe3b3a7a722f39fecfc 100644 (file)
@@ -60,9 +60,9 @@ class Step_Language extends setup_step
       $this->is_completed = TRUE;
 
       if($this->lang_selected != ""){
-        $_SESSION['lang'] = $this->lang_selected;
+        session::set('lang',$this->lang_selected);
       }else{
-        $_SESSION['lang'] = $this->lang;
+        session::set('lang',$this->lang);
       }
     }
   }
index 870490a742312f87e51fc95a74d3954815474eac..3abe6ccef592c35f45b93fa526018c2da3170650 100644 (file)
@@ -29,7 +29,7 @@ $setup->save_object();
 $display= $setup->execute();
 
 /* Store changes  in session */
-$_SESSION['setup']= $setup;
+session::set('setup',$setup);
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>