2009-06-30 09:22:30 +00:00
|
|
|
<?php
|
2009-06-30 09:29:51 +00:00
|
|
|
/**
|
2009-07-01 06:09:17 +00:00
|
|
|
* Log the user out of the application.
|
2009-06-30 09:29:51 +00:00
|
|
|
*
|
|
|
|
* @package phpLDAPadmin
|
2009-07-01 06:09:17 +00:00
|
|
|
* @subpackage Page
|
2009-06-30 09:29:51 +00:00
|
|
|
*/
|
2009-07-01 06:09:17 +00:00
|
|
|
|
2009-06-30 09:29:51 +00:00
|
|
|
/**
|
2009-06-30 09:22:30 +00:00
|
|
|
*/
|
|
|
|
|
2009-06-30 09:29:51 +00:00
|
|
|
require './common.php';
|
2009-06-30 09:22:30 +00:00
|
|
|
|
2012-09-02 20:19:19 +00:00
|
|
|
if ($app['server']->logout()) {
|
|
|
|
unset($_SESSION['ACTIVITY'][$app['server']->getIndex()]);
|
|
|
|
|
2009-07-01 06:09:17 +00:00
|
|
|
system_message(array(
|
2012-09-02 20:19:19 +00:00
|
|
|
'title'=>_('Logout from Server'),
|
2009-07-01 06:09:17 +00:00
|
|
|
'body'=>_('Successfully logged out of server.'),
|
|
|
|
'type'=>'info'),
|
|
|
|
sprintf('index.php?server_id=%s',$app['server']->getIndex()));
|
2012-09-02 20:19:19 +00:00
|
|
|
|
|
|
|
} else
|
2009-07-01 06:09:17 +00:00
|
|
|
system_message(array(
|
|
|
|
'title'=>_('Failed to Logout of server'),
|
|
|
|
'body'=>_('Please report this error to the admins.'),
|
|
|
|
'type'=>'error'),
|
|
|
|
sprintf('index.php?server_id=%s',$app['server']->getIndex()));
|
2009-06-30 09:22:30 +00:00
|
|
|
?>
|