remove_lock(); } } /* Remove this plugin from session */ if ( $cleanup ){ $macl = session::get('opsiLicenses'); $macl->remove_lock(); session::un_set('opsiLicenses'); }else{ /* Create object object on demand */ if (!session::is_set('opsiLicenses')){ session::set('opsiLicenses',new opsiLicenses($config)); } $opsiLicenses = session::get('opsiLicenses'); /* Execute formular */ $opsiLicenses->save_object(); $output= $opsiLicenses->execute (); /* Page header*/ if (get_object_info() != ""){ $display= print_header(get_template_path('plugins/licensemanagement/images/plugin.png'), _("Licenses"), "\"\" ". LDAP::fix(get_object_info())); } else { $display= print_header(get_template_path('plugins/licensemanagement/images/plugin.png'), _("Role management")); } $display.= $output; /* Store changes in session */ session::set('opsiLicenses',$opsiLicenses); } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>