summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3f14124)
raw | patch | inline | side by side (parent: 3f14124)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Sep 2010 13:39:13 +0000 (13:39 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Sep 2010 13:39:13 +0000 (13:39 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19637 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/sudo/admin/sudo/main.inc | patch | blob | history |
index 95f4dd58be5282d6f6fc7bf72da6a7bc326044df..2421414228250aa65b5dc521b603e708ed755d45 100644 (file)
*/
/* Remove locks created by this plugin
-*/
+ */
if ($remove_lock){
- if(session::is_set('sudoManagement')){
- $macl = session::get('sudoManagement');
- $macl->remove_lock();
- }
+ if(session::is_set('sudoManagement')){
+ $macl = session::get('sudoManagement');
+ $macl->remove_lock();
+ session::un_set('sudoManagement');
+ }
}
/* Remove this plugin from session
-*/
+ */
if ( $cleanup ){
- session::un_set('sudoManagement');
+ session::un_set('sudoManagement');
}else{
- /* Create rolemanagement object on demand */
- if (!session::is_set('sudoManagement')){
- $sudoManagement= new sudoManagement ($config, $ui);
- session::set('sudoManagement',$sudoManagement);
- }
- $sudoManagement = session::get('sudoManagement');
- $display= $sudoManagement->execute();
+ /* Create rolemanagement object on demand */
+ if (!session::is_set('sudoManagement')){
+ $sudoManagement= new sudoManagement ($config, $ui);
+ session::set('sudoManagement',$sudoManagement);
+ }
+ $sudoManagement = session::get('sudoManagement');
+ $display= $sudoManagement->execute();
- /* Reset requested? */
- if (isset($_GET['reset']) && $_GET['reset'] == 1){
- session::un_set ('sudoManagement');
- }
+ /* Reset requested? */
+ if (isset($_GET['reset']) && $_GET['reset'] == 1){
+ session::un_set ('sudoManagement');
+ }
- /* Show and save dialog */
- session::set('sudoManagement',$sudoManagement);
+ /* Show and save dialog */
+ session::set('sudoManagement',$sudoManagement);
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: