Location: PHPKode > projects > eFiction > eFiction353/user/logout.php
<?php
if(!defined("_LOGOUTCHECK")) exit( );
	define("_BASEDIR", "");
	include("config.php");
	session_start( );
	foreach ($_SESSION as $VarName => $Value)  { 
		if(substr($VarName, 0, strlen($sitekey)) == $sitekey) {
			if(strpos($VarName, "skin")) continue;
			$_SESSION[$VarName] = "";
			unset($_SESSION[$VarName]);
			unset($_COOKIE[$VarName]);
			setcookie($VarName, '', time() - 1000, '/', '', '' );
		}
	} 
	foreach ($_COOKIE as $VarName => $Value)  { 
		if(substr($VarName, 0, strlen($sitekey)) == $sitekey) {
			unset($_COOKIE[$VarName]);
			setcookie($VarName, "", time() - 1000, '/', '', '' );
		}
	} 
require_once("header.php");
//make a new TemplatePower object
if(file_exists("$skindir/default.tpl")) $tpl = new TemplatePower( "$skindir/default.tpl" );
else $tpl = new TemplatePower("default_tpls/default.tpl");
if(file_exists("$skindir/listings.tpl")) $tpl->assignInclude( "listings", "./$skindir/listings.tpl" );
else $tpl->assignInclude( "listings", "./default_tpls/listings.tpl" );
include("includes/pagesetup.php");

$output .= write_message(_ACTIONSUCCESSFUL);
$tpl->assign("output", $output);
$tpl->printToScreen( );
exit( );
?>
Return current item: eFiction