From 101d4c7691904a7e066d2e4df2203131dc5b6f29 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 30 Jun 2009 12:06:26 +0000 Subject: [PATCH] Added main.inc for roles git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13848 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/oroles/admin/oroles/main.inc | 67 +++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 gosa-plugins/oroles/admin/oroles/main.inc diff --git a/gosa-plugins/oroles/admin/oroles/main.inc b/gosa-plugins/oroles/admin/oroles/main.inc new file mode 100644 index 000000000..28c548c68 --- /dev/null +++ b/gosa-plugins/oroles/admin/oroles/main.inc @@ -0,0 +1,67 @@ +remove_lock(); + } +} + +/* Remove this plugin from session +*/ +if ( $cleanup ){ + session::un_set('roleManagement'); +}else{ + + /* Create object object on demand */ + if (!session::is_set('roleManagement')){ + session::set('roleManagement',new roleManagement ($config)); + + } + $roleManagement = session::get('roleManagement'); + + /* Execute formular */ + $roleManagement->save_object(); + $output= $roleManagement->execute (); + + /* Page header*/ + if (get_object_info() != ""){ + $display= print_header(get_template_path('plugins/roleManagement/images/plugin.png'), + _("Roles"), + "\"\" ". + LDAP::fix(get_object_info())); + } else { + $display= print_header(get_template_path('plugins/roleManagement/images/plugin.png'), _("roleManagement")); + } + + $display.= $output; + + /* Store changes in session */ + session::set('roleManagement',$roleManagement); +} + +// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: +?> -- 2.30.2