Location: PHPKode > projects > Some Chess > somechess.public/logout.php
<?php
//		Some Chess, a PHP multi-player chess server.
//		Copyright (C) 2007 Jon Link
$query 	= 'UPDATE '.dbPre.'players SET online="0" WHERE id="'.validate($id).'" LIMIT 1';
mysql_query($query)or die('<div class="error">'.errorDBStr.' (lo-1)</div>');
session_destroy();
if(!session_is_registered('on')){
	echo'<div id="logout">
		',$loginStr[6],'<br /><br /><a href="index.php">'.$loginStr[7].'</a>
	</div>';
}
?> 
Return current item: Some Chess