remove_lock(); del_lock ($ui->dn); session::un_set ('DeviceManagement'); } } else { /* Create DeviceManagement object on demand */ if (!session::is_set('DeviceManagement') || (isset($_GET['reset']) && $_GET['reset'] == 1)){ session::set('DeviceManagement',new deviceManagement ($config)); } /* Get object */ $DeviceManagement = session::get('DeviceManagement'); $DeviceManagement->save_object(); $output= $DeviceManagement->execute(); /* Page header*/ if (session::is_set('objectinfo')){ $display= print_header(get_template_path('images/devices.png'), _("Device management"), "\"\" ".@LDAP::fix(session::get('objectinfo'))); } else { $display= print_header(get_template_path('images/devices.png'), _("Device management")); } /* Reset requested? */ if (isset($_GET['reset']) && $_GET['reset'] == 1){ del_lock ($ui->dn); session::un_set ('DeviceManagement'); } /* Show and save dialog */ $display.= $output; session::set('DeviceManagement',$DeviceManagement); } ?>