diff --git a/gosa-core/plugins/admin/ogroups/class_ogroup.inc b/gosa-core/plugins/admin/ogroups/class_ogroup.inc
index b038bf6611c88396200e9dfa5ca750a9aeddb115..9aeff56552c9c0c10c6fe64e51e05f8474a5b59d 100644 (file)
$this->is_account= TRUE;
/* Get global filter config */
- if (!session::global_is_set("ogfilter")){
+ if (!session::is_set("ogfilter")){
$ui= get_userinfo();
$base= get_base_from_people($ui->dn);
$ogfilter= array( "dselect" => $base,
"regex" => "*");
- session::global_set("ogfilter", $ogfilter);
+ session::set("ogfilter", $ogfilter);
}
- $ogfilter= session::global_get('ogfilter');
+ $ogfilter= session::get('ogfilter');
/* Adjust flags */
foreach( array( "U" => "accounts",
$ogfilter[$val]= "";
}
}
- session::global_set("ogfilter", $ogfilter);
+ session::set("ogfilter", $ogfilter);
- if(session::global_is_set('CurrentMainBase')){
- $this->base = global_session::get('CurrentMainBase');
+ if(session::is_set('CurrentMainBase')){
+ $this->base = session::get('CurrentMainBase');
}
/* Set base */
if ($this->dn == "new"){
- $this->base = session::global_get('CurrentMainBase');
+ $this->base = session::get('CurrentMainBase');
} else {
$this->base= preg_replace("/^[^,]+,".preg_quote(get_ou("ogroupRDN"), '/')."/","",$this->dn);
$this->orig_base = $this->base;
/* Get global filter config */
- if (!session::global_is_set("sysfilter")){
+ if (!session::is_set("sysfilter")){
$ui= get_userinfo();
$base= get_base_from_people($ui->dn);
$sysfilter= array( "depselect" => $base,
"regex" => "*");
- session::global_set("sysfilter", $sysfilter);
+ session::set("sysfilter", $sysfilter);
}
/* Load member data */
/* Show ws dialog */
if ($this->show_ws_dialog){
/* Save data */
- $sysfilter= session::global_get("sysfilter");
+ $sysfilter= session::get("sysfilter");
foreach( array("depselect", "regex") as $type){
if (isset($_POST[$type])){
$sysfilter[$type]= $_POST[$type];
}
$sysfilter['regex']= $s;
}
- session::global_set("sysfilter", $sysfilter);
+ session::set("sysfilter", $sysfilter);
/* Get workstation list */
$exclude= "";
if ($this->group_dialog){
/* Save data */
- $ogfilter= session::global_get("ogfilter");
+ $ogfilter= session::get("ogfilter");
foreach( array("dselect", "regex") as $type){
if (isset($_POST[$type])){
$ogfilter[$type]= $_POST[$type];
}
$ogfilter['regex']= $s;
}
- session::global_set("ogfilter", $ogfilter);
+ session::set("ogfilter", $ogfilter);
$this->reload();
/* Calculate actual groups / remove entries that are already inside... */
$filter = "";
$objectClasses = array();
- $ogfilter = session::global_get("ogfilter");
+ $ogfilter = session::get("ogfilter");
$regex = $ogfilter['regex'];
$ldap= $this->config->get_ldap_link();