Code

Modified unset($_SESSION['...']) to session::unset(...)
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Jan 2008 07:01:20 +0000 (07:01 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Jan 2008 07:01:20 +0000 (07:01 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8203 594d385d-05f5-0310-b6e9-bd551577e9d8

16 files changed:
gosa-core/include/class_config.inc
gosa-core/include/functions_helpviewer.inc
gosa-core/plugins/addons/godfs/class_dfsManagment.inc
gosa-core/plugins/admin/acl/class_aclManagement.inc
gosa-core/plugins/admin/applications/class_applicationManagement.inc
gosa-core/plugins/admin/departments/class_departmentManagement.inc
gosa-core/plugins/admin/devices/class_deviceManagement.inc
gosa-core/plugins/admin/fai/class_faiManagement.inc
gosa-core/plugins/admin/groups/class_groupManagement.inc
gosa-core/plugins/admin/mimetypes/class_mimetypeManagement.inc
gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc
gosa-core/plugins/admin/systems/class_systemManagement.inc
gosa-core/plugins/admin/users/class_userManagement.inc
gosa-core/plugins/gofax/blocklists/class_blocklistManagement.inc
gosa-core/plugins/gofon/conference/class_phoneConferenceManagment.inc
gosa-core/plugins/gofon/macro/class_gofonMacroManagement.inc

index 68b073dee490500dc34a0d58e316af4576d99771..3ad4fd81cd4c2a6244f15a105a2b1b3e50e4af16 100644 (file)
@@ -81,10 +81,10 @@ class config  {
       xml_set_element_handler($this->parser, "tag_open", "tag_close");
       $this->parse($this->filename);
       if(session::is_set('plist')){
-        unset($_SESSION['plist']);
+        session::un_set('plist');
       }
       if(session::is_set('plug')){
-        unset($_SESSION['plug']);
+        session::un_set('plug');
       }
       if(isset($_GET['plug'])){
         unset($_GET['plug']);
index c04b8ac95a2209648296752c10c715715d86d01f..2f2e9c8142dee217999ba466d97b517eb78bfe25 100644 (file)
@@ -270,7 +270,7 @@ function search($arr,$word)
   $useablewords               =array(); // Temporary searchword handling
   $tryword                    = "";     // Temporary searchword handling
   $result['global']['maxhit'] = 0;
-  unset($_SESSION['lastresults']);
+  session::un_set('lastresults');
   unset($_SESSION['parsed_search_keyword']);
   $_SESSION['parsed_search_keyword']="";
 
index 913b2707e2e21cc0392c89240e47922670507fcb..4144eac58a60f742c98010ea64fa8885d6c50e7c 100644 (file)
@@ -124,7 +124,7 @@ class dfsManagment extends plugin {
       unset ($this->dfstab);
       $this->dfstab = NULL;
       $this->dn = "";
-      unset($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
     # delete pressed
@@ -150,7 +150,7 @@ class dfsManagment extends plugin {
       unset ($this->dfstab);
       $this->dfstab = NULL;
       $this->dn = "";
-      unset($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
     # generate main page no tabs
index 7a1b2ab2b2895bab6bd00b6f4aa156b161e0dc13..7e77a07c763d9867d3a2c973c4cb359583c099be 100644 (file)
@@ -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');
     }
 
 
@@ -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,
index f474b5b74676cfd210019eae954887698a41e4e4..9804b330a218e86553e9315ba8524968da45465b 100644 (file)
@@ -208,7 +208,7 @@ class applicationManagement extends plugin
       del_lock ($this->apptabs->dn);
       unset ($this->apptabs);
       $this->apptabs= NULL;
-      unset ($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
 
@@ -241,7 +241,7 @@ class applicationManagement extends plugin
           }
           unset ($this->apptabs);
           $this->apptabs= NULL;
-          unset ($_SESSION['objectinfo']);
+          session::un_set('objectinfo');
         }
       } else {
         /* Ok. There seem to be errors regarding to the tab data,
@@ -439,7 +439,7 @@ class applicationManagement extends plugin
     /* Delete application canceled? */
     if (isset($_POST['delete_cancel'])){
       del_lock ($this->dn);
-      unset($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
     /* Show tab dialog if object is present */
index e2db188d1d4ad28d260a66edc56c446634a3340e..99e30816715382096b1b4a360ffbf9ccc2588095 100644 (file)
@@ -379,7 +379,7 @@ class departmentManagement extends plugin
       }
       unset ($this->deptabs);
       $this->deptabs= NULL;
-      unset ($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
 
@@ -394,7 +394,7 @@ class departmentManagement extends plugin
       del_lock ($this->dn);
       unset($this->depdabs);
       $this->deptabs= NULL;
-      unset ($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
     /* Headpage or normal plugin screen? */
index 2558cc1353746d2f8896524d384bd7352a335bd9..a70644c5495fcb67f16aedd079acf6b0912c5576 100644 (file)
@@ -146,7 +146,7 @@ class deviceManagement extends plugin
       del_lock ($this->devicetabs->dn);
       unset ($this->devicetabs);
       $this->devicetabs= NULL;
-      unset ($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
 
@@ -176,7 +176,7 @@ class deviceManagement extends plugin
           }
           unset ($this->devicetabs);
           $this->devicetabs= NULL;
-          unset ($_SESSION['objectinfo']);
+          session::un_set('objectinfo');
         }
       } else {
        /* Ok. There seem to be errors regarding to the tab data,
@@ -374,7 +374,7 @@ class deviceManagement extends plugin
     /* Delete device canceled? */
     if (isset($_POST['delete_cancel'])){
       del_lock ($this->dn);
-      unset($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
   }
 
     /* Show tab dialog if object is present */
index 178f000351402126fb200e62159b3767b0a41093..b0e6a92ea431c789e851ae901d4b557eaf288b8d 100644 (file)
@@ -757,7 +757,7 @@ class faiManagement extends plugin
                        unset($this->dialog);
                        $this->dialog=FALSE;
                        $this->is_dialog = false;
-                       unset($_SESSION['objectinfo']);
+                       session::un_set('objectinfo');
                        del_lock ($this->dn);
                }
 
@@ -785,7 +785,7 @@ class faiManagement extends plugin
           unset($this->dialog);
           $this->dialog=FALSE;
           $this->is_dialog=false;
-          unset($_SESSION['objectinfo']);
+          session::un_set('objectinfo');
         }
                        }
                }
index dbd073532ffe1a0961e61df3889a86f6917caf1b..fb8d0148982f0c221952cb20eb2e2a554e828ef2 100644 (file)
@@ -209,7 +209,7 @@ class groupManagement extends plugin
           //$this->reload ();
           unset ($this->grouptab);
           $this->grouptab= NULL;
-          unset ($_SESSION['objectinfo']);
+          session::un_set('objectinfo');
         }
       } else {
         /* Ok. There seem to be errors regarding to the tab data,
@@ -395,7 +395,7 @@ class groupManagement extends plugin
 
       /* Remove lock file after successfull deletion */
       del_lock ($this->dn);
-      unset($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
 
@@ -406,7 +406,7 @@ class groupManagement extends plugin
     /* Delete group canceled? */
     if (isset($_POST['delete_cancel'])){
       del_lock ($this->dn);
-      unset($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
     
 
@@ -421,7 +421,7 @@ class groupManagement extends plugin
       }
       unset ($this->grouptab);
       $this->grouptab= NULL;
-      unset($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
 
index 4f8caed8219eeafe6ab6e38cc8041ea7f4209028..b52fed080668705687ea4e01343c3c8efb44c76f 100755 (executable)
@@ -207,7 +207,7 @@ class mimetypeManagement extends plugin
       del_lock ($this->mimetabs->dn);
       unset ($this->mimetabs);
       $this->mimetabs= NULL;
-      unset ($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
 
@@ -237,7 +237,7 @@ class mimetypeManagement extends plugin
           }
           unset ($this->mimetabs);
           $this->mimetabs= NULL;
-          unset ($_SESSION['objectinfo']);
+          session::un_set('objectinfo');
         }
       } else {
         /* Ok. There seem to be errors regarding to the tab data,
@@ -439,7 +439,7 @@ class mimetypeManagement extends plugin
     /* Delete mime type canceled? */
     if (isset($_POST['delete_cancel'])){
       del_lock ($this->dn);
-      unset($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
     /* Show tab dialog if object is present */
index dc0d3188a229560931fb6a37ef62efc4d88c7e78..9bce9c372cbc3152c9a8046466f974e0f7b7807f 100644 (file)
@@ -297,7 +297,7 @@ class ogroupManagement extends plugin
 
       /* Remove lock file after successfull deletion */
       del_lock ($this->dn);
-      unset($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
 
@@ -308,7 +308,7 @@ class ogroupManagement extends plugin
     /* Delete group canceled? */
     if (isset($_POST['delete_cancel'])){
       del_lock ($this->dn);
-      unset($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
 
@@ -363,7 +363,7 @@ class ogroupManagement extends plugin
 
           unset ($this->ogroup);
           $this->ogroup= NULL;
-          unset ($_SESSION['objectinfo']);
+          session::un_set('objectinfo');
         }
       } else {
         /* Ok. There seem to be errors regarding to the tab data,
@@ -382,7 +382,7 @@ class ogroupManagement extends plugin
       del_lock ($this->ogroup->dn);
       unset ($this->ogroup);
       $this->ogroup= NULL;
-      unset($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
 
index 205e70316c7bb24cec24fc7a5dc9fec65889df35..bb986e9dc20fb27e698ed5a4ca16ac9a8b2521d9 100644 (file)
@@ -459,7 +459,7 @@ class systems extends plugin
       }else{
         print_red(_("Can't detect object to change password."));
       }
-      unset($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
 
@@ -470,7 +470,7 @@ class systems extends plugin
     /* Delete terminal canceled? */
     if (isset($_POST['delete_cancel']) || isset($_POST['password_cancel'])){
       del_lock ($this->dn);
-      unset($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
 
@@ -801,7 +801,7 @@ class systems extends plugin
 
         unset ($this->systab);
         $this->systab= NULL;
-        unset($_SESSION['objectinfo']);
+        session::un_set('objectinfo');
       } else {
         /* Ok. There seem to be errors regarding to the tab data,
            show message and continue as usual. */
@@ -820,7 +820,7 @@ class systems extends plugin
         unset ($this->systab);
       }
       $this->systab= NULL;
-      unset($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
 
       /* Remove ogroup selection, which was set while editing a new incoming entry */
       if(isset($_SESSION['SelectedSystemType'])){
index 0b9e6ffad70c6e6451c0831fbedaaa17a87f38ad..f4641b984a2791e074c751eaf4cb22cb569b4d5a 100644 (file)
@@ -248,7 +248,7 @@ class userManagement extends plugin
       $this->sn= "";
       $this->givenName= "";
       $this->uid= "";
-      unset ($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
 
@@ -372,7 +372,7 @@ class userManagement extends plugin
       $this->sn= "";
       $this->givenName= "";
       $this->uid= "";
-      unset ($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
 
@@ -622,7 +622,7 @@ class userManagement extends plugin
 
           unset ($this->usertab);
           $this->usertab= NULL;
-          unset ($_SESSION['objectinfo']);
+          session::un_set('objectinfo');
         }
       } else {
         /* Ok. There seem to be errors regarding to the tab data,
index c7e1175c6ac5ad7cc0935403d97ab92d64c36385..5b0ac1d0c4a74f9ca16c01d6dd56bd8aa82875d5 100644 (file)
@@ -124,7 +124,7 @@ class blocklist extends plugin
 
       del_lock ($this->dn);
       $this->dialog = NULL;
-      unset($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
 
@@ -146,7 +146,7 @@ class blocklist extends plugin
           del_lock ($this->dn);
           $this->dn= "";
           $this->dialog = NULL;
-          unset($_SESSION['objectinfo']);
+          session::un_set('objectinfo');
         }
       } else {
         /* Errors found, show message */
index eabc6e2ae6907e2d4a9d4b442519551399347101..2f711df44f52de1bad5cdce09268195a17aac28e 100644 (file)
@@ -152,7 +152,7 @@ class phoneConferenceManagment extends plugin
       $this->conftab= NULL;
       $this->lognames= array();;
       $this->cn= "";
-      unset ($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
 
@@ -319,7 +319,7 @@ class phoneConferenceManagment extends plugin
         $this->dn= "new";
         $this->conftab= new conferencetabs($this->config,$this->config->data['TABS']['CONFERENCETABS'], $this->dn,"gofonconference");
         $this->conftab->set_acl_base($dummy_dn);
-        unset($_SESSION['objectinfo']);
+        session::un_set('objectinfo');
       }
     }
 
@@ -351,7 +351,7 @@ class phoneConferenceManagment extends plugin
         del_lock ($this->conftab->dn);;
         unset ($this->conftab);
         $this->conftab= NULL;
-        unset ($_SESSION['objectinfo']);
+        session::un_set('objectinfo');
       } else {
         show_errors($message);
       }
index 764a445bb0f5f64fe8eaf90888755886a27c195d..91738fd7e137bcdd524799f3050e73dca2796a9a 100755 (executable)
@@ -162,7 +162,7 @@ class goFonMacro extends plugin
       del_lock ($this->macrotabs->dn);
       unset ($this->macrotabs);
       $this->macrotabs= NULL;
-      unset ($_SESSION['objectinfo']);
+      session::un_set('objectinfo');
     }
 
 
@@ -195,7 +195,7 @@ class goFonMacro extends plugin
 
           unset ($this->macrotabs);
           $this->macrotabs= NULL;
-          unset ($_SESSION['objectinfo']);
+          session::un_set('objectinfo');
         }
       } else {
         /* Ok. There seem to be errors regarding to the tab data,