View file include/logout.php

File size: 216B
<?
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `session` WHERE sid='".$sid."'"), 0))
	{
	mysql_query("DELETE FROM `session` WHERE sid='".$sid."'");
	}
	header("Location: ".$forumdir."p=0&v=".$version);
?>