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
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 set_object_info();
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 set_object_info();
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,TRUE));
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 set_object_info($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 set_object_info();
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(($this->apptabs instanceOf tabs || $this->apptabs instanceOf plugin) && $this->apptabs->read_only == TRUE){
515 $display.= "<p style=\"text-align:right\">
516 <input type=submit name=\"edit_cancel\" value=\"".msgPool::cancelButton()."\">
517 </p>";
518 }elseif(isset($this->apptabs->FAIstate) && !preg_match("/freeze/i",$this->apptabs->FAIstate)){
519 $display.= "<input type=\"submit\" name=\"edit_finish\" style=\"width:80px\" value=\"".msgPool::okButton()."\">\n";
520 $display.= " \n";
521 if ($this->dn != "new"){
522 $display.= "<input type=submit name=\"edit_apply\" value=\"".msgPool::applyButton()."\">\n";
523 $display.= " \n";
524 }
525 }
526 $display.= "<input type=\"submit\" name=\"edit_cancel\" value=\"".msgPool::cancelButton()."\">\n";
527 $display.= "</p>";
528 }
529 return ($display);
530 }
533 /****************
534 Dialog display
535 ****************/
537 /* Check if there is a snapshot dialog open */
538 if($this->IsReleaseManagementActivated()){
539 $base = $this->app_release;
540 }else{
541 $base = $this->app_base;
542 }
543 if($str = $this->showSnapshotDialog($base,$this->get_used_snapshot_bases(),$this)){
544 return($str);
545 }
547 /* Display dialog with system list */
548 $this->DivListApplication->parent = $this;
549 $this->DivListApplication->execute();
550 if(!$this->IsReleaseManagementActivated()){
551 $this->DivListApplication->AddDepartments($this->DivListApplication->selectedBase,3,1);
552 }
553 $this->reload();
554 $this->DivListApplication->setEntries($this->applications);
555 return($this->DivListApplication->Draw());
556 }
559 /* Return departments, that will be included within snapshot detection */
560 function get_used_snapshot_bases()
561 {
562 if($this->IsReleaseManagementActivated()){
563 return(array($this->app_release));
564 }else{
565 return(array($this->app_base));
566 }
567 }
570 function reload()
571 {
572 $this->applications= array();
574 /* Set base for all searches */
575 $Regex = $this->DivListApplication->Regex;
576 $SubSearch = $this->DivListApplication->SubSearch;
577 $Flags = GL_NONE | GL_SIZELIMIT;
578 $Filter = "(&(cn=".$Regex.")(objectClass=gosaApplication))";
579 $tmp = array();
581 if(!$this->IsReleaseManagementActivated()){
582 $use_base = $this->app_base;
583 if($SubSearch){
584 $use_base = preg_replace("/^".preg_quote(get_ou("applicationRDN"), '/')."/","",$use_base);
585 }
586 }else{
587 $use_base = $this->app_release;
588 $SubSearch= FALSE;
589 }
591 /* Add FAIstate to the search attributes */
592 $search_attrs = array("cn","description","dn","objectClass");
593 if($this->IsReleaseManagementActivated()) {
594 $search_attrs[] = "FAIstate";
595 }
597 if($SubSearch){
598 $res= get_sub_list($Filter, "application",get_ou("applicationRDN"), $use_base, $search_attrs, $Flags);
599 }else{
600 $res= get_list($Filter, "application",$use_base, $search_attrs, $Flags);
601 }
602 $tmp2 = array();
603 foreach ($res as $val){
604 if(!isset($val['FAIstate'])){
605 $val['FAIstate'][0] = "";
606 }
607 $tmp[strtolower($val['cn'][0]).$val['cn'][0].$val['dn']]=$val;
608 $tmp2[strtolower($val['cn'][0]).$val['cn'][0].$val['dn']] = strtolower($val['cn'][0]).$val['cn'][0].$val['dn'];
609 }
611 natcasesort($tmp2);
612 $this->applications=array();
613 foreach($tmp2 as $val){
614 $this->applications[]=$tmp[$val];
615 }
616 reset ($this->applications);
617 }
619 function remove_from_parent()
620 {
621 /* Optionally execute a command after we're done */
622 $this->postremove();
623 }
626 function copyPasteHandling_from_queue($s_action,$s_entry)
627 {
628 /* Check if Copy & Paste is disabled */
629 if(!is_object($this->CopyPasteHandler)){
630 return("");
631 }
633 $ui = get_userinfo();
635 /* Add a single entry to queue */
636 if($s_action == "cut" || $s_action == "copy"){
638 /* Cleanup object queue */
639 $this->CopyPasteHandler->cleanup_queue();
640 $dn = $this->applications[$s_entry]['dn'];
641 if($s_action == "copy" && $ui->is_copyable($dn,"application","application")){
642 $this->CopyPasteHandler->add_to_queue($dn,$s_action,"apptabs","APPSTABS","application");
643 }
644 if($s_action == "cut" && $ui->is_cutable($dn,"application","application")){
645 $this->CopyPasteHandler->add_to_queue($dn,$s_action,"apptabs","APPSTABS","application");
646 }
647 }
650 /* Add entries to queue */
651 if($s_action == "copy_multiple" || $s_action == "cut_multiple"){
653 /* Cleanup object queue */
654 $this->CopyPasteHandler->cleanup_queue();
656 /* Add new entries to CP queue */
657 foreach($this->list_get_selected_items() as $id){
658 $dn = $this->applications[$id]['dn'];
660 if($s_action == "copy_multiple" && $ui->is_copyable($dn,"application","application")){
661 $this->CopyPasteHandler->add_to_queue($dn,"copy","apptabs","APPSTABS","application");
662 }
663 if($s_action == "cut_multiple" && $ui->is_cutable($dn,"application","application")){
664 $this->CopyPasteHandler->add_to_queue($dn,"cut","apptabs","APPSTABS","application");
665 }
666 }
667 }
669 /* Start pasting entries */
670 if($s_action == "editPaste"){
671 $this->start_pasting_copied_objects = TRUE;
672 }
675 /* Return C&P dialog */
676 if($this->start_pasting_copied_objects && $this->CopyPasteHandler->entries_queued()){
679 /* Get dialog */
680 $this->CopyPasteHandler->SetVar("base",$this->app_base);
681 $this->CopyPasteHandler->SetVar("parent",$this);
682 $data = $this->CopyPasteHandler->execute();
684 /* Return dialog data */
685 if(!empty($data)){
686 return($data);
687 }
688 }
690 /* Automatically disable status for pasting */
691 if(!$this->CopyPasteHandler->entries_queued()){
692 $this->start_pasting_copied_objects = FALSE;
693 }
694 return("");
695 }
698 function list_get_selected_items()
699 {
700 $ids = array();
701 foreach($_POST as $name => $value){
702 if(preg_match("/^item_selected_[0-9]*$/",$name)){
703 $id = preg_replace("/^item_selected_/","",$name);
704 $ids[$id] = $id;
705 }
706 }
707 return($ids);
708 }
711 /* Save to LDAP */
712 function save()
713 {
714 /* Optionally execute a command after we're done */
715 $this->postcreate();
716 }
719 function remove_lock()
720 {
721 if (isset($this->apptabs->dn)){
722 del_lock ($this->apptabs->dn);
723 }elseif(isset($this->dn) && !empty($this->dn) && $this->dn != "new"){
724 del_lock($this->dn);
725 }
726 if(isset($this->dns) && is_array($this->dns) && count($this->dns)){
727 del_lock($this->dns);
728 }
729 }
732 function save_object()
733 {
734 $this->DivListApplication->save_object();
735 if(is_object($this->CopyPasteHandler)){
736 $this->CopyPasteHandler->save_object();
737 }
739 if($this->IsReleaseManagementActivated() && isset($_POST['app_release'])){
740 $sel_rel = get_post('app_release');
741 $releases = array_flip($this->getReleases());
742 if(isset($releases[$sel_rel])){
743 $this->app_release = $releases[$sel_rel];
744 }
745 $app_filter = session::get("app_filter");
746 $app_filter['app_release'] = $this->app_release;
747 session::set("app_filter",$app_filter);
748 }elseif(!$this->IsReleaseManagementActivated()){
749 $this->app_base = get_ou("applicationRDN").$this->DivListApplication->selectedBase;
750 $app_filter = session::get("app_filter");
751 $app_filter['app_base'] = $this->app_base;
752 session::set("app_filter",$app_filter);
753 }
754 }
756 function check() {}
757 function adapt_from_template($dn, $skip= array()) {}
758 function password_change_needed() {}
759 }
760 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
761 ?>