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