1 <?php
2 /*
3 * This code is part of GOsa (http://www.gosa-project.org)
4 * Copyright (C) 2003-2008 GONICUS GmbH
5 *
6 * ID: $$Id$$
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
23 class ogroupManagement extends plugin
24 {
25 /* Definitions */
26 var $plHeadline= "Object groups";
27 var $plDescription= "Manage object groups";
29 /* attribute list for save action */
30 var $attributes= array();
31 var $objectclasses= array();
32 var $obtypes= array();
33 var $ogroup;
35 var $CopyPasteHandler = NULL;
36 var $DivListOGroup = NULL;
37 var $start_pasting_copied_objects = FALSE;
39 var $dns = array();
41 function ogroupManagement (&$config, $dn= NULL)
42 {
43 /* Include config object */
44 $this->config= &$config;
45 $this->ui= get_userinfo();
47 /* Copy & Paste enabled ?
48 */
49 if((isset($this->config->data['MAIN']['ENABLECOPYPASTE']))&&(preg_match("/true/i",$this->config->data['MAIN']['ENABLECOPYPASTE'] ))){
50 $this->CopyPasteHandler = new CopyPasteHandler($this->config);
51 }
53 /* Div lsit management */
54 $this->DivListOGroup = new divListOGroup($this->config,$this);
55 }
57 function execute()
58 {
59 /* Call parent execute */
60 plugin::execute();
62 /****************
63 Variable intialisation && Check posts for commands
64 ****************/
66 session::set('LOCK_VARS_TO_USE',array("/^act$/","/^id$/","/^group_edit_/","/^group_del_/","/^item_selected/","/^remove_multiple_ogroups/","/^menu_action/"));
68 $smarty = get_smarty();
69 $s_action = "";
70 $s_entry = "";
72 /* Test Posts */
73 foreach($_POST as $key => $val){
74 // Post for delete
75 if(preg_match("/^group_del.*/",$key)){
76 $s_action = "del";
77 $s_entry = preg_replace("/^group_".$s_action."_/i","",$key);
78 // Post for edit
79 }elseif(preg_match("/^group_edit_.*/",$key)){
80 $s_action="edit";
81 $s_entry = preg_replace("/^group_".$s_action."_/i","",$key);
82 // Post for new
83 }elseif(preg_match("/^group_new.*/",$key)){
84 $s_action="new";
85 }elseif(preg_match("/^editPaste.*/i",$key)){
86 $s_action="editPaste";
87 }elseif(preg_match("/^copy_.*/",$key)){
88 $s_action="copy";
89 $s_entry = preg_replace("/^copy_/i","",$key);
90 }elseif(preg_match("/^cut_.*/",$key)){
91 $s_action="cut";
92 $s_entry = preg_replace("/^cut_/i","",$key);
93 }elseif(preg_match("/^remove_multiple_ogroups/",$key)){
94 $s_action="del_multiple";
95 }elseif(preg_match("/^multiple_cut_ogroups/",$key)){
96 $s_action = "cut_multiple";
97 }elseif(preg_match("/^multiple_copy_ogroups/",$key)){
98 $s_action = "copy_multiple";
99 }elseif(preg_match("/_group_edit_/",$key)){
100 $type = preg_replace("/_group_edit_.*$/","",$key);
101 $s_action="edit";
102 $s_entry = preg_replace("/".$type."_group_edit_/i","",$key);
103 $_POST['arg'] = $type;
104 }
105 }
106 $s_entry = preg_replace("/_.$/","",$s_entry);
108 // Edit if
109 if((isset($_GET['act']))&&($_GET['act']=="edit_entry")){
110 $s_action ="edit";
111 $s_entry = $_GET['id'];
112 }
116 /* handle C&P from layers menu */
117 if(isset($_POST['menu_action']) && preg_match("/^multiple_copy_systems/",$_POST['menu_action'])){
118 $s_action = "copy_multiple";
119 }
120 if(isset($_POST['menu_action']) && preg_match("/^multiple_cut_systems/",$_POST['menu_action'])){
121 $s_action = "cut_multiple";
122 }
123 if(isset($_POST['menu_action']) && preg_match("/^editPaste/",$_POST['menu_action'])){
124 $s_action = "editPaste";
125 }
127 /* Create options */
128 if(isset($_POST['menu_action']) && $_POST['menu_action'] == "group_new"){
129 $s_action = "new";
130 }
132 /* handle remove from layers menu */
133 if(isset($_POST['menu_action']) && preg_match("/^remove_multiple/",$_POST['menu_action'])){
134 $s_action = "del_multiple";
135 }
137 /* Hanlde notification event requests */
138 if(isset($_POST['menu_action']) && preg_match("/^event/",$_POST['menu_action'])){
139 $s_action = $_POST['menu_action'];
140 }
143 /********************
144 Create notification event
145 ********************/
147 if(preg_match("/^event_/",$s_action) && class_available("DaemonEvent")){
148 $ids = $this->list_get_selected_items();
149 $uids = array();
150 foreach($ids as $id){
151 $uids[] = $this->ogrouplist[$id]['cn'][0];
152 }
153 if(count($uids)){
154 $events = DaemonEvent::get_event_types(USER_EVENT);
155 $event = preg_replace("/^event_/","",$s_action);
156 if(isset($events['BY_CLASS'][$event])){
157 $type = $events['BY_CLASS'][$event];
158 $this->ogroup = new $type['CLASS_NAME']($this->config);
159 $this->ogroup->add_targets($uids);
160 $this->ogroup->set_type(TRIGGERED_EVENT);
161 }
162 }
163 }
165 /* Abort event dialog */
166 if(isset($_POST['abort_event_dialog'])){
167 $this->ogroup = FALSE;
168 }
170 /* Save event */
171 if(isset($_POST['save_event_dialog'])){
172 $o_queue = new gosaSupportDaemon();
173 $o_queue->append($this->ogroup);
174 if($o_queue->is_error()){
175 msg_dialog::display(_("Infrastructure error"), msgPool::siError($o_queue->get_error()),ERROR_DIALOG);
176 }else{
177 $this->ogroup = FALSE;
178 }
179 }
181 /* Display event */
182 if($this->ogroup instanceof DaemonEvent){
183 $this->ogroup->save_object();
184 return($this->ogroup->execute());
185 }
188 /****************
189 Copy & Paste handling
190 ****************/
192 /* Display the copy & paste dialog, if it is currently open */
193 $ret = $this->copyPasteHandling_from_queue($s_action,$s_entry);
194 if($ret){
195 return($ret);
196 }
199 /***************
200 Create a new object group
201 ****************/
203 /* New group? */
204 if ($s_action=="new"){
206 /* By default we set 'dn' to 'new', all relevant plugins will
207 react on this. */
208 $this->dn= "new";
210 /* Create new ogroup- object */
211 $this->ogroup= new ogrouptabs($this->config,$this->config->data['TABS']['OGROUPTABS'], $this->dn,"ogroups");
212 $this->ogroup->set_acl_base($this->DivListOGroup->selectedBase);
213 }
216 /********************
217 Delete MULTIPLE entries requested, display confirm dialog
218 ********************/
219 if ($s_action=="del_multiple"){
220 $ids = $this->list_get_selected_items();
222 if(count($ids)){
223 $this->dns = array();
224 foreach($ids as $id){
225 $this->dns[$id] = $this->ogrouplist[$id]['dn'];
226 }
228 /* Check locks */
229 if ($user= get_multiple_locks($this->dns)){
230 return(gen_locked_message($user,$this->dns));
231 }
233 $dns_names = array();
234 foreach($this->dns as $dn){
235 $dns_names[] = @LDAP::fix($dn);
236 }
238 add_lock ($this->dns, $this->ui->dn);
240 /* Lock the current entry, so nobody will edit it during deletion */
241 $smarty->assign("info", msgPool::deleteInfo($dns_names,_("object group")));
242 $smarty->assign("multiple", true);
243 return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
244 }
245 }
248 /********************
249 Delete MULTIPLE entries confirmed
250 ********************/
252 /* Confirmation for deletion has been passed. Users should be deleted. */
253 if (isset($_POST['delete_multiple_ogroup_confirm'])){
255 /* Remove user by user and check acls before removeing them */
256 foreach($this->dns as $key => $dn){
258 $acl = $this->ui->get_permissions($dn, "ogroups");
259 if (preg_match('/d/', $acl)){
261 /* Delete request is permitted, perform LDAP action */
262 $this->ogroup= new ogrouptabs($this->config,$this->config->data['TABS']['OGROUPTABS'], $dn);
263 $this->ogroup->delete ();
264 unset ($this->ogroup);
265 $this->ogroup= NULL;
266 } else {
268 /* Normally this shouldn't be reached, send some extra
269 logs to notify the administrator */
270 msg_dialog::display(_("Permission error"), msgPool::permDelete(), INFO_DIALOG);
271 new log("security","ogroups/".get_class($this),$dn,array(),"Tried to trick deletion.");
272 }
273 }
275 /* Remove lock file after successfull deletion */
276 $this->remove_lock();
277 $this->dns = array();
278 }
281 /********************
282 Delete MULTIPLE entries Canceled
283 ********************/
285 /* Remove lock */
286 if(isset($_POST['delete_multiple_ogroup_cancel'])){
288 /* Remove lock file after successfull deletion */
289 $this->remove_lock();
290 $this->dns = array();
291 }
294 /****************
295 Delete object group
296 ****************/
298 if ($s_action=="del"){
300 /* Get 'dn' from posted 'uid' */
301 $this->dn= $this->ogrouplist[$s_entry]['dn'];
303 /* Load permissions for selected 'dn' and check if
304 we're allowed to remove this 'dn' */
305 $acl = $this->ui->get_permissions($this->dn,"ogroups");
306 if(preg_match("/d/",$acl)){
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));
312 }
314 /* Lock the current entry, so nobody will edit it during deletion */
315 add_lock ($this->dn, $this->ui->dn);
316 $smarty->assign("info", msgPool::deleteInfo(@LDAP::fix($this->dn),_("object group")));
317 $smarty->assign("multiple", false);
318 return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
319 } else {
321 /* Obviously the user isn't allowed to delete. Show message and
322 clean session. */
323 msg_dialog::display(_("Permission error"), msgPool::permDelete(), INFO_DIALOG);
324 }
325 }
328 /****************
329 Delete confirmed
330 ****************/
332 /* Confirmation for deletion has been passed. Group should be deleted. */
333 if (isset($_POST['delete_group_confirm'])){
335 /* Some nice guy may send this as POST, so we've to check
336 for the permissions again. */
337 $acl = $this->ui->get_permissions($this->dn,"ogroups");
338 if(preg_match("/d/",$acl)){
340 /* Delete request is permitted, perform LDAP action */
341 $this->ogroup= new ogrouptabs($this->config,
342 $this->config->data['TABS']['OGROUPTABS'], $this->dn);
343 $this->ogroup->delete ();
344 unset ($this->ogroup);
345 $this->ogroup= NULL;
346 } else {
348 /* Normally this shouldn't be reached, send some extra
349 logs to notify the administrator */
350 msg_dialog::display(_("Permission error"), msgPool::permDelete(), INFO_DIALOG);
351 new log("security","ogroups/".get_class($this),$dn,array(),"Tried to trick deletion.");
352 }
354 /* Remove lock file after successfull deletion */
355 $this->remove_lock();
356 session::un_set('objectinfo');
357 }
360 /****************
361 Delete object group Canceled
362 ****************/
364 /* Delete group canceled? */
365 if (isset($_POST['delete_cancel'])){
366 $this->remove_lock();
367 session::un_set('objectinfo');
368 }
371 /****************
372 Edit group
373 ****************/
375 if (($s_action=="edit") && (! isset($this->ogroup->config)) ){
377 /* Get 'dn' from posted 'uid', must be unique */
378 $this->dn= $this->ogrouplist[$s_entry]['dn'];
380 /* Check locking, save current plugin in 'back_plugin', so
381 the dialog knows where to return. */
382 if (($user= get_lock($this->dn)) != ""){
383 return(gen_locked_message ($user, $this->dn));
384 }
386 /* Lock the current entry, so everyone will get the
387 above dialog */
388 add_lock ($this->dn, $this->ui->dn);
390 /* Register grouptab to trigger edit dialog */
391 $this->ogroup= new ogrouptabs($this->config, $this->config->data['TABS']['OGROUPTABS'], $this->dn, "ogroups");
392 $this->ogroup->set_acl_base($this->dn);
393 session::set('objectinfo',$this->dn);
394 }
397 /****************
398 Edit finished save
399 ****************/
401 /* Finish button has been pressed */
402 if ((isset($_POST['edit_finish']) || isset($_POST['edit_apply'])) && (isset($this->ogroup->config)) ){
404 /* Check tabs, will feed message array */
405 $message= $this->ogroup->check();
407 /* Save, or display error message? */
408 if (count($message) == 0){
410 /* Save user data to ldap */
411 $this->ogroup->save();
413 if (!isset($_POST['edit_apply'])){
414 /* Group has been saved successfully, remove lock from
415 LDAP. */
416 if ($this->dn != "new"){
417 $this->remove_lock();
418 }
420 unset ($this->ogroup);
421 $this->ogroup= NULL;
422 session::un_set('objectinfo');
423 }else{
425 /* Reinitialize tab */
426 if($this->ogroup instanceof tabs){
427 $this->ogroup->re_init();
428 }
429 }
430 } else {
431 /* Ok. There seem to be errors regarding to the tab data,
432 show message and continue as usual. */
433 msg_dialog::displayChecks($message);
434 }
435 }
438 /****************
439 Cancel edit object group
440 ****************/
442 /* Cancel dialogs */
443 if ((isset($_POST['edit_cancel'])) && (isset($this->ogroup->dn))){
444 $this->remove_lock();
445 $this->ogroup= NULL;
446 session::un_set('objectinfo');
447 }
450 /****************
451 Display open dialogs
452 ****************/
454 /* Show dialog if object is present */
455 if (isset($this->ogroup->config)){
456 $display= $this->ogroup->execute();
458 /* Don't show buttons if tab dialog requests this */
459 if (!$this->ogroup->by_object[$this->ogroup->current]->dialog){
460 $display.= "<p style=\"text-align:right\">\n";
461 $display.= "<input type=submit name=\"edit_finish\" style=\"width:80px\" value=\"".msgPool::okButton()."\">\n";
462 $display.= " \n";
463 if ($this->dn != "new"){
464 $display.= "<input type=submit name=\"edit_apply\" value=\"".msgPool::applyButton()."\">\n";
465 $display.= " \n";
466 }
467 $display.= "<input type=submit name=\"edit_cancel\" value=\"".msgPool::cancelButton()."\">\n";
468 $display.= "</p>";
469 }
470 return ($display);
471 }
474 /****************
475 Display list
476 ****************/
478 /* Check if there is a snapshot dialog open */
479 $base = $this->DivListOGroup->selectedBase;
480 if($str = $this->showSnapshotDialog($base,$this->get_used_snapshot_bases())){
481 return($str);
482 }
484 /* Display dialog with group list */
485 $this->DivListOGroup->parent = $this;
486 $this->DivListOGroup->execute();
488 /* Add departments if subsearch is disabled */
489 if(!$this->DivListOGroup->SubSearch){
490 $this->DivListOGroup->AddDepartments($this->DivListOGroup->selectedBase,4,1);
491 }
492 $this->reload ();
493 $this->DivListOGroup->setEntries($this->ogrouplist);
494 return($this->DivListOGroup->Draw());
495 }
498 /* Return departments, that will be included within snapshot detection */
499 function get_used_snapshot_bases()
500 {
501 return(array(get_ou('ogroupou').$this->DivListOGroup->selectedBase));
502 }
506 function convert_list($input)
507 {
508 $temp= "";
510 $conv= array(
511 "U" => array("plugins/generic/images/head.png" ,_("User") , "ogroup"),
512 "G" => array("plugins/groups/images/groups.png" ,_("Group") , "ogroup"),
513 "A" => array("plugins/ogroups/images/application.png" ,_("Application") , "ogroup"),
514 "D" => array("plugins/departments/department.png" ,_("Department") , "ogroup"),
515 "S" => array("plugins/ogroups/images/server.png" ,_("Server") , "ogroup"),
516 "F" => array("plugins/ogroups/images/asterisk.png" ,_("Phone") , "phonequeue"),
517 "W" => array("plugins/ogroups/images/workstation.png" ,_("Workstation") , "workstartup"),
518 "O" => array("plugins/ogroups/images/winstation.png" ,_("Windows Install") , "ogroup"),
519 "T" => array("plugins/ogroups/images/terminal.png" ,_("Terminal") , "termgroup"),
520 "P" => array("plugins/ogroups/images/printer.png" ,_("Printer") , "ogroup"));
522 /* Assemble picture */
523 $type= $input['gosaGroupObjects'][0];
524 $type= preg_replace("/[^A-Z]/i","",$type);
525 if (isset($type[0])){
526 $p1['pic']= $conv[$type[0]][0];
527 $p1['tit']= $conv[$type[0]][1];
528 $p1['alt']= $type[0];
529 $p1['lnk']= $conv[$type[0]][2];
530 $html_object_1 = "<input type='image' name='".$p1['lnk']."_group_edit_%KEY' ";
531 } else {
532 $p1['pic']= "images/empty.png";
533 $p1['tit']= "";
534 $p1['alt']= "";
535 $p1['lnk']= "";//$conv[$type[0]][2];
536 $html_object_1 = "<img ";
537 }
539 if (isset($type[1])){
540 $p2['pic']= $conv[$type[1]][0];
541 $p2['alt']= $type[1];
542 $p2['tit']= $conv[$type[1]][1];
543 $p2['lnk']= $conv[$type[1]][2];
544 $html_object_2 = "<input type='image' name='".$p2['lnk']."_group_edit_%KEY' ";
545 } else {
546 $p2['pic']= "images/empty.png";
547 $p2['alt']= "";
548 $p2['tit']= "";
549 $p2['lnk']= ""; //$conv[$type[0]][2];
550 $html_object_2 = "<img ";
551 }
553 $temp = $html_object_1." class='center' id='iconA".preg_replace("/_/","",$p1['lnk']."_group_edit_%KEY")."'
554 src='".$p1['pic']."' alt='".$p1['alt']."' title='".$p1['tit']."'>";
555 $temp.= $html_object_2." class='center' id='iconB".preg_replace("/_/","",$p2['lnk']."_group_edit_%KEY")."'
556 src='".$p2['pic']."' alt='".$p2['alt']."' title='".$p2['tit']."'>";
557 return ($temp);
558 }
561 function reload()
562 {
563 /* Set base for all searches && initialise some vars */
564 $this->ogrouplist= array();
565 $base = $this->DivListOGroup->selectedBase;
566 $filter = "(gosaGroupObjects=[])";
567 $Regex = $this->DivListOGroup->Regex;
569 $chk = array(
570 "UserGroups" => "(gosaGroupObjects=*U*)" ,
571 "GroupGroups" => "(gosaGroupObjects=*G*)" ,
572 "ApplicationGroups" => "(gosaGroupObjects=*A*)" ,
573 "DepartmentGroups" => "(gosaGroupObjects=*D*)" ,
574 "ServerGroups" => "(gosaGroupObjects=*S*)" ,
575 "WorkstationGroups" => "(gosaGroupObjects=*W*)" ,
576 "WindowsGroups" => "(gosaGroupObjects=*O*)" ,
577 "TerminalGroups" => "(gosaGroupObjects=*T*)" ,
578 "PrinterGroups" => "(gosaGroupObjects=*P*)" ,
579 "PhoneGroups" => "(gosaGroupObjects=*F*)" );
580 /* Create filter */
581 foreach($chk as $chkBox => $FilterPart){
582 if($this->DivListOGroup->$chkBox){
583 $filter .= $FilterPart;
584 }
585 }
586 $filter= "(&(cn=$Regex)(objectClass=gosaGroupOfNames)(|$filter))";
588 if($this->DivListOGroup->SubSearch){
589 $res= get_sub_list($filter, "ogroups",get_ou('ogroupou'), $base, array("cn","objectClass","gosaGroupObjects"), GL_SIZELIMIT | GL_SUBSEARCH);
590 }else{
591 $res= get_sub_list($filter, "ogroups",get_ou('ogroupou'), get_ou('ogroupou').$base, array("cn","objectClass","gosaGroupObjects"), GL_SIZELIMIT );
592 }
594 $this->ogrouplist= $res;
595 ksort ($this->ogrouplist);
596 reset ($this->ogrouplist);
597 $tmp=array();
598 $tmp2 = array();
599 foreach($this->ogrouplist as $tkey => $val ){
600 $tmp[strtolower($val['cn'][0]).$val['cn'][0]]=$val;
601 $tmp2[strtolower($val['cn'][0]).$val['cn'][0]] = strtolower($val['cn'][0]).$val['cn'][0];
602 }
603 natcasesort($tmp2);
604 $this->ogrouplist=array();
605 foreach($tmp2 as $val){
606 $this->ogrouplist[]=$tmp[$val];
607 }
608 reset ($this->ogrouplist);
609 }
612 function list_get_selected_items()
613 {
614 $ids = array();
615 foreach($_POST as $name => $value){
616 if(preg_match("/^item_selected_[0-9]*$/",$name)){
617 $id = preg_replace("/^item_selected_/","",$name);
618 $ids[$id] = $id;
619 }
620 }
621 return($ids);
622 }
625 function copyPasteHandling_from_queue($s_action,$s_entry)
626 {
627 /* Check if Copy & Paste is disabled */
628 if(!is_object($this->CopyPasteHandler)){
629 return("");
630 }
632 /* Add a single entry to queue */
633 if($s_action == "cut" || $s_action == "copy"){
635 /* Cleanup object queue */
636 $this->CopyPasteHandler->cleanup_queue();
637 $dn = $this->ogrouplist[$s_entry]['dn'];
638 $this->CopyPasteHandler->add_to_queue($dn,$s_action,"ogrouptabs","OGROUPTABS","ogroups");
639 }
642 /* Add entries to queue */
643 if($s_action == "copy_multiple" || $s_action == "cut_multiple"){
645 /* Cleanup object queue */
646 $this->CopyPasteHandler->cleanup_queue();
648 /* Add new entries to CP queue */
649 foreach($this->list_get_selected_items() as $id){
650 $dn = $this->ogrouplist[$id]['dn'];
652 if($s_action == "copy_multiple"){
653 $this->CopyPasteHandler->add_to_queue($dn,"copy","ogrouptabs","OGROUPTABS","ogroups");
654 }
655 if($s_action == "cut_multiple"){
656 $this->CopyPasteHandler->add_to_queue($dn,"cut","ogrouptabs","OGROUPTABS","ogroups");
657 }
658 }
659 }
661 /* Start pasting entries */
662 if($s_action == "editPaste"){
663 $this->start_pasting_copied_objects = TRUE;
664 }
666 /* Return C&P dialog */
667 if($this->start_pasting_copied_objects && $this->CopyPasteHandler->entries_queued()){
669 /* Get dialog */
670 $data = $this->CopyPasteHandler->execute();
671 $this->CopyPasteHandler->SetVar("base",$this->DivListOGroup->selectedBase);
673 /* Return dialog data */
674 if(!empty($data)){
675 return($data);
676 }
677 }
678 /* Automatically disable status for pasting */
679 if(!$this->CopyPasteHandler->entries_queued()){
680 $this->start_pasting_copied_objects = FALSE;
681 }
682 return("");
683 }
686 function remove_lock()
687 {
688 if (isset($this->apptabs->dn)){
689 del_lock ($this->apptabs->dn);
690 }
691 if(isset($this->dn) && !empty($this->dn) && $this->dn != "new"){
692 del_lock($this->dn);
693 }
694 if(isset($this->dns) && is_array($this->dns) && count($this->dns)){
695 del_lock($this->dns);
696 }
697 }
700 function save_object()
701 {
702 $this->DivListOGroup->save_object();
703 if(is_object($this->CopyPasteHandler)){
704 $this->CopyPasteHandler->save_object();
705 }
706 }
709 }
711 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
712 ?>