PHP Classes

File: htdocs/logout.php

Recommend this page to a friend!
  Classes of ask sa sa   PHP LDAP admin   htdocs/logout.php   Download  
File: htdocs/logout.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP LDAP admin
Perform operations to administer a LDAP server
Author: By
Last change:
Date: 1 year ago
Size: 642 bytes
 

Contents

Class file image Download
<?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()));
?>