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 asort($this->Releases);
77 $this->Release = $appfilter['release'];
78 }
80 function getReleases($base)
81 {
82 $dn = "ou=apps,".$base;
84 $ret = array();
86 $ret ["ou=apps,".$base] = "/";
88 $ldap = $this->config->get_ldap_link();
89 $ldap->cd($dn);
91 $ldap->search("objectClass=organizationalUnit",array("ou"));
93 while($attrs = $ldap->fetch()){
94 $str = str_replace($dn,"",$attrs['dn']);
95 $tmp = array_reverse( split("ou=",$str));
96 $str = "";
97 foreach($tmp as $val){
98 $val = trim(preg_replace("/,/","",$val));
99 if(empty($val)) break;
100 $str .= "/".$val;
101 }
102 if(!empty($str)){
103 $ret[$attrs['dn']]= preg_replace("/^\//","",$str);
104 }
105 }
106 return($ret);
107 }
109 function execute()
110 {
111 /* Call parent execute */
112 plugin::execute();
114 $_SESSION['LOCK_VARS_TO_USE'] = array("/^act$/","/^id$/","/^appl_edit_/","/^appl_del_/");
116 /* Save data */
117 $appfilter = get_global("appfilter");
118 $smarty = get_smarty(); // Smarty instance
119 $s_action = ""; // Contains the action to proceed
120 $s_entry = ""; // The value for s_action
121 $base_back = ""; // The Link for Backbutton
123 /* Start for New List Managment */
124 if(isset($_GET['act'])&&($_GET['act']=="dep_open")){
125 $s_action="open";
126 $s_entry = base64_decode($_GET['dep_id']);
127 $appfilter['depselect']= "".$this->config->departments[trim($s_entry)];
128 }
130 /* Get posted release */
131 if(isset($_POST['select_release'])){
132 $r = $_POST['select_release'];
133 if((isset($this->Releases[$r])) && ($this->Release != $r)){
134 $this->Release = $r;
135 $appfilter = get_global("appfilter");
136 $appfilter['release'] = $r;
137 register_global("appfilter",$appfilter);
138 }
139 }
141 /* Test Posts */
142 foreach($_POST as $key => $val){
143 // Post for delete
144 if(preg_match("/appl_del.*/",$key)){
145 $s_action = "del";
146 $s_entry = preg_replace("/appl_".$s_action."_/i","",$key);
147 // Post for edit
148 }elseif(preg_match("/appl_edit_.*/",$key)){
149 $s_action="edit";
150 $s_entry = preg_replace("/appl_".$s_action."_/i","",$key);
151 // Post for new
152 }elseif(preg_match("/^copy_.*/",$key)){
153 $s_action="copy";
154 $s_entry = preg_replace("/^copy_/i","",$key);
155 }elseif(preg_match("/^cut_.*/",$key)){
156 $s_action="cut";
157 $s_entry = preg_replace("/^cut_/i","",$key);
158 // Post for new
159 }elseif(preg_match("/^dep_back.*/i",$key)){
160 $s_action="back";
161 }elseif(preg_match("/^appl_new.*/",$key)){
162 $s_action="new";
163 }elseif(preg_match("/^dep_home.*/i",$key)){
164 $s_action="home";
165 }elseif(preg_match("/^dep_root.*/i",$key)){
166 $s_action="root";
167 }elseif(preg_match("/^editPaste.*/i",$key)){
168 $s_action="editPaste";
169 }
170 }
172 if((isset($_GET['act']))&&($_GET['act']=="edit_entry")){
173 $s_action ="edit";
174 $s_entry = $_GET['id'];
175 }
177 $s_entry = preg_replace("/_.$/","",$s_entry);
179 /* Department changed? */
180 if(isset($_POST['depselect']) && $_POST['depselect']){
181 $appfilter['depselect']= $_POST['depselect'];
182 }
184 /* Homebutton is posted */
185 if($s_action=="home"){
186 $appfilter['depselect']=(preg_replace("/^[^,]+,/","",$this->ui->dn));
187 $appfilter['depselect']=(preg_replace("/^[^,]+,/","",$appfilter['depselect']));
188 }
190 if($s_action=="root"){
191 $appfilter['depselect']=($this->config->current['BASE']);
192 }
194 /* If Backbutton is Posted */
195 if($s_action=="back"){
196 $base_back = preg_replace("/^[^,]+,/","",$appfilter['depselect']);
197 $base_back = convert_department_dn($base_back);
199 if(isset($this->config->departments[trim($base_back)])){
200 $appfilter['depselect']= $this->config->departments[trim($base_back)];
201 }else{
202 $appfilter['depselect']= $this->config->departments["/"];
203 }
204 }
206 if (isset($_POST['regex'])){
207 $appfilter['regex']= $_POST['regex'];
208 }
209 if (isset($_GET['search'])){
210 $s= mb_substr($_GET['search'], 0, 1, "UTF8")."*";
211 if ($s == "**"){
212 $s= "*";
213 }
214 $appfilter['regex']= $s;
215 }
217 $this->Releases = $this->getReleases($appfilter['depselect']);
218 asort($this->Releases);
219 if(!isset($this->Releases[$this->Release])){
220 $this->Release = key($this->Releases);
221 $appfilter['release'] = $this->Release;
222 register_global("appfilter",$appfilter);
223 }
225 register_global("appfilter", $appfilter);
227 /* Check sorting variable */
228 $this->reload();
229 $smarty= get_smarty();
231 /* Check for exeeded sizelimit */
232 if (($message= check_sizelimit()) != ""){
233 return($message);
234 }
237 /* Only perform copy / paste if it is enabled
238 */
239 if($this->enableCopyPaste){
241 /* Paste copied/cutted object in here
242 */
243 if(($s_action == "editPaste") || ($this->CopyPasteHandler->stillOpen())){
244 $this->CopyPasteHandler->save_object();
245 $this->CopyPasteHandler->SetVar("base",$appfilter['depselect']);
246 return($this->CopyPasteHandler->execute());
247 }
250 /* Copy current object to CopyHandler
251 */
252 if($s_action == "copy"){
253 $this->CopyPasteHandler->Clear();
254 $dn = $this->applications[$s_entry]['dn'];
255 $obj = new apptabs($this->config, $this->config->data['TABS']['APPSTABS'], $dn);
256 $objNew = new apptabs($this->config, $this->config->data['TABS']['APPSTABS'], "new");
257 $this->CopyPasteHandler->Copy($obj,$objNew);
258 }
261 /* Copy current object to CopyHandler
262 */
263 if($s_action == "cut"){
264 $this->CopyPasteHandler->Clear();
265 $dn = $this->applications[$s_entry]['dn'];
266 $obj = new apptabs($this->config, $this->config->data['TABS']['APPSTABS'], $dn);
267 $this->CopyPasteHandler->Cut($obj);
268 }
269 }
271 /* New application? */
272 if ($s_action=="new"){
274 /* By default we set 'dn' to 'new', all relevant plugins will
275 react on this. */
276 $this->dn= "new";
278 /* Create new usertab object */
279 $this->apptabs= new apptabs($this->config,
280 $this->config->data['TABS']['APPSTABS'], $this->dn);
281 $this->apptabs->set_acl(array(':all'));
282 }
284 /* Cancel dialogs */
285 if (isset($_POST['edit_cancel']) || isset($_POST['password_cancel'])){
286 del_lock ($this->apptabs->dn);
287 unset ($this->apptabs);
288 $this->apptabs= NULL;
289 unset ($_SESSION['objectinfo']);
290 }
292 /* Finish apps edit is triggered by the tabulator dialog, so
293 the user wants to save edited data. Check and save at this
294 point. */
295 if ((isset($_POST['edit_finish'])) && (isset($this->apptabs->config))){
297 /* Check tabs, will feed message array */
298 $this->apptabs->last= $this->apptabs->current;
299 $this->apptabs->save_object();
300 $message= $this->apptabs->check();
302 /* Save, or display error message? */
303 if (count($message) == 0){
305 /* Save data data to ldap */
306 $this->apptabs->set_release($this->Release);
307 $this->apptabs->save();
308 gosa_log ("Application object'".$this->dn."' has been saved");
310 /* Application has been saved successfully, remove lock from
311 LDAP. */
312 if ($this->dn != "new"){
313 del_lock ($this->dn);
314 }
316 /* There's no page reload so we have to read new apps at
317 this point. */
318 $this->reload ();
319 unset ($this->apptabs);
320 $this->apptabs= NULL;
321 unset ($_SESSION['objectinfo']);
322 } else {
323 /* Ok. There seem to be errors regarding to the tab data,
324 show message and continue as usual. */
325 show_errors($message);
326 }
327 }
329 /* User wants to edit data? */
330 if (($s_action=="edit") && (!isset($this->apptabs->config))){
332 /* Get 'dn' from posted 'applist', must be unique */
333 $this->dn= $this->applications[$s_entry]['dn'];
335 /* Check locking, save current plugin in 'back_plugin', so
336 the dialog knows where to return. */
337 if (($user= get_lock($this->dn)) != ""){
338 return(gen_locked_message ($user, $this->dn));
339 }
341 /* Lock the current entry, so everyone will get the
342 above dialog */
343 add_lock ($this->dn, $this->ui->dn);
345 /* Set up the users ACL's for this 'dn' */
346 $acl= get_permissions ($this->dn, $this->ui->subtreeACL);
348 /* Register apptabs to trigger edit dialog */
349 $this->apptabs= new apptabs($this->config,
350 $this->config->data['TABS']['APPSTABS'], $this->dn);
351 $this->apptabs->set_acl($acl);
352 $_SESSION['objectinfo']= $this->dn;
353 }
355 /* Remove user was requested */
356 if ($s_action == "del"){
358 /* Get 'dn' from posted 'uid' */
359 $this->dn= $this->applications[$s_entry]['dn'];
361 /* Load permissions for selected 'dn' and check if
362 we're allowed to remove this 'dn' */
363 $acl= get_permissions ($this->dn, $this->ui->subtreeACL);
364 $this->acl= get_module_permission($acl, "application", $this->dn);
365 if (chkacl($this->acl, "delete") == ""){
367 /* Check locking, save current plugin in 'back_plugin', so
368 the dialog knows where to return. */
369 if (($user= get_lock($this->dn)) != ""){
370 return (gen_locked_message ($user, $this->dn));
371 }
373 /* Lock the current entry, so nobody will edit it during deletion */
374 add_lock ($this->dn, $this->ui->dn);
375 $smarty= get_smarty();
376 $smarty->assign("intro", sprintf(_("You're about to delete the application '%s'."), LDAP::fix($this->dn)));
377 return($smarty->fetch (get_template_path('remove.tpl', TRUE)));
378 } else {
380 /* Obviously the user isn't allowed to delete. Show message and
381 clean session. */
382 print_red (_("You are not allowed to delete this application!"));
383 }
384 }
386 /* Confirmation for deletion has been passed. Group should be deleted. */
387 if (isset($_POST['delete_app_confirm'])){
389 /* Some nice guy may send this as POST, so we've to check
390 for the permissions again. */
391 if (chkacl($this->acl, "delete") == ""){
393 /* Delete request is permitted, perform LDAP action */
394 $this->apptabs= new apptabs($this->config,
395 $this->config->data['TABS']['APPSTABS'], $this->dn);
396 $this->apptabs->set_acl(array($this->acl));
397 $this->apptabs->delete ();
398 gosa_log ("Application object'".$this->dn."' has been removed");
399 unset ($this->apptabs);
400 $this->apptabs= NULL;
402 /* Group list has changed, reload it. */
403 $this->reload ();
404 } else {
406 /* Normally this shouldn't be reached, send some extra
407 logs to notify the administrator */
408 print_red (_("You are not allowed to delete this application!"));
409 gosa_log ("Warning: '".$this->ui->uid."' tried to trick group deletion.");
410 }
412 /* Remove lock file after successfull deletion */
413 del_lock ($this->dn);
414 }
417 /* Delete application canceled? */
418 if (isset($_POST['delete_cancel'])){
419 del_lock ($this->dn);
420 unset($_SESSION['objectinfo']);
421 }
423 /* Show tab dialog if object is present */
424 if (($this->apptabs) && (isset($this->apptabs->config))){
425 $display= $this->apptabs->execute();
427 /* Don't show buttons if tab dialog requests this */
428 if (!$this->apptabs->by_object[$this->apptabs->current]->dialog){
429 $display.= "<p style=\"text-align:right\">\n";
430 $display.= "<input type=\"submit\" name=\"edit_finish\" value=\""._("Finish")."\">\n";
431 $display.= " \n";
432 $display.= "<input type=\"submit\" name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
433 $display.= "</p>";
434 }
435 return ($display);
436 }
438 /* Show main page */
440 /* Prepare departments */
441 $options= "";
442 foreach ($this->config->idepartments as $key => $value){
443 if ($appfilter['depselect'] == $key){
444 $options.= "<option selected='selected' value='$key'>$value</option>";
445 } else {
446 $options.= "<option value='$key'>$value</option>";
447 }
448 }
450 if($this->enableCopyPaste){
451 $Copy_Paste = " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ";
453 if($this->CopyPasteHandler->isCurrentObjectPastAble()){
455 if($this->CopyPasteHandler->isCurrentCutted()){
456 $img = "images/cutpaste.png";
457 }else{
458 $img = "images/copypaste.png";
459 }
461 $Copy_Paste .= "<input type='image' name='editPaste' class='center'
462 src='".$img."' alt='"._("Paste")."' title='".$this->CopyPasteHandler->GetCurrentDn()."'> ";
463 }else{
464 $Copy_Paste .= "<img class='center' src='images/cant_editpaste.png' alt='"._("Can't paste")."'> ";
465 }
466 }else{
467 $Copy_Paste ="";
468 }
470 // Managment
471 $listhead = "<div style='background:#F0F0F9;padding:5px;'>".
472 " <input class='center' type='image' align='middle' src='images/list_back.png' title='"._("Go up one department")."' alt='"._("Up")."' name='dep_back'> ".
473 " <input class='center' type='image' src='images/list_root.png' align='middle' title='"._("Go to root department")."' name='dep_root' alt='"._("Root")."'> ".
474 " <input class='center' type='image' align='middle' src='images/list_home.png' title='"._("Go to users department")."' alt='"._("Home")."' name='dep_home'> ".
475 " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ".
476 " <input class='center' type='image' align='middle' src='images/list_new_app.png' alt='"._("new")."' title='"._("Create new application")."' name='appl_new'> ".
477 $Copy_Paste.
478 " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ".
479 _("Base")." <select name='depselect' onChange='mainform.submit()' class='center'>$options</select>".
480 " <input class='center' type='image' src='images/list_submit.png' align='middle' title='"._("Submit department")."' name='submit_department' alt='"._("Submit")."'> ".
481 "</div>";
485 if($this->enableCopyPaste){
486 $actions = "<input class='center' type='image'
487 src='images/editcut.png' alt='"._("cut")."' name='cut_%KEY%' title='"._("Cut this entry")."'> ";
488 $actions.= "<input class='center' type='image'
489 src='images/editcopy.png' alt='"._("copy")."' name='copy_%KEY%' title='"._("Copy this entry")."'> ";
490 $actions.= "<input class='center' type='image'
491 src='images/edit.png' alt='"._("edit")."' name='appl_edit_%KEY%' title='"._("Edit this entry")."'>";
492 $actions.= "<input class='center' type='image'
493 src='images/edittrash.png' alt='"._("delete")."' name='appl_del_%KEY%' title='"._("Delete this entry")."'>";
494 }else{
496 $actions = "<input class='center' type='image'
497 src='images/edit.png' alt='"._("edit")."' name='appl_edit_%KEY%' title='"._("Edit this entry")."'>";
498 $actions.= "<input class='center' type='image'
499 src='images/edittrash.png' alt='"._("delete")."' name='appl_del_%KEY%' title='"._("Delete this entry")."'>";
500 }
503 // Defining Links
504 $linkopen = "<a href='?plug=".$_GET['plug']."&act=dep_open&dep_id=%s'>%s</a>";
506 // image Buttons
507 $editlink = "<a href='?plug=".$_GET['plug']."&id=%s&act=edit_entry'>%s</a>";
508 $userimg = "<img class='center' src='images/select_groups.png' alt='User' title='%s'>";
510 // Extension images
511 $applimg = "<img class='center' src='images/select_application.png' alt='A' title='"._("Application")."'>";
513 // Space
514 $empty = "<img class='center' src='images/empty.png' style='width:16px;height:16px;' alt=''>";
517 $divlist = new divlist("applicationtabs");
518 $divlist->SetHeader(array(
519 array("string" => " ", "attach" => "style='text-align:center;width:20px;'"),
520 array("string" => _("Application name")." / "._("Department"), "attach" => "style=''"),
521 array("string" => _("Actions"), "attach" => "style='width:80px;border-right:0px;text-align:right;'")
522 ));
525 $divlist->SetSummary(_("This table displays all groups, in the selected tree."));
526 $divlist->SetEntriesPerPage(0);
528 foreach($this->departments as $key=> $val){
530 if(!isset($this->config->departments[trim($key)])){
531 $this->config->departments[trim($key)]="";
532 }
534 $non_empty="";
535 $keys= str_replace("/","\/",$key);
536 foreach($this->config->departments as $keyd=>$vald ){
537 if(preg_match("/".$keys."\/.*/",$keyd)){
538 $non_empty="full";
539 }
540 }
542 $field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='department'>", "attach" => "style='text-align:center;width:20px;'");
543 $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style=''");
544 $field3 = array("string" => " ", "attach" => "style='width:80px;border-right:0px;text-align:right;'");
546 $divlist->AddEntry(array($field1,$field2,$field3));
547 }
549 foreach($this->applications as $key => $val){
550 $title = "title='dn : ".$val['dn']."'";
552 if(!isset($val['description'][0])){
553 $desc = "";
554 }else{
555 $desc = " - [ ".$val['description'][0]." ]";
556 }
557 $field1 = array("string" => sprintf($applimg,$val['dn']), "attach" => "style='text-align:center;width:20px;'");
558 $field2 = array("string" => sprintf($editlink,$key,($val['cn']['0'].$desc)), "attach" => "style='' ".$title);
559 $field3 = array("string" => preg_replace("/%KEY%/", $key, $actions), "attach" => "style='width:80px;border-right:0px;text-align:right;'");
561 $divlist->AddEntry(array($field1,$field2,$field3));
562 }
564 $smarty->assign("applicationshead", $listhead);
565 $smarty->assign("applications", $divlist->DrawList());
566 $smarty->assign("search_image", get_template_path('images/search.png'));
567 $smarty->assign("tree_image", get_template_path('images/tree.png'));
568 $smarty->assign("infoimage", get_template_path('images/info.png'));
569 $smarty->assign("launchimage", get_template_path('images/launch.png'));
570 $smarty->assign("releaseimage" , get_template_path('images/branch.png'));
571 $smarty->assign("deplist", $this->config->idepartments);
572 $smarty->assign("regex", $appfilter['regex']);
574 if($this->enableReleaseManagement){
575 $smarty->assign("releases", $this->Releases );
576 $smarty->assign("releaseKeys", array_flip($this->Releases));
577 $smarty->assign("select_release",$this->Release);
578 }
580 $smarty->assign("enableReleaseManagement",$this->enableReleaseManagement);
582 /* Extend if we are not using javascript */
583 $smarty->assign("apply", apply_filter());
584 $smarty->assign("alphabet", generate_alphabet());
585 $smarty->assign("hint", print_sizelimit_warning());
587 return($smarty->fetch(get_template_path('headpage.tpl', TRUE)));
588 }
591 function reload()
592 {
593 /* Get config */
594 $appfilter= get_global('appfilter');
596 /* Set base for all searches */
597 $base= $this->Release;
599 /* Regex filter? */
600 if ($appfilter['regex'] != ""){
601 $regex= $appfilter['regex'];
602 } else {
603 $regex= "*";
604 }
606 /* Generate application list */
607 $res= get_list($this->ui->subtreeACL, "(&(cn=$regex)(objectClass=gosaApplication))", FALSE, $base, array("*"), FALSE);
608 $this->applications= array();
609 foreach ($res as $value){
610 $this->applications[]= $value;
611 }
612 reset ($this->applications);
616 /* NEW LIST MANAGMENT
617 * We also need to search for the departments
618 * So we are able to navigate like in konquerer
619 */
620 $peopleOU = get_people_ou();
622 $base2 = $appfilter['depselect'];
624 $res3 = get_list2($this->ui->subtreeACL, "(&(|(ou=$regex)(description=$regex))(objectClass=gosaDepartment))",
625 TRUE, $base2, array("ou", "description"), TRUE);
627 $this->departments= array();
628 $tmp = array();
629 foreach ($res3 as $value){
630 $tmp[strtolower($value['dn']).$value['dn']]=$value;
631 }
632 ksort($tmp);
633 foreach($tmp as $value){
634 if(isset($value["description"][0])){
635 $this->departments[$value['dn']]=convert_department_dn2($value['dn'])." - [".$value["description"][0]."]";
636 }else{
637 $this->departments[$value['dn']]=convert_department_dn2($value['dn']);//$value["description"][0];
638 }
639 }
642 /* END NEW LIST MANAGMENT
643 */
645 $tmp=array();
646 foreach($this->applications as $tkey => $val ){
647 $tmp[strtolower($val['cn'][0]).$val['cn'][0]]=$val;
648 }
649 ksort($tmp);
650 $this->applications=array();
651 foreach($tmp as $val){
652 $this->applications[]=$val;
653 }
654 reset ($this->applications);
657 }
659 function remove_from_parent()
660 {
661 /* Optionally execute a command after we're done */
662 $this->postremove();
663 }
666 /* Save data to object */
667 function save_object()
668 {
669 }
672 /* Check values */
673 function check()
674 {
675 }
678 /* Save to LDAP */
679 function save()
680 {
681 /* Optionally execute a command after we're done */
682 $this->postcreate();
683 }
685 function adapt_from_template($dn)
686 {
687 }
689 function password_change_needed()
690 {
691 }
693 function show_header($button_text, $text, $disabled= FALSE)
694 {
695 }
697 function remove_lock()
698 {
699 if (isset($this->apptabs->dn)){
700 del_lock ($this->apptabs->dn);
701 }
702 }
704 }
705 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
706 ?>