Location: PHPKode > projects > WebArchive > phparchive.0.1.82.beta/logout.php
<?php
/**
 * @version $Id: logout.php,v 1.1 2003/11/23 06:05:36 freedev Exp $
 * @author Vincenzo D'Amore <hide@address.com>
 * @package wa_base
 */

/**
 *
 */

require_once("./wacommon.inc.php");

	CheckSession();

	if (isset($_SESSION["gbLoggedIn"]))
	{
		$_SESSION["gbLoggedIn"] = False;
		$bLoggedIn = $_SESSION["gbLoggedIn"];
		$sMessage = WA_MSG_LOGOUT;
		session_unset();
		session_destroy() ;
	}

	PrintHTMLHeader("Logout", "");

?>
<body class="BodyStandard">
<?php include "header.php"; ?>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
  <tr>
	<td>
		<table width="40%" border="0" cellspacing="0" cellpadding="2" class="FormTableE">
		<tr>
			<td class="Bold">
			<?php
			echo $sMessage;
			?>
			<p ><a class='Bold' href="index.php">
			<?php
			echo WA_MSG_BACK_TO_LOGIN;
			?>
			</a></p><p><p>
			</td>
		</tr>
		</table>
		<table width="25%" border="0" cellspacing="0" cellpadding="2">
			<tr>
				<td>&nbsp;
				</td>
			</tr>
		</table>
	</td>
  </tr>
</table>
<?php include "footer.php"; ?>
</body>
</html>
Return current item: WebArchive