Размер файла: 2.75Kb
<?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']){
$sql = mysql_query("SELECT * FROM `city` WHERE `id` = '".$row['city']."' ");
$city = mysql_fetch_array($sql);
$title='Город '.$city["name"].'';
$sql=mysql_query("UPDATE `users` SET `lost_activ`='0' WHERE `id`='".$id."' ");
include'inc/up.php';
////////////////////////////////////////////////////////////////
$filename = 'img/city/'.$row['city'].'.png';
if (file_exists($filename)) {
echo'<div class="gorod"><img src="img/city/'.$row['city'].'.png" alt=""></div>';
}
echo'<div class="razd">Приключения</div>';
echo'<div class="post"><img class="ico" src="img/pics/war.png" alt=""><a href="location.php">Сражения</a></div></div>';
echo'<div class="post"><img class="ico" src="img/pics/war.png" alt=""><a href="osada.php">Осада порта</a></div>';
echo'<div class="post"><img class="ico" src="img/pics/map.png" alt=""><a href="treasure.php">Поиски сокровищ</a></div>';
echo'<div class="post"><img class="ico" src="img/pics/map.png" alt=""><a href="teleport.php">Путишествие</a></div>';
echo'<div class="razd">Город</div>';
echo'<div class="post"><img class="ico" src="img/pics/kafe.png" alt=""><a href="taverna.php">Таверна</a></div>';
echo'<div class="post"><img class="ico" src="img/pics/upgrade.png" alt=""><a href="shop.php">Верфь</a></div>';
echo'<div class="post"><img class="ico" src="img/pics/upgrade.png" alt=""><a href="shop.php?go=remont">Ремонт корабля</a></div>';
echo'<div class="post"><img class="ico" src="img/pics/auk.png" alt=""><a href="shop_luck.php">Чародей</a></div>';
echo'<div class="post"><img class="ico" src="img/pics/auk.png" alt=""><a href="shop.php?go=ship">Покупка Корабля</a></div>';
echo'<div class="post"><img class="ico" src="img/pics/auk.png" alt=""><a href="clan.php?go=new">Гильдии</a></div>';
echo'<div class="razd">Общение</div>';
echo'<div class="post"><img class="ico" src="img/pics/news.png" alt=""><a href="forum.php?go=themes&id=1">Новости</a></div>';
echo'<div class="post"><img class="ico" src="img/pics/news.png" alt=""><a href="forum.php">Форум</a></div>';
echo'<div class="post"><img class="ico" src="img/pics/news.png" alt=""><a href="chat.php">Чат</a></div>';
echo'<div class="post"><img class="ico" src="img/pics/news.png" alt=""><a href="online.php">Игроки онлайн</a></div>';
}
include'inc/foot.php';
?>