Code

c56b3d2b4e568d8ff107f23f3f66d9e990c8ca8a
[gosa.git] / gosa-plugins / goto / admin / mimetypes / class_mimetypeManagement.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 mimetypeManagement extends plugin
22 {
23   /* Definitions */
24   var $plHeadline     = "Mime types";
25   var $plDescription  = "Manage mime types";
27   /* Dialog attributes */
28   var $ui                             = NULL;
29   var $DivListMimeTypes               = NULL;
30   var $mimetabs                       = NULL;
31   var $snapDialog                     = NULL;
32   var $CopyPasteHandler               = NULL;
33   var $start_pasting_copied_objects   = FALSE;
34   var $enableReleaseManagement        = false;
36   var $mime_base    = "";
37   var $mime_release = "";
40   function IsReleaseManagementActivated()
41   {
42     /* Check if we should enable the release selection */
43     $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs'));
44     if(!empty($tmp)){
45       return(true);
46     }
47     return(false);
48   }
51   function mimetypeManagement (&$config, &$ui)
52   {
53     /* Save configuration for internal use */
54     $this->config   = &$config;
55     $this->ui       = &$ui;
57     /* Check if copy & paste is activated */
58     if($this->config->boolValueIsTrue("MAIN","ENABLECOPYPASTE")){
59       $this->CopyPasteHandler = new CopyPasteHandler($this->config);
60     }
62     /* Creat dialog object */
63     $this->DivListMimeTypes = new divListMimeTypes($this->config,$this);
65     if($this->IsReleaseManagementActivated()){
67       /* Check if we should enable the release selection */
68       $this->enableReleaseManagement = true;
70       /* Hide SubSearch checkbox */
71       $this->DivListMimeTypes->DisableCheckBox("SubSearch");
72     }
74     /* Set default release */
75     if(!$this->IsReleaseManagementActivated()){
76       $this->mime_base = get_ou("mimetypeou").$this->config->current['BASE'];
77       if(!session::is_set("mime_filter")){
78         session::set("mime_filter",array("mime_base" => $this->mime_base));
79       }
80       $mime_filter     = session::get("mime_filter");
81       $this->mime_base = $mime_filter['mime_base'];
82     }else{
83       $this->mime_base = get_ou("mimetypeou").$this->config->current['BASE'];
84       if(!session::is_set("mime_filter")){
85         session::set("mime_filter",array("mime_base" => $this->mime_base,"mime_release" => $this->mime_base));
86       }
87       $mime_filter         = session::get("mime_filter");
88       $this->mime_base     = $mime_filter['mime_base'];
89       $this->mime_release  = $mime_filter['mime_release'];
90     }
91   }
94   /* Get all releases */
95   function getReleases()
96   {
97     $ldap                   = $this->config->get_ldap_link();
98     $ret                    = array();
99     $ret [$this->mime_base] = "/";    
101     $ldap->cd($this->mime_base);
102     $ldap->search("(&(objectClass=FAIbranch)(objectClass=organizationalUnit))",array("ou"));
104     while($attrs = $ldap->fetch()){
105       $str = str_replace($this->mime_base,"",$attrs['dn']);
106       $tmp = array_reverse( split("ou=",$str));
107       $str = "";
108       foreach($tmp as $val){
109         $val = trim(preg_replace("/,/","",$val));
110         if(empty($val)) break;
111         $str .= "/".$val;
112       } 
113       if(!empty($str)){
114         $ret[$attrs['dn']]= preg_replace("/^\//","",$str);
115       }
116     }
117     asort($ret);
118     return($ret);
119   }
122   function execute()
123   {
124     /* Call parent execute */
125     plugin::execute();
128     /**************** 
129       Variable init 
130      ****************/
132     /* These vars will be stored if you try to open a locked mime, 
133         to be able to perform your last requests after showing a warning message */
134     session::set('LOCK_VARS_TO_USE',array("/^act$/","/^id$/","/^mime_edit_/","/^mime_del_/",
135           "/^item_selected/","/^remove_multiple_mimetypes/","/^menu_action/"));
137     $smarty       = get_smarty();             // Smarty instance
138     $s_action     = "";                       // Contains the action to proceed
139     $s_entry      = "";                       // The value for s_action
140     $base_back    = "";                       // The Link for Backbutton
141     
142     /* Test Posts */
143     foreach($_POST as $key => $val){
144       // Post for delete
145       if(preg_match("/mime_del.*/",$key)){
146         $s_action = "del";
147         $s_entry  = preg_replace("/mime_".$s_action."_/i","",$key);
148         // Post for edit
149       }elseif(preg_match("/mime_edit_.*/",$key)){
150         $s_action="edit";
151         $s_entry  = preg_replace("/mime_".$s_action."_/i","",$key);
152         // Post for new
153       }elseif(preg_match("/^copy_.*/",$key)){
154         $s_action="copy";
155         $s_entry  = preg_replace("/^copy_/i","",$key);
156       }elseif(preg_match("/^cut_.*/",$key)){
157         $s_action="cut";
158         $s_entry  = preg_replace("/^cut_/i","",$key);
159         // Post for new
160       }elseif(preg_match("/^mime_new.*/",$key)){
161         $s_action="new";
162       }elseif(preg_match("/^remove_multiple_mimetypes/",$key)){
163         $s_action="del_multiple";
164       }elseif(preg_match("/^editPaste.*/i",$key)){
165         $s_action="editPaste";
166       }elseif(preg_match("/^multiple_copy_mimetypes/",$key)){
167         $s_action = "copy_multiple";
168       }elseif(preg_match("/^multiple_cut_mimetypes/",$key)){
169         $s_action = "cut_multiple";
170       }
171     }
173     if((isset($_GET['act']))&&($_GET['act']=="edit_entry")){
174       $s_action ="edit";
175       $s_entry  = $_GET['id'];
176     }
178     $s_entry  = preg_replace("/_.$/","",$s_entry);
180     /* handle C&P from layers menu */
181     if(isset($_POST['menu_action']) && preg_match("/^multiple_copy_systems/",$_POST['menu_action'])){
182       $s_action = "copy_multiple";
183     }
184     if(isset($_POST['menu_action']) && preg_match("/^multiple_cut_systems/",$_POST['menu_action'])){
185       $s_action = "cut_multiple";
186     }
187     if(isset($_POST['menu_action']) && preg_match("/^editPaste/",$_POST['menu_action'])){
188       $s_action = "editPaste";
189     }
191     /* Create options */
192     if(isset($_POST['menu_action']) && $_POST['menu_action'] == "mime_new"){
193       $s_action = "new";
194     }
196     /* handle remove from layers menu */
197     if(isset($_POST['menu_action']) && preg_match("/^remove_multiple/",$_POST['menu_action'])){
198       $s_action = "del_multiple";
199     }
202     /**************** 
203       Copy & Paste handling  
204      ****************/
206     /* Display the copy & paste dialog, if it is currently open */
207     $ret = $this->copyPasteHandling_from_queue($s_action,$s_entry);
208     if($ret){
209       return($ret);
210     }
213     /**************** 
214       Create a new mime type 
215      ****************/
217     /* New mime type? */
218     $ui = get_userinfo();
219     $acl = $ui->get_permissions($this->mime_base,"mimetypes/mimetype");
220     if (($s_action=="new") && preg_match("/c/",$acl)){
222       /* By default we set 'dn' to 'new', all relevant plugins will
223          react on this. */
224       $this->dn= "new";
226       /* Create new usertab object */
227       $this->mimetabs= new mimetabs($this->config, $this->config->data['TABS']['MIMETABS'], $this->dn,"mimetypes");
228       $this->mimetabs->parent = &$this;
229       $this->mimetabs->set_acl_base($this->mime_base);
230     }   
233     /**************** 
234       Edit entry canceled 
235      ****************/
237     /* Cancel dialogs */
238     if (isset($_POST['edit_cancel'])){
239       $this->remove_lock();
240       $this->mimetabs= NULL;
241       session::un_set('objectinfo');
242     }
245     /**************** 
246       Edit entry finished 
247      ****************/
249     /* Finish mime edit is triggered by the tabulator dialog, so
250        the user wants to save edited data. Check and save at this point. */
251     if ((isset($_POST['edit_finish']) || isset($_POST['edit_apply']) ) && (isset($this->mimetabs->config))){
253       /* Check tabs, will feed message array */
254       $this->mimetabs->save_object();
255       $message= $this->mimetabs->check();
257       /* Save, or display error message? */
258       if (count($message) == 0){
260         /* Save data data to ldap */
261         $this->mimetabs->save();
263         if (!isset($_POST['edit_apply'])){
264           /* Mime type has been saved successfully, remove lock from LDAP. */
265           if ($this->dn != "new"){
266             $this->remove_lock();
267           }
268           unset ($this->mimetabs);
269           $this->mimetabs= NULL;
270           session::un_set('objectinfo');
271         }else{
273           /* Reinitialize tab */
274           if($this->mimetabs instanceof tabs){
275             $this->mimetabs->re_init();
276           }
277         }
278       } else {
279         /* Ok. There seem to be errors regarding to the tab data,
280            show message and continue as usual. */
281         msg_dialog::displayChecks($message);
282       }
283     }
286     /**************** 
287       Edit entry  
288      ****************/
290     /* User wants to edit data? */
291     if (($s_action=="edit") && (!isset($this->mimetabs->config))){
293       /* Get 'dn' from posted 'mimelist', must be unique */
294       $this->dn= $this->mimetypes[$s_entry]['dn'];
296       /* Check locking, save current plugin in 'back_plugin', so
297          the dialog knows where to return. */
298       if (($user= get_lock($this->dn)) != ""){
299         return(gen_locked_message ($user, $this->dn));
300       }
302       /* Lock the current entry, so everyone will get the
303          above dialog */
304       add_lock ($this->dn, $this->ui->dn);
306       /* Register mimetabs to trigger edit dialog */
307       $this->mimetabs= new mimetabs($this->config,$this->config->data['TABS']['MIMETABS'], $this->dn,"mimetypes");
308       $this->mimetabs->parent = &$this;
309       $this->mimetabs->set_acl_base($this->dn);
310       session::set('objectinfo',$this->dn);
311     }
314     /********************
315       Delete MULTIPLE entries requested, display confirm dialog
316      ********************/
318     if ($s_action=="del_multiple"){
319       $ids = $this->list_get_selected_items();
321       $this->dns = array();
322       if(count($ids)){
324         $disallowed = array();
325         foreach($ids as $id){
326           $dn = $this->mimetypes[$id]['dn'];
327           $acl = $this->ui->get_permissions($dn, "mimetypes/mimetype");
328           if(preg_match("/d/",$acl)){
329             $this->dns[$id] = $dn;
330           }else{
331             $disallowed[] = $dn;
332           }
333         }
335         if(count($disallowed)){
336           msg_dialog::display(_("Permission"),msgPool::permDelete($disallowed),INFO_DIALOG);
337         }
339         if(count($this->dns)){
341           /* Check locks */
342           if ($user= get_multiple_locks($this->dns)){
343             return(gen_locked_message($user,$this->dns));
344           }
346           $dns_names = array();
347           foreach($this->dns as $dn){
348             $dns_names[] = @LDAP::fix($dn);
349           }
351           add_lock ($this->dns, $this->ui->dn);
353           /* Lock the current entry, so nobody will edit it during deletion */
354           $smarty->assign("info", msgPool::deleteInfo($dns_names,_("Mime type")));
355           $smarty->assign("multiple", true);
356           return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
357         }
358       }
359     }
362     /********************
363       Delete MULTIPLE entries confirmed
364      ********************/
366     /* Confirmation for deletion has been passed. Users should be deleted. */
367     if (isset($_POST['delete_multiple_mimetype_confirm'])){
369       $ui = get_userinfo();
371       /* Remove user by user and check acls before removeing them */
372       foreach($this->dns as $key => $dn){
374         $acl = $ui->get_permissions($dn,"mimetypes/mimetype");
375         if(preg_match("/d/",$acl)){
377           /* Delete request is permitted, perform LDAP action */
378           $this->mimetabs= new mimetabs($this->config, $this->config->data['TABS']['MIMETABS'], $dn,"mimetypes");
379           $this->mimetabs->parent = &$this;
380           $this->mimetabs->set_acl_base($dn);
381           $this->mimetabs->delete ();
382           unset ($this->mimetabs);
383           $this->mimetabs= NULL;
385         } else {
386           /* Normally this shouldn't be reached, send some extra
387              logs to notify the administrator */
388           msg_dialog::display(_("Permission error"), msgPool::permDelete(), INFO_DIALOG);
389           new log("security","mimetypes/".get_class($this),$dn,array(),"Tried to trick deletion.");
390         }
391       }
393       /* Remove lock file after successfull deletion */
394       $this->remove_lock();
395       $this->dns = array();
396     }
399     /********************
400       Delete MULTIPLE entries Canceled
401      ********************/
403     /* Remove lock */
404     if(isset($_POST['delete_multiple_mimetype_cancel'])){
405       $this->remove_lock();
406       $this->dns = array();
407     }
410     /**************** 
411       Delete mime type 
412      ****************/
414     /* Remove user was requested */
415     if ($s_action == "del"){
417       /* Get 'dn' from posted 'uid' */
418       $this->dn= $this->mimetypes[$s_entry]['dn'];
420       /* Load permissions for selected 'dn' and check if
421          we're allowed to remove this 'dn' */
422       $ui = get_userinfo();
423       $acl = $ui->get_permissions($this->dn,"mimetypes/mimetype");
424       if (preg_match("/d/",$acl)){
426         /* Check locking, save current plugin in 'back_plugin', so
427            the dialog knows where to return. */
428         if (($user= get_lock($this->dn)) != ""){
429           return (gen_locked_message ($user, $this->dn));
430         }
432         /* Lock the current entry, so nobody will edit it during deletion */
433         add_lock ($this->dn, $this->ui->dn);
434         $smarty= get_smarty();
435         $smarty->assign("info", msgPool::deleteInfo(@LDAP::fix($this->dn),_("Mime type")));
436         $smarty->assign("multiple", false);
437         return($smarty->fetch (get_template_path('remove.tpl', TRUE)));
438       } else {
440         /* Obviously the user isn't allowed to delete. Show message and
441            clean session. */
442         msg_dialog::display(_("Permission error"), msgPool::permDelete(), INFO_DIALOG);
443       }
444     }
447     /**************** 
448       Delete mime confirmed 
449      ****************/
451     /* Confirmation for deletion has been passed. Group should be deleted. */
452     if (isset($_POST['delete_mime_confirm'])){
454       /* Some nice guy may send this as POST, so we've to check
455          for the permissions again. */
456       $ui = get_userinfo();
457       $acl = $ui->get_permissions($this->dn,"mimetypes/mimetype");
458       if(preg_match("/d/",$acl)){
460         /* Delete request is permitted, perform LDAP action */
461         $this->mimetabs= new mimetabs($this->config, $this->config->data['TABS']['MIMETABS'], $this->dn,"mimetypes");
462         $this->mimetabs->parent = &$this;
463         $this->mimetabs->set_acl_base($this->dn);
464         $this->mimetabs->delete ();
465         unset ($this->mimetabs);
466         $this->mimetabs= NULL;
468       } else {
470         /* Normally this shouldn't be reached, send some extra
471            logs to notify the administrator */
472         msg_dialog::display(_("Permission error"), msgPool::permDelete(), INFO_DIALOG);
473         new log("security","mimetypes/".get_class($this),$dn,array(),"Tried to trick deletion.");
474       }
476       /* Remove lock file after successfull deletion */
477       $this->remove_lock();
478     }
481     /**************** 
482       Delete mime canceled 
483      ****************/
485     /* Delete mime type canceled? */
486     if (isset($_POST['delete_cancel'])){
487       $this->remove_lock();
488       session::un_set('objectinfo');
489     }
491     /* Show tab dialog if object is present */
492     if (($this->mimetabs) && (isset($this->mimetabs->config))){
493       $display= $this->mimetabs->execute();
495       /* Don't show buttons if tab dialog requests this */
496       if (!$this->mimetabs->by_object[$this->mimetabs->current]->dialog){
497         $display.= "<p style=\"text-align:right\">\n";
498         $display.= "<input type=\"submit\" name=\"edit_finish\" style=\"width:80px\" value=\"".msgPool::okButton()."\">\n";
499         $display.= "&nbsp;\n";
500         if ($this->dn != "new"){
501           $display.= "<input type=submit name=\"edit_apply\" value=\"".msgPool::applyButton()."\">\n";
502           $display.= "&nbsp;\n";
503         }
504         $display.= "<input type=\"submit\" name=\"edit_cancel\" value=\"".msgPool::cancelButton()."\">\n";
505         $display.= "</p>";
506       }
507       return ($display);
508     }
511     /****************
512       Dialog display
513      ****************/
515     /* Check if there is a snapshot dialog open */
516     if($this->IsReleaseManagementActivated()){
517       $base = $this->mime_release;
518     }else{
519       $base = $this->mime_base;
520     }
521     if($str = $this->showSnapshotDialog($base,$this->get_used_snapshot_bases())){
522       return($str);
523     }
525     /* Display dialog with system list */
526     $this->DivListMimeTypes->parent = $this;
527     $this->DivListMimeTypes->execute();
528     if(!$this->IsReleaseManagementActivated()){
529       $this->DivListMimeTypes->AddDepartments($this->DivListMimeTypes->selectedBase,3,1);
530     }
531     $this->reload();
532     $this->DivListMimeTypes->setEntries($this->mimetypes);
533     return($this->DivListMimeTypes->Draw());
534   }
536     
537   /* Return departments, that will be included within snapshot detection */
538   function get_used_snapshot_bases()
539   {
540     if($this->IsReleaseManagementActivated()){
541       return(array($this->mime_release));
542     }else{
543       return(array($this->mime_base));
544     }
545   }
548   function reload()
549   {
550     $this->mimetypes= array();
552     /* Set base for all searches */
553     $base       = $this->mime_base;
554     $Regex      = $this->DivListMimeTypes->Regex;
555     $SubSearch  = $this->DivListMimeTypes->SubSearch; 
556     $Flags      =  GL_NONE | GL_SIZELIMIT;
557     $Filter     = "(&(|(cn=".$Regex.")(description=".$Regex."))(objectClass=gotoMimeType))";
558     $tmp        = array();
560     if(!$this->IsReleaseManagementActivated()){
561       $use_base = $this->mime_base;
562       if($SubSearch){
563         $use_base = preg_replace("/^".normalizePreg(get_ou("mimeou"))."/","",$use_base);
564       }
565     }else{
566       $use_base = $this->mime_release;
567       $SubSearch= FALSE;
568     }
570     if($SubSearch){
571       $res= get_sub_list($Filter, "mimetypes",get_ou("mimeou"), $use_base, array("cn","description","dn","objectClass"), $Flags);
572     }else{
573       $res= get_list($Filter, "mimetypes",$use_base, array("cn","description","dn","objectClass"), $Flags);
574     }
577     $tmp2 = array();
578     foreach ($res as $val){
579       $tmp[strtolower($val['cn'][0]).$val['cn'][0].$val['dn']]=$val;
580       $tmp2[strtolower($val['cn'][0]).$val['cn'][0].$val['dn']] = strtolower($val['cn'][0]).$val['cn'][0].$val['dn'];
581     }
583     /* sort entries */
584     natcasesort($tmp2);
585     $this->mimetypes=array();
586     foreach($tmp2 as $val){
587       $this->mimetypes[]=$tmp[$val];
588     }
589     reset ($this->mimetypes);
590   }
593   function remove_from_parent()
594   {
595     /* Optionally execute a command after we're done */
596     $this->postremove();
597   }
600   function copyPasteHandling_from_queue($s_action,$s_entry)
601   {
602     /* Check if Copy & Paste is disabled */
603     if(!is_object($this->CopyPasteHandler)){
604       return("");
605     }
607     $ui = get_userinfo();  
609     /* Add a single entry to queue */
610     if($s_action == "cut" || $s_action == "copy"){
612       /* Cleanup object queue */
613       $this->CopyPasteHandler->cleanup_queue();
614       $dn = $this->mimetypes[$s_entry]['dn'];
615       if($s_action == "copy" && preg_match("/r/",$ui->has_complete_category_acls($dn,"mimetypes"))){
616         $this->CopyPasteHandler->add_to_queue($dn,$s_action,"mimetabs","MIMETABS","mimetypes");
617       }
618       if($s_action == "cut" && preg_match("/(r.*d|d.*r)/",$ui->has_complete_category_acls($dn,"mimetypes"))){
619         $this->CopyPasteHandler->add_to_queue($dn,$s_action,"mimetabs","MIMETABS","mimetypes");
620       }
621     }
623     /* Add entries to queue */
624     if($s_action == "copy_multiple" || $s_action == "cut_multiple"){
626       /* Cleanup object queue */
627       $this->CopyPasteHandler->cleanup_queue();
628   
629       /* Add new entries to CP queue */
630       foreach($this->list_get_selected_items() as $id){
631         $dn = $this->mimetypes[$id]['dn'];
633         if($s_action == "copy_multiple" && preg_match("/r/",$ui->has_complete_category_acls($dn,"mimetypes"))){
634           $this->CopyPasteHandler->add_to_queue($dn,"copy","mimetabs","MIMETABS","mimetypes");
635         }
636         if($s_action == "cut_multiple" && preg_match("/(r.*d|d.*r)/",$ui->has_complete_category_acls($dn,"mimetypes"))){
637           $this->CopyPasteHandler->add_to_queue($dn,"cut","mimetabs","MIMETABS","mimetypes");
638         }
639       }
640     }
642     /* Start pasting entries */
643     if($s_action == "editPaste"){
644       $this->start_pasting_copied_objects = TRUE;
645     }
647     /* Return C&P dialog */
648     if($this->start_pasting_copied_objects && $this->CopyPasteHandler->entries_queued()){
650       /* Get dialog */
651       $this->CopyPasteHandler->SetVar("base",preg_replace("/^".normalizePreg(get_ou("mimetypeou"))."/","",$this->mime_base));
652       $this->CopyPasteHandler->SetVar("parent",$this);
653       $data = $this->CopyPasteHandler->execute();
655       /* Return dialog data */
656       if(!empty($data)){
657         return($data);
658       }
659     }
661     /* Automatically disable status for pasting */
662     if(!$this->CopyPasteHandler->entries_queued()){
663       $this->start_pasting_copied_objects = FALSE;
664     }
665     return("");
666   }
669   function list_get_selected_items()
670   {
671     $ids = array();
672     foreach($_POST as $name => $value){
673       if(preg_match("/^item_selected_[0-9]*$/",$name)){
674         $id   = preg_replace("/^item_selected_/","",$name);
675         $ids[$id] = $id;
676       }
677     }
678     return($ids);
679   }
682   /* Save to LDAP */
683   function save()
684   {
685     /* Optionally execute a command after we're done */
686     $this->postcreate();
687   }
689   function remove_lock()
690   {
691     if (isset($this->mimetabs->dn)){
692       del_lock ($this->mimetabs->dn);
693     }
694     if(isset($this->dn) && !empty($this->dn) && $this->dn != "new"){
695       del_lock($this->dn);
696     }
697     if(isset($this->dns) && is_array($this->dns) && count($this->dns)){
698       del_lock($this->dns);
699     }
700   }
702   function save_object() 
703   {
704     $this->DivListMimeTypes->save_object();
705     if(is_object($this->CopyPasteHandler)){
706       $this->CopyPasteHandler->save_object();
707     }
709     if($this->IsReleaseManagementActivated() && isset($_POST['mime_release'])){
710       $sel_rel = get_post('mime_release');
711       $releases = array_flip($this->getReleases());
712       if(isset($releases[$sel_rel])){
713         $this->mime_release = $releases[$sel_rel];
714       }
715       $mime_filter     = session::get("mime_filter");
716       $mime_filter['mime_release'] = $this->mime_release;
717       session::set("mime_filter",$mime_filter);
718     }elseif(!$this->IsReleaseManagementActivated()){
719       $this->mime_base = get_ou("mimetypeou").$this->DivListMimeTypes->selectedBase;
720       $mime_filter     = session::get("mime_filter");
721       $mime_filter['mime_base'] = $this->mime_base;
722       session::set("mime_filter",$mime_filter);
723     }
724   }
727   function check() {}
728   function adapt_from_template($dn, $skip= array()) {}
729   function password_change_needed() {}
731 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
732 ?>