summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 29af047)
raw | patch | inline | side by side (parent: 29af047)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 4 Jan 2008 10:11:49 +0000 (10:11 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 4 Jan 2008 10:11:49 +0000 (10:11 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8213 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-core/plugins/admin/fai/class_askClassName.inc b/gosa-core/plugins/admin/fai/class_askClassName.inc
index de9c2a5341129ee502221e03e0e37765a9b2c83e..c7e38adb5a3585321fe3a5ba6feef8e5a0b7ceb9 100644 (file)
* With a second search detect all object that belong to the different ous.
*/
- $base = get_ou('faiou').$_SESSION['CurrentMainBase'];
+ $base = get_ou('faiou').session::get('CurrentMainBase');
if($faifilter['branch'] != "main"){
$base = $faifilter['branch'];
}
diff --git a/gosa-core/plugins/admin/fai/class_divListFai.inc b/gosa-core/plugins/admin/fai/class_divListFai.inc
index 5399a29f1a2a2fb83d6683fe472144d0a60733d1..f8977130e3ec8110cdf0305f40247c42e978d21e 100644 (file)
{
/* Save automatic created POSTs like regex, checkboxes */
MultiSelectWindow::save_object();
- $_SESSION['faifilter']['branch'] = $this->selectedBranch;
+ $faifilter = session::get('faifilter');
+ $faifilter['branch'] = $this->selectedBranch;
+ session::set('faifilter',$faifilter);
}
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
index fb54bdfcdd6e38433c99f9a8c2b82952870a8b96..23ef50cd6356637e2173a430ee5848d3f4407a64 100644 (file)
} else {
/* Create usermanagement object on demand */
if (!session::is_set('FAI') || (isset($_GET['reset']) && $_GET['reset'] == 1)){
- $_SESSION['FAI']= new faiManagement($config, $ui);
- $_SESSION['FAI']->set_acl_category("fai");
- $_SESSION['FAI']->set_acl_base(session::get('CurrentMainBase'));
+ $FAI= new faiManagement($config, $ui);
+ $FAI->set_acl_category("fai");
+ $FAI->set_acl_base(session::get('CurrentMainBase'));
+ session::set('FAI',$FAI);
}
$FAI = session::get('FAI');
$FAI->save_object();
index d431eea1e530a8a7e2a04f9c33c0173846355711..ed61e1fc86f57fa4c61ade5665d07d8863313fae 100644 (file)
{
$baseobject= $this->by_object['faiHook'];
- $new_dn= 'cn='.$baseobject->cn.",".get_ou('faihookou').get_ou('faiou').$_SESSION['CurrentMainBase'];
-
- if($_SESSION['faifilter']['branch']!="main"){
- $new_dn ='cn='.$baseobject->cn.",".get_ou('faihookou').$_SESSION['faifilter']['branch'];
+ $new_dn= 'cn='.$baseobject->cn.",".get_ou('faihookou').get_ou('faiou').session::get('CurrentMainBase');
+ $faifilter = session::get('faifilter');
+ if($faifilter['branch']!="main"){
+ $new_dn ='cn='.$baseobject->cn.",".get_ou('faihookou').$faifilter['branch'];
}
if ($this->dn != $new_dn && $this->dn != "new"){
diff --git a/gosa-core/plugins/admin/fai/tabsPackage.inc b/gosa-core/plugins/admin/fai/tabsPackage.inc
index 6a3d58158037a8d7b20b12584f0741274e0338c4..e678a835edbf51c32f42b99419654c111818f0a5 100644 (file)
{
$baseobject= $this->by_object['faiPackage'];
- $new_dn= 'cn='.$baseobject->cn.",".get_ou('faipackageou').get_ou('faiou').$_SESSION['CurrentMainBase'];
- if($_SESSION['faifilter']['branch']!="main"){
- $new_dn ='cn='.$baseobject->cn.",".get_ou('faipackageou').$_SESSION['faifilter']['branch'];
+ $new_dn= 'cn='.$baseobject->cn.",".get_ou('faipackageou').get_ou('faiou').session::get('CurrentMainBase');
+
+ $faifilter = session::get('faifilter');
+
+ if($faifilter['branch']!="main"){
+ $new_dn ='cn='.$baseobject->cn.",".get_ou('faipackageou').$faifilter['branch'];
}
if ($this->dn != $new_dn && $this->dn != "new"){
diff --git a/gosa-core/plugins/admin/fai/tabsPartition.inc b/gosa-core/plugins/admin/fai/tabsPartition.inc
index 56bd1d2f4fc23ca6f81bf7f4068648e0c34d8f8c..308d50b8acbded0e6e6ee736376f6de31b89fdac 100644 (file)
{
$baseobject= $this->by_object['faiPartitionTable'];
- $new_dn= 'cn='.$baseobject->cn.",".get_ou('faipartitionou').get_ou('faiou').$_SESSION['CurrentMainBase'];
-
- if($_SESSION['faifilter']['branch']!="main"){
- $new_dn ='cn='.$baseobject->cn.",".get_ou('faipartitionou').$_SESSION['faifilter']['branch'];
+ $new_dn= 'cn='.$baseobject->cn.",".get_ou('faipartitionou').get_ou('faiou').session::get('CurrentMainBase');
+
+ $faifilter = session::get('faifilter');
+ if($faifilter['branch']!="main"){
+ $new_dn ='cn='.$baseobject->cn.",".get_ou('faipartitionou').$faifilter['branch'];
}
if ($this->dn != $new_dn && $this->dn != "new"){
diff --git a/gosa-core/plugins/admin/fai/tabsProfile.inc b/gosa-core/plugins/admin/fai/tabsProfile.inc
index 3480b46aff5b5bddaf2c33c6857e9fa00bfcd7be..ccac199c21a5effca63903e4e9e9edafb50cf40f 100644 (file)
{
$baseobject= $this->by_object['faiProfile'];
- $new_dn= 'cn='.$baseobject->cn.",".get_ou('faiprofileou').get_ou('faiou').$_SESSION['CurrentMainBase'];
+ $new_dn= 'cn='.$baseobject->cn.",".get_ou('faiprofileou').get_ou('faiou').session::get('CurrentMainBase');
- if($_SESSION['faifilter']['branch']!="main"){
- $new_dn ='cn='.$baseobject->cn.",".get_ou('faiprofileou').$_SESSION['faifilter']['branch'];
+ $faifilter = session::get('faifilter');
+ if($faifilter['branch']!="main"){
+ $new_dn ='cn='.$baseobject->cn.",".get_ou('faiprofileou').$faifilter['branch'];
}
if ($this->dn != $new_dn && $this->dn != "new"){
diff --git a/gosa-core/plugins/admin/fai/tabsScript.inc b/gosa-core/plugins/admin/fai/tabsScript.inc
index 1eac83c38c1c18cc18f62642e2183aceb03af75f..094fbb40502c2b52995d12e6f327923f8f6d27b7 100644 (file)
{
$baseobject= $this->by_object['faiScript'];
- $new_dn= 'cn='.$baseobject->cn.",".get_ou('faiscriptou').get_ou('faiou').$_SESSION['CurrentMainBase'];
+ $new_dn= 'cn='.$baseobject->cn.",".get_ou('faiscriptou').get_ou('faiou').session::get('CurrentMainBase');
- if($_SESSION['faifilter']['branch']!="main"){
- $new_dn ='cn='.$baseobject->cn.",".get_ou('faiscriptou').$_SESSION['faifilter']['branch'];
+ $faifilter = session::get('faifilter');
+
+ if($faifilter['branch']!="main"){
+ $new_dn ='cn='.$baseobject->cn.",".get_ou('faiscriptou').$faifilter['branch'];
}
if ($this->dn != $new_dn && $this->dn != "new"){
diff --git a/gosa-core/plugins/admin/fai/tabsTemplate.inc b/gosa-core/plugins/admin/fai/tabsTemplate.inc
index eb674e894825a8492b76d4fee71aa1e341a9d7ba..5f7f8ab4c4edf9c338ee097de43dc5bd18291f8d 100644 (file)
function save($ignore_account= FALSE)
{
$baseobject= $this->by_object['faiTemplate'];
-
- $new_dn= 'cn='.$baseobject->cn.",".get_ou('faitemplateou').get_ou('faiou').$_SESSION['CurrentMainBase'];
- if($_SESSION['faifilter']['branch']!="main"){
- $new_dn ='cn='.$baseobject->cn.",".get_ou('faitemplateou').$_SESSION['faifilter']['branch'];
+ $new_dn= 'cn='.$baseobject->cn.",".get_ou('faitemplateou').get_ou('faiou').session::get('CurrentMainBase');
+
+ $faifilter = session::get('faifilter');
+ if($faifilter['branch']!="main"){
+ $new_dn ='cn='.$baseobject->cn.",".get_ou('faitemplateou').$faifilter['branch'];
}
if ($this->dn != $new_dn && $this->dn != "new"){
diff --git a/gosa-core/plugins/admin/fai/tabsVariable.inc b/gosa-core/plugins/admin/fai/tabsVariable.inc
index 2958a11f5073d218a714aeac6908635eabb60bc2..11694b1d1a4fd167d958581705ea7055b4524577 100644 (file)
{
$baseobject= $this->by_object['faiVariable'];
- $new_dn= 'cn='.$baseobject->cn.",".get_ou('faivariableou').get_ou('faiou').$_SESSION['CurrentMainBase'];
+ $new_dn= 'cn='.$baseobject->cn.",".get_ou('faivariableou').get_ou('faiou').session::get('CurrentMainBase');
+
+ $faifilter = session::get('faifilter');
- if($_SESSION['faifilter']['branch']!="main"){
- $new_dn ='cn='.$baseobject->cn.",".get_ou('faivariableou').$_SESSION['faifilter']['branch'];
+ if($faifilter['branch']!="main"){
+ $new_dn ='cn='.$baseobject->cn.",".get_ou('faivariableou').$faifilter['branch'];
}
if ($this->dn != $new_dn && $this->dn != "new"){
diff --git a/gosa-core/plugins/admin/systems/class_workstationService.inc b/gosa-core/plugins/admin/systems/class_workstationService.inc
index 526b9cc17f936ed10c646e060022f64e44622f73..5b1a43e1abd56d7be362451e23caef5e01dc6b5c 100644 (file)
}
/* Workaround to fill in inherited values if we've specified an objectclass */
- $SelectedSystemType = $SelectedSystemType;
+ $SelectedSystemType = session::get("SelectedSystemType");
if (isset($SelectedSystemType['ogroup']) && $SelectedSystemType['ogroup'] != 'none'){
$this->XResolutions= array('default' => _("inherited"));
$this->XColordepths= array('default' => _("inherited"));