summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ede91ce)
raw | patch | inline | side by side (parent: ede91ce)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 4 Jan 2008 08:38:21 +0000 (08:38 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 4 Jan 2008 08:38:21 +0000 (08:38 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8208 594d385d-05f5-0310-b6e9-bd551577e9d8
12 files changed:
diff --git a/gosa-core/plugins/personal/connectivity/main.inc b/gosa-core/plugins/personal/connectivity/main.inc
index 585a4628b33cbeb504e3c3a829be459598742c28..4de04fcf5f24fdf7bd2a974753d67210b5481f40 100644 (file)
/* Create connectivity object on demand */
if (!session::is_set('connectivity') || (isset($_GET['reset']) &&
$_GET['reset'] == 1)){
- $_SESSION['connectivity']= new connectivity ($config, $ui->dn);
- $_SESSION['connectivity']->enable_CSN_check();
- $_SESSION['connectivity']->set_acl_base($ui->dn);
- $_SESSION['connectivity']->set_acl_category("users");
+ $connectivity= new connectivity ($config, $ui->dn);
+ $connectivity->enable_CSN_check();
+ $connectivity->set_acl_base($ui->dn);
+ $connectivity->set_acl_category("users");
/* Adjust acl's to mode */
- foreach ($_SESSION['connectivity']->plugin_name as $name){
- $_SESSION['connectivity']->plugin[$name]->set_acl_category( "users");
- $_SESSION['connectivity']->plugin[$name]->set_acl_base($ui->dn);
+ foreach ($connectivity->plugin_name as $name){
+ $connectivity->plugin[$name]->set_acl_category( "users");
+ $connectivity->plugin[$name]->set_acl_base($ui->dn);
}
+ session::set('connectivity',$connectivity);
}
$connectivity = session::get('connectivity');
diff --git a/gosa-core/plugins/personal/environment/main.inc b/gosa-core/plugins/personal/environment/main.inc
index 415e49124b17b21a22b88b6ee707f09fc7545b80..d6b7021cee430d1fb7729ddeea775e5f642da6bb 100644 (file)
/* Create mail object on demand */
if (!session::is_set('environment') || (isset($_GET['reset']) && $_GET['reset'] == 1)){
- $_SESSION['environment']= new environment ($config, $ui->dn);
- $_SESSION['environment']->enable_CSN_check();
- $_SESSION['environment']->set_acl_category('users');
- $_SESSION['environment']->set_acl_base($ui->dn);
+ $environment= new environment ($config, $ui->dn);
+ $environment->enable_CSN_check();
+ $environment->set_acl_category('users');
+ $environment->set_acl_base($ui->dn);
+ session::set('environment',$environment);
}
$environment = session::get('environment');
diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc
index ff26df46fc5707feb98b13f80a5bf38d142aa37b..15f8921c74e6eac32f6e7c318efbe03a4b92e5f7 100644 (file)
}
/* If needed, let the password method do some cleanup */
- $tmp = new passwordMethod($_SESSION['config']);
+ $tmp = new passwordMethod($this->config);
$available = $tmp->get_available_methods();
if (in_array_ics($this->pw_storage, $available['name'])){
$test= new $available[$this->pw_storage]($this->config);
$this->cleanup();
if(isset($this->attrs['preferredLanguage'])){
- $_SESSION['ui']->language = $this->preferredLanguage;
+ $ui = session::get('ui');
+ $ui->language = $this->preferredLanguage;
+ session::set('ui',$ui);
session::set('Last_init_lang',"update");
}
/* If needed, let the password method do some cleanup */
if ($this->pw_storage != $this->last_pw_storage){
- $tmp = new passwordMethod($_SESSION['config']);
+ $tmp = new passwordMethod($this->config);
$available = $tmp->get_available_methods();
if (in_array_ics($this->last_pw_storage, $available['name'])){
$test= new $available[$this->last_pw_storage]($this->config,$this->dn);
diff --git a/gosa-core/plugins/personal/generic/main.inc b/gosa-core/plugins/personal/generic/main.inc
index 752bffafe47acee81e2e6c3baac8dcd82e330c53..508d27441a42a7b7c7b64ba3ee42539e9c50c1ec 100644 (file)
/* Create user object on demand */
if (!session::is_set('user') || (isset($_GET['reset']) && $_GET['reset'] == 1)){
- $_SESSION['user']= new user ($config, $ui->dn);
- $_SESSION['user']->enable_CSN_check();
- $_SESSION['user']->set_acl_base($ui->dn);
- $_SESSION['user']->set_acl_category("users");
+ $user= new user ($config, $ui->dn);
+ $user->enable_CSN_check();
+ $user->set_acl_base($ui->dn);
+ $user->set_acl_category("users");
+ session::set('user',$user);
}
$user = session::get('user');
index 267dbb1f4f7286079cc8492c950ca18e326dc323..ea37ea22effe64b5fc4a31bd9d24cd1ee32bfe38 100644 (file)
/* Create mail object on demand */
if (!session::is_set('mailAccount') || (isset($_GET['reset']) && $_GET['reset'] == 1)){
- $_SESSION['mailAccount']= new mailAccount ($config, $ui->dn);
- $_SESSION['mailAccount']->enable_CSN_check();
- $_SESSION['mailAccount']->set_acl_base($ui->dn);
- $_SESSION['mailAccount']->set_acl_category("users");
+ $mailAccount= new mailAccount ($config, $ui->dn);
+ $mailAccount->enable_CSN_check();
+ $mailAccount->set_acl_base($ui->dn);
+ $mailAccount->set_acl_category("users");
+ session::set('mailAccount',$mailAccount);
}
$mailAccount = session::get('mailAccount');
diff --git a/gosa-core/plugins/personal/nagios/main.inc b/gosa-core/plugins/personal/nagios/main.inc
index 6b486e3d56dc1bd645e06dd3ae837642e97b32cf..dc4be7c5318201ae2ca78d1eb0e9adb4d77f474c 100644 (file)
/* Create mail object on demand */
if (!session::is_set('nagiosAccount') || (isset($_GET['reset']) && $_GET['reset'] == 1)){
- $_SESSION['nagiosAccount']= new nagiosAccount ($config, $ui->dn);
- $_SESSION['nagiosAccount']->enable_CSN_check();
- $_SESSION['nagiosAccount']->set_acl_base($ui->dn);
- $_SESSION['nagiosAccount']->set_acl_category("users");
+ $nagiosAccount= new nagiosAccount ($config, $ui->dn);
+ $nagiosAccount->enable_CSN_check();
+ $nagiosAccount->set_acl_base($ui->dn);
+ $nagiosAccount->set_acl_category("users");
+ session::set('nagiosAccount',$nagiosAccount);
}
$nagiosAccount = session::get('nagiosAccount');
diff --git a/gosa-core/plugins/personal/netatalk/main.inc b/gosa-core/plugins/personal/netatalk/main.inc
index 6e2585920c27b7dc065851ba82916f7e61ee54c5..a73cd7bce916bbef93ab3ec112ab0c5af2263f8b 100644 (file)
/* Create netatalk object on demand */
if (!session::is_set('netatalk') || (isset ($_GET['reset']) && $_GET['reset'] == 1)) {
- $_SESSION['netatalk'] = new netatalk($config, $ui->dn);
- $_SESSION['netatalk']->enable_CSN_check();
- $_SESSION['netatalk']->set_acl_base($ui->dn);
- $_SESSION['netatalk']->set_acl_category("users");
+ $netatalk = new netatalk($config, $ui->dn);
+ $netatalk->enable_CSN_check();
+ $netatalk->set_acl_base($ui->dn);
+ $netatalk->set_acl_category("users");
+ session::set('netatalk',$netatalk);
}
$netatalk = session::get('netatalk');
diff --git a/gosa-core/plugins/personal/password/main.inc b/gosa-core/plugins/personal/password/main.inc
index cfdc8f69ba53644efc4286e979e5836583bc9889..37ce0593e677e4ea57180102506f5f2c941e3fbf 100644 (file)
/* Create password object on demand */
if (!session::is_set('password') || (isset($_GET['reset']) && $_GET['reset'] == 1)){
- $_SESSION['password']= new password ($config, $ui->dn);
+ session::set('password', new password ($config, $ui->dn));
}
$password = session::get('password');
diff --git a/gosa-core/plugins/personal/posix/class_posixAccount.inc b/gosa-core/plugins/personal/posix/class_posixAccount.inc
index a12c53c52cf97bbe523f47fdcd1f42969d4a45dc..a836759b3cf889a055ae837ea461a44e27c0b67f 100644 (file)
$smarty->assign("tree_image", get_template_path('images/tree.png'));
$smarty->assign("deplist", $this->config->idepartments);
$smarty->assign("alphabet", generate_alphabet());
- $smarty->assign("depselect",$_SESSION['CurrentMainBase']);
+ $smarty->assign("depselect", session::get('CurrentMainBase'));
$smarty->assign("hint", print_sizelimit_warning());
$smarty->assign("apply", apply_filter());
index a83757c31940f4f7c737a0cf857d561cc076be3a..eb111d17b61ec78a36e4d9060a08586cebb2673d 100644 (file)
/* Create posixAccount object on demand */
if (!session::is_set('posixAccount') || (isset($_GET['reset']) && $_GET['reset'] == 1)){
- $_SESSION['posixAccount']= new posixAccount ($config, $ui->dn);
- $_SESSION['posixAccount']->enable_CSN_check();
- $_SESSION['posixAccount']->set_acl_base($ui->dn);
- $_SESSION['posixAccount']->set_acl_category("users");
+ $posixAccount= new posixAccount ($config, $ui->dn);
+ $posixAccount->enable_CSN_check();
+ $posixAccount->set_acl_base($ui->dn);
+ $posixAccount->set_acl_category("users");
+ session::set('posixAccount',$posixAccount);
}
$posixAccount = session::get('posixAccount');
index e37c8128b4a81d81371ae666b1538a08d629e179..0d983df9623fc707bff646d372634aa4f64dd6ab 100644 (file)
/* Create sambaAccount object on demand */
if (!session::is_set('sambaAccount') || (isset($_GET['reset']) && $_GET['reset'] == 1)){
- $_SESSION['sambaAccount']= new sambaAccount ($config, $ui->dn);
- $_SESSION['sambaAccount']->enable_CSN_check();
- $_SESSION['sambaAccount']->set_acl_base($ui->dn);
- $_SESSION['sambaAccount']->set_acl_category("users");
+ $sambaAccount= new sambaAccount ($config, $ui->dn);
+ $sambaAccount->enable_CSN_check();
+ $sambaAccount->set_acl_base($ui->dn);
+ $sambaAccount->set_acl_category("users");
+ session::set('sambaAccount',$sambaAccount);
}
$sambaAccount = session::get('sambaAccount');
diff --git a/gosa-core/plugins/personal/scalix/main.inc b/gosa-core/plugins/personal/scalix/main.inc
index d0532a257e10e00b5fc3db658d7a6cefc306cbe8..afcc1e9b4b3f28137b96effcdb2246f3a3f34b29 100644 (file)
/* Create mail object on demand */
if (!session::is_set('scalixAccount') || (isset($_GET['reset']) && $_GET['reset'] == 1)){
- $_SESSION['scalixAccount']= new scalixAccount ($config, $ui->dn);
- $_SESSION['scalixAccount']->enable_CSN_check();
- $_SESSION['scalixAccount']->set_acl_base($ui->dn);
- $_SESSION['scalixAccount']->set_acl_category("users");
+ $scalixAccount= new scalixAccount ($config, $ui->dn);
+ $scalixAccount->enable_CSN_check();
+ $scalixAccount->set_acl_base($ui->dn);
+ $scalixAccount->set_acl_category("users");
+ session::set('scalixAccount',$scalixAccount);
}
$scalixAccount = session::get('scalixAccount');