Location: PHPKode > projects > PHP OpenTailorShop > phpopentailorshop/webkasse/logout.php
<?
include "header.php";


if ( logged_in() )
{
	$sql = "UPDATE `account` SET ";
	$sql .= "`sessionkey` = '', ";
	$sql .= "`online` = 0 ";
	$sql .= "WHERE `sessionkey` = '".$_SESSION['key']. "' LIMIT 1";
	$_SESSION['key'] = '';
	$result = mysql_query($sql) or die( mysql_error() );
?>
<DIV ID="content">
	<p>Du wurdest jetzt ausgeloggt!</p>
</DIV>
<?
}
include "footer.php";
?>
Return current item: PHP OpenTailorShop