From 076fa59ec003b015a0b263a784f4bbcc665c68f5 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 18 Oct 2010 11:12:43 +0000 Subject: [PATCH] Added main.inc for the config management plugin. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20083 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/admin/ConfigManagement/main.inc | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 gosa-plugins/goto/admin/ConfigManagement/main.inc diff --git a/gosa-plugins/goto/admin/ConfigManagement/main.inc b/gosa-plugins/goto/admin/ConfigManagement/main.inc new file mode 100644 index 000000000..b003a0872 --- /dev/null +++ b/gosa-plugins/goto/admin/ConfigManagement/main.inc @@ -0,0 +1,56 @@ +remove_lock(); + } +} + +/* Remove this plugin from session + */ +if ( $cleanup ){ + session::un_set('ConfigManagement'); +}else{ + + /* Create ConfigManagement object on demand */ + if (!session::is_set('ConfigManagement')){ + $ConfigManagement= new ConfigManagement ($config, $ui); + session::set('ConfigManagement',$ConfigManagement); + } + $ConfigManagement = session::get('ConfigManagement'); + $display= $ConfigManagement->execute(); + + /* Reset requested? */ + if (isset($_GET['reset']) && $_GET['reset'] == 1){ + session::un_set ('ConfigManagement'); + } + + /* Show and save dialog */ + session::set('ConfigManagement',$ConfigManagement); +} + +// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: +?> -- 2.30.2