index 918c970aaf5f70714e55f565bc675a4a0c15e668..6de420cc09e86f23ff170bf6c2985d335a4c23b1 100644 (file)
*/
-
+/* Remove locks created by this plugin
+*/
if ($remove_lock){
if(session::is_set('ogroup')){
- $ogroup = session::get('ogroup');
- $ogroup->remove_lock();
- session::un_set ('ogroup');
+ $macl = session::get('ogroup');
+ $macl->remove_lock();
}
-} else {
+}
+
+/* Remove this plugin from session
+*/
+if ( $cleanup ){
+ session::un_set('ogroup');
+}else{
/* Create object object on demand */
- if (!session::is_set('ogroup') || (isset($_GET['reset']) && $_GET['reset'] == 1)){
+ if (!session::is_set('ogroup')){
session::set('ogroup',new ogroupManagement ($config));
+
}
$ogroup = session::get('ogroup');
$output= $ogroup->execute ();
/* Page header*/
- if (session::is_set('objectinfo')){
+ if (get_object_info() != ""){
$display= print_header(get_template_path('plugins/ogroups/images/plugin.png'),
_("Object groups"),
"<img alt=\"\" align=\"middle\" src=\"".
get_template_path('images/lists/locked.png').
- "\"> ".LDAP::fix(session::get('objectinfo')));
+ "\"> ".LDAP::fix(get_object_info()));
} else {
$display= print_header(get_template_path('plugins/ogroups/images/plugin.png'), _("Object groups"));
}