<?
require_once("inc/module.php");
if ($stat['bloked']) echo"<script>top.location='index.php?action=logout'</script>";
if ($stat['t_time']>$now) { header("Location: prison.php"); exit; }
elseif ($stat['k_time']>$now) { header("Location: academy.php"); exit; }
elseif ($stat['o_time']>$now) { header("Location: juvelir.php"); exit; }
elseif ($stat['r_time']>$now) { header("Location: podzem.php"); exit; }
elseif ($stat['lov_time']>$now) { header("Location: more.php"); exit; }
elseif ($stat['mol_bog_swet']>$now) { header("Location: bog_hram.php"); exit; }
elseif ($stat['mol_bog_tima']>$now) { header("Location: bog_hram.php"); exit; }
elseif ($stat[battle]) { header("Location: battle.php"); exit; }
else {
if ($stat['room']>=999 && $stat['room']<=999) {
header("Location: podzem.php");
exit;
}
###Главная площадь
if ($room=="0") {
mysql_query("UPDATE players SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"world.php\";
top.frames['online'].location = top.frames['online'].location;
//-->
</SCRIPT>
";
exit();
}
###
###Академия
if ($room=="9") {
mysql_query("UPDATE players SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"academy.php\";
top.frames['online'].location = top.frames['online'].location;
//-->
</SCRIPT>
";
exit();
}
###
### УЛица №4
if ($room=="35") {
mysql_query("UPDATE players SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"world4.php\";
top.frames['online'].location = top.frames['online'].location;
//-->
</SCRIPT>
";
exit();
}
###
echo "<body bgcolor='#F5FFDA'>";
include('inc/html_header.php');
echo"
<script LANGUAGE=\"JavaScript\" SRC=\"i/login_form.js\"></SCRIPT>
<body leftmargin=0 topmargin=0>
<script language=\"javascript\" type=\"text/javascript\">
function imover(im)
{
im.filters.Glow.Enabled=true;
}
function imout(im)
{
im.filters.Glow.Enabled=false;
}
function m1()
{
alert('Идет строительство!');
}
function hideHelp()
{
document.getElementById('help').style.display = 'none';
return false;
}
</script>
<style type=\"text/css\">
img.aFilter {
filter:Glow(color=#FFFFFF,Strength=4,Enabled=0);
cursor:hand
}
hr {
height: 1px;
}
#help {
Z-INDEX: 66; WIDTH: 100%; POSITION: absolute
}
TD.Form {
BORDER-RIGHT: black 1px solid; BORDER-TOP: #666666 1px solid; BORDER-LEFT: #666666 1px solid; BORDER-BOTTOM: black 1px solid; BACKGROUND-COLOR: #f4eade
}
</style>";
echo "
<table border='0' width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td width='100%' align='center'>
<table border='0' width='100%' height='100%' cellspacing='0' cellpadding='0'>
<tr>
<td width='22' height='100%'>
<table border='0' width='22' height='100%' cellspacing='0' cellpadding='0'>
<tr>
<td width='22' height='25'>
<img src='i/inman_b11.gif' width='22' height='25' alt=''></td>
</tr>
<tr>
<td width='22' height='69'><img src='i/inman_b12.gif' width='22' height='69' alt=''></td>
</tr>
<tr>
<td width='22' height='100%' background='i/inman_b13.gif'></td>
</tr>
<tr>
<td width='22' height='69'><img src='i/inman_b14.gif' width='22' height='69' alt=''></td>
</tr>
<tr>
<td width='22' height='25'><img src='i/inman_b15.gif' width='22' height='25' alt=''></td>
</tr>
</table>
</td>
<td height='100%'>
<table border='0' width='100%' height='100%' cellspacing='0' cellpadding='0'>
<tr>
<td width='100%' height='25'>
<table border='0' width='100%' height='25' cellspacing='0' cellpadding='0'>
<tr>
<td width='51' height='25'>
<img src='i/inman_b211.gif' width='51' height='25' alt=''></td>
<td background='i/inman_b212.gif' valign='middle'>
<table border='0' height='22' cellspacing='0' cellpadding='0'>
<tr>
<td width='96' height='22'></td>
</tr>
</table>
</td>
<td width='51' height='25'>
<img src='i/inman_b213.gif' width='51' height='25' alt=''></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width='100%' height='100%' background='i/inman_fon.gif'>
<table border='0' width='100%' height='100%' cellspacing='0' cellpadding='0' style='padding: 5'>
<tr>
<td width='50%' align='center'><img src=i\mir2_world\st7/7.jpg alt='' border=1 galleryimg=no width=500 height=300></td>
<td width='50%' valign='top' align='center'>";
echo "[CENTER]
<table border='1' background='i/inman_fon2.gif' cellpadding='0' cellspacing='0' style='border-collapse: collapse; border-style: solid; padding: 2' bordercolor='#D8C792' width='98%'>
<tr>
<td width='100%' align='center'>
Вы находитесь на [b]Улице №1[/b] города [b]Evil City[/b], на этой улице вы сможете посетить такие здания как [b]Академия[/b] - учим профессии, [b]Кузница[/b] - чиним вещи, [b]Банк[/b] - сохраняем деньги, [b]Ломбард[/b] - быстро получаем деньги. Ну и самое интересное здание [b]Магазин Артефактов[/b].
</td>
</tr>
</table>
[/CENTER]
";
echo "[CENTER]
<table border='1' background='i/inman_fon2.gif' cellpadding='0' cellspacing='0' style='border-collapse: collapse; border-style: solid; padding: 2' bordercolor='#D8C792' width='98%'>
<tr>
<td width='100%' colspan='2' align='center'>[b]Улица 5:[/b]</td>
</tr>
<tr>
<td width='50%' align='center'><input type=button class=input value='<- Улица №4 ' onclick='top.frames[\"main\"].location = \"world2.php?room=35\"'></td>
<td width='50%' align='center'><input type=button class=input value='Проход закрыт ->' disabled onclick='top.frames[\"main\"].location = \"world2.php?room=0\"'></td>
</tr>
</table>
[/CENTER]
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width='100%' height='25'>
<table border='0' width='100%' height='25' cellspacing='0' cellpadding='0'>
<tr>
<td width='51' height='25'>
<img src='i/inman_b231.gif' width='51' height='25' alt=''></td>
<td background='i/inman_b232.gif'></td>
<td width='51' height='25'>
<img src='i/inman_b233.gif' width='51' height='25' alt=''></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width='22' height='100%'>
<table border='0' width='22' height='100%' cellspacing='0' cellpadding='0'>
<tr>
<td width='22' height='25'>
<img src='i/inman_b21.gif' width='22' height='25' alt=''></td>
</tr>
<tr>
<td width='22' height='69'><img src='i/inman_b22.gif' width='22' height='69' alt=''></td>
</tr>
<tr>
<td width='22' height='100%' background='i/inman_b23.gif'></td>
</tr>
<tr>
<td width='22' height='69'><img src='i/inman_b24.gif' width='22' height='69' alt=''></td>
</tr>
<tr>
<td width='22' height='25'><img src='i/inman_b25.gif' width='22' height='25' alt=''></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>";
}
?>