Location: PHPKode > scripts > Some Chess > some-chess/logout.php
<?php
//		Some Chess, a PHP multi-player chess server.
//		Copyright (C) 2006 Jon Link
$query 	= 'UPDATE players SET online=0 WHERE id="'.validate($id).'" LIMIT 1';
mysql_query($query) or die('<div class=error>'.errorDBStr.'player</div>');
session_destroy();
if(!session_is_registered('on')){
	echo'<div style="float:left;height:30px;width:350px;margin:250px 0 0 250px;border:2px solid #596D84;padding:35px 10px;background:#75ACDD url(\'img/boxBack.png\') repeat-x;font-size:13px;">
		<b>'.$loginStr[6].'&nbsp:&nbsp;&nbsp;<a href=index.php>'.$loginStr[7].'</a>
	</div>';
}
?> 
Return current item: Some Chess