View file game/main.php

File size: 744B
<?php

include'inc/conf.php';
session_start();
$sql = mysql_query("SELECT * FROM `users` WHERE `id` = '".$_SESSION['id']."' ");
$row = mysql_fetch_array($sql);

$pass = htmlspecialchars(stripslashes($_SESSION['pass']));
$id = htmlspecialchars(stripslashes($_SESSION['id']));
if ($id == $row['id'] and md5($pass)==$row['pass']){

////////////////////////////////////////////////////////////////

$title='Мое меню';
include'inc/up.php';
if ($row['admin'] == 1) echo'<a class="link" href="admin"><strong>Админка</strong></a>';
echo'<a class="link" href="info.php"><strong>Мой герой</strong></a>';

echo'<a class="link" href="exit.php"><strong>Выход</strong></a>';

}

include'inc/foot.php';


?>