File size: 1.63Kb
<?php
Error_Reporting(E_ALL & ~E_NOTICE);
include'inc/conf.php';
session_start();
$sql = mysql_query("SELECT * FROM `users` WHERE `id` = '".$_SESSION['id']."' ");
$row = mysql_fetch_array($sql);
$pass = mysql_real_escape_string(htmlspecialchars(stripslashes($_SESSION['pass'])));
$id = mysql_real_escape_string(htmlspecialchars(stripslashes($_SESSION['id'])));
$item = mysql_real_escape_string(htmlspecialchars(stripslashes($_GET['item'])));
$go=mysql_real_escape_string(htmlspecialchars(stripslashes($_GET['go'])));
if ($id == $row['id'] and md5($pass)==$row['pass']){
$date=time();
////////////////////////////////////////////////////////////////
$sql3 = mysql_query("SELECT * FROM `more`");
$sql2 = mysql_query("SELECT * FROM `more`");
$more = mysql_fetch_array($sql2);
if(empty($_GET)){
$title='Сражения';
include'inc/up.php';
while($more = mysql_fetch_array($sql3)){
if($row['lvl']>=$more['lvl_min'] and $row['lvl']<=$more['lvl_max'])
{
echo'<div class="post"><img class="ico" src="img/pics/sword.png" alt=""><a href="battle.php?go=okr&item='.$more['id'].'">'.$more['name'].'</a></div>';
}elseif($row['lvl']>=$more['lvl_max']){
}
elseif($row['lvl']<=$more['lvl_min']){
echo'<div class="post"><img class="ico" src="img/pics/sword.png" alt=""><font color="#F33">'.$more['name'].'</font>, от '.$more['lvl_min'].' ур.</div>';
}
}
if($row['lvl']<=15){
echo' <div class="rek">Выбирете место сражений. Новые места будут открыватся по мере увеличения Вашего уровня.</div>
';}
}
}
include'inc/foot.php';
?>