first commit

This commit is contained in:
aschwarz
2023-04-25 13:25:59 +02:00
commit 086d1e1e9e
1774 changed files with 396049 additions and 0 deletions

29
phpldapadmin/htdocs/logout.php Executable file
View File

@ -0,0 +1,29 @@
<?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
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()));
?>