710d4249e8e8d0ff2e9f9755b7f0db108cf97630
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 */
20 require "tabs_application.inc";
22 class applicationManagement extends plugin
23 {
24 /* Definitions */
25 var $plHeadline= "Applications";
26 var $plDescription= "This does something";
28 /* Dialog attributes */
29 var $apptabs= NULL;
30 var $applications= array();
31 var $ui= NULL;
32 var $acl= "";
34 var $CopyPasteHandler ;
36 var $Release = "";
37 var $Releases = array();
39 var $enableCopyPaste = false;
40 var $enableReleaseManagement = false;
43 function applicationManagement ($config, $ui)
44 {
45 /* Save configuration for internal use */
46 $this->config= $config;
47 $this->ui= $ui;
49 if( (isset($this->config->data['MAIN']['ENABLECOPYPASTE']))
50 &&
51 (preg_match("/true/i",$this->config->data['MAIN']['ENABLECOPYPASTE'] ))){
52 $this->enableCopyPaste = true;
53 }
55 $this->CopyPasteHandler = new CopyPasteHandler($this->config);
57 /* Check if we should enable the release selection */
58 $tmp = search_config($this->config->data,"faiManagement","CLASS");
59 if(!empty($tmp)){
60 $this->enableReleaseManagement = true;
61 }
63 /* Get global filter config */
64 if (!is_global("appfilter")){
65 $base= get_base_from_people($ui->dn);
67 $appfilter= array("depselect" => $base,
68 "regex" => "*" ,
69 "release" => "ou=apps,".$base);
71 register_global("appfilter", $appfilter);
72 }
74 $appfilter = get_global("appfilter");
75 $this->Releases = $this->getReleases($appfilter['depselect']);
76 $this->Release = $appfilter['release'];
77 }
79 function getReleases($base)
80 {
81 $dn = "ou=apps,".$base;
83 $ret = array();
85 $ret ["ou=apps,".$base] = "/";
87 $ldap = $this->config->get_ldap_link();
88 $ldap->cd($dn);
90 $ldap->search("objectClass=organizationalUnit",array("ou"));
92 while($attrs = $ldap->fetch()){
93 $str = str_replace($dn,"",$attrs['dn']);
94 $tmp = array_reverse( split("ou=",$str));
95 $str = "";
96 foreach($tmp as $val){
97 $val = trim(preg_replace("/,/","",$val));
98 if(empty($val)) break;
99 $str .= "/".$val;
100 }
101 if(!empty($str)){
102 $ret[$attrs['dn']]= preg_replace("/^\//","",$str);
103 }
104 }
105 return($ret);
106 }
108 function execute()
109 {
110 /* Call parent execute */
111 plugin::execute();
113 $_SESSION['LOCK_VARS_TO_USE'] = array("/^act$/","/^id$/","/^appl_edit_/","/^appl_del_/");
115 /* Save data */
116 $appfilter = get_global("appfilter");
117 $smarty = get_smarty(); // Smarty instance
118 $s_action = ""; // Contains the action to proceed
119 $s_entry = ""; // The value for s_action
120 $base_back = ""; // The Link for Backbutton
122 /* Start for New List Managment */
123 if(isset($_GET['act'])&&($_GET['act']=="dep_open")){
124 $s_action="open";
125 $s_entry = base64_decode($_GET['dep_id']);
126 $appfilter['depselect']= "".$this->config->departments[trim($s_entry)];
127 }
129 /* Get posted release */
130 if(isset($_POST['select_release'])){
131 $r = $_POST['select_release'];
132 if((isset($this->Releases[$r])) && ($this->Release != $r)){
133 $this->Release = $r;
134 $appfilter = get_global("appfilter");
135 $appfilter['release'] = $r;
136 register_global("appfilter",$appfilter);
137 }
138 }
140 /* Test Posts */
141 foreach($_POST as $key => $val){
142 // Post for delete
143 if(preg_match("/appl_del.*/",$key)){
144 $s_action = "del";
145 $s_entry = preg_replace("/appl_".$s_action."_/i","",$key);
146 // Post for edit
147 }elseif(preg_match("/appl_edit_.*/",$key)){
148 $s_action="edit";
149 $s_entry = preg_replace("/appl_".$s_action."_/i","",$key);
150 // Post for new
151 }elseif(preg_match("/^copy_.*/",$key)){
152 $s_action="copy";
153 $s_entry = preg_replace("/^copy_/i","",$key);
154 }elseif(preg_match("/^cut_.*/",$key)){
155 $s_action="cut";
156 $s_entry = preg_replace("/^cut_/i","",$key);
157 // Post for new
158 }elseif(preg_match("/^dep_back.*/i",$key)){
159 $s_action="back";
160 }elseif(preg_match("/^appl_new.*/",$key)){
161 $s_action="new";
162 }elseif(preg_match("/^dep_home.*/i",$key)){
163 $s_action="home";
164 }elseif(preg_match("/^dep_root.*/i",$key)){
165 $s_action="root";
166 }elseif(preg_match("/^editPaste.*/i",$key)){
167 $s_action="editPaste";
168 }
169 }
171 if((isset($_GET['act']))&&($_GET['act']=="edit_entry")){
172 $s_action ="edit";
173 $s_entry = $_GET['id'];
174 }
176 $s_entry = preg_replace("/_.$/","",$s_entry);
178 /* Department changed? */
179 if(isset($_POST['depselect']) && $_POST['depselect']){
180 $appfilter['depselect']= $_POST['depselect'];
181 }
183 /* Homebutton is posted */
184 if($s_action=="home"){
185 $appfilter['depselect']=(preg_replace("/^[^,]+,/","",$this->ui->dn));
186 $appfilter['depselect']=(preg_replace("/^[^,]+,/","",$appfilter['depselect']));
187 }
189 if($s_action=="root"){
190 $appfilter['depselect']=($this->config->current['BASE']);
191 }
193 /* If Backbutton is Posted */
194 if($s_action=="back"){
195 $base_back = preg_replace("/^[^,]+,/","",$appfilter['depselect']);
196 $base_back = convert_department_dn($base_back);
198 if(isset($this->config->departments[trim($base_back)])){
199 $appfilter['depselect']= $this->config->departments[trim($base_back)];
200 }else{
201 $appfilter['depselect']= $this->config->departments["/"];
202 }
203 }
205 if (isset($_POST['regex'])){
206 $appfilter['regex']= $_POST['regex'];
207 }
208 if (isset($_GET['search'])){
209 $s= mb_substr($_GET['search'], 0, 1, "UTF8")."*";
210 if ($s == "**"){
211 $s= "*";
212 }
213 $appfilter['regex']= $s;
214 }
216 $this->Releases = $this->getReleases($appfilter['depselect']);
217 if(!isset($this->Releases[$this->Release])){
218 $this->Release = key($this->Releases);
219 $appfilter['release'] = $this->Release;
220 register_global("appfilter",$appfilter);
221 }
223 register_global("appfilter", $appfilter);
225 /* Check sorting variable */
226 $this->reload();
227 $smarty= get_smarty();
229 /* Check for exeeded sizelimit */
230 if (($message= check_sizelimit()) != ""){
231 return($message);
232 }
235 /* Only perform copy / paste if it is enabled
236 */
237 if($this->enableCopyPaste){
239 /* Paste copied/cutted object in here
240 */
241 if(($s_action == "editPaste") || ($this->CopyPasteHandler->stillOpen())){
242 $this->CopyPasteHandler->save_object();
243 $this->CopyPasteHandler->SetVar("base",$appfilter['depselect']);
244 return($this->CopyPasteHandler->execute());
245 }
248 /* Copy current object to CopyHandler
249 */
250 if($s_action == "copy"){
251 $this->CopyPasteHandler->Clear();
252 $dn = $this->applications[$s_entry]['dn'];
253 $obj = new apptabs($this->config, $this->config->data['TABS']['APPSTABS'], $dn);
254 $objNew = new apptabs($this->config, $this->config->data['TABS']['APPSTABS'], "new");
255 $this->CopyPasteHandler->Copy($obj,$objNew);
256 }
259 /* Copy current object to CopyHandler
260 */
261 if($s_action == "cut"){
262 $this->CopyPasteHandler->Clear();
263 $dn = $this->applications[$s_entry]['dn'];
264 $obj = new apptabs($this->config, $this->config->data['TABS']['APPSTABS'], $dn);
265 $this->CopyPasteHandler->Cut($obj);
266 }
267 }
269 /* New application? */
270 if ($s_action=="new"){
272 /* By default we set 'dn' to 'new', all relevant plugins will
273 react on this. */
274 $this->dn= "new";
276 /* Create new usertab object */
277 $this->apptabs= new apptabs($this->config,
278 $this->config->data['TABS']['APPSTABS'], $this->dn);
279 $this->apptabs->set_acl(array(':all'));
280 }
282 /* Cancel dialogs */
283 if (isset($_POST['edit_cancel']) || isset($_POST['password_cancel'])){
284 del_lock ($this->apptabs->dn);
285 unset ($this->apptabs);
286 $this->apptabs= NULL;
287 unset ($_SESSION['objectinfo']);
288 }
290 /* Finish apps edit is triggered by the tabulator dialog, so
291 the user wants to save edited data. Check and save at this
292 point. */
293 if ((isset($_POST['edit_finish'])) && (isset($this->apptabs->config))){
295 /* Check tabs, will feed message array */
296 $this->apptabs->last= $this->apptabs->current;
297 $this->apptabs->save_object();
298 $message= $this->apptabs->check();
300 /* Save, or display error message? */
301 if (count($message) == 0){
303 /* Save data data to ldap */
304 $this->apptabs->save();
305 gosa_log ("Application object'".$this->dn."' has been saved");
307 /* Application has been saved successfully, remove lock from
308 LDAP. */
309 if ($this->dn != "new"){
310 del_lock ($this->dn);
311 }
313 /* There's no page reload so we have to read new apps at
314 this point. */
315 $this->reload ();
316 unset ($this->apptabs);
317 $this->apptabs= NULL;
318 unset ($_SESSION['objectinfo']);
319 } else {
320 /* Ok. There seem to be errors regarding to the tab data,
321 show message and continue as usual. */
322 show_errors($message);
323 }
324 }
326 /* User wants to edit data? */
327 if (($s_action=="edit") && (!isset($this->apptabs->config))){
329 /* Get 'dn' from posted 'applist', must be unique */
330 $this->dn= $this->applications[$s_entry]['dn'];
332 /* Check locking, save current plugin in 'back_plugin', so
333 the dialog knows where to return. */
334 if (($user= get_lock($this->dn)) != ""){
335 return(gen_locked_message ($user, $this->dn));
336 }
338 /* Lock the current entry, so everyone will get the
339 above dialog */
340 add_lock ($this->dn, $this->ui->dn);
342 /* Set up the users ACL's for this 'dn' */
343 $acl= get_permissions ($this->dn, $this->ui->subtreeACL);
345 /* Register apptabs to trigger edit dialog */
346 $this->apptabs= new apptabs($this->config,
347 $this->config->data['TABS']['APPSTABS'], $this->dn);
348 $this->apptabs->set_acl($acl);
349 $_SESSION['objectinfo']= $this->dn;
350 }
352 /* Remove user was requested */
353 if ($s_action == "del"){
355 /* Get 'dn' from posted 'uid' */
356 $this->dn= $this->applications[$s_entry]['dn'];
358 /* Load permissions for selected 'dn' and check if
359 we're allowed to remove this 'dn' */
360 $acl= get_permissions ($this->dn, $this->ui->subtreeACL);
361 $this->acl= get_module_permission($acl, "application", $this->dn);
362 if (chkacl($this->acl, "delete") == ""){
364 /* Check locking, save current plugin in 'back_plugin', so
365 the dialog knows where to return. */
366 if (($user= get_lock($this->dn)) != ""){
367 return (gen_locked_message ($user, $this->dn));
368 }
370 /* Lock the current entry, so nobody will edit it during deletion */
371 add_lock ($this->dn, $this->ui->dn);
372 $smarty= get_smarty();
373 $smarty->assign("intro", sprintf(_("You're about to delete the application '%s'."), LDAP::fix($this->dn)));
374 return($smarty->fetch (get_template_path('remove.tpl', TRUE)));
375 } else {
377 /* Obviously the user isn't allowed to delete. Show message and
378 clean session. */
379 print_red (_("You are not allowed to delete this application!"));
380 }
381 }
383 /* Confirmation for deletion has been passed. Group should be deleted. */
384 if (isset($_POST['delete_app_confirm'])){
386 /* Some nice guy may send this as POST, so we've to check
387 for the permissions again. */
388 if (chkacl($this->acl, "delete") == ""){
390 /* Delete request is permitted, perform LDAP action */
391 $this->apptabs= new apptabs($this->config,
392 $this->config->data['TABS']['APPSTABS'], $this->dn);
393 $this->apptabs->set_acl(array($this->acl));
394 $this->apptabs->delete ();
395 gosa_log ("Application object'".$this->dn."' has been removed");
396 unset ($this->apptabs);
397 $this->apptabs= NULL;
399 /* Group list has changed, reload it. */
400 $this->reload ();
401 } else {
403 /* Normally this shouldn't be reached, send some extra
404 logs to notify the administrator */
405 print_red (_("You are not allowed to delete this application!"));
406 gosa_log ("Warning: '".$this->ui->uid."' tried to trick group deletion.");
407 }
409 /* Remove lock file after successfull deletion */
410 del_lock ($this->dn);
411 }
414 /* Delete application canceled? */
415 if (isset($_POST['delete_cancel'])){
416 del_lock ($this->dn);
417 unset($_SESSION['objectinfo']);
418 }
420 /* Show tab dialog if object is present */
421 if (($this->apptabs) && (isset($this->apptabs->config))){
422 $display= $this->apptabs->execute();
424 /* Don't show buttons if tab dialog requests this */
425 if (!$this->apptabs->by_object[$this->apptabs->current]->dialog){
426 $display.= "<p style=\"text-align:right\">\n";
427 $display.= "<input type=\"submit\" name=\"edit_finish\" value=\""._("Finish")."\">\n";
428 $display.= " \n";
429 $display.= "<input type=\"submit\" name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
430 $display.= "</p>";
431 }
432 return ($display);
433 }
435 /* Show main page */
437 /* Prepare departments */
438 $options= "";
439 foreach ($this->config->idepartments as $key => $value){
440 if ($appfilter['depselect'] == $key){
441 $options.= "<option selected='selected' value='$key'>$value</option>";
442 } else {
443 $options.= "<option value='$key'>$value</option>";
444 }
445 }
447 if($this->enableCopyPaste){
448 $Copy_Paste = " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ";
450 if($this->CopyPasteHandler->isCurrentObjectPastAble()){
452 if($this->CopyPasteHandler->isCurrentCutted()){
453 $img = "images/cutpaste.png";
454 }else{
455 $img = "images/copypaste.png";
456 }
458 $Copy_Paste .= "<input type='image' name='editPaste' class='center'
459 src='".$img."' alt='"._("Paste")."' title='".$this->CopyPasteHandler->GetCurrentDn()."'> ";
460 }else{
461 $Copy_Paste .= "<img class='center' src='images/cant_editpaste.png' alt='"._("Can't paste")."'> ";
462 }
463 }else{
464 $Copy_Paste ="";
465 }
467 // Managment
468 $listhead = "<div style='background:#F0F0F9;padding:5px;'>".
469 " <input class='center' type='image' align='middle' src='images/list_back.png' title='"._("Go up one department")."' alt='"._("Up")."' name='dep_back'> ".
470 " <input class='center' type='image' src='images/list_root.png' align='middle' title='"._("Go to root department")."' name='dep_root' alt='"._("Root")."'> ".
471 " <input class='center' type='image' align='middle' src='images/list_home.png' title='"._("Go to users department")."' alt='"._("Home")."' name='dep_home'> ".
472 " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ".
473 " <input class='center' type='image' align='middle' src='images/list_new_app.png' alt='"._("new")."' title='"._("Create new application")."' name='appl_new'> ".
474 $Copy_Paste.
475 " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ".
476 _("Base")." <select name='depselect' onChange='mainform.submit()' class='center'>$options</select>".
477 " <input class='center' type='image' src='images/list_submit.png' align='middle' title='"._("Submit department")."' name='submit_department' alt='"._("Submit")."'> ".
478 "</div>";
482 if($this->enableCopyPaste){
483 $actions = "<input class='center' type='image'
484 src='images/editcut.png' alt='"._("cut")."' name='cut_%KEY%' title='"._("Cut this entry")."'> ";
485 $actions.= "<input class='center' type='image'
486 src='images/editcopy.png' alt='"._("copy")."' name='copy_%KEY%' title='"._("Copy this entry")."'> ";
487 $actions.= "<input class='center' type='image'
488 src='images/edit.png' alt='"._("edit")."' name='appl_edit_%KEY%' title='"._("Edit this entry")."'>";
489 $actions.= "<input class='center' type='image'
490 src='images/edittrash.png' alt='"._("delete")."' name='appl_del_%KEY%' title='"._("Delete this entry")."'>";
491 }else{
493 $actions = "<input class='center' type='image'
494 src='images/edit.png' alt='"._("edit")."' name='appl_edit_%KEY%' title='"._("Edit this entry")."'>";
495 $actions.= "<input class='center' type='image'
496 src='images/edittrash.png' alt='"._("delete")."' name='appl_del_%KEY%' title='"._("Delete this entry")."'>";
497 }
500 // Defining Links
501 $linkopen = "<a href='?plug=".$_GET['plug']."&act=dep_open&dep_id=%s'>%s</a>";
503 // image Buttons
504 $editlink = "<a href='?plug=".$_GET['plug']."&id=%s&act=edit_entry'>%s</a>";
505 $userimg = "<img class='center' src='images/select_groups.png' alt='User' title='%s'>";
507 // Extension images
508 $applimg = "<img class='center' src='images/select_application.png' alt='A' title='"._("Application")."'>";
510 // Space
511 $empty = "<img class='center' src='images/empty.png' style='width:16px;height:16px;' alt=''>";
514 $divlist = new divlist("applicationtabs");
515 $divlist->SetHeader(array(
516 array("string" => " ", "attach" => "style='text-align:center;width:20px;'"),
517 array("string" => _("Application name")." / "._("Department"), "attach" => "style=''"),
518 array("string" => _("Actions"), "attach" => "style='width:80px;border-right:0px;text-align:right;'")
519 ));
522 $divlist->SetSummary(_("This table displays all groups, in the selected tree."));
523 $divlist->SetEntriesPerPage(0);
525 foreach($this->departments as $key=> $val){
527 if(!isset($this->config->departments[trim($key)])){
528 $this->config->departments[trim($key)]="";
529 }
531 $non_empty="";
532 $keys= str_replace("/","\/",$key);
533 foreach($this->config->departments as $keyd=>$vald ){
534 if(preg_match("/".$keys."\/.*/",$keyd)){
535 $non_empty="full";
536 }
537 }
539 $field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='department'>", "attach" => "style='text-align:center;width:20px;'");
540 $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style=''");
541 $field3 = array("string" => " ", "attach" => "style='width:80px;border-right:0px;text-align:right;'");
543 $divlist->AddEntry(array($field1,$field2,$field3));
544 }
546 foreach($this->applications as $key => $val){
547 $title = "title='dn : ".$val['dn']."'";
549 if(!isset($val['description'][0])){
550 $desc = "";
551 }else{
552 $desc = " - [ ".$val['description'][0]." ]";
553 }
554 $field1 = array("string" => sprintf($applimg,$val['dn']), "attach" => "style='text-align:center;width:20px;'");
555 $field2 = array("string" => sprintf($editlink,$key,($val['cn']['0'].$desc)), "attach" => "style='' ".$title);
556 $field3 = array("string" => preg_replace("/%KEY%/", $key, $actions), "attach" => "style='width:80px;border-right:0px;text-align:right;'");
558 $divlist->AddEntry(array($field1,$field2,$field3));
559 }
561 $smarty->assign("applicationshead", $listhead);
562 $smarty->assign("applications", $divlist->DrawList());
563 $smarty->assign("search_image", get_template_path('images/search.png'));
564 $smarty->assign("tree_image", get_template_path('images/tree.png'));
565 $smarty->assign("infoimage", get_template_path('images/info.png'));
566 $smarty->assign("launchimage", get_template_path('images/launch.png'));
567 $smarty->assign("releaseimage" , get_template_path('images/branch.png'));
568 $smarty->assign("deplist", $this->config->idepartments);
569 $smarty->assign("regex", $appfilter['regex']);
571 if($this->enableReleaseManagement){
572 $smarty->assign("releases", $this->Releases );
573 $smarty->assign("releaseKeys", array_flip($this->Releases));
574 $smarty->assign("select_release",$this->Release);
575 }
577 $smarty->assign("enableReleaseManagement",$this->enableReleaseManagement);
579 /* Extend if we are not using javascript */
580 $smarty->assign("apply", apply_filter());
581 $smarty->assign("alphabet", generate_alphabet());
582 $smarty->assign("hint", print_sizelimit_warning());
584 return($smarty->fetch(get_template_path('headpage.tpl', TRUE)));
585 }
588 function reload()
589 {
590 /* Get config */
591 $appfilter= get_global('appfilter');
593 /* Set base for all searches */
594 $base= $this->Release;
596 /* Regex filter? */
597 if ($appfilter['regex'] != ""){
598 $regex= $appfilter['regex'];
599 } else {
600 $regex= "*";
601 }
603 /* Generate application list */
604 $res= get_list($this->ui->subtreeACL, "(&(cn=$regex)(objectClass=gosaApplication))", FALSE, $base, array("*"), FALSE);
605 $this->applications= array();
606 foreach ($res as $value){
607 $this->applications[]= $value;
608 }
609 reset ($this->applications);
613 /* NEW LIST MANAGMENT
614 * We also need to search for the departments
615 * So we are able to navigate like in konquerer
616 */
617 $peopleOU = get_people_ou();
619 $base2 = $appfilter['depselect'];
621 $res3 = get_list2($this->ui->subtreeACL, "(&(|(ou=$regex)(description=$regex))(objectClass=gosaDepartment))",
622 TRUE, $base2, array("ou", "description"), TRUE);
624 $this->departments= array();
625 $tmp = array();
626 foreach ($res3 as $value){
627 $tmp[strtolower($value['dn']).$value['dn']]=$value;
628 }
629 ksort($tmp);
630 foreach($tmp as $value){
631 if(isset($value["description"][0])){
632 $this->departments[$value['dn']]=convert_department_dn2($value['dn'])." - [".$value["description"][0]."]";
633 }else{
634 $this->departments[$value['dn']]=convert_department_dn2($value['dn']);//$value["description"][0];
635 }
636 }
639 /* END NEW LIST MANAGMENT
640 */
642 $tmp=array();
643 foreach($this->applications as $tkey => $val ){
644 $tmp[strtolower($val['cn'][0]).$val['cn'][0]]=$val;
645 }
646 ksort($tmp);
647 $this->applications=array();
648 foreach($tmp as $val){
649 $this->applications[]=$val;
650 }
651 reset ($this->applications);
654 }
656 function remove_from_parent()
657 {
658 /* Optionally execute a command after we're done */
659 $this->postremove();
660 }
663 /* Save data to object */
664 function save_object()
665 {
666 }
669 /* Check values */
670 function check()
671 {
672 }
675 /* Save to LDAP */
676 function save()
677 {
678 /* Optionally execute a command after we're done */
679 $this->postcreate();
680 }
682 function adapt_from_template($dn)
683 {
684 }
686 function password_change_needed()
687 {
688 }
690 function show_header($button_text, $text, $disabled= FALSE)
691 {
692 }
694 function remove_lock()
695 {
696 if (isset($this->apptabs->dn)){
697 del_lock ($this->apptabs->dn);
698 }
699 }
701 }
702 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
703 ?>