From: hickert Date: Mon, 21 Jul 2008 12:40:42 +0000 (+0000) Subject: Updated main.inc for devices X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ae4f87c4166d97f0fb70d32356e5f66a043c19ef;p=gosa.git Updated main.inc for devices -Fixed code indent. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11728 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/devices/main.inc b/gosa-plugins/goto/admin/devices/main.inc index 385e88e86..549a6b3cc 100644 --- a/gosa-plugins/goto/admin/devices/main.inc +++ b/gosa-plugins/goto/admin/devices/main.inc @@ -19,38 +19,39 @@ */ if ($remove_lock){ - if(session::is_set('DeviceManagement')){ - $DeviceManagement = session::get('DeviceManagement'); - $DeviceManagement->remove_lock(); - session::un_set ('DeviceManagement'); - } + if(session::is_set('DeviceManagement')){ + $DeviceManagement = session::get('DeviceManagement'); + $DeviceManagement->remove_lock(); + session::un_set ('DeviceManagement'); + } } else { - /* Create DeviceManagement object on demand */ - if (!session::is_set('DeviceManagement') || (isset($_GET['reset']) && $_GET['reset'] == 1)){ - session::set('DeviceManagement',new deviceManagement ($config)); - } - - /* Get object */ - $DeviceManagement = session::get('DeviceManagement'); - $DeviceManagement->save_object(); - $output= $DeviceManagement->execute(); - - /* Page header*/ - if (session::is_set('objectinfo')){ - $display= print_header(get_template_path('images/devices.png'), _("Hotplug device management"), "\"\" ".@LDAP::fix(session::get('objectinfo'))); - } else { - $display= print_header(get_template_path('images/devices.png'), _("Hotplug device management")); - } - - /* Reset requested? */ - if (isset($_GET['reset']) && $_GET['reset'] == 1){ - del_lock ($ui->dn); - session::un_set ('DeviceManagement'); - } - - /* Show and save dialog */ - $display.= $output; - session::set('DeviceManagement',$DeviceManagement); + /* Create DeviceManagement object on demand */ + if (!session::is_set('DeviceManagement') || (isset($_GET['reset']) && $_GET['reset'] == 1)){ + session::set('DeviceManagement',new deviceManagement ($config)); + } + + /* Get object */ + $DeviceManagement = session::get('DeviceManagement'); + $DeviceManagement->save_object(); + $output= $DeviceManagement->execute(); + + /* Page header*/ + if (session::is_set('objectinfo')){ + $display= print_header(get_template_path('images/devices.png'), _("Hotplug device management"), "\"\" ".@LDAP::fix(session::get('objectinfo'))); + } else { + $display= print_header(get_template_path('images/devices.png'), _("Hotplug device management")); + } + + /* Reset requested? */ + if (isset($_GET['reset']) && $_GET['reset'] == 1){ + del_lock ($ui->dn); + session::un_set ('DeviceManagement'); + } + + /* Show and save dialog */ + $display.= $output; + session::set('DeviceManagement',$DeviceManagement); } +// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>