From: hickert Date: Mon, 18 Oct 2010 11:12:43 +0000 (+0000) Subject: Added main.inc for the config management plugin. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=076fa59ec003b015a0b263a784f4bbcc665c68f5;p=gosa.git Added main.inc for the config management plugin. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20083 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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: +?>