haveAuthInfo()) pla_error(_('No one is logged in to that server.')); if (in_array($ldapserver->auth_type, array('cookie','session','http'))) { syslog_notice (sprintf('Logout for %s',$ldapserver->getLoggedInDN())); if($ldapserver->auth_type!='http') $ldapserver->unsetLoginDN() or pla_error(_('Could not logout.')); unset_lastactivity($ldapserver); @session_destroy(); } else pla_error(sprintf(_('Unknown auth_type: %s'), htmlspecialchars($ldapserver->auth_type))); system_message(array( 'title'=>_('Logout'), 'body'=>('Logged out successfully from server.'), 'type'=>'info'), 'index.php'); ?>