Location: PHPKode > projects > LDAPted > ldapted/logout.php
<?php
/***************************************************************************
 *
 *                                  logout.php
 *                              -------------------
 *
 *   begin                : Friday, Jul 5, 2002
 *   copyright            : (C) 2002 The Kabramps Team
 *   email                : hide@address.com,
 *                          hide@address.com
 *
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 *   See the GNU General Public License for more details.
 *   (http://www.gnu.org/licenses/gpl.html)
 *
 ***************************************************************************/

include("includes/XMLDocument.php");
include("includes/Config.php");
include("includes/TPLInterface.php");

$config = new Config("config.xml");
$options = $config->get_options();

session_start();

session_destroy();


// Prepares the template
$tmpls = new TPLInterface();
$tmpls->template_dir = $options['templates'].$options['defskin'];

$tmpls->assign(array("PAGETITLE"       => "LDAPted: logout",
		     "ADDIDTIONALMETA" => "<meta http-equiv=\"refresh\" content=\"2; URL=login.php\">",
		     "LOGOUTMESSAGE"   => $HTTP_GET_VARS['logoutmessage']
		     ));

$tmpls->display("logout.tpl");

?>
Return current item: LDAPted