File size: 1.05Kb
<?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 ($row['admin'] == 1 and $id == $row['id'] and md5($pass)==$row['pass']){
////////////////////////////////////////////////////////////////
$title='Админка';
include'../inc/up.php';
echo'<a class="link" href="admin.php?go=city"><strong>Управление городами</strong></a>';
echo'<a class="link" href="admin.php?go=ship"><strong>Управление кораблями</strong></a>';
echo'<a class="link" href="admin.php?go=body"><strong>Упраление инвентарем Кораблей</strong></a>';
echo'<a class="link" href="admin.php?go=art"><strong>Упраление Артефактами</strong></a>';
echo'<a class="link" href="admin.php?go=battle"><strong>Добавление окрестностей</strong></a>';
}
include'../inc/foot.php';
?>