remove_lock(); } } /* Remove this plugin from session */ if ( $cleanup ){ session::un_set('macroManagement'); }else{ /* Reset requested? */ if (isset($_GET['reset']) && $_GET['reset'] == 1){ session::un_set ('macroManagement'); } /* Create macroManagement object on demand */ if (!session::is_set('macroManagement')){ session::set('macroManagement',new goFonMacro ($config, $ui)); } /* Get object */ $macroManagement = session::get('macroManagement'); $macroManagement->save_object(); $output= $macroManagement->execute(); /* Page header*/ if (get_object_info() != ""){ $display= print_header( get_template_path('plugins/gofon/images/macros.png'), _("Phone macro management"), "\"\" ".LDAP::fix(get_object_info())); } else { $display= print_header(get_template_path('plugins/gofon/images/macros.png'), _("Phone macro management")); } /* Show and save dialog */ $display.= $output; session::set('macroManagement',$macroManagement); } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>