X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fplugins%2Fadmin%2Fgroups%2Fmain.inc;h=6bbaeb9ef4e1d7bb148bae764ccee59ff3d00f30;hb=8643c90e256421271e1e1fbb1b40301a80b214cf;hp=3a12101639059f7144440501bc859d5cc743d6c0;hpb=7f7f21906eb6121c29823abbf96461733d642509;p=gosa.git diff --git a/gosa-core/plugins/admin/groups/main.inc b/gosa-core/plugins/admin/groups/main.inc index 3a1210163..6bbaeb9ef 100644 --- a/gosa-core/plugins/admin/groups/main.inc +++ b/gosa-core/plugins/admin/groups/main.inc @@ -1,47 +1,49 @@ remove_lock(); del_lock ($ui->dn); - sess_del ('groupManagement'); + session::un_set ('groupManagement'); } } else { /* Create groupManagement object on demand */ - if (!isset($_SESSION['groupManagement']) || (isset($_GET['reset']) && $_GET['reset'] == 1)){ - $_SESSION['groupManagement']= new groupManagement ($config, $_SESSION['ui']); + if (!session::is_set('groupManagement') || (isset($_GET['reset']) && $_GET['reset'] == 1)){ + session::set('groupManagement',new groupManagement ($config, $ui)); } - $groupManagement= $_SESSION['groupManagement']; + $groupManagement = session::get('groupManagement'); $groupManagement->save_object(); $output= $groupManagement->execute(); /* Page header*/ - if (isset($_SESSION['objectinfo'])){ - $display= print_header(get_template_path('images/group.png'), + if (session::is_set('objectinfo')){ + $display= print_header(get_template_path('plugins/groups/images/plugin.png'), _("Group administration"), "\"\" ". - @LDAP::fix($_SESSION['objectinfo'])); + get_template_path('images/lists/locked.png')."\"> ". + @LDAP::fix(session::get('objectinfo'))); } else { - $display= print_header(get_template_path('images/group.png'), _("Group administration")); + $display= print_header(get_template_path('plugins/groups/images/plugin.png'), _("Group administration")); } $display.= $output; @@ -49,11 +51,11 @@ if ($remove_lock){ /* Reset requested? */ if (isset($_GET['reset']) && $_GET['reset'] == 1){ del_lock ($ui->dn); - sess_del ('groupManagement'); + session::un_set ('groupManagement'); } /* Show and save dialog */ - $_SESSION['groupManagement']= $groupManagement; + session::set('groupManagement',$groupManagement); } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: