Code

Updated ACL handling
[gosa.git] / gosa-plugins / goto / admin / applications / class_applicationManagement.inc
1 <?php
2 /*
3    This code is part of GOsa (https://gosa.gonicus.de)
4    Copyright (C) 2003  Cajus Pollmeier
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 2 of the License, or
9    (at your option) any later version.
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
21 class applicationManagement extends plugin
22 {
23   /* Definitions */
24   var $plHeadline     = "Applications";
25   var $plDescription  = "This does something";
26   var $plIcon         = "plugins/goto/images/application.png";
28   /* Dialog attributes */
29   var $apptabs                  = NULL;
30   var $ui                       = NULL;
31   var $CopyPasteHandler         = NULL;
32   var $DivListApplication       = NULL;
33   var $applications             = array();
34   var $enableReleaseManagement  = false;
35   var $start_pasting_copied_objects = FALSE;
37   var $acl_base     ="";
38   var $app_base     ="";
39   var $app_release  ="";
40   var $acl_module   = array("application");  
42   var $dns = array();
44   function IsReleaseManagementActivated()
45   {
46     /* Check if we should enable the release selection */
47     $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs'));
48     if(!empty($tmp)){
49       return(true);
50     }
51     return(false);
52   }
55   function applicationManagement (&$config, &$ui)
56   {
57     /* Save configuration for internal use */
58     $this->config   = &$config;
59     $this->ui       = &$ui;
61     /* Check if copy & paste is activated */
62     if($this->config->boolValueIsTrue("MAIN","COPYPASTE")){
63       $this->CopyPasteHandler = new CopyPasteHandler($this->config);
64     }
66     /* Creat dialog object */
67     $this->DivListApplication = new divListApplication($this->config,$this);
69     if($this->IsReleaseManagementActivated()){
70       $this->acl_base = $this->config->current['BASE'];
72       /* Check if we should enable the release selection */
73       $this->enableReleaseManagement = true;
75       /* Hide SubSearch checkbox */
76       $this->DivListApplication->DisableCheckBox("SubSearch");
77     }else{
78       $this->acl_base = &$this->DivListApplication->selectedBase;
79     }
81     /* Set default release */
82     if(!$this->IsReleaseManagementActivated()){
83       $this->app_base = get_ou("applicationRDN").$this->config->current['BASE'];
84       if(!session::is_set("app_filter")){
85         session::set("app_filter",array("app_base" => $this->app_base));
86       }
87       $app_filter     = session::get("app_filter");
88     }else{
90       /* Set intial release */
91       $this->app_base = get_ou("applicationRDN").$this->config->current['BASE'];
92       $rel = $config->search("faiManagement","DEFAULTFAIRELEASE",array("menu"));
93       $rels = array_flip($this->getReleases());
94       if(isset($rels[$rel])){
95         $rel = $rels[$rel];
96       }else{
97         $rel = $this->app_base;
98       }
100       if(!session::is_set("app_filter")){
101         session::set("app_filter",array("app_base" => $this->app_base,"app_release" => $rel));
102       }
103       $app_filter         = session::get("app_filter");
104       $this->app_base     = $app_filter['app_base'];
105       $this->app_release  = $app_filter['app_release'];
106     }
107   }
110   function getReleases()
111   {
112     $ldap = $this->config->get_ldap_link();
113     $ret  = array();
114     $base = $this->app_base; 
116     $ret[$this->app_base] = "/";
117     $ldap->cd($base);
118     $ldap->search("(&(objectClass=organizationalUnit)(objectClass=FAIbranch))",array("ou"));
119     while($attrs = $ldap->fetch()){
120       $str = str_replace($base,"",$attrs['dn']);
121       $tmp = array_reverse( split("ou=",$str));
122       $str = "";
123       foreach($tmp as $val){
124         $val = trim(preg_replace("/,/","",$val));
125         if(empty($val)) break;
126         $str .= "/".$val;
127       } 
128       if(!empty($str)){
129         $ret[$attrs['dn']]= preg_replace("/^\//","",$str);
130       }
131     }
132     asort($ret);
133     return($ret);
134   }
136   function execute()
137   {
138     /* Call parent execute */
139     plugin::execute();
142     /**************** 
143       Variable init 
144      ****************/
146     /* These vars will be stored if you try to open a locked app, 
147         to be able to perform your last requests after showing a warning message */
148     session::set('LOCK_VARS_TO_USE',array("/^act$/","/^id$/","/^appl_edit_/","/^appl_del_/","/^item_selected/","/^remove_multiple_applications/","/^menu_action/"));
150     $smarty       = get_smarty();             // Smarty instance
151     $s_action     = "";                       // Contains the action to proceed
152     $s_entry      = "";                       // The value for s_action
153     $base_back    = "";                       // The Link for Backbutton
154     
155     /* Test Posts */
156     foreach($_POST as $key => $val){
157       // Post for delete
158       if(preg_match("/appl_del.*/",$key)){
159         $s_action = "del";
160         $s_entry  = preg_replace("/appl_".$s_action."_/i","",$key);
161         // Post for edit
162       }elseif(preg_match("/appl_edit_.*/",$key)){
163         $s_action="edit";
164         $s_entry  = preg_replace("/appl_".$s_action."_/i","",$key);
165         // Post for new
166       }elseif(preg_match("/^copy_.*/",$key)){
167         $s_action="copy";
168         $s_entry  = preg_replace("/^copy_/i","",$key);
169       }elseif(preg_match("/^cut_.*/",$key)){
170         $s_action="cut";
171         $s_entry  = preg_replace("/^cut_/i","",$key);
172         // Post for new
173       }elseif(preg_match("/^appl_new.*/",$key)){
174         $s_action="new";
175       }elseif(preg_match("/^remove_multiple_applications/",$key)){
176         $s_action="del_multiple";
177       }elseif(preg_match("/^editPaste.*/i",$key)){
178         $s_action="editPaste";
179       }elseif(preg_match("/^multiple_copy_groups/",$key)){
180         $s_action = "copy_multiple";
181       }elseif(preg_match("/^multiple_cut_groups/",$key)){
182         $s_action = "cut_multiple";
183       }
184     }
186     if((isset($_GET['act']))&&($_GET['act']=="edit_entry")){
187       $s_action ="edit";
188       $s_entry  = $_GET['id'];
189     }
191     $s_entry  = preg_replace("/_.$/","",$s_entry);
194     /* handle C&P from layers menu */
195     if(isset($_POST['menu_action']) && preg_match("/^multiple_copy_systems/",$_POST['menu_action'])){
196       $s_action = "copy_multiple";
197     }
198     if(isset($_POST['menu_action']) && preg_match("/^multiple_cut_systems/",$_POST['menu_action'])){
199       $s_action = "cut_multiple";
200     }
201     if(isset($_POST['menu_action']) && preg_match("/^editPaste/",$_POST['menu_action'])){
202       $s_action = "editPaste";
203     }
205     /* Create options */
206     if(isset($_POST['menu_action']) && $_POST['menu_action'] == "appl_new"){
207       $s_action = "new";
208     }
210     /* handle remove from layers menu */
211     if(isset($_POST['menu_action']) && preg_match("/^remove_multiple/",$_POST['menu_action'])){
212       $s_action = "del_multiple";
213     }
215     /**************** 
216       Copy & Paste handling  
217      ****************/
219     /* Display the copy & paste dialog, if it is currently open */
220     $ret = $this->copyPasteHandling_from_queue($s_action,$s_entry);
221     if($ret){
222       return($ret);
223     }
225     /**************** 
226       Create a new app 
227      ****************/
229     /* New application? */
230     if ($s_action=="new"){
232       /* By default we set 'dn' to 'new', all relevant plugins will
233          react on this. */
234       $this->dn= "new";
236       /* Create new usertab object */
237       $this->apptabs= new apptabs($this->config,$this->config->data['TABS']['APPSTABS'], $this->dn,"application");
238       $this->apptabs->parent = &$this;
239       $this->apptabs->set_acl_base($this->acl_base);
240     }
243     /**************** 
244       Edit entry canceled 
245      ****************/
247     /* Cancel dialogs */
248     if (isset($_POST['edit_cancel']) || isset($_POST['password_cancel'])){
249       $this->remove_lock();
250       $this->apptabs= NULL;
251       session::un_set('objectinfo');
252     }
255     /**************** 
256       Edit entry finished 
257      ****************/
259     /* Finish apps edit is triggered by the tabulator dialog, so
260        the user wants to save edited data. Check and save at this
261        point. */
262     if ((isset($_POST['edit_finish']) || isset($_POST['edit_apply']) ) && (isset($this->apptabs->config))){
264       /* Check tabs, will feed message array */
265       $this->apptabs->last= $this->apptabs->current;
266       $this->apptabs->save_object();
267       $message= $this->apptabs->check();
269       /* Save, or display error message? */
270       if (count($message) == 0){
272         /* Save data data to ldap */
273         $this->apptabs->save();
275         if (!isset($_POST['edit_apply'])){
276           /* Application has been saved successfully, remove lock from
277              LDAP. */
278           if ($this->dn != "new"){
279             $this->remove_lock();
280           }
281           $this->apptabs= NULL;
282           session::un_set('objectinfo');
283         }else{
285           /* Reinitialize tab */
286           if($this->apptabs instanceof tabs){
287             $this->apptabs->re_init();
288           }
289         }
290       } else {
291         /* Ok. There seem to be errors regarding to the tab data,
292            show message and continue as usual. */
293         msg_dialog::displayChecks($message);
294       }
295     }
298     /**************** 
299       Edit entry  
300      ****************/
302     /* User wants to edit data? */
303     if (($s_action=="edit") && (!isset($this->apptabs->config))){
305       /* Get 'dn' from posted 'applist', must be unique */
306       $this->dn= $this->applications[$s_entry]['dn'];
308       /* Check locking, save current plugin in 'back_plugin', so
309          the dialog knows where to return. */
310       if (($user= get_lock($this->dn)) != ""){
311         return(gen_locked_message ($user, $this->dn));
312       }
314       /* Lock the current entry, so everyone will get the
315          above dialog */
316       add_lock ($this->dn, $this->ui->dn);
318       /* Register apptabs to trigger edit dialog */
319       $this->apptabs= new apptabs($this->config,$this->config->data['TABS']['APPSTABS'], $this->dn,"application");
320       if($this->IsReleaseManagementActivated()){
321         $this->apptabs->set_FAIstate($this->applications[$s_entry]['FAIstate'][0]);
322       }
323       $this->apptabs->parent = &$this;
324       $this->apptabs->set_acl_base($this->dn);
325       session::set('objectinfo',$this->dn);
326     }
330     /********************
331       Delete MULTIPLE entries requested, display confirm dialog
332      ********************/
334     if ($s_action=="del_multiple"){
335       $ids = $this->list_get_selected_items();
337       if(count($ids)){
338         $this->dns = array();
340         $disallowed = array();
341         foreach($ids as $id){
342           $dn = $this->applications[$id]['dn'];
343           $acl = $this->ui->get_permissions($dn, "application/application");
344           if(preg_match("/d/",$acl)){
345             $this->dns[$id] = $dn;
346           }else{
347             $disallowed[] = $dn;
348           }
349         }
351         if(count($disallowed)){
352           msg_dialog::display(_("Permission"),msgPool::permDelete($disallowed),INFO_DIALOG);
353         }
355         if(count($this->dns)){
357           if ($user= get_multiple_locks($this->dns)){
358             return(gen_locked_message($user,$this->dns));
359           }
361           $dns_names = array();
362           foreach($this->dns as $dn){
363             add_lock ($dn, $this->ui->dn);
364             $dns_names[] =LDAP::fix($dn);
365           }
367           /* Lock the current entry, so nobody will edit it during deletion */
368           $smarty->assign("intro",  msgPool::deleteInfo($dns_names,_("application")));
369           $smarty->assign("multiple", true);
370           return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
371         }
372       }
373     }
376     /********************
377       Delete MULTIPLE entries confirmed
378      ********************/
380     /* Confirmation for deletion has been passed. Users should be deleted. */
381     if (isset($_POST['delete_multiple_application_confirm'])){
383       /* Remove user by user and check acls before removeing them */
384       foreach($this->dns as $key => $dn){
386         $ui = get_userinfo();
387         $acl = $ui->get_permissions($dn ,"application/application");
388         if (preg_match('/d/', $acl)){
390           /* Delete request is permitted, perform LDAP action */
391           $this->apptabs= new apptabs($this->config, $this->config->data['TABS']['APPSTABS'], $dn,"application");
392           $this->apptabs->parent = &$this;
393           $this->apptabs->set_acl_base($dn);
394           $this->apptabs->delete ();
395           unset ($this->apptabs);
396           $this->apptabs= NULL;
398         } else {
399           /* Normally this shouldn't be reached, send some extra
400              logs to notify the administrator */
401           msg_dialog::display(_("Permission error"), msgPool::permDelete(), INFO_DIALOG);
402           new log("security","application/".get_class($this),$dn,array(),"Tried to trick deletion.");
403         }
404       }
406       /* Remove lock file after successfull deletion */
407       $this->remove_lock();
408       $this->dns = array();
409     }
412     /********************
413       Delete MULTIPLE entries Canceled
414      ********************/
416     /* Remove lock */
417     if(isset($_POST['delete_multiple_application_cancel'])){
419       /* Remove lock file after successfull deletion */
420       $this->remove_lock();
421       $this->dns = array();
422     }
424     /**************** 
425       Delete app 
426      ****************/
428     /* Remove user was requested */
429     if ($s_action == "del"){
431       /* Get 'dn' from posted 'uid' */
432       $this->dn= $this->applications[$s_entry]['dn'];
434       /* Load permissions for selected 'dn' and check if
435          we're allowed to remove this 'dn' */
436       $ui = get_userinfo();
437       $acl = $ui->get_permissions($this->dn ,"application/application");
439       if(preg_match("/d/",$acl)){
440         /* Check locking, save current plugin in 'back_plugin', so
441            the dialog knows where to return. */
442         if (($user= get_lock($this->dn)) != ""){
443           return (gen_locked_message ($user, $this->dn));
444         }
446         /* Lock the current entry, so nobody will edit it during deletion */
447         add_lock ($this->dn, $this->ui->dn);
448         $smarty= get_smarty();
449         $smarty->assign("intro",msgPool::deleteInfo(LDAP::fix($this->dn),_("application")));
450         $smarty->assign("multiple", false);
451         return($smarty->fetch (get_template_path('remove.tpl', TRUE)));
452       } else {
454         /* Obviously the user isn't allowed to delete. Show message and
455            clean session. */
456         msg_dialog::display(_("Permission error"), msgPool::permDelete(), INFO_DIALOG);
457       }
458     }
461     /**************** 
462       Delete app confirmed 
463      ****************/
465     /* Confirmation for deletion has been passed. Group should be deleted. */
466     if (isset($_POST['delete_app_confirm'])){
468       /* Some nice guy may send this as POST, so we've to check
469          for the permissions again. */
470       $ui = get_userinfo();
471       $acl = $ui->get_permissions($this->dn ,"application/application");
473       if(preg_match("/d/",$acl)){
475         /* Delete request is permitted, perform LDAP action */
476         $this->apptabs= new apptabs($this->config, $this->config->data['TABS']['APPSTABS'], $this->dn,"application");
477         $this->apptabs->parent = &$this;
478         $this->apptabs->set_acl_base($this->dn);
479         $this->apptabs->delete ();
480         unset ($this->apptabs);
481         $this->apptabs= NULL;
483       } else {
485         /* Normally this shouldn't be reached, send some extra
486            logs to notify the administrator */
487         msg_dialog::display(_("Permission error"), msgPool::permDelete(), INFO_DIALOG);
488         new log("security","application/".get_class($this),$dn,array(),"Tried to trick deletion.");
489       }
491       /* Remove lock file after successfull deletion */
492       $this->remove_lock();
493     }
496     /**************** 
497       Delete app canceled 
498      ****************/
500     /* Delete application canceled? */
501     if (isset($_POST['delete_cancel'])){
502       $this->remove_lock();
503       session::un_set('objectinfo');
504     }
506     /* Show tab dialog if object is present */
507     if (($this->apptabs) && (isset($this->apptabs->config))){
508       $display= $this->apptabs->execute();
510       /* Don't show buttons if tab dialog requests this */
511       if (!$this->apptabs->by_object[$this->apptabs->current]->dialog){
512         $display.= "<p style=\"text-align:right\">\n";
514         if(isset($this->apptabs->FAIstate) && !preg_match("/freeze/i",$this->apptabs->FAIstate)){
515           $display.= "<input type=\"submit\" name=\"edit_finish\" style=\"width:80px\" value=\"".msgPool::okButton()."\">\n";
516           $display.= "&nbsp;\n";
517           if ($this->dn != "new"){
518             $display.= "<input type=submit name=\"edit_apply\" value=\"".msgPool::applyButton()."\">\n";
519             $display.= "&nbsp;\n";
520           }
521         }
522         $display.= "<input type=\"submit\" name=\"edit_cancel\" value=\"".msgPool::cancelButton()."\">\n";
523         $display.= "</p>";
524       }
525       return ($display);
526     }
529     /****************
530       Dialog display
531      ****************/
533     /* Check if there is a snapshot dialog open */
534     if($this->IsReleaseManagementActivated()){
535       $base = $this->app_release;  
536     }else{
537       $base = $this->app_base;  
538     }
539     if($str = $this->showSnapshotDialog($base,$this->get_used_snapshot_bases(),$this)){
540       return($str);
541     }
543     /* Display dialog with system list */
544     $this->DivListApplication->parent = $this;
545     $this->DivListApplication->execute();
546     if(!$this->IsReleaseManagementActivated()){
547       $this->DivListApplication->AddDepartments($this->DivListApplication->selectedBase,3,1);
548     } 
549     $this->reload();
550     $this->DivListApplication->setEntries($this->applications);
551     return($this->DivListApplication->Draw());
552   }
555   /* Return departments, that will be included within snapshot detection */
556   function get_used_snapshot_bases()
557   {
558     if($this->IsReleaseManagementActivated()){
559       return(array($this->app_release));  
560     }else{
561       return(array($this->app_base));  
562     }
563   }
566   function reload()
567   {
568     $this->applications= array();
570     /* Set base for all searches */
571     $Regex      = $this->DivListApplication->Regex;
572     $SubSearch  = $this->DivListApplication->SubSearch; 
573     $Flags      =  GL_NONE | GL_SIZELIMIT;
574     $Filter     = "(&(cn=".$Regex.")(objectClass=gosaApplication))";
575     $tmp        = array();
577     if(!$this->IsReleaseManagementActivated()){
578       $use_base = $this->app_base;
579       if($SubSearch){
580         $use_base = preg_replace("/^".preg_quote(get_ou("applicationRDN"), '/')."/","",$use_base);
581       }
582     }else{
583       $use_base = $this->app_release;
584       $SubSearch= FALSE;
585     }
587     /* Add FAIstate to the search attributes */
588     $search_attrs = array("cn","description","dn","objectClass");
589     if($this->IsReleaseManagementActivated()) {
590       $search_attrs[] = "FAIstate";
591     }
592  
593     if($SubSearch){ 
594       $res= get_sub_list($Filter, "application",get_ou("applicationRDN"), $use_base, $search_attrs, $Flags);
595     }else{
596       $res= get_list($Filter, "application",$use_base, $search_attrs, $Flags);
597     }
598     $tmp2 = array();
599     foreach ($res as $val){
600       if(!isset($val['FAIstate'])){
601         $val['FAIstate'][0] = "";
602       }
603       $tmp[strtolower($val['cn'][0]).$val['cn'][0].$val['dn']]=$val;
604       $tmp2[strtolower($val['cn'][0]).$val['cn'][0].$val['dn']] = strtolower($val['cn'][0]).$val['cn'][0].$val['dn'];
605     }
607     natcasesort($tmp2);
608     $this->applications=array();
609     foreach($tmp2 as $val){
610       $this->applications[]=$tmp[$val];
611     }
612     reset ($this->applications);
613   }
615   function remove_from_parent()
616   {
617     /* Optionally execute a command after we're done */
618     $this->postremove();
619   }
622   function copyPasteHandling_from_queue($s_action,$s_entry)
623   {
624     /* Check if Copy & Paste is disabled */
625     if(!is_object($this->CopyPasteHandler)){
626       return("");
627     }
629     $ui = get_userinfo();
631     /* Add a single entry to queue */
632     if($s_action == "cut" || $s_action == "copy"){
634       /* Cleanup object queue */
635       $this->CopyPasteHandler->cleanup_queue();
636       $dn = $this->applications[$s_entry]['dn'];
637       if($s_action == "copy" && $ui->is_copyable($dn,"application","application")){
638         $this->CopyPasteHandler->add_to_queue($dn,$s_action,"apptabs","APPSTABS","application");
639       }
640       if($s_action == "cut" && $ui->is_cutable($dn,"application","application")){ 
641         $this->CopyPasteHandler->add_to_queue($dn,$s_action,"apptabs","APPSTABS","application");
642       }
643     }
646     /* Add entries to queue */
647     if($s_action == "copy_multiple" || $s_action == "cut_multiple"){
649       /* Cleanup object queue */
650       $this->CopyPasteHandler->cleanup_queue();
652       /* Add new entries to CP queue */
653       foreach($this->list_get_selected_items() as $id){
654         $dn = $this->applications[$id]['dn'];
656         if($s_action == "copy_multiple" && $ui->is_copyable($dn,"application","application")){ 
657           $this->CopyPasteHandler->add_to_queue($dn,"copy","apptabs","APPSTABS","application");
658         }
659         if($s_action == "cut_multiple" && $ui->is_cutable($dn,"application","application")){
660           $this->CopyPasteHandler->add_to_queue($dn,"cut","apptabs","APPSTABS","application");
661         }
662       }
663     }
665     /* Start pasting entries */
666     if($s_action == "editPaste"){
667       $this->start_pasting_copied_objects = TRUE;
668     }
671     /* Return C&P dialog */
672     if($this->start_pasting_copied_objects && $this->CopyPasteHandler->entries_queued()){
675       /* Get dialog */
676       $this->CopyPasteHandler->SetVar("base",$this->app_base);
677       $this->CopyPasteHandler->SetVar("parent",$this);
678       $data = $this->CopyPasteHandler->execute();
680       /* Return dialog data */
681       if(!empty($data)){
682         return($data);
683       }
684     }
686     /* Automatically disable status for pasting */
687     if(!$this->CopyPasteHandler->entries_queued()){
688       $this->start_pasting_copied_objects = FALSE;
689     }
690     return("");
691   }
694   function list_get_selected_items()
695   {
696     $ids = array();
697     foreach($_POST as $name => $value){
698       if(preg_match("/^item_selected_[0-9]*$/",$name)){
699         $id   = preg_replace("/^item_selected_/","",$name);
700         $ids[$id] = $id;
701       }
702     }
703     return($ids);
704   }
707   /* Save to LDAP */
708   function save()
709   {
710     /* Optionally execute a command after we're done */
711     $this->postcreate();
712   }
715   function remove_lock()
716   {
717     if (isset($this->apptabs->dn)){
718       del_lock ($this->apptabs->dn);
719     }
720     if(isset($this->dn) && !empty($this->dn) && $this->dn != "new"){
721       del_lock($this->dn);
722     }
723     if(isset($this->dns) && is_array($this->dns) && count($this->dns)){
724       del_lock($this->dns);
725     }
726   }
729   function save_object() 
730   {
731     $this->DivListApplication->save_object();
732     if(is_object($this->CopyPasteHandler)){
733       $this->CopyPasteHandler->save_object();
734     }
735     
736     if($this->IsReleaseManagementActivated() && isset($_POST['app_release'])){
737       $sel_rel = get_post('app_release');
738       $releases = array_flip($this->getReleases());
739       if(isset($releases[$sel_rel])){
740         $this->app_release = $releases[$sel_rel];
741       }
742       $app_filter     = session::get("app_filter");
743       $app_filter['app_release'] = $this->app_release;
744       session::set("app_filter",$app_filter);
745     }elseif(!$this->IsReleaseManagementActivated()){
746       $this->app_base = get_ou("applicationRDN").$this->DivListApplication->selectedBase;
747       $app_filter     = session::get("app_filter");
748       $app_filter['app_base'] = $this->app_base;
749       session::set("app_filter",$app_filter);
750     }
751   }
753   function check() {}
754   function adapt_from_template($dn, $skip= array()) {}
755   function password_change_needed() {}
757 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
758 ?>