2c668a8f8b765b0f22039bbdbfa61b55ecb08d46
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 $ret[$attrs['dn']]= $str;
102 }
103 return($ret);
104 }
106 function execute()
107 {
108 /* Call parent execute */
109 plugin::execute();
111 $_SESSION['LOCK_VARS_TO_USE'] = array("/^act$/","/^id$/","/^appl_edit_/","/^appl_del_/");
113 /* Save data */
114 $appfilter = get_global("appfilter");
115 $smarty = get_smarty(); // Smarty instance
116 $s_action = ""; // Contains the action to proceed
117 $s_entry = ""; // The value for s_action
118 $base_back = ""; // The Link for Backbutton
120 /* Start for New List Managment */
121 if(isset($_GET['act'])&&($_GET['act']=="dep_open")){
122 $s_action="open";
123 $s_entry = base64_decode($_GET['dep_id']);
124 $appfilter['depselect']= "".$this->config->departments[trim($s_entry)];
125 }
127 /* Get posted release */
128 if(isset($_POST['select_release'])){
129 $r = $_POST['select_release'];
130 if((isset($this->Releases[$r])) && ($this->Release != $r)){
131 $this->Release = $r;
132 $appfilter = get_global("appfilter");
133 $appfilter['release'] = $r;
134 register_global("appfilter",$appfilter);
135 }
136 }
138 /* Test Posts */
139 foreach($_POST as $key => $val){
140 // Post for delete
141 if(preg_match("/appl_del.*/",$key)){
142 $s_action = "del";
143 $s_entry = preg_replace("/appl_".$s_action."_/i","",$key);
144 // Post for edit
145 }elseif(preg_match("/appl_edit_.*/",$key)){
146 $s_action="edit";
147 $s_entry = preg_replace("/appl_".$s_action."_/i","",$key);
148 // Post for new
149 }elseif(preg_match("/^copy_.*/",$key)){
150 $s_action="copy";
151 $s_entry = preg_replace("/^copy_/i","",$key);
152 }elseif(preg_match("/^cut_.*/",$key)){
153 $s_action="cut";
154 $s_entry = preg_replace("/^cut_/i","",$key);
155 // Post for new
156 }elseif(preg_match("/^dep_back.*/i",$key)){
157 $s_action="back";
158 }elseif(preg_match("/^appl_new.*/",$key)){
159 $s_action="new";
160 }elseif(preg_match("/^dep_home.*/i",$key)){
161 $s_action="home";
162 }elseif(preg_match("/^dep_root.*/i",$key)){
163 $s_action="root";
164 }elseif(preg_match("/^editPaste.*/i",$key)){
165 $s_action="editPaste";
166 }
167 }
169 if((isset($_GET['act']))&&($_GET['act']=="edit_entry")){
170 $s_action ="edit";
171 $s_entry = $_GET['id'];
172 }
174 $s_entry = preg_replace("/_.$/","",$s_entry);
176 /* Department changed? */
177 if(isset($_POST['depselect']) && $_POST['depselect']){
178 $appfilter['depselect']= $_POST['depselect'];
179 }
181 /* Homebutton is posted */
182 if($s_action=="home"){
183 $appfilter['depselect']=(preg_replace("/^[^,]+,/","",$this->ui->dn));
184 $appfilter['depselect']=(preg_replace("/^[^,]+,/","",$appfilter['depselect']));
185 }
187 if($s_action=="root"){
188 $appfilter['depselect']=($this->config->current['BASE']);
189 }
191 /* If Backbutton is Posted */
192 if($s_action=="back"){
193 $base_back = preg_replace("/^[^,]+,/","",$appfilter['depselect']);
194 $base_back = convert_department_dn($base_back);
196 if(isset($this->config->departments[trim($base_back)])){
197 $appfilter['depselect']= $this->config->departments[trim($base_back)];
198 }else{
199 $appfilter['depselect']= $this->config->departments["/"];
200 }
201 }
203 if (isset($_POST['regex'])){
204 $appfilter['regex']= $_POST['regex'];
205 }
206 if (isset($_GET['search'])){
207 $s= mb_substr($_GET['search'], 0, 1, "UTF8")."*";
208 if ($s == "**"){
209 $s= "*";
210 }
211 $appfilter['regex']= $s;
212 }
214 $this->Releases = $this->getReleases($appfilter['depselect']);
215 if(!isset($this->Releases[$this->Release])){
216 $this->Release = key($this->Releases);
217 $appfilter['release'] = $this->Release;
218 register_global("appfilter",$appfilter);
219 }
221 register_global("appfilter", $appfilter);
223 /* Check sorting variable */
224 $this->reload();
225 $smarty= get_smarty();
227 /* Check for exeeded sizelimit */
228 if (($message= check_sizelimit()) != ""){
229 return($message);
230 }
233 /* Only perform copy / paste if it is enabled
234 */
235 if($this->enableCopyPaste){
237 /* Paste copied/cutted object in here
238 */
239 if(($s_action == "editPaste") || ($this->CopyPasteHandler->stillOpen())){
240 $this->CopyPasteHandler->save_object();
241 $this->CopyPasteHandler->SetVar("base",$appfilter['depselect']);
242 return($this->CopyPasteHandler->execute());
243 }
246 /* Copy current object to CopyHandler
247 */
248 if($s_action == "copy"){
249 $this->CopyPasteHandler->Clear();
250 $dn = $this->applications[$s_entry]['dn'];
251 $obj = new apptabs($this->config, $this->config->data['TABS']['APPSTABS'], $dn);
252 $objNew = new apptabs($this->config, $this->config->data['TABS']['APPSTABS'], "new");
253 $this->CopyPasteHandler->Copy($obj,$objNew);
254 }
257 /* Copy current object to CopyHandler
258 */
259 if($s_action == "cut"){
260 $this->CopyPasteHandler->Clear();
261 $dn = $this->applications[$s_entry]['dn'];
262 $obj = new apptabs($this->config, $this->config->data['TABS']['APPSTABS'], $dn);
263 $this->CopyPasteHandler->Cut($obj);
264 }
265 }
267 /* New application? */
268 if ($s_action=="new"){
270 /* By default we set 'dn' to 'new', all relevant plugins will
271 react on this. */
272 $this->dn= "new";
274 /* Create new usertab object */
275 $this->apptabs= new apptabs($this->config,
276 $this->config->data['TABS']['APPSTABS'], $this->dn);
277 $this->apptabs->set_acl(array(':all'));
278 }
280 /* Cancel dialogs */
281 if (isset($_POST['edit_cancel']) || isset($_POST['password_cancel'])){
282 del_lock ($this->apptabs->dn);
283 unset ($this->apptabs);
284 $this->apptabs= NULL;
285 unset ($_SESSION['objectinfo']);
286 }
288 /* Finish apps edit is triggered by the tabulator dialog, so
289 the user wants to save edited data. Check and save at this
290 point. */
291 if ((isset($_POST['edit_finish'])) && (isset($this->apptabs->config))){
293 /* Check tabs, will feed message array */
294 $this->apptabs->last= $this->apptabs->current;
295 $this->apptabs->save_object();
296 $message= $this->apptabs->check();
298 /* Save, or display error message? */
299 if (count($message) == 0){
301 /* Save data data to ldap */
302 $this->apptabs->save();
303 gosa_log ("Application object'".$this->dn."' has been saved");
305 /* Application has been saved successfully, remove lock from
306 LDAP. */
307 if ($this->dn != "new"){
308 del_lock ($this->dn);
309 }
311 /* There's no page reload so we have to read new apps at
312 this point. */
313 $this->reload ();
314 unset ($this->apptabs);
315 $this->apptabs= NULL;
316 unset ($_SESSION['objectinfo']);
317 } else {
318 /* Ok. There seem to be errors regarding to the tab data,
319 show message and continue as usual. */
320 show_errors($message);
321 }
322 }
324 /* User wants to edit data? */
325 if (($s_action=="edit") && (!isset($this->apptabs->config))){
327 /* Get 'dn' from posted 'applist', must be unique */
328 $this->dn= $this->applications[$s_entry]['dn'];
330 /* Check locking, save current plugin in 'back_plugin', so
331 the dialog knows where to return. */
332 if (($user= get_lock($this->dn)) != ""){
333 return(gen_locked_message ($user, $this->dn));
334 }
336 /* Lock the current entry, so everyone will get the
337 above dialog */
338 add_lock ($this->dn, $this->ui->dn);
340 /* Set up the users ACL's for this 'dn' */
341 $acl= get_permissions ($this->dn, $this->ui->subtreeACL);
343 /* Register apptabs to trigger edit dialog */
344 $this->apptabs= new apptabs($this->config,
345 $this->config->data['TABS']['APPSTABS'], $this->dn);
346 $this->apptabs->set_acl($acl);
347 $_SESSION['objectinfo']= $this->dn;
348 }
350 /* Remove user was requested */
351 if ($s_action == "del"){
353 /* Get 'dn' from posted 'uid' */
354 $this->dn= $this->applications[$s_entry]['dn'];
356 /* Load permissions for selected 'dn' and check if
357 we're allowed to remove this 'dn' */
358 $acl= get_permissions ($this->dn, $this->ui->subtreeACL);
359 $this->acl= get_module_permission($acl, "application", $this->dn);
360 if (chkacl($this->acl, "delete") == ""){
362 /* Check locking, save current plugin in 'back_plugin', so
363 the dialog knows where to return. */
364 if (($user= get_lock($this->dn)) != ""){
365 return (gen_locked_message ($user, $this->dn));
366 }
368 /* Lock the current entry, so nobody will edit it during deletion */
369 add_lock ($this->dn, $this->ui->dn);
370 $smarty= get_smarty();
371 $smarty->assign("intro", sprintf(_("You're about to delete the application '%s'."), LDAP::fix($this->dn)));
372 return($smarty->fetch (get_template_path('remove.tpl', TRUE)));
373 } else {
375 /* Obviously the user isn't allowed to delete. Show message and
376 clean session. */
377 print_red (_("You are not allowed to delete this application!"));
378 }
379 }
381 /* Confirmation for deletion has been passed. Group should be deleted. */
382 if (isset($_POST['delete_app_confirm'])){
384 /* Some nice guy may send this as POST, so we've to check
385 for the permissions again. */
386 if (chkacl($this->acl, "delete") == ""){
388 /* Delete request is permitted, perform LDAP action */
389 $this->apptabs= new apptabs($this->config,
390 $this->config->data['TABS']['APPSTABS'], $this->dn);
391 $this->apptabs->set_acl(array($this->acl));
392 $this->apptabs->delete ();
393 gosa_log ("Application object'".$this->dn."' has been removed");
394 unset ($this->apptabs);
395 $this->apptabs= NULL;
397 /* Group list has changed, reload it. */
398 $this->reload ();
399 } else {
401 /* Normally this shouldn't be reached, send some extra
402 logs to notify the administrator */
403 print_red (_("You are not allowed to delete this application!"));
404 gosa_log ("Warning: '".$this->ui->uid."' tried to trick group deletion.");
405 }
407 /* Remove lock file after successfull deletion */
408 del_lock ($this->dn);
409 }
412 /* Delete application canceled? */
413 if (isset($_POST['delete_cancel'])){
414 del_lock ($this->dn);
415 unset($_SESSION['objectinfo']);
416 }
418 /* Show tab dialog if object is present */
419 if (($this->apptabs) && (isset($this->apptabs->config))){
420 $display= $this->apptabs->execute();
422 /* Don't show buttons if tab dialog requests this */
423 if (!$this->apptabs->by_object[$this->apptabs->current]->dialog){
424 $display.= "<p style=\"text-align:right\">\n";
425 $display.= "<input type=\"submit\" name=\"edit_finish\" value=\""._("Finish")."\">\n";
426 $display.= " \n";
427 $display.= "<input type=\"submit\" name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
428 $display.= "</p>";
429 }
430 return ($display);
431 }
433 /* Show main page */
435 /* Prepare departments */
436 $options= "";
437 foreach ($this->config->idepartments as $key => $value){
438 if ($appfilter['depselect'] == $key){
439 $options.= "<option selected='selected' value='$key'>$value</option>";
440 } else {
441 $options.= "<option value='$key'>$value</option>";
442 }
443 }
445 if($this->enableCopyPaste){
446 $Copy_Paste = " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ";
448 if($this->CopyPasteHandler->isCurrentObjectPastAble()){
450 if($this->CopyPasteHandler->isCurrentCutted()){
451 $img = "images/cutpaste.png";
452 }else{
453 $img = "images/copypaste.png";
454 }
456 $Copy_Paste .= "<input type='image' name='editPaste' class='center'
457 src='".$img."' alt='"._("Paste")."' title='".$this->CopyPasteHandler->GetCurrentDn()."'> ";
458 }else{
459 $Copy_Paste .= "<img class='center' src='images/cant_editpaste.png' alt='"._("Can't paste")."'> ";
460 }
461 }else{
462 $Copy_Paste ="";
463 }
465 // Managment
466 $listhead = "<div style='background:#F0F0F9;padding:5px;'>".
467 " <input class='center' type='image' align='middle' src='images/list_back.png' title='"._("Go up one department")."' alt='"._("Up")."' name='dep_back'> ".
468 " <input class='center' type='image' src='images/list_root.png' align='middle' title='"._("Go to root department")."' name='dep_root' alt='"._("Root")."'> ".
469 " <input class='center' type='image' align='middle' src='images/list_home.png' title='"._("Go to users department")."' alt='"._("Home")."' name='dep_home'> ".
470 " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ".
471 " <input class='center' type='image' align='middle' src='images/list_new_app.png' alt='"._("new")."' title='"._("Create new application")."' name='appl_new'> ".
472 $Copy_Paste.
473 " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ".
474 _("Base")." <select name='depselect' onChange='mainform.submit()' class='center'>$options</select>".
475 " <input class='center' type='image' src='images/list_submit.png' align='middle' title='"._("Submit department")."' name='submit_department' alt='"._("Submit")."'> ".
476 "</div>";
480 if($this->enableCopyPaste){
481 $actions = "<input class='center' type='image'
482 src='images/editcut.png' alt='"._("cut")."' name='cut_%KEY%' title='"._("Cut this entry")."'> ";
483 $actions.= "<input class='center' type='image'
484 src='images/editcopy.png' alt='"._("copy")."' name='copy_%KEY%' title='"._("Copy this entry")."'> ";
485 $actions.= "<input class='center' type='image'
486 src='images/edit.png' alt='"._("edit")."' name='appl_edit_%KEY%' title='"._("Edit this entry")."'>";
487 $actions.= "<input class='center' type='image'
488 src='images/edittrash.png' alt='"._("delete")."' name='appl_del_%KEY%' title='"._("Delete this entry")."'>";
489 }else{
491 $actions = "<input class='center' type='image'
492 src='images/edit.png' alt='"._("edit")."' name='appl_edit_%KEY%' title='"._("Edit this entry")."'>";
493 $actions.= "<input class='center' type='image'
494 src='images/edittrash.png' alt='"._("delete")."' name='appl_del_%KEY%' title='"._("Delete this entry")."'>";
495 }
498 // Defining Links
499 $linkopen = "<a href='?plug=".$_GET['plug']."&act=dep_open&dep_id=%s'>%s</a>";
501 // image Buttons
502 $editlink = "<a href='?plug=".$_GET['plug']."&id=%s&act=edit_entry'>%s</a>";
503 $userimg = "<img class='center' src='images/select_groups.png' alt='User' title='%s'>";
505 // Extension images
506 $applimg = "<img class='center' src='images/select_application.png' alt='A' title='"._("Application")."'>";
508 // Space
509 $empty = "<img class='center' src='images/empty.png' style='width:16px;height:16px;' alt=''>";
512 $divlist = new divlist("applicationtabs");
513 $divlist->SetHeader(array(
514 array("string" => " ", "attach" => "style='text-align:center;width:20px;'"),
515 array("string" => _("Application name")." / "._("Department"), "attach" => "style=''"),
516 array("string" => _("Actions"), "attach" => "style='width:80px;border-right:0px;text-align:right;'")
517 ));
520 $divlist->SetSummary(_("This table displays all groups, in the selected tree."));
521 $divlist->SetEntriesPerPage(0);
523 foreach($this->departments as $key=> $val){
525 if(!isset($this->config->departments[trim($key)])){
526 $this->config->departments[trim($key)]="";
527 }
529 $non_empty="";
530 $keys= str_replace("/","\/",$key);
531 foreach($this->config->departments as $keyd=>$vald ){
532 if(preg_match("/".$keys."\/.*/",$keyd)){
533 $non_empty="full";
534 }
535 }
537 $field1 = array("string" => "<img src='images/".$non_empty."folder.png' alt='department'>", "attach" => "style='text-align:center;width:20px;'");
538 $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style=''");
539 $field3 = array("string" => " ", "attach" => "style='width:80px;border-right:0px;text-align:right;'");
541 $divlist->AddEntry(array($field1,$field2,$field3));
542 }
544 foreach($this->applications as $key => $val){
545 $title = "title='dn : ".$val['dn']."'";
547 if(!isset($val['description'][0])){
548 $desc = "";
549 }else{
550 $desc = " - [ ".$val['description'][0]." ]";
551 }
552 $field1 = array("string" => sprintf($applimg,$val['dn']), "attach" => "style='text-align:center;width:20px;'");
553 $field2 = array("string" => sprintf($editlink,$key,($val['cn']['0'].$desc)), "attach" => "style='' ".$title);
554 $field3 = array("string" => preg_replace("/%KEY%/", $key, $actions), "attach" => "style='width:80px;border-right:0px;text-align:right;'");
556 $divlist->AddEntry(array($field1,$field2,$field3));
557 }
559 $smarty->assign("applicationshead", $listhead);
560 $smarty->assign("applications", $divlist->DrawList());
561 $smarty->assign("search_image", get_template_path('images/search.png'));
562 $smarty->assign("tree_image", get_template_path('images/tree.png'));
563 $smarty->assign("infoimage", get_template_path('images/info.png'));
564 $smarty->assign("launchimage", get_template_path('images/launch.png'));
565 $smarty->assign("releaseimage" , get_template_path('images/branch.png'));
566 $smarty->assign("deplist", $this->config->idepartments);
567 $smarty->assign("regex", $appfilter['regex']);
569 if($this->enableReleaseManagement){
570 $smarty->assign("releases", $this->Releases );
571 $smarty->assign("releaseKeys", array_flip($this->Releases));
572 $smarty->assign("select_release",$this->Release);
573 }
575 $smarty->assign("enableReleaseManagement",$this->enableReleaseManagement);
577 /* Extend if we are not using javascript */
578 $smarty->assign("apply", apply_filter());
579 $smarty->assign("alphabet", generate_alphabet());
580 $smarty->assign("hint", print_sizelimit_warning());
582 return($smarty->fetch(get_template_path('headpage.tpl', TRUE)));
583 }
586 function reload()
587 {
588 /* Get config */
589 $appfilter= get_global('appfilter');
591 /* Set base for all searches */
592 $base= $this->Release;
594 /* Regex filter? */
595 if ($appfilter['regex'] != ""){
596 $regex= $appfilter['regex'];
597 } else {
598 $regex= "*";
599 }
601 /* Generate application list */
602 $res= get_list($this->ui->subtreeACL, "(&(cn=$regex)(objectClass=gosaApplication))", FALSE, $base, array("*"), FALSE);
603 $this->applications= array();
604 foreach ($res as $value){
605 $this->applications[]= $value;
606 }
607 reset ($this->applications);
611 /* NEW LIST MANAGMENT
612 * We also need to search for the departments
613 * So we are able to navigate like in konquerer
614 */
615 $peopleOU = get_people_ou();
617 $base2 = $appfilter['depselect'];
619 $res3 = get_list2($this->ui->subtreeACL, "(&(|(ou=$regex)(description=$regex))(objectClass=gosaDepartment))",
620 TRUE, $base2, array("ou", "description"), TRUE);
622 $this->departments= array();
623 $tmp = array();
624 foreach ($res3 as $value){
625 $tmp[strtolower($value['dn']).$value['dn']]=$value;
626 }
627 ksort($tmp);
628 foreach($tmp as $value){
629 if(isset($value["description"][0])){
630 $this->departments[$value['dn']]=convert_department_dn2($value['dn'])." - [".$value["description"][0]."]";
631 }else{
632 $this->departments[$value['dn']]=convert_department_dn2($value['dn']);//$value["description"][0];
633 }
634 }
637 /* END NEW LIST MANAGMENT
638 */
640 $tmp=array();
641 foreach($this->applications as $tkey => $val ){
642 $tmp[strtolower($val['cn'][0]).$val['cn'][0]]=$val;
643 }
644 ksort($tmp);
645 $this->applications=array();
646 foreach($tmp as $val){
647 $this->applications[]=$val;
648 }
649 reset ($this->applications);
652 }
654 function remove_from_parent()
655 {
656 /* Optionally execute a command after we're done */
657 $this->postremove();
658 }
661 /* Save data to object */
662 function save_object()
663 {
664 }
667 /* Check values */
668 function check()
669 {
670 }
673 /* Save to LDAP */
674 function save()
675 {
676 /* Optionally execute a command after we're done */
677 $this->postcreate();
678 }
680 function adapt_from_template($dn)
681 {
682 }
684 function password_change_needed()
685 {
686 }
688 function show_header($button_text, $text, $disabled= FALSE)
689 {
690 }
692 function remove_lock()
693 {
694 if (isset($this->apptabs->dn)){
695 del_lock ($this->apptabs->dn);
696 }
697 }
699 }
700 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
701 ?>