Размер файла: 697B
<? session_start();
if(isset($_SESSION['ses8'])){
$ses=$_SESSION['ses8']; unset($_SESSION['ses8']); unset($_SESSION['nick']); session_destroy(); header("Location:index.php?ses=$ses"); exit;}
else { $_SESSION['ses8']=htmlspecialchars(stripslashes($_GET['ses']));
if(!isset($_SESSION['nick'])){ $dbhost='localhost';
$dbname='askalon';
$dbusers='root';
$dbpass='';
$link=mysql_connect($dbhost,$dbusers,$dbpass) or die ('error connecting');
mysql_select_db($dbname,$link) or die('error selecting db');
$sq=mysql_query("SELECT * FROM users WHERE ses=\"$ses\"")or die('error'); $ro=mysql_fetch_array($sq); $_SESSION['nick']=$ro['nick'];}
header("Location:death/death_room.php"); exit;} ?>