Файл: sumerki.mobi/sumerki.mobi/okrestnosti.php
Строк: 384
<?
define('PROTECTOR', 1);
$headmod = 'okrestnosti';//фикс. места
include('files/path.php');
include($path.'files/db.php');
include($path.'files/auth.php');
include($path.'files/func.php');
going();
zasad();
ryd();
place_city();
place_zamok();
place_tower();
include($path.'files/core.php');
/////////место
$req = mysql_query("SELECT * FROM `mesto` WHERE `usr` = '$log' LIMIT 1");
////////////////////////////
$mestouser = mysql_fetch_array($req);
/////////////////////////////////////////
$req = mysql_query("SELECT * FROM `world` WHERE `city` = '$udata[city]' and `x`='$mestouser[x]' and `y`='$mestouser[y]'");
$world = mysql_fetch_array($req);
//////////////////////////////////////////
if($_GET[mod]==go_left or $_GET[mod]==go_right or $_GET[mod]==go_up or $_GET[mod]==go_down){
$header=TRUE;
}else{
if(empty($world[name])){
$textl='Окрестности';}else{
$textl=$world[name];
}
}
include($path.'files/head.php');
include($path.'files/zag.php');
////////////////////////
$random=rand(1000,9999);
////////////////
function zasada(){
global $log,$udata,$mestouser;
$req = mysql_query("SELECT * FROM `zasada` WHERE `city` = '$udata[city]' and `x`='$mestouser[x]' and `y`='$mestouser[y]' and `usr`!='$log' LIMIT 1");
$ri=mysql_num_rows($req);
if($ri==1){
$zasada = mysql_fetch_array($req);
$req = mysql_query("SELECT * FROM `users` WHERE `usr` = '$zasada[usr]'");
$pk = mysql_fetch_array($req);
$req = mysql_query("SELECT * FROM `pk` WHERE `usr` = '$pk[usr]'");
$avto=mysql_num_rows($req);
if($avto>="1"){
mysql_query("DELETE FROM `zasada` WHERE usr='$pk[usr]'");
}
$reqtmp = mysql_query("SELECT * FROM `tmp` WHERE `usr` = '$pk[usr]' LIMIT 1");
if (mysql_num_rows($reqtmp)>=1){
mysql_query("DELETE FROM `zasada` WHERE usr='$pk[usr]'");
}
if($zasada[tip]==1){
if(!empty($udata[clan]) and $udata[clan]!=$pk[clan]){
$ztip=true;
}
}else{
if(empty($udata[clan])){
$ztip=true;
}
}
$timeout = time() - 3600;
$asd = mysql_num_rows(mysql_query("SELECT laikas, usr FROM online WHERE laikas > '$timeout' AND usr='$pk[usr]'"));
////////////////////////////
if($asd==0){
mysql_query("DELETE FROM `zasada` WHERE usr='$pk[usr]'");
}
if($udata[lvl]>=5 and $ztip==true){
$time=time();
mysql_query("INSERT INTO
`pk` SET `usr` = '$log',
`enemy` = '$pk[usr]',
`xod` = 'not',
`ltime`='$time'");
mysql_query("INSERT INTO
`pk` SET `usr` = '$pk[usr]',
`enemy` = '$log',
`napal` = '1',
`xod` = 'not',
`ltime`='$time'");
mysql_query("INSERT INTO pk_log SET usr='$log',log='Вы попали в засаду $pk[usr]!Бой начался!',kto='system'");
mysql_query("INSERT INTO pk_log SET usr='$pk[usr]',log='$log попал в вашу засаду!Бой начался!',kto='system'");
mysql_query("DELETE FROM `zasada` WHERE usr='$pk[usr]'");
echo"Вы попали в засаду <b>$pk[usr]</b>!<br/>";
echo"<a href="pk.php?">Бой</a>";
include($path.'files/down.php');exit;
}
}
}
switch($_GET[mod]){
default:
zasada();//засады
$xi=$mestouser[x]-1;
$xmi=$mestouser[x]+1;
$yi=$mestouser[y]-1;
$ymi=$mestouser[y]+1;
#################################
if($world['br']=='0'){
$req = mysql_query("SELECT name FROM world WHERE `city` = '$udata[city]' AND `x` = '$xmi' AND `y`='$mestouser[y]' LIMIT 1");
$ri=mysql_num_rows($req);
if($ri==1){
$right = mysql_fetch_array($req);
}
}
################################
if($world['bl']=='0'){
$req = mysql_query("SELECT name FROM world WHERE `city` = '$udata[city]' AND `x` = '$xi' AND `y`='$mestouser[y]' LIMIT 1");
$le=mysql_num_rows($req);
if($le==1){
$left = mysql_fetch_array($req);
}
}
##############################
if($world['bu']=='0'){
$req = mysql_query("SELECT name FROM world WHERE `city` = '$udata[city]' AND `y` = '$ymi' AND `x`='$mestouser[x]' LIMIT 1");
$up=mysql_num_rows($req);
if($up==1){
$upo = mysql_fetch_array($req);
}
}
#######################################
if($world['bd']=='0'){
$req = mysql_query("SELECT name FROM world WHERE `city` = '$udata[city]' and `y` = '$yi' and `x`='$mestouser[x]' LIMIT 1");
$do=mysql_num_rows($req);
if($do==1){
$down = mysql_fetch_array($req);
}
}
$req = mysql_query("SELECT * FROM `mob` WHERE `city` = '$udata[city]' and `x`='$mestouser[x]' and `y`='$mestouser[y]' ORDER BY lvl DESC");
//////////////////////////////
echo "<div class='zagolovok'><div class='zagolovok1'><div class='zagolovok2'><div class='zagolovok_right'></div><div class='zagolovok_left'></div>
<div class='ch_name'>$world[name]</div><div class='clearFix'></div></div></div></div>";
echo '<div class="fon bgray"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
if($_GET[error]==1){
echo"<div align='center'><b><a href='/library.php?id=29&lb=list_library'>Почему я оказался тут?</a></b></div>";}
echo"<div align='center'><b><font color='red'>X</font>: $mestouser[x] | <font color='red'>Y</font>: $mestouser[y]</b></div><div align='center'>";
$x1=$mestouser[x];
$y1=$mestouser[y];
$x=$mestouser[x]-3;
$y=$mestouser[y]+3;
$wave=1;
$table=1;
echo'<div style="background-image:url(pic/ico/travka.png);
max-width:180px;background-color: #269103; border: 1px solid #000;"><table>';
while($wave<='49'){
if($table=='8'){$table='1';$x=$x-'7';$y=$y-'1';}
$locas2 = mysql_result(mysql_query("SELECT COUNT(*) FROM `world` WHERE `x`='$x' and `y`='$y' LIMIT 1"),0);
$por = mysql_result(mysql_query("SELECT COUNT(*) FROM `world` WHERE `x`='$x' and `y`='$y' and `portal`='1' LIMIT 1"),0);
$incit = mysql_result(mysql_query("SELECT COUNT(*) FROM `world` WHERE `x`='$x' and `y`='$y' and `incity`='1' LIMIT 1"),0);
$boss = mysql_result(mysql_query("SELECT COUNT(*) FROM `mob` WHERE `x`='$x' and `y`='$y' and `tip`='boss' LIMIT 1"),0);
$xy = mysql_fetch_assoc(mysql_query("SELECT `bu`,`bd`,`br`,`bl` FROM `world` WHERE `x`='$x' and `y`='$y' LIMIT 1"));
$xy['img']='background-image : url(pic/ico/travka.png);';
$xy['img']='background-image : url(pic/ico/travka.png);';
if($por==1){$xy['img']='background-image : url(pic/ico/worldportal.png);';}
if($incit==1){$xy['img']='background-image : url(pic/maps/fortress.png);';}
if($boss==1){$xy['img']='background-image : url(pic/maps/boss.png);';}
if($locas2=='0'){
$xy['color']='#111111';
$xy['img']='background-image : url(pic/ico/worldtree.png);';
}
if($table=='1')echo'<tr border="0" HEIGHT="23">';
echo'<td WIDTH="23" BGCOLOR="'.$xy['color'].'" style="'.$xy['img'].'margin:5px;">';
if($x1==$x && $y1==$y){
echo'<img width="24" height="24" src="pic/maps/hero.gif" alt="o">';
}
echo'</td>';
if($table=='7')echo'</tr>';
$wave++;
$table++;
$x++;
}
echo'</table></div>';
echo '<div style="background-image:url(pic/ico/travka.png);
max-width:185px;background-color: #666666;padding:3px;border-top-left-radius:5px;border-top-right-radius:5px;border: 1px solid #000;">';
if($world[incity]==1){echo"<a href="to_gorod.php?"><img width='24' height='24' src='pic/ico/fortress.png' alt='g'></a> ";}
if($world[portal]==1){echo"<a href="okrestnosti.php?mod=portal"><img width='24' height='24' src='pic/ico/worldport.png' alt='p'></a> ";}
if($le==1){echo"<a href="okrestnosti.php?mod=go_left"><img width='24' height='24' src='pic/maps/left.png' alt='l'></a> ";}
if($ri==1){echo"<a href="okrestnosti.php?mod=go_right"><img width='24' height='24' src='pic/maps/right.png' alt='r'></a> ";}
if($up==1){echo"<a href="okrestnosti.php?mod=go_up"><img width='24' height='24' src='pic/maps/up.png' alt='t'></a> ";}
if($do==1){echo"<a href="okrestnosti.php?mod=go_down"><img width='24' height='24' src='pic/maps/down.png' alt='b'></a> ";}
echo"<br/></div></div><div align='center'><b><a href="okrestnosti.php?&r=$random">Обновить</a></b></div>";
echo '</div></div></div></div></div></div></div></div></div>';
$avto=mysql_num_rows($req);
if($avto>=1){
echo "<div class='zagolovok'><div class='zagolovok1'><div class='zagolovok2'><div class='zagolovok_right'></div><div class='zagolovok_left'></div>
<div class='ch_name'>Монстры в локации</div><div class='clearFix'></div></div></div></div>";
echo '<div class="fon bgray"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
While($mob = mysql_fetch_array($req))
{
if($mob['tip']=='boss'){
$color='#e94038';
}else{
$color='#5ade36';
}
if($mob[status]==on){
echo"<img src="pic/mob/$mob[name].png" height=16 width=16><a href="ok.php?id=$mob[id]"><font color='$color'><u>$mob[name]</u> </font></a><small><sup><b>$mob[lvl]<img width='10' height='10' src='pic/up.png'></b></sup></small> <a href="okrestnosti.php?mod=info&id=$mob[id]">[i]</a><br/>";
}
elseif($mob[status]==battle){
$r = mysql_query("SELECT * FROM `tmp` WHERE `city` = '$udata[city]' AND `usr`='$mob[oponent]' LIMIT 1");
$m = mysql_fetch_array($r);
$d = time();
if(($d>=($m['ltime']+600) and $mob[hp]<=0) or $d>=($m['ltime']+600)){
mysql_query("UPDATE `mob` SET `status`='on',`hp`='$mob[hpall]', `oponent`='not' WHERE `id` = '$mob[id]'");
$req = mysql_query("SELECT * FROM `users` WHERE `usr` = '$mob[oponent]' LIMIT 1");
$mu = mysql_fetch_array($req);
$nloses=$mu[loses]+1;
mysql_query("UPDATE users SET loses = '$nloses',hp='0' WHERE usr = '$mob[oponent]'");//пишем данные в плэера
mysql_query("DELETE FROM `tmp` WHERE usr='$mob[oponent]'");
mysql_query("DELETE FROM `log` WHERE usr='$mob[oponent]'");
echo"<img src='pic/ico/up.png' alt='b'><b>$mob[lvl]</b> <a href="ok.php?id=$mob[id]"><font color='$color'>$mob[name] </font></a> <a href="okrestnosti.php?mod=info&id=$mob[id]">[i]</a></a><br/>";
}else{
echo"<b><a href="okrestnosti.php?mod=info&id=$mob[id]"><font color='$color'>$mob[name]($mob[hp]/$mob[hpall])</font></a> против <a href="search.php?nick=$mob[oponent]&go=go">$mob[oponent]</a></b><br/>";
}
}
elseif($mob[status]==off){
$d = time();
if($d>=($mob[oponent]+$mob[time])){
$mob[id]=intval($mob['id']);
mysql_query("UPDATE `mob` SET `status`='on',`hp`='$mob[hpall]', `oponent`='not' WHERE `id` = '$mob[id]'");
//echo"<font color='$color'>$mob[name]</font> <font color='red'>[мертв]</font><br/>";
}else{
echo"";
}
}
}
}
/////////////////
/*echo"<b>Локации:</b><br/>";
if($world[incity]==1){echo"<img src='/pic/okrest/gor.png' alt='g'> <a href="to_gorod.php?">Город</a><br/>";}
if($world[portal]==1){echo"<img src='/pic/okrest/portal.png' alt='p'> <a href="okrestnosti.php?mod=portal">Портал</a><br/>";}
if($le==1){echo"<img src='/pic/okrest/le.png' alt='l'> <a href="okrestnosti.php?mod=go_left">$left[name]</a><br/>";}
if($ri==1){echo"<img src='/pic/okrest/ri.png' alt='r'> <a href="okrestnosti.php?mod=go_right">$right[name]</a><br/>";}
if($do==1){echo"<img src='/pic/okrest/bo.png' alt='b'> <a href="okrestnosti.php?mod=go_down">$down[name]</a><br/>";}
if($up==1){echo"<img src='/pic/okrest/to.png' alt='t'> <a href="okrestnosti.php?mod=go_up">$upo[name]</a><br/>";}
*/
$odin=false;
$timeout=time()-3600;//оффлайн
$req = mysql_query("SELECT * FROM online WHERE laikas > '$timeout' and usr!='$udata[usr]'");
$kol=0;
While($w = mysql_fetch_array($req))
{
$reqs = mysql_query("SELECT * FROM `mesto` WHERE `usr` = '$w[usr]' LIMIT 1");
$mesto = mysql_fetch_array($reqs);//место
if($mestouser['city']==$mesto[city] and $mesto[x]==$mestouser['x'] and $mesto[y]==$mestouser['y']){
$kol++;
}
}
$hphp=$udata[hpall]/2;
if($udata[hp]<$hphp){
echo '</div></div></div></div></div></div></div></div></div>';
echo"<div class='btn nav2-btn'> <img src='/pic/hp.png' alt='b'> <a href="okrestnosti.php?mod=hpp">Лечиться</a></div>";}
echo '</div></div></div></div></div></div></div></div></div>';
echo"<div class='button pad_bot_5 pad'> <a href="okrestnosti.php?mod=kto">  <img src='/theme/standart/images/galochka.png' alt='*'/> Игроков в локации: $kol </a></div>";
//echo"<br/><img src='/pic/me4.png' alt='b'> <a href="mob_rasp.php?mod=kto">БОССЫ</a>";
break;
case 'hpp':
$hphp=$udata[hpall]/2;
if($udata[hp]>=$hphp){
echo"<div class='btn nav2-btn'>У вас достаточно жизней!</div> <div class='btn nav2-btn'><a href="okrestnosti.php?">Продолжить</a></div>";
include($path.'files/down.php');
exit;
}
if($udata[money]<100){
echo"<div class='btn nav2-btn'>Нехватает золота!</div> <div class='btn nav2-btn'><a href="okrestnosti.php?">Продолжить</a></div>";
include($path.'files/down.php');
exit;
}
$mon=$udata[money]-100;
mysql_query("UPDATE users SET hp = '$udata[hpall]',money='$mon' WHERE usr = '$log'");
echo"<div class='btn nav2-btn'>Вы излечены!</div> <div class='btn nav2-btn'><a href="okrestnosti.php?">Продолжить</a></div>";
include($path.'files/down.php');
exit;
break;
case 'kto':
echo "<div class='zagolovok'><div class='zagolovok1'><div class='zagolovok2'><div class='zagolovok_right'></div><div class='zagolovok_left'></div>
<div class='ch_name'>Кто рядом</div><div class='clearFix'></div></div></div></div>";
$odin=false;
$timeout=time()-3600;//оффлайн
$req = mysql_query("SELECT * FROM online WHERE laikas > '$timeout' and usr!='$udata[usr]'");
$new_mail = mysql_result($q, 0);
////////////////////////////
While($who = mysql_fetch_array($req))
{
$reqs = mysql_query("SELECT * FROM `mesto` WHERE `usr` = '$who[usr]' LIMIT 1");
$mesto = mysql_fetch_array($reqs);//место
$reqs = mysql_query("SELECT id,city,storona,hp FROM `users` WHERE `usr` = '$who[usr]' LIMIT 1");
$cit = mysql_fetch_array($reqs);//город
if($mestouser['city']==$mesto[city] && $cit[city]==$udata[city] && $mesto[x]==$mestouser['x'] && $mesto[y]==$mestouser['y']){
if($cit[storona]==$udata[storona]){echo'<div class="b-panel gray-panel">';
if($cit[storona]==$udata[storona]){echo'<img alt="#" src="pic/ico/flag-green.png"> ';}else{
echo'<img alt="#" src="pic/ico/flag-red.png"> ';
}
echo '<font color="209920">';
}else{
echo'</font><div class="b-panel gray-panel"><img alt="#" src="pic/ico/flag-red.png"><font color="992020">';
}
idlog($idlog=$who[usr]); echo"</font>"; if($cit[storona]==$udata[storona]){echo'';}else{echo" <a href="ok.php?k=pk&id=$cit[id]">Напасть($cit[hp] хп)</font></a></div>";} echo"</div>";
$odin=true;
}
}
if($odin==false){
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo 'Рядом с вами никого нет.';
echo '</div></div></div></div></div></div></div></div></div>';
}
break;
case 'info':
$reqm = mysql_query("SELECT * FROM `mesto` WHERE `usr` = '$log' LIMIT 1");
$mm = mysql_fetch_array($reqm);
if(empty($mm[page])){$mm[page]=7;}
$id=$_GET[id];
$req = mysql_query("SELECT * FROM `mob` WHERE `city` = '$udata[city]' and `id`='$id' and `x`='$mestouser[x]' and `y`='$mestouser[y]' LIMIT 1");
////////////////////////////
if (mysql_num_rows($req)==0){echo"Такого монстра не существует.".mysql_num_rows($req);include($path.'files/down.php');exit;}
$mob = mysql_fetch_array($req);
if($mob['tip']=='boss'){
$color='#e94038';
}else{
$color='#5ade36';
}
echo "<div class='zagolovok'><div class='zagolovok1'><div class='zagolovok2'><div class='zagolovok_right'></div><div class='zagolovok_left'></div>
<div class='ch_name'><font color='$color'><b>$mob[name]</b></font></div><div class='clearFix'></div></div></div></div>";
echo '<div class="fon bgray"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"<center><img src="pic/mob/$mob[name].png" height=64 width=64></center>";
echo"<img src='pic/ico/up.png'> <b>Уровень:</b> $mob[lvl]<br/>";
echo"<img src='pic/hp.png'> <b>HP:</b> $mob[hp]/$mob[hpall]<br/>";
echo"<img src='pic/main/strength.png'> <b>Урон:</b> $mob[umin]/$mob[umax]<br/>";
echo"<img src='pic/main/dodge.png'> <b>Ловкость:</b> $mob[lovk]<br/>";
echo"<img src='pic/main/critical.png'> <b>Точность:</b> $mob[krit]%<br/>";
echo"<img width='12' height='12' src='pic/main/crit.png'> <b>Сокрушение:</b> $mob[ukrit]%<br/>";
echo"<img src='pic/main/am.png'> <b>Стойкость:</b> $mob[antikrit]%</div>";
echo '</div></div></div></div></div></div></div></div></div>';
echo '<div class="button pad_bot_5 pad"><a href="okrestnosti.php?">   <img src="/theme/standart/images/galochka.png" alt="*"/> Назад</a>';
echo '</div>';
break;
case 'go_left':
$xi=$mestouser[x]-1;
$req = mysql_query("SELECT name FROM world WHERE `city` = '$udata[city]' AND `x` = '$xi' AND `y`='$mestouser[y]' LIMIT 1");
$le=mysql_num_rows($req);
if($le==1 and $world['bl']=='0'){
mysql_query("UPDATE `mesto` SET `x`='$xi' WHERE usr = '$log'");
header("Location: okrestnosti.php?");exit;
}else{
header("Location: okrestnosti.php?");exit;
}
//////////////////////////////////////////
break;
case 'go_right':
$xmi=$mestouser[x]+1;
$req = mysql_query("SELECT name FROM world WHERE `city` = '$udata[city]' AND `x` = '$xmi' AND `y`='$mestouser[y]' LIMIT 1");
$ri=mysql_num_rows($req);
if($ri==1 and $world['br']=='0'){
mysql_query("UPDATE `mesto` SET `x`='$xmi' WHERE usr = '$log'");
header("Location: okrestnosti.php?");exit;
}else{
header("Location: okrestnosti.php?");exit;
}
//////////////////////////////////////////
break;
case 'go_up':
$ymi=$mestouser[y]+1;
$req = mysql_query("SELECT name FROM world WHERE `city` = '$udata[city]' AND `y` = '$ymi' AND `x`='$mestouser[x]' LIMIT 1");
$up=mysql_num_rows($req);
if($up==1 and $world['bu']=='0'){
mysql_query("UPDATE `mesto` SET `y`='$ymi' WHERE usr = '$log'");
header("Location: okrestnosti.php?");exit;
}else{
header("Location: okrestnosti.php?");exit;
}
//////////////////////////////////////////
break;
case 'go_down':
$yi=$mestouser[y]-1;
$req = mysql_query("SELECT name FROM world WHERE `city` = '$udata[city]' and `y` = '$yi' and `x`='$mestouser[x]' LIMIT 1");
$do=mysql_num_rows($req);
if($do==1 and $world['bd']=='0'){
mysql_query("UPDATE `mesto` SET `y`='$yi' WHERE usr = '$log'");
header("Location: okrestnosti.php?");exit;
}else{
header("Location: okrestnosti.php?");exit;
}
//////////////////////////////////////////
break;
case 'portal':
echo'<div class="event">';
$req = mysql_query("SELECT * FROM world WHERE `city` = '$udata[city]' and `y` = '$mestouser[y]' and `x`='$mestouser[x]' and `portal`='1' LIMIT 1");
$do=mysql_num_rows($req);
if($do==1){
if($_GET[act]==city){
mysql_query("UPDATE `mesto` SET `place` = 'gorod',`city` = '1',`x` = '1',`y` = '1' WHERE `usr` = '$log'");
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Телепорт';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Вы успешно прибыли в город";
echo '</div></div></div></div></div></div></div></div></div>';
echo "<div class='button pad_bot_5 pad'><a href="to_gorod.php?">    <img src='/theme/standart/images/galochka.png'/> Войти в город</a></div>";
echo'</div>';
include($path.'files/down.php');exit;
}elseif($_GET[act]==loc){
$_GET[id]=intval($_GET['id']);
$req = mysql_query("SELECT * FROM world WHERE `city` = '$udata[city]' and `id` = '$_GET[id]' and `portal`='1' LIMIT 1");
$do=mysql_num_rows($req);
if($do==1){
$citys = mysql_fetch_array($req);
mysql_query("UPDATE `mesto` SET `x` = '$citys[x]',`y` = '$citys[y]' WHERE `usr` = '$log'");
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Вы прибыли в локацию $citys[name].<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
echo"<div class="button pad_bot_5 pad"><a href="okrestnosti.php?">  <img alt="*" src="/theme/standart/images/galochka.png"> Далее</a>";
echo'</div>';
include($path.'files/down.php');exit;
}else{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"В этой локации нет портала!<br/>";
echo '</div></div></div></div></div></div></div></div></div>';
echo"<div class="button pad_bot_5 pad"><a href="okrestnosti.php?">  <img alt="*" src="/theme/standart/images/galochka.png"> Назад</a></div>";
}
}
echo "<div class='zagolovok'><div class='zagolovok1'><div class='zagolovok2'><div class='zagolovok_right'></div><div class='zagolovok_left'></div>
<div class='ch_name'>Город</div><div class='clearFix'></div></div></div></div>";
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo" <img width="16" height="16" src="pic/ico/earth.png"> <a href="okrestnosti.php?mod=portal&act=city">Город</a><br/>";
echo '</div></div></div></div></div></div></div></div></div>';
echo "<div class='zagolovok'><div class='zagolovok1'><div class='zagolovok2'><div class='zagolovok_right'></div><div class='zagolovok_left'></div>
<div class='ch_name'>Местность</div><div class='clearFix'></div></div></div></div>";
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
$req = mysql_query("SELECT * FROM world WHERE `city` = '$udata[city]' and `portal`='1'");
//////////////////////////////
While($mob = mysql_fetch_array($req)){
echo"<img width="16" height="16" src="pic/ico/earth.png"> <a href="okrestnosti.php?mod=portal&act=loc&id=$mob[id]">$mob[name]</a><br/>";
}
echo '</div></div></div></div></div></div></div></div></div>';
echo"<div class="button pad_bot_5 pad"><a href="okrestnosti.php?">  <img alt="*" src="/theme/standart/images/galochka.png"> Назад</a></div>";
}else{
echo"В этой локации нет портала!<br/>";
}
echo'</div>';
break;
}
include($path.'files/down.php');
include($path.'files/meny.php');
?>