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";
26 var $plIcon = "plugins/goto/images/mimetypes.png";
28 /* Dialog attributes */
29 var $ui = NULL;
30 var $DivListMimeTypes = NULL;
31 var $mimetabs = NULL;
32 var $snapDialog = NULL;
33 var $CopyPasteHandler = NULL;
34 var $start_pasting_copied_objects = FALSE;
35 var $enableReleaseManagement = false;
37 var $mime_base = "";
38 var $mime_release = "";
40 var $acl_module = array("mimetypes");
42 function IsReleaseManagementActivated()
43 {
44 /* Check if we should enable the release selection */
45 $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs'));
46 if(!empty($tmp)){
47 return(true);
48 }
49 return(false);
50 }
53 function mimetypeManagement (&$config, &$ui)
54 {
55 /* Save configuration for internal use */
56 $this->config = &$config;
57 $this->ui = &$ui;
59 /* Check if copy & paste is activated */
60 if($this->config->boolValueIsTrue("MAIN","ENABLECOPYPASTE")){
61 $this->CopyPasteHandler = new CopyPasteHandler($this->config);
62 }
64 /* Creat dialog object */
65 $this->DivListMimeTypes = new divListMimeTypes($this->config,$this);
67 if($this->IsReleaseManagementActivated()){
69 /* Check if we should enable the release selection */
70 $this->enableReleaseManagement = true;
72 /* Hide SubSearch checkbox */
73 $this->DivListMimeTypes->DisableCheckBox("SubSearch");
74 }
76 /* Set default release */
77 if(!$this->IsReleaseManagementActivated()){
78 $this->mime_base = get_ou("mimetypeou").$this->config->current['BASE'];
79 if(!session::is_set("mime_filter")){
80 session::set("mime_filter",array("mime_base" => $this->mime_base));
81 }
82 $mime_filter = session::get("mime_filter");
83 $this->mime_base = $mime_filter['mime_base'];
84 }else{
85 $this->mime_base = get_ou("mimetypeou").$this->config->current['BASE'];
86 if(!session::is_set("mime_filter")){
87 session::set("mime_filter",array("mime_base" => $this->mime_base,"mime_release" => $this->mime_base));
88 }
89 $mime_filter = session::get("mime_filter");
90 $this->mime_base = $mime_filter['mime_base'];
91 $this->mime_release = $mime_filter['mime_release'];
92 }
93 }
96 /* Get all releases */
97 function getReleases()
98 {
99 $ldap = $this->config->get_ldap_link();
100 $ret = array();
101 $ret [$this->mime_base] = "/";
103 $ldap->cd($this->mime_base);
104 $ldap->search("(&(objectClass=FAIbranch)(objectClass=organizationalUnit))",array("ou"));
106 while($attrs = $ldap->fetch()){
107 $str = str_replace($this->mime_base,"",$attrs['dn']);
108 $tmp = array_reverse( split("ou=",$str));
109 $str = "";
110 foreach($tmp as $val){
111 $val = trim(preg_replace("/,/","",$val));
112 if(empty($val)) break;
113 $str .= "/".$val;
114 }
115 if(!empty($str)){
116 $ret[$attrs['dn']]= preg_replace("/^\//","",$str);
117 }
118 }
119 asort($ret);
120 return($ret);
121 }
124 function execute()
125 {
126 /* Call parent execute */
127 plugin::execute();
130 /****************
131 Variable init
132 ****************/
134 /* These vars will be stored if you try to open a locked mime,
135 to be able to perform your last requests after showing a warning message */
136 session::set('LOCK_VARS_TO_USE',array("/^act$/","/^id$/","/^mime_edit_/","/^mime_del_/",
137 "/^item_selected/","/^remove_multiple_mimetypes/","/^menu_action/"));
139 $smarty = get_smarty(); // Smarty instance
140 $s_action = ""; // Contains the action to proceed
141 $s_entry = ""; // The value for s_action
142 $base_back = ""; // The Link for Backbutton
144 /* Test Posts */
145 foreach($_POST as $key => $val){
146 // Post for delete
147 if(preg_match("/mime_del.*/",$key)){
148 $s_action = "del";
149 $s_entry = preg_replace("/mime_".$s_action."_/i","",$key);
150 // Post for edit
151 }elseif(preg_match("/mime_edit_.*/",$key)){
152 $s_action="edit";
153 $s_entry = preg_replace("/mime_".$s_action."_/i","",$key);
154 // Post for new
155 }elseif(preg_match("/^copy_.*/",$key)){
156 $s_action="copy";
157 $s_entry = preg_replace("/^copy_/i","",$key);
158 }elseif(preg_match("/^cut_.*/",$key)){
159 $s_action="cut";
160 $s_entry = preg_replace("/^cut_/i","",$key);
161 // Post for new
162 }elseif(preg_match("/^mime_new.*/",$key)){
163 $s_action="new";
164 }elseif(preg_match("/^remove_multiple_mimetypes/",$key)){
165 $s_action="del_multiple";
166 }elseif(preg_match("/^editPaste.*/i",$key)){
167 $s_action="editPaste";
168 }elseif(preg_match("/^multiple_copy_mimetypes/",$key)){
169 $s_action = "copy_multiple";
170 }elseif(preg_match("/^multiple_cut_mimetypes/",$key)){
171 $s_action = "cut_multiple";
172 }
173 }
175 if((isset($_GET['act']))&&($_GET['act']=="edit_entry")){
176 $s_action ="edit";
177 $s_entry = $_GET['id'];
178 }
180 $s_entry = preg_replace("/_.$/","",$s_entry);
182 /* handle C&P from layers menu */
183 if(isset($_POST['menu_action']) && preg_match("/^multiple_copy_systems/",$_POST['menu_action'])){
184 $s_action = "copy_multiple";
185 }
186 if(isset($_POST['menu_action']) && preg_match("/^multiple_cut_systems/",$_POST['menu_action'])){
187 $s_action = "cut_multiple";
188 }
189 if(isset($_POST['menu_action']) && preg_match("/^editPaste/",$_POST['menu_action'])){
190 $s_action = "editPaste";
191 }
193 /* Create options */
194 if(isset($_POST['menu_action']) && $_POST['menu_action'] == "mime_new"){
195 $s_action = "new";
196 }
198 /* handle remove from layers menu */
199 if(isset($_POST['menu_action']) && preg_match("/^remove_multiple/",$_POST['menu_action'])){
200 $s_action = "del_multiple";
201 }
204 /****************
205 Copy & Paste handling
206 ****************/
208 /* Display the copy & paste dialog, if it is currently open */
209 $ret = $this->copyPasteHandling_from_queue($s_action,$s_entry);
210 if($ret){
211 return($ret);
212 }
215 /****************
216 Create a new mime type
217 ****************/
219 /* New mime type? */
220 $ui = get_userinfo();
221 $acl = $ui->get_permissions($this->mime_base,"mimetypes/mimetype");
222 if (($s_action=="new") && preg_match("/c/",$acl)){
224 /* By default we set 'dn' to 'new', all relevant plugins will
225 react on this. */
226 $this->dn= "new";
228 /* Create new usertab object */
229 $this->mimetabs= new mimetabs($this->config, $this->config->data['TABS']['MIMETABS'], $this->dn,"mimetypes");
230 $this->mimetabs->parent = &$this;
231 $this->mimetabs->set_acl_base($this->mime_base);
232 }
235 /****************
236 Edit entry canceled
237 ****************/
239 /* Cancel dialogs */
240 if (isset($_POST['edit_cancel'])){
241 $this->remove_lock();
242 $this->mimetabs= NULL;
243 session::un_set('objectinfo');
244 }
247 /****************
248 Edit entry finished
249 ****************/
251 /* Finish mime edit is triggered by the tabulator dialog, so
252 the user wants to save edited data. Check and save at this point. */
253 if ((isset($_POST['edit_finish']) || isset($_POST['edit_apply']) ) && (isset($this->mimetabs->config))){
255 /* Check tabs, will feed message array */
256 $this->mimetabs->save_object();
257 $message= $this->mimetabs->check();
259 /* Save, or display error message? */
260 if (count($message) == 0){
262 /* Save data data to ldap */
263 $this->mimetabs->save();
265 if (!isset($_POST['edit_apply'])){
266 /* Mime type has been saved successfully, remove lock from LDAP. */
267 if ($this->dn != "new"){
268 $this->remove_lock();
269 }
270 unset ($this->mimetabs);
271 $this->mimetabs= NULL;
272 session::un_set('objectinfo');
273 }else{
275 /* Reinitialize tab */
276 if($this->mimetabs instanceof tabs){
277 $this->mimetabs->re_init();
278 }
279 }
280 } else {
281 /* Ok. There seem to be errors regarding to the tab data,
282 show message and continue as usual. */
283 msg_dialog::displayChecks($message);
284 }
285 }
288 /****************
289 Edit entry
290 ****************/
292 /* User wants to edit data? */
293 if (($s_action=="edit") && (!isset($this->mimetabs->config))){
295 /* Get 'dn' from posted 'mimelist', must be unique */
296 $this->dn= $this->mimetypes[$s_entry]['dn'];
298 /* Check locking, save current plugin in 'back_plugin', so
299 the dialog knows where to return. */
300 if (($user= get_lock($this->dn)) != ""){
301 return(gen_locked_message ($user, $this->dn));
302 }
304 /* Lock the current entry, so everyone will get the
305 above dialog */
306 add_lock ($this->dn, $this->ui->dn);
308 /* Register mimetabs to trigger edit dialog */
309 $this->mimetabs= new mimetabs($this->config,$this->config->data['TABS']['MIMETABS'], $this->dn,"mimetypes");
310 if($this->IsReleaseManagementActivated()){
311 $this->mimetabs->set_FAIstate($this->mimetypes[$s_entry]['FAIstate'][0]);
312 }
313 $this->mimetabs->parent = &$this;
314 $this->mimetabs->set_acl_base($this->dn);
315 session::set('objectinfo',$this->dn);
316 }
319 /********************
320 Delete MULTIPLE entries requested, display confirm dialog
321 ********************/
323 if ($s_action=="del_multiple"){
324 $ids = $this->list_get_selected_items();
326 $this->dns = array();
327 if(count($ids)){
329 $disallowed = array();
330 foreach($ids as $id){
331 $dn = $this->mimetypes[$id]['dn'];
332 $acl = $this->ui->get_permissions($dn, "mimetypes/mimetype");
333 if(preg_match("/d/",$acl)){
334 $this->dns[$id] = $dn;
335 }else{
336 $disallowed[] = $dn;
337 }
338 }
340 if(count($disallowed)){
341 msg_dialog::display(_("Permission"),msgPool::permDelete($disallowed),INFO_DIALOG);
342 }
344 if(count($this->dns)){
346 /* Check locks */
347 if ($user= get_multiple_locks($this->dns)){
348 return(gen_locked_message($user,$this->dns));
349 }
351 $dns_names = array();
352 foreach($this->dns as $dn){
353 $dns_names[] = @LDAP::fix($dn);
354 }
356 add_lock ($this->dns, $this->ui->dn);
358 /* Lock the current entry, so nobody will edit it during deletion */
359 $smarty->assign("info", msgPool::deleteInfo($dns_names,_("Mime type")));
360 $smarty->assign("multiple", true);
361 return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
362 }
363 }
364 }
367 /********************
368 Delete MULTIPLE entries confirmed
369 ********************/
371 /* Confirmation for deletion has been passed. Users should be deleted. */
372 if (isset($_POST['delete_multiple_mimetype_confirm'])){
374 $ui = get_userinfo();
376 /* Remove user by user and check acls before removeing them */
377 foreach($this->dns as $key => $dn){
379 $acl = $ui->get_permissions($dn,"mimetypes/mimetype");
380 if(preg_match("/d/",$acl)){
382 /* Delete request is permitted, perform LDAP action */
383 $this->mimetabs= new mimetabs($this->config, $this->config->data['TABS']['MIMETABS'], $dn,"mimetypes");
384 $this->mimetabs->parent = &$this;
385 $this->mimetabs->set_acl_base($dn);
386 $this->mimetabs->delete ();
387 unset ($this->mimetabs);
388 $this->mimetabs= NULL;
390 } else {
391 /* Normally this shouldn't be reached, send some extra
392 logs to notify the administrator */
393 msg_dialog::display(_("Permission error"), msgPool::permDelete(), INFO_DIALOG);
394 new log("security","mimetypes/".get_class($this),$dn,array(),"Tried to trick deletion.");
395 }
396 }
398 /* Remove lock file after successfull deletion */
399 $this->remove_lock();
400 $this->dns = array();
401 }
404 /********************
405 Delete MULTIPLE entries Canceled
406 ********************/
408 /* Remove lock */
409 if(isset($_POST['delete_multiple_mimetype_cancel'])){
410 $this->remove_lock();
411 $this->dns = array();
412 }
415 /****************
416 Delete mime type
417 ****************/
419 /* Remove user was requested */
420 if ($s_action == "del"){
422 /* Get 'dn' from posted 'uid' */
423 $this->dn= $this->mimetypes[$s_entry]['dn'];
425 /* Load permissions for selected 'dn' and check if
426 we're allowed to remove this 'dn' */
427 $ui = get_userinfo();
428 $acl = $ui->get_permissions($this->dn,"mimetypes/mimetype");
429 if (preg_match("/d/",$acl)){
431 /* Check locking, save current plugin in 'back_plugin', so
432 the dialog knows where to return. */
433 if (($user= get_lock($this->dn)) != ""){
434 return (gen_locked_message ($user, $this->dn));
435 }
437 /* Lock the current entry, so nobody will edit it during deletion */
438 add_lock ($this->dn, $this->ui->dn);
439 $smarty= get_smarty();
440 $smarty->assign("info", msgPool::deleteInfo(@LDAP::fix($this->dn),_("Mime type")));
441 $smarty->assign("multiple", false);
442 return($smarty->fetch (get_template_path('remove.tpl', TRUE)));
443 } else {
445 /* Obviously the user isn't allowed to delete. Show message and
446 clean session. */
447 msg_dialog::display(_("Permission error"), msgPool::permDelete(), INFO_DIALOG);
448 }
449 }
452 /****************
453 Delete mime confirmed
454 ****************/
456 /* Confirmation for deletion has been passed. Group should be deleted. */
457 if (isset($_POST['delete_mime_confirm'])){
459 /* Some nice guy may send this as POST, so we've to check
460 for the permissions again. */
461 $ui = get_userinfo();
462 $acl = $ui->get_permissions($this->dn,"mimetypes/mimetype");
463 if(preg_match("/d/",$acl)){
465 /* Delete request is permitted, perform LDAP action */
466 $this->mimetabs= new mimetabs($this->config, $this->config->data['TABS']['MIMETABS'], $this->dn,"mimetypes");
467 $this->mimetabs->parent = &$this;
468 $this->mimetabs->set_acl_base($this->dn);
469 $this->mimetabs->delete ();
470 unset ($this->mimetabs);
471 $this->mimetabs= NULL;
473 } else {
475 /* Normally this shouldn't be reached, send some extra
476 logs to notify the administrator */
477 msg_dialog::display(_("Permission error"), msgPool::permDelete(), INFO_DIALOG);
478 new log("security","mimetypes/".get_class($this),$dn,array(),"Tried to trick deletion.");
479 }
481 /* Remove lock file after successfull deletion */
482 $this->remove_lock();
483 }
486 /****************
487 Delete mime canceled
488 ****************/
490 /* Delete mime type canceled? */
491 if (isset($_POST['delete_cancel'])){
492 $this->remove_lock();
493 session::un_set('objectinfo');
494 }
496 /* Show tab dialog if object is present */
497 if (($this->mimetabs) && (isset($this->mimetabs->config))){
498 $display= $this->mimetabs->execute();
500 /* Don't show buttons if tab dialog requests this */
501 if (!$this->mimetabs->by_object[$this->mimetabs->current]->dialog){
502 $display.= "<p style=\"text-align:right\">\n";
504 if(isset($this->mimetabs->FAIstate) && !preg_match("/freeze/i",$this->mimetabs->FAIstate)){
505 $display.= "<input type=\"submit\" name=\"edit_finish\" style=\"width:80px\" value=\"".msgPool::okButton()."\">\n";
506 $display.= " \n";
507 if ($this->dn != "new"){
508 $display.= "<input type=submit name=\"edit_apply\" value=\"".msgPool::applyButton()."\">\n";
509 $display.= " \n";
510 }
511 }
513 $display.= "<input type=\"submit\" name=\"edit_cancel\" value=\"".msgPool::cancelButton()."\">\n";
514 $display.= "</p>";
515 }
516 return ($display);
517 }
520 /****************
521 Dialog display
522 ****************/
524 /* Check if there is a snapshot dialog open */
525 if($this->IsReleaseManagementActivated()){
526 $base = $this->mime_release;
527 }else{
528 $base = $this->mime_base;
529 }
530 if($str = $this->showSnapshotDialog($base,$this->get_used_snapshot_bases(),$this)){
531 return($str);
532 }
534 /* Display dialog with system list */
535 $this->DivListMimeTypes->parent = $this;
536 $this->DivListMimeTypes->execute();
537 if(!$this->IsReleaseManagementActivated()){
538 $this->DivListMimeTypes->AddDepartments($this->DivListMimeTypes->selectedBase,3,1);
539 }
540 $this->reload();
541 $this->DivListMimeTypes->setEntries($this->mimetypes);
542 return($this->DivListMimeTypes->Draw());
543 }
546 /* Return departments, that will be included within snapshot detection */
547 function get_used_snapshot_bases()
548 {
549 if($this->IsReleaseManagementActivated()){
550 return(array($this->mime_release));
551 }else{
552 return(array($this->mime_base));
553 }
554 }
557 function reload()
558 {
559 $this->mimetypes= array();
561 /* Set base for all searches */
562 $base = $this->mime_base;
563 $Regex = $this->DivListMimeTypes->Regex;
564 $SubSearch = $this->DivListMimeTypes->SubSearch;
565 $Flags = GL_NONE | GL_SIZELIMIT;
566 $Filter = "(&(|(cn=".$Regex.")(description=".$Regex."))(objectClass=gotoMimeType))";
567 $tmp = array();
569 if(!$this->IsReleaseManagementActivated()){
570 $use_base = $this->mime_base;
571 if($SubSearch){
572 $use_base = preg_replace("/^".normalizePreg(get_ou("mimeou"))."/","",$use_base);
573 }
574 }else{
575 $use_base = $this->mime_release;
576 $SubSearch= FALSE;
577 }
579 /* Add FAIstate to the search attributes */
580 $search_attrs = array("cn","description","dn","objectClass");
581 if($this->IsReleaseManagementActivated()) {
582 $search_attrs[] = "FAIstate";
583 }
585 if($SubSearch){
586 $res= get_sub_list($Filter, "mimetypes",get_ou("mimeou"), $use_base, $search_attrs, $Flags);
587 }else{
588 $res= get_list($Filter, "mimetypes",$use_base, $search_attrs, $Flags);
589 }
592 $tmp2 = array();
593 foreach ($res as $val){
594 if(!isset($val['FAIstate'])){
595 $val['FAIstate'][0] = "";
596 }
597 $tmp[strtolower($val['cn'][0]).$val['cn'][0].$val['dn']]=$val;
598 $tmp2[strtolower($val['cn'][0]).$val['cn'][0].$val['dn']] = strtolower($val['cn'][0]).$val['cn'][0].$val['dn'];
599 }
601 /* sort entries */
602 natcasesort($tmp2);
603 $this->mimetypes=array();
604 foreach($tmp2 as $val){
605 $this->mimetypes[]=$tmp[$val];
606 }
607 reset ($this->mimetypes);
608 }
611 function remove_from_parent()
612 {
613 /* Optionally execute a command after we're done */
614 $this->postremove();
615 }
618 function copyPasteHandling_from_queue($s_action,$s_entry)
619 {
620 /* Check if Copy & Paste is disabled */
621 if(!is_object($this->CopyPasteHandler)){
622 return("");
623 }
625 $ui = get_userinfo();
627 /* Add a single entry to queue */
628 if($s_action == "cut" || $s_action == "copy"){
630 /* Cleanup object queue */
631 $this->CopyPasteHandler->cleanup_queue();
632 $dn = $this->mimetypes[$s_entry]['dn'];
633 if($s_action == "copy" && $ui->is_copyable($dn,"mimetypes","mimetype")){
634 $this->CopyPasteHandler->add_to_queue($dn,$s_action,"mimetabs","MIMETABS","mimetypes");
635 }
636 if($s_action == "cut" && $ui->is_cutable($dn,"mimetypes","mimetype")){
637 $this->CopyPasteHandler->add_to_queue($dn,$s_action,"mimetabs","MIMETABS","mimetypes");
638 }
639 }
641 /* Add entries to queue */
642 if($s_action == "copy_multiple" || $s_action == "cut_multiple"){
644 /* Cleanup object queue */
645 $this->CopyPasteHandler->cleanup_queue();
647 /* Add new entries to CP queue */
648 foreach($this->list_get_selected_items() as $id){
649 $dn = $this->mimetypes[$id]['dn'];
651 if($s_action == "copy_multiple" && $ui->is_copyable($dn,"mimetypes","mimetype")){
652 $this->CopyPasteHandler->add_to_queue($dn,"copy","mimetabs","MIMETABS","mimetypes");
653 }
654 if($s_action == "cut_multiple" && $ui->is_cutable($dn,"mimetypes","mimetype")){
655 $this->CopyPasteHandler->add_to_queue($dn,"cut","mimetabs","MIMETABS","mimetypes");
656 }
657 }
658 }
660 /* Start pasting entries */
661 if($s_action == "editPaste"){
662 $this->start_pasting_copied_objects = TRUE;
663 }
665 /* Return C&P dialog */
666 if($this->start_pasting_copied_objects && $this->CopyPasteHandler->entries_queued()){
668 /* Get dialog */
669 $this->CopyPasteHandler->SetVar("base",preg_replace("/^".normalizePreg(get_ou("mimetypeou"))."/","",$this->mime_base));
670 $this->CopyPasteHandler->SetVar("parent",$this);
671 $data = $this->CopyPasteHandler->execute();
673 /* Return dialog data */
674 if(!empty($data)){
675 return($data);
676 }
677 }
679 /* Automatically disable status for pasting */
680 if(!$this->CopyPasteHandler->entries_queued()){
681 $this->start_pasting_copied_objects = FALSE;
682 }
683 return("");
684 }
687 function list_get_selected_items()
688 {
689 $ids = array();
690 foreach($_POST as $name => $value){
691 if(preg_match("/^item_selected_[0-9]*$/",$name)){
692 $id = preg_replace("/^item_selected_/","",$name);
693 $ids[$id] = $id;
694 }
695 }
696 return($ids);
697 }
700 /* Save to LDAP */
701 function save()
702 {
703 /* Optionally execute a command after we're done */
704 $this->postcreate();
705 }
707 function remove_lock()
708 {
709 if (isset($this->mimetabs->dn)){
710 del_lock ($this->mimetabs->dn);
711 }
712 if(isset($this->dn) && !empty($this->dn) && $this->dn != "new"){
713 del_lock($this->dn);
714 }
715 if(isset($this->dns) && is_array($this->dns) && count($this->dns)){
716 del_lock($this->dns);
717 }
718 }
720 function save_object()
721 {
722 $this->DivListMimeTypes->save_object();
723 if(is_object($this->CopyPasteHandler)){
724 $this->CopyPasteHandler->save_object();
725 }
727 if($this->IsReleaseManagementActivated() && isset($_POST['mime_release'])){
728 $sel_rel = get_post('mime_release');
729 $releases = array_flip($this->getReleases());
730 if(isset($releases[$sel_rel])){
731 $this->mime_release = $releases[$sel_rel];
732 }
733 $mime_filter = session::get("mime_filter");
734 $mime_filter['mime_release'] = $this->mime_release;
735 session::set("mime_filter",$mime_filter);
736 }elseif(!$this->IsReleaseManagementActivated()){
737 $this->mime_base = get_ou("mimetypeou").$this->DivListMimeTypes->selectedBase;
738 $mime_filter = session::get("mime_filter");
739 $mime_filter['mime_base'] = $this->mime_base;
740 session::set("mime_filter",$mime_filter);
741 }
742 }
745 function check() {}
746 function adapt_from_template($dn, $skip= array()) {}
747 function password_change_needed() {}
748 }
749 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
750 ?>