$_SESSION['arena'] = 0; include './system/common.php'; include './system/functions.php'; include './system/user.php'; $title = 'Возрождение титанов'; include './system/h.php'; ///NewsП if(isset($_SESSION['news'])){ $carlll = _string($_SESSION['news']); echo $carlll; unset($_SESSION['news']); } if($user) { if($mail > 0) { ?>
} if($user['save'] == 1){ if($user['level']>=1){ $max = 1; $q = mysql_query("SELECT * FROM `forum_topic` WHERE `sub` = '1' ORDER BY `id` DESC LIMIT 1"); while($row = mysql_fetch_array($q)) { if (isset($_GET['nread'])){ if($user['nread'])$nnred = '0'; mysql_query("UPDATE `users` SET `nread` = '".($nnred + $row['id'])."' WHERE `id` = '".$user['id']."'"); header("Location: /"); exit; } if (isset($_GET['sread'])){ if($user['nread'])$nnred = '0'; mysql_query("UPDATE `users` SET `nread` = '".($nnred + $row['id'])."' WHERE `id` = '".$user['id']."'"); header("Location: /forum/topic/".$row['id']."/"); exit; } if($row['id'] > $user['nread']){ ?> } } $undying = mysql_query('SELECT * FROM `undying` WHERE `start` = "0" LIMIT 1'); $undying = mysql_fetch_array($undying); $undying_time = round(($undying['time'] - time(600))); echo '