From bcdb46fe4c04ead7888aac731458193cb88bba01 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 11 Apr 2006 04:20:49 +0000 Subject: [PATCH] Global base git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3020 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../class_phoneConferenceGeneric.inc | 4 +-- .../class_phoneConferenceManagment.inc | 25 +++++++++---------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/plugins/gofon/conference/class_phoneConferenceGeneric.inc b/plugins/gofon/conference/class_phoneConferenceGeneric.inc index 4713d4570..591bd244d 100644 --- a/plugins/gofon/conference/class_phoneConferenceGeneric.inc +++ b/plugins/gofon/conference/class_phoneConferenceGeneric.inc @@ -73,8 +73,8 @@ class conference extends plugin /* Set base */ if ($this->dn == "new"){ $ui= get_userinfo(); - if(isset($_SESSION['conferencefilter']['depselect'])){ - $this->base = $_SESSION['conferencefilter']['depselect']; + if(isset($_SESSION['CurrentMainBase'])){ + $this->base = $_SESSION['CurrentMainBase']; }else{ $this->base= dn2base($ui->dn); } diff --git a/plugins/gofon/conference/class_phoneConferenceManagment.inc b/plugins/gofon/conference/class_phoneConferenceManagment.inc index 37314a836..890afd9c9 100644 --- a/plugins/gofon/conference/class_phoneConferenceManagment.inc +++ b/plugins/gofon/conference/class_phoneConferenceManagment.inc @@ -54,7 +54,6 @@ class phoneConferenceManagment extends plugin if (!isset($_SESSION["conferencefilter"])){ $base= get_base_from_people($ui->dn); $conferencefilter= array( - "depselect" => $base, "regex" => "*"); $_SESSION["conferencefilter"] = $conferencefilter; } @@ -93,7 +92,7 @@ class phoneConferenceManagment extends plugin if(isset($_GET['act'])&&($_GET['act']=="dep_open")){ $s_action="open"; $s_entry = base64_decode($_GET['dep_id']); - $conferencefilter['depselect']= "".$this->config->departments[trim($s_entry)]; + $_SESSION['CurrentMainBase']= $this->config->departments[trim($s_entry)]; } foreach($_POST as $key => $post){ @@ -125,30 +124,30 @@ class phoneConferenceManagment extends plugin } /* Department changed? */ - if(isset($_POST['depselect']) && $_POST['depselect']){ - $conferencefilter['depselect']= $_POST['depselect']; + if(isset($_POST['CurrentMainBase']) && $_POST['CurrentMainBase']){ + $_SESSION['CurrentMainBase']= $_POST['CurrentMainBase']; } /* Homebutton is posted */ if($s_action=="home"){ - $conferencefilter['depselect']=(preg_replace("/^[^,]+,/","",$this->ui->dn)); - $conferencefilter['depselect']=(preg_replace("/^[^,]+,/","",$conferencefilter['depselect'])); + $_SESSION['CurrentMainBase'] =preg_replace("/^[^,]+,/","",$this->ui->dn); + $_SESSION['CurrentMainBase'] =preg_replace("/^[^,]+,/","",$_SESSION['CurrentMainBase']); } /* back to root */ if($s_action=="root"){ - $conferencefilter['depselect']=($this->config->current['BASE']); + $_SESSION['CurrentMainBase']=($this->config->current['BASE']); } /* If Backbutton is Posted */ if($s_action=="back"){ - $base_back = preg_replace("/^[^,]+,/","",$conferencefilter['depselect']); + $base_back = preg_replace("/^[^,]+,/","",$_SESSION['CurrentMainBase']); $base_back = convert_department_dn($base_back); if(isset($this->config->departments[trim($base_back)])){ - $conferencefilter['depselect']= $this->config->departments[trim($base_back)]; + $_SESSION['CurrentMainBase']= $this->config->departments[trim($base_back)]; }else{ - $conferencefilter['depselect']= $this->config->departments["/"]; + $_SESSION['CurrentMainBase']= $this->config->departments["/"]; } } @@ -274,7 +273,7 @@ class phoneConferenceManagment extends plugin /* Header + Departmentlist*/ $options= ""; foreach ($this->config->idepartments as $key => $value){ - if ($conferencefilter['depselect'] == $key){ + if ($_SESSION['CurrentMainBase'] == $key){ $options.= ""; } else { $options.= ""; @@ -289,7 +288,7 @@ class phoneConferenceManagment extends plugin "  ". "  ". "  ". - _("Base")." ". + _("Base")." ". "  ". ""; @@ -408,7 +407,7 @@ class phoneConferenceManagment extends plugin function reload() { $conferencefilter = $_SESSION["conferencefilter"]; - $base = $conferencefilter['depselect']; + $base = $_SESSION['CurrentMainBase']; $regex = $conferencefilter['regex']; $this->conferences=get_list($this->ui->subtreeACL, "(&(|(cn=$regex)(description=$regex))(objectClass=goFonConference))",FALSE, $base, array("*"), TRUE); -- 2.30.2