2019-02-08 13:44:52 -05:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Log the user out of the application.
|
|
|
|
*
|
|
|
|
* @package phpLDAPadmin
|
|
|
|
* @subpackage Page
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
*/
|
|
|
|
|
|
|
|
require './common.php';
|
|
|
|
|
|
|
|
if ($app['server']->logout()) {
|
|
|
|
unset($_SESSION['ACTIVITY'][$app['server']->getIndex()]);
|
|
|
|
|
|
|
|
system_message(array(
|
|
|
|
'title'=>_('Logout from Server'),
|
|
|
|
'body'=>_('Successfully logged out of server.'),
|
|
|
|
'type'=>'info'),
|
|
|
|
sprintf('index.php?server_id=%s',$app['server']->getIndex()));
|
|
|
|
|
|
|
|
} else
|
2019-02-12 14:57:50 -05:00
|
|
|
{
|
2019-02-08 13:44:52 -05:00
|
|
|
system_message(array(
|
2019-02-12 14:57:50 -05:00
|
|
|
'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()));
|
|
|
|
}
|
2019-02-12 14:52:01 -05:00
|
|
|
|