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