Канализация для ИВ

Metamorphosis

Новичок
Репутация
47 / 193
Народ, сегодня увидел одну запись на форуме, что "Канализаций для ИВ пруд-пруди" - вот я и подумал что кто-то мог бы поделиться
каким нибудь куском кода. Хоть и самого простого, но как для стартапа. Прошу не писать мне про эпоху, чтобы я взял её оттуда. [color=#000000;background:#000000]Конечно я сделаю это (и делал...но не получилось) когда надежды будет 0
ну вот зачем прочёл? Теперь помогать не будешь((([/color]

простой паблик или что-то в этом роде для ИВ.
Заранее благодарен.
 
Канализация для ИВ - canalizaciya.php
Код:
<?
include("inc/db_connect.php");
$stat = mysql_fetch_array(mysql_query("select user, id, level, rank, tribe from players where user='".addslashes($user)."' and pass='".addslashes($pass)."'"));
  mysql_query("SET CHARSET cp1251");
if ($stat['bloked']) echo"<script>top.location='index.php?action=logout'</script>";




if($_GET['act']=="cexit")
{
$now=time();
$times=$now+3600;
mysql_query("DELETE FROM podzem WHERE glava='".$stat['user']."'");
mysql_query("DELETE FROM labirint WHERE user_id='".$stat['id']."'");
mysql_query("DELETE FROM canal_bot WHERE login='".$stat['user']."'");
mysql_query("UPDATE players SET room=9999,podzem_time=$times WHERE user='".$stat['user']."'");
print "<script>location.href='vxod.php'</script>"; exit();
}


?>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<meta http-equiv="Content-Language" content="az">
<LINK REL=StyleSheet HREF='/main.css' TYPE='text/css'>
<DIV id="slot_info" style="VISIBILITY: hidden; POSITION: absolute"></DIV>
<script LANGUAGE='JavaScript'>
document.ondragstart = test;
//запрет на перетаскивание
document.onselectstart = test;
//запрет на выделение элементов страницы
document.oncontextmenu = test;
//запрет на выведение контекстного меню

function test() {
 return false
}
</SCRIPT>
<?
/*************************************/
/*===============================================================*/
function startpod($who,$bot,$bot2,$bot3,$nomer,$nomer2,$nomer3){
$query=mysql_query("SELECT *FROM players WHERE user='$who'");
$db=mysql_fetch_array($query);





//    if(empty($ip)){if (getenv('HTTP_X_FORWARDED_FOR')){$ip=getenv('HTTP_X_FORWARDED_FOR');}else{$ip=getenv('REMOTE_ADDR');}}
       if($bot==1){$name="MazareS";}
       if($bot==2){$name="Epartu";}
       if($bot==3){$name="Kiara";}
       if($bot==4){$name="Ursi";}
       if($bot==5){$name="Priman";}
       if($bot==6){$name="Amakar";}
       if($bot==7){$name="Assende";}
       if($bot==8){$name="Enqur";}
       $XXXPL = mysql_query("SELECT * FROM `players` where `rank` = 63 user = '$name'");
       $BotName = $XXXPL['user'];
       if($bot2==1){$name2="MazareS";}
       if($bot2==2){$name2="Epartu";}
       if($bot2==3){$name2="Kiara";}
       if($bot2==4){$name2="Ursi";}
       if($bot2==5){$name2="Priman";}
       if($bot2==6){$name2="Amakar";}
       if($bot2==7){$name2="Assende";}
       if($bot2==8){$name2="Enqur";}

       if($bot3==1){$name3="MazareS";}
       if($bot3==2){$name3="Epartu";}
       if($bot3==3){$name3="Kiara";}
       if($bot3==4){$name3="Ursi";}
       if($bot3==5){$name3="Priman";}
       if($bot3==6){$name3="Amakar";}
       if($bot3==7){$name3="Assende";}
       if($bot3==8){$name3="Enqur";}

        $p = $name;
        $names = $name;
        if($name==$name2 && $name==$name3){$d1 = "$name(1)";}
        if($name!=$name2 && $name==$name3){$d1 = "$name(1)";}
        if($name==$name2 && $name!=$name3){$d1 = "$name(1)";}
        if($name!=$name2 && $name!=$name3){$d1 = "$name";}

        if($bot2!=0){
        $p2 = $name2;
        $names2 = $name2;
        if($name2==$name && $name2==$name3){$d2 = "$name2(2)";}
        if($name2!=$name && $name2==$name3){$d2 = "$name2(2)";}
        if($name2==$name && $name2!=$name3){$d2 = "$name2(2)";}
        if($name2!=$name && $name2!=$name3){$d2 = "$name2";}
        }

        if($bot3!=0){
        $p3 = $name3;
        $names3 = $name3;
        if($name3==$name && $name3==$name2){$d3 = "$name3(3)";}
        if($name3!=$name && $name3==$name2){$d3 = "$name3(3)";}
        if($name3==$name && $name3!=$name2){$d3 = "$name3(3)";}
        if($name3!=$name && $name3!=$name2){$d3 = "$name3";}
        }
$nom = "bot$nomer";
        $nom2 = "bot$nomer2";
        $nom3 = "bot$nomer3";
$mine_id=$db['id'];
$mine_user=$db['user'];
        
          
        
                        $battime=time();
$time=$battime;
if ($bot==1) {$psel = mysql_query("SELECT * FROM `players` WHERE rank=63 AND user='MazareS' ORDER BY `user` LIMIT 1");}
if ($bot==2) {$psel = mysql_query("SELECT * FROM `players` WHERE rank=63 AND user='Epartu' ORDER BY `user` LIMIT 1");}
if ($bot==3) {$psel = mysql_query("SELECT * FROM `players` WHERE rank=63 AND user='Kiara' ORDER BY `user` LIMIT 1");}
if ($bot==4) {$psel = mysql_query("SELECT * FROM `players` WHERE rank=63 AND user='Ursi' ORDER BY `user` LIMIT 1");}
if ($bot==5) {$psel = mysql_query("SELECT * FROM `players` WHERE rank=63 AND user='Priman' ORDER BY `user` LIMIT 1");}
if ($bot==6) {$psel = mysql_query("SELECT * FROM `players` WHERE rank=63 AND user='Amakar' ORDER BY `user` LIMIT 1");}
if ($bot==7) {$psel = mysql_query("SELECT * FROM `players` WHERE rank=63 AND user='Assende' ORDER BY `user` LIMIT 1");}
if ($bot==8) {$psel = mysql_query("SELECT * FROM `players` WHERE rank=63 AND user='Enqur' ORDER BY `user` LIMIT 1");}
                        
                        while ($pl = mysql_fetch_array($psel)){
                        $botname = $pl['user'];
                        

                        $_obj=mysql_fetch_array(mysql_query("SELECT SUM(objects.`hp`) as `hp`, SUM(objects.`vitality`) as `vitality` FROM slot_sh, objects WHERE slot_sh.id='".$pl['id']."' AND objects.user='".$pl['user']."' AND objects.id IN (slot_sh.1,slot_sh.2,slot_sh.3,slot_sh.4,slot_sh.5,slot_sh.6,slot_sh.7,slot_s
h.8,slot_sh.9,slot_sh.10,slot_sh.11,slot_sh.12,slot_sh.13,slot_sh.14,slot_sh.15,s
lot_sh.16,slot_sh.17,slot_sh.18,slot_sh.19) LIMIT 1"));
                        $MySkills = explode("|",$pl['rase_skill']);
                        $pl['gnom']=$MySkills['3']*5;
                        $pl['vitality']+=$_obj['vitality'];
                        $pl['hp_max']=ceil(($pl['vitality']*5+$_obj['hp'])*(1+($pl['gnom']/100)));
                        $pl['hp_now']=$pl['hp_max'];
                        mysql_query ("UPDATE `players` SET `hp_now` = '".$pl['hp_now']."', `battle` = NULL, `lpv`='".time()."' WHERE `id` = '".$pl['id']."'");
                        $pl['battle'] = NULL;
                        $bdate=date("d.m.y H:i",$battime);
                        mysql_query("INSERT INTO offers (time, type, size_left, size_right, done, timeout) values($battime+600,1,1,'1','1','180')");
                        $levels_opp = mysql_fetch_array(mysql_query("SELECT base FROM levels WHERE level=$pl[level]"));
                        mysql_query("INSERT INTO participants (time, id, side, hp, base) values($battime+600, '$pl[id]', '1', '".$pl['hp_now']."', '".$levels_opp['base']."')");
                        //mysql_query("INSERT INTO participants (time, id, side, hp, base) values($battime+600, '$stat[id]', '0', '".$stat['hp_now']."', '".$levels_my['base']."')");                        
                        mysql_query("insert into battles (offer, time, id, attacker, defender, kick, block, type, damage, comment) values ($battime, $battime, '0', '', '', '', '', NULL, '', '[i]Часы показывали [u]$bdate[/u] когда бой между [/i]<font color=CFA87A>[b]$db[user][/b]</font> и <font color=679958>[b]$pl[user][/b]</font> [i]начался![/i]')");
                        mysql_query("update players set battle=$battime+600, side=1 where id='$pl[id]'");
                       // mysql_query("update players set battle=$battime+600, side=0 where id='$stat[id]'");
                        
                        $b_id=$battime;
/*                        $bdate=date("d.m.y H:i",$battime);
                       
                        $levels_opp = mysql_fetch_array(mysql_query("SELECT base FROM levels WHERE level=$pl[level]"));

                        mysql_query("INSERT INTO participants (time, id, side, hp, base) values($battime+600, '$pl[id]', '1', '".$pl['hp_now']."', '".$levels_opp['base']."')");
                        mysql_query("insert into battles (offer, time, id, attacker, defender, kick, block, type, damage, comment) values ($battime+600, $battime+600, '0', '', '', '', '', NULL, '', '[i]Часы показывали [u]$bdate[/u] когда бой между [/i]<font color=CFA87A>[b]$stat[user][/b]</font> и <font color=679958>[b]$pl[user][/b]</font> [i]начался![/i]')");
//                        mysql_query("insert into battles (offer, time, id, attacker, defender, kick, block, type, damage, comment) values ($battime, $battime, '0', '', '', '', '', NULL, '', '[i]Часы показывали [u]$bdate[/u] когда бой между [/i]<font color=CFA87A>[b]$db[user][/b]</font> и <font color=679958>[b]$pl[user][/b]</font> [i]начался![/i]')");
                        mysql_query("update players set battle=$battime, side=1 where id='$pl[id]'");
                        
                        $b_id=$battime;*/
                        }
   $levels_my = mysql_fetch_array(mysql_query("SELECT base FROM levels WHERE level=$db[level]"));   

  mysql_query("INSERT INTO participants (time, id, side, hp, base) values($battime+600, '$db[id]', '0', '".$db['hp_now']."', '".$levels_my['base']."')");                        
 
   mysql_query("update players set battle=$battime+600, side=0 where id='$db[id]'");
  mysql_query("INSERT INTO canal_bot (user_id, nomer1, nomer2, nomer3 , login) values('".$db['id']."', '".$nomer."', '".$nomer2."', '".$nomer3."', '".$mine_user."')");
 


  
echo"<script>parent.main.location=\"battle.php?tmp=\"+Math.random();\"\"</script>";






/*        $ass = mysql_query("SELECT glav_id FROM labirint WHERE user_id='$mine_id'");
        $lab = mysql_fetch_array($ass);
        $glav_id = $lab["glav_id"];
        mysql_query("UPDATE podzem SET $nom='1' WHERE glav_id='$glav_id'");
        mysql_query("UPDATE labirint SET boi='$nomer' WHERE glav_id='$glav_id' and user_id='$mine_id'");
        $T1 = mysql_query("INSERT INTO canal_bot (nm,glav_id,name1,name2,name3,nomer1,nomer2,nomer3,mis1,mis2,mis3) VALUES($nomer,'$glav_id','$p','$p2','$p3','$nom','$nom2','$nom3','$mis','$mis2','$mis3')");

        if(!empty($bot2)){addBot($who,$p2,$d2);}
        if(!empty($bot3)){addBot($who,$p3,$d3);}
        addBot($who,$p,$d1);
        goBattle($who);*/
}





/*==============Конец боя в подземке==============================*/
/*===============================================================*/
function addBot($who,$bot,$bot_name){
$COUNT = mysql_query("SELECT id FROM battles");
$all = mysql_num_rows($COUNT);

$bid = $all+1;


$GET_BOT = mysql_query("SELECT hp_all,mana_all FROM users WHERE login='$bot'");
//$GBD = mysql_fetch_array($GET_BOT);
$hp = $GBD["hp_all"];
$hp_all = $hp;
$mana = $GBD["mana_all"];
$mana_all = $mana;


$add_bot = mysql_query("INSERT INTO bot_temp(bot_name,hp,hp_all,battle_id,prototype,team,mana,mana_all) VALUES('$bot_name','$hp','$hp_all','$bid','$bot','2','$mana','$mana_all')");
$kick_temp = mysql_query("DELETE FROM team2 WHERE player='$bot'");

}
/*===============================================================*/
if($act=="dialog"){
include"inc/canalization/podzem_dialog.php";
die();
}
if($act=="HucumNewCanalS"){
include"inc/battle/battle.php";
die();
}

if($act=="luka"){
print "<script>location.href=\"?act=dialog\";</script>";
exit;
}


if($act=="atk"){
if ($db['hp_now'] < (($db['hp']+$db['vitality']*5)*0.33)) {$msg="Sizin dцyьş etmək ьзьn həyat səviyyəniz azdır!";}
else{

$ass = mysql_query("SELECT glav_id FROM labirint WHERE user_id='$id'");
$lab = mysql_fetch_array($ass);
$glav_id = $lab["glav_id"];
$assd = mysql_query("SELECT * FROM podzem WHERE glav_id='$glav_id'");
$lxx = mysql_fetch_array($assd);
$bow = $lxx["bot$n"];
$bow2 = $lxx["bot$n2"];
$bow3 = $lxx["bot$n3"];
$bag = "bot$n";
$yes="0";
if($bow == '1' or $bow2 == '1' or $bow3 == '1') {$yes = "1";}
if($yes == '0'){
        startpod($stat['user'],$b,$b2,$b3,$n,$n2,$n3);
}
}}
/************************************/


$act=htmlspecialchars($act);
$hozyain=$stat['user'];
//if($room == "Подземелье"){
//include "conf.php";
include "inc/canalization/canalization_mod.php";

        // Получим текущее местоположение игрока в канализации
        $rss=mysql_query("select id from players where user='".$stat['user']."'");
        while($lab = mysql_fetch_array($rss)){
        $User=$lab["id"];
        $ctime=time();
        $rs=mysql_query("select * from labirint where user_id=$User");
        if(mysql_num_rows($rs)==0) {
                $Location='16';
                $Time=time();
                $Vector=0;
        } else {
                $r=mysql_fetch_array($rs);
                $glav_id = $r["glav_id"];
                                $kill = $r["dead"];
                $key1 = $r["key1"];
                $key2 = $r["key2"];
                $key3 = $r["key3"];
                                $el = $r["el"];
                $Location=$r['location'];
                $Time=$r['visit_time'];
                $Vector=$r['vector'];
                if($Location=='0') {
//                        header('Location: main.php');
                        header('Location: canalizaciya.php');
                        exit;
                }}}




if($kill>=3){print"<script>location.href='canalizaciya.php?act=cexit'</script>";}
$cx=mysql_query("select * from podzem where glav_id='$glav_id'");
$v=mysql_fetch_array($cx);
$bot1 = $v["bot1"];
$bot2 = $v["bot2"];
$bot3 = $v["bot3"];
$bot4 = $v["bot4"];
$bot5 = $v["bot5"];
$bot6 = $v["bot6"];
$bot7 = $v["bot7"];
$bot8 = $v["bot8"];
$bot9 = $v["bot9"];
$bot10 = $v["bot10"];
$bot11 = $v["bot11"];
$bot12 = $v["bot12"];
$bot13 = $v["bot13"];
$bot14 = $v["bot14"];
$bot15 = $v["bot15"];
$bot16 = $v["bot16"];
$bot17 = $v["bot17"];
$bot18 = $v["bot18"];
$bot19 = $v["bot19"];
$bot20 = $v["bot20"];
$bot21 = $v["bot21"];
$bot22 = $v["bot22"];
$bot23 = $v["bot23"];
$bot24 = $v["bot24"];
$bot25 = $v["bot25"];
$bot26 = $v["bot26"];
$bot27 = $v["bot27"];
$bot28 = $v["bot28"];
$bot29 = $v["bot29"];
$bot30 = $v["bot30"];
$bot31 = $v["bot31"];
$bot32 = $v["bot32"];
$bot33 = $v["bot33"];
$bot34 = $v["bot34"];
$bot35 = $v["bot35"];
$bot36 = $v["bot36"];
$bot37 = $v["bot37"];
$bot38 = $v["bot38"];
$bot39 = $v["bot39"];
$bot40 = $v["bot40"];
$bot41 = $v["bot41"];
$bot42 = $v["bot42"];
$bot43 = $v["bot43"];
$bot44 = $v["bot44"];
$bot45 = $v["bot45"];
$bot46 = $v["bot46"];
$bot47 = $v["bot47"];
$bot48 = $v["bot48"];
$bot49 = $v["bot49"];
$bot50 = $v["bot50"];
$bot51 = $v["bot51"];
$bot52 = $v["bot52"];
$bot53 = $v["bot53"];
$bot54 = $v["bot54"];
$bot55 = $v["bot55"];
$bot56 = $v["bot56"];
$bot57 = $v["bot57"];
$bot58 = $v["bot58"];
$bot59 = $v["bot59"];

if(in_array($_GET['action'], array('rotateleft','rotateright'))) {
                                if($_GET['action']=='rotateleft') {
                                        $Vector-=90;
                                        if($Vector<0) $Vector=270;
                                } else if($_GET['action']=='rotateright') {
                                        $Vector+=90;
                                        if($Vector>270) $Vector=0;
                                }
mysql_query("update labirint set location='$Location', vector='$Vector', visit_time='$Time' where user_id='$User'");
                        }



if($Location==26 && $Vector==90 && $bot1<='1'  or
   $Location==26 && $Vector==90 && $bot2<='1' or
   $Location==26 && $Vector==90 && $bot3<='1' or
   $Location==26 && $Vector==270 && $bot4<='1' or
   $Location==37 && $Vector==0 && $bot5<='1' or
   $Location==28 && $Vector==180 && $bot6<='1' or
   $Location==35 && $Vector==0 && $bot7<='1' or
   $Location==35 && $Vector==0 && $bot8<='1' or
   $Location==55 && $Vector==0 && $bot9<='1' or
   $Location==55 && $Vector==0 && $bot10<='1' or
   $Location==66 && $Vector==0 && $bot11<='1' or
   $Location==66 && $Vector==0 && $bot12<='1' or
   $Location==66 && $Vector==0 && $bot13<='1' or
   $Location==65 && $Vector==270 && $bot14<='1' or
   $Location==65 && $Vector==270 && $bot15<='1' or
   $Location==65 && $Vector==270 && $bot16<='1' or
   $Location==74 && $Vector==0 && $bot17<='1'  or
   $Location==74 && $Vector==0 && $bot17<='1'  or
   $Location==74 && $Vector==0 && $bot17<='1'  or
   $Location==85 && $Vector==90 && $bot20<='1' or
   $Location==85 && $Vector==90 && $bot20<='1' or
   $Location==85 && $Vector==90 && $bot20<='1' or
   $Location==56 && $Vector==90 && $bot24<='1' or
   $Location==56 && $Vector==90 && $bot25<='1' or
   $Location==57 && $Vector==0 && $bot26<='1' or
   $Location==67 && $Vector==0 && $bot27<='1' or
   $Location==77 && $Vector==0 && $bot28<='1' or
   $Location==88 && $Vector==270 && $bot28<='1' or
   $Location==78 && $Vector==270 && $bot27<='1' or
   $Location==68 && $Vector==270 && $bot26<='1' or
   $Location==87 && $Vector==180 && $bot27<='1' or
   $Location==77 && $Vector==180 && $bot26<='1' or
   $Location==67 && $Vector==90 && $bot29<='1' or
   $Location==78 && $Vector==180 && $bot29<='1' or
   $Location==69 && $Vector==270 && $bot29<='1' or
  $Location==69 && $Vector==0 && $bot30<='1' or
  $Location==78 && $Vector==90 && $bot30<='1' or
  $Location==89 && $Vector==180 && $bot30<='1' or
  $Location==69 && $Vector==0 && $bot31<='1' or
  $Location==78 && $Vector==90 && $bot31<='1' or
  $Location==89 && $Vector==180 && $bot31<='1' or
  $Location==89 && $Vector==0 && $bot32<='1' or
  $Location==54 && $Vector==270 && $bot33<='1' or
  $Location==54 && $Vector==270 && $bot34<='1' or
  $Location==53 && $Vector==0 && $bot35<='1' or
  $Location==73 && $Vector==0 && $bot36<='1' or
  $Location==73 && $Vector==0 && $bot37<='1' or
  $Location==73 && $Vector==0 && $bot38<='1' or
  $Location==83 && $Vector==270 && $bot39<='1' or
  $Location==83 && $Vector==270 && $bot40<='1' or
  $Location==81 && $Vector==180 && $bot41<='1' or
  $Location==81 && $Vector==180 && $bot42<='1' or
  $Location==81 && $Vector==180 && $bot43<='1' or
  $Location==81 && $Vector==0 && $bot44<='1' or
  $Location==24 && $Vector==0 && $bot45<='1' or
  $Location==14 && $Vector==180 && $bot46<='1' or
    $Location==03 && $Vector==270 && $bot47<='1' or
  $Location==03 && $Vector==270 && $bot48<='1' or
  $Location==03 && $Vector==270 && $bot49<='1' or
  $Location==11 && $Vector==0 && $bot53<='1' or
  $Location==11 && $Vector==0 && $bot54<='1' or
  $Location==11 && $Vector==0 && $bot55<='1' or
  $Location==01 && $Vector==0 && $bot50<='1' or
  $Location==01 && $Vector==0 && $bot50<='1' or
  $Location==01 && $Vector==0 && $bot50<='1' or
  $Location==41 && $Vector==90 && $bot56<='1' or
  $Location==41 && $Vector==90 && $bot57<='1' or
  $Location==41 && $Vector==90 && $bot58<='1' or
  $Location==43 && $Vector==180 && $bot59<='1' or
  $Location==86 && $Vector==0 && $bot23<='1'  or
   $Location==25 && $Vector==270 && $key1!='1' or                 //решетка №1
  $Location==24 && $Vector==90 && $key1!='1' or                //решетка №1
  $Location==04 && $Vector==270 && $key2!='1' or    //решетка №2
  $Location==03 && $Vector==90 && $key2!='1' or    //решетка №2
  $Location==31 && $Vector==0 && $key3!='1' or    //решетка №3
  $Location==41 && $Vector==180 && $key3!='1'      //решетка №3


){}else{
if(in_array($_GET['action'], array('forward'))) {
                        $step1=next_step($Location, $Vector);
                                if($step1['fwd']) {
                                                $Location=$step1['fwd'];
                                                $Time=$ctime;
                                        }
mysql_query("update labirint set location='$Location', vector='$Vector', visit_time='$Time' where user_id='$User'");
                        }
                        }



if($Location==26 && $Vector==270 && $bot1<='1' or
   $Location==26 && $Vector==270 && $bot2<='1'   or
   $Location==26 && $Vector==270 && $bot3<='1'   or
   $Location==26 && $Vector==90 && $bot4<='1'  or
   $Location==37 && $Vector==180 && $bot5<='1' or
   $Location==28 && $Vector==0 && $bot6<='1' or
   $Location==35 && $Vector==180 && $bot7<='1' or
   $Location==35 && $Vector==180 && $bot8<='1' or
   $Location==55 && $Vector==180 && $bot9<='1' or
   $Location==55 && $Vector==180 && $bot10<='1' or
   $Location==66 && $Vector==180 && $bot13<='1' or
   $Location==66 && $Vector==180 && $bot13<='1' or
   $Location==66 && $Vector==180 && $bot13<='1' or
   $Location==65 && $Vector==90 && $bot14<='1' or
   $Location==65 && $Vector==90 && $bot15<='1' or
   $Location==65 && $Vector==90 && $bot16<='1' or
   $Location==74 && $Vector==180 && $bot17<='1'  or
   $Location==74 && $Vector==180 && $bot17<='1'  or
   $Location==74 && $Vector==180 && $bot17<='1' or
   $Location==85 && $Vector==270 && $bot20<='1' or
   $Location==85 && $Vector==270 && $bot20<='1' or
   $Location==85 && $Vector==270 && $bot20<='1' or
   $Location==56 && $Vector==270 && $bot24<='1' or
   $Location==56 && $Vector==270 && $bot25<='1' or
   $Location==57 && $Vector==180 && $bot26<='1' or
   $Location==67 && $Vector==180 && $bot27<='1' or
   $Location==77 && $Vector==180 && $bot28<='1' or
   $Location==88 && $Vector==90 && $bot28<='1' or
   $Location==78 && $Vector==90 && $bot27<='1' or
   $Location==68 && $Vector==90 && $bot26<='1' or
   $Location==87 && $Vector==0 && $bot27<='1' or
   $Location==77 && $Vector==0 && $bot26<='1' or
   $Location==67 && $Vector==270 && $bot29<='1' or
   $Location==78 && $Vector==0 && $bot29<='1' or
   $Location==69 && $Vector==90 && $bot29<='1' or
    $Location==69 && $Vector==180 && $bot30<='1' or
  $Location==78 && $Vector==270 && $bot30<='1' or
  $Location==89 && $Vector==0 && $bot30<='1' or
  $Location==69 && $Vector==180 && $bot31<='1' or
  $Location==78 && $Vector==270 && $bot31<='1' or
  $Location==89 && $Vector==0 && $bot31<='1' or
  $Location==89 && $Vector==180 && $bot32<='1' or
    $Location==54 && $Vector==90 && $bot33<='1' or
  $Location==54 && $Vector==90 && $bot34<='1' or
  $Location==53 && $Vector==180 && $bot35<='1' or
  $Location==73 && $Vector==180 && $bot36<='1' or
  $Location==73 && $Vector==180 && $bot37<='1' or
  $Location==73 && $Vector==180 && $bot38<='1' or
  $Location==83 && $Vector==90 && $bot39<='1' or
  $Location==83 && $Vector==90 && $bot40<='1' or
  $Location==81 && $Vector==0 && $bot41<='1' or
  $Location==81 && $Vector==0 && $bot42<='1' or
  $Location==81 && $Vector==0 && $bot43<='1' or
  $Location==81 && $Vector==180 && $bot44<='1' or
  $Location==24 && $Vector==180 && $bot45<='1' or
  $Location==14 && $Vector==0 && $bot46<='1' or
  $Location==03 && $Vector==90 && $bot47<='1' or
  $Location==03 && $Vector==90 && $bot48<='1' or
  $Location==03 && $Vector==90 && $bot49<='1' or
  $Location==11 && $Vector==180 && $bot53<='1' or
  $Location==11 && $Vector==180 && $bot54<='1' or
  $Location==11 && $Vector==180 && $bot55<='1' or
  $Location==01 && $Vector==180 && $bot50<='1' or
  $Location==01 && $Vector==180 && $bot50<='1' or
  $Location==01 && $Vector==180 && $bot50<='1' or
  $Location==41 && $Vector==270 && $bot56<='1' or
  $Location==41 && $Vector==270 && $bot57<='1' or
  $Location==41 && $Vector==270 && $bot58<='1' or
  $Location==43 && $Vector==0 && $bot59<='1' or
  $Location==86 && $Vector==180 && $bot23<='1' or
  $Location==25 && $Vector==90 && $key1!='1' or                //решетка №1
  $Location==24 && $Vector==270 && $key1!='1' or                //решетка №1
  $Location==04 && $Vector==90 && $key2!='1' or    //решетка №2
  $Location==03 && $Vector==270 && $key2!='1' or    //решетка №2
  $Location==31 && $Vector==180 && $key3!='1' or    //решетка №3
  $Location==41 && $Vector==0 && $key3!='1'      //решетка №3

){}else{
if(in_array($_GET['action'], array('back'))) {
                                $step1=next_step($Location, $Vector);
                                if($step1['back']) {
                                $Location=$step1['back'];
                                $Time=$ctime;}
mysql_query("update labirint set location='$Location', vector='$Vector', visit_time='$Time' where user_id='$User'");
                        }  }

////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
if($sn=='1'){$g = $v["bot1"]; $s = "bot1"; $sunduk = $v["sunduk1"]; $sund = "sunduk1";}
if($sn=='2'){$g = $v["bot2"]; $s = "bot2"; $sunduk = $v["sunduk2"]; $sund = "sunduk2";}
if($sn=='3'){$g = $v["bot3"]; $s = "bot3"; $sunduk = $v["sunduk3"]; $sund = "sunduk3";}
if($sn=='4'){$g = $v["bot4"]; $s = "bot4"; $sunduk = $v["sunduk4"]; $sund = "sunduk4";}
if($sn=='5'){$g = $v["bot5"]; $s = "bot5"; $sunduk = $v["sunduk5"]; $sund = "sunduk5";}
if($sn=='6'){$g = $v["bot6"]; $s = "bot6"; $sunduk = $v["sunduk6"]; $sund = "sunduk6";}
if($sn=='7'){$g = $v["bot7"]; $s = "bot7"; $sunduk = $v["sunduk7"]; $sund = "sunduk7";}
if($sn=='8'){$g = $v["bot8"]; $s = "bot8";}
if($sn=='9'){$g = $v["bot9"]; $s = "bot9";}
if($sn=='10'){$g = $v["bot10"]; $s = "bot10";}
if($sn=='11'){$g = $v["bot11"]; $s = "bot11";}
if($sn=='12'){$g = $v["bot12"]; $s = "bot12";}
if($sn=='13'){$g = $v["bot13"]; $s = "bot13";}
if($sn=='14'){$g = $v["bot14"]; $s = "bot14";}
if($sn=='15'){$g = $v["bot15"]; $s = "bot15";}
if($sn=='16'){$g = $v["bot16"]; $s = "bot16";}
if($sn=='17'){$g = $v["bot17"]; $s = "bot17";}
if($sn=='18'){$g = $v["bot18"]; $s = "bot18";}
if($sn=='19'){$g = $v["bot19"]; $s = "bot19";}
if($sn=='20'){$g = $v["bot20"]; $s = "bot20";}
if($sn=='21'){$g = $v["bot21"]; $s = "bot21";}
if($sn=='22'){$g = $v["bot22"]; $s = "bot22";}
if($sn=='23'){$g = $v["bot23"]; $s = "bot23";}
if($sn=='24'){$g = $v["bot24"]; $s = "bot24";}
if($sn=='25'){$g = $v["bot25"]; $s = "bot25";}
if($sn=='26'){$g = $v["bot26"]; $s = "bot26";}
if($sn=='27'){$g = $v["bot27"]; $s = "bot27";}
if($sn=='28'){$g = $v["bot28"]; $s = "bot28";}
if($sn=='29'){$g = $v["bot29"]; $s = "bot29";}
if($sn=='30'){$g = $v["bot30"]; $s = "bot30";}
if($sn=='31'){$g = $v["bot31"]; $s = "bot31";}
if($sn=='32'){$g = $v["bot32"]; $s = "bot32";}
if($sn=='33'){$g = $v["bot33"]; $s = "bot33";}
if($sn=='34'){$g = $v["bot34"]; $s = "bot34";}
if($sn=='35'){$g = $v["bot35"]; $s = "bot35";}
if($sn=='36'){$g = $v["bot36"]; $s = "bot36";}
if($sn=='37'){$g = $v["bot37"]; $s = "bot37";}
if($sn=='38'){$g = $v["bot38"]; $s = "bot38";}
if($sn=='39'){$g = $v["bot39"]; $s = "bot39";}
if($sn=='40'){$g = $v["bot40"]; $s = "bot40";}
if($sn=='41'){$g = $v["bot41"]; $s = "bot41";}
if($sn=='42'){$g = $v["bot42"]; $s = "bot42";}
if($sn=='43'){$g = $v["bot43"]; $s = "bot43";}
if($sn=='44'){$g = $v["bot44"]; $s = "bot44";}
if($sn=='45'){$g = $v["bot45"]; $s = "bot45";}
if($sn=='46'){$g = $v["bot46"]; $s = "bot46";}
if($sn=='47'){$g = $v["bot47"]; $s = "bot47";}
if($sn=='48'){$g = $v["bot48"]; $s = "bot48";}
if($sn=='49'){$g = $v["bot49"]; $s = "bot49";}
if($sn=='50'){$g = $v["bot50"]; $s = "bot50";}
if($sn=='51'){$g = $v["bot51"]; $s = "bot51";}
if($sn=='52'){$g = $v["bot52"]; $s = "bot52";}
if($sn=='53'){$g = $v["bot53"]; $s = "bot53";}
if($sn=='54'){$g = $v["bot54"]; $s = "bot54";}
if($sn=='55'){$g = $v["bot55"]; $s = "bot55";}
if($sn=='56'){$g = $v["bot56"]; $s = "bot56";}
if($sn=='57'){$g = $v["bot57"]; $s = "bot57";}
if($sn=='58'){$g = $v["bot58"]; $s = "bot58";}
if($sn=='59'){$g = $v["bot59"]; $s = "bot59";}
$glav_id = $stat['id'];
if(in_array($_GET['sun'], array('se_gaika'))) {
if($g=='2'){

mysql_query("UPDATE podzem SET $s='10' WHERE glav_id=$glav_id");
mysql_query("INSERT INTO `objects` (`user`,`inf`,`min`,`tip`,`time`, `about`) VALUES ('".$stat['user']."','gaika|Qayka|1|0|0|0|0|1','0|0|0|0|0|0|0|0','49','".time()."', 'Qayka')");
echo"<script>parent.main.location=\"canalizaciya.php?warning=1\"</script>";
}else{echo"<script>parent.main.location=\"canalizaciya.php?warning=2\"</script>";}}


if(in_array($_GET['sun'], array('se_vintel'))) {
if($g=='2'){

mysql_query("UPDATE podzem SET $s='10' WHERE glav_id=$glav_id");
mysql_query("INSERT INTO `objects` (`user`,`inf`,`min`,`tip`,`time`, `about`) VALUES ('".$stat['user']."','vint|Vint|1|0|0|0|0|1','0|0|0|0|0|0|0|0','49','".time()."', 'Vint')");
echo"<script>parent.main.location=\"canalizaciya.php?warning=3\"</script>";
}else{echo"<script>parent.main.location=\"canalizaciya.php?warning=2\"</script>";}}

if(in_array($_GET['sun'], array('key'))) {
if($sn=='1'){$keys="key1";}
if($sn=='2'){$keys="key2";}
if($sn=='3'){$keys="key3";}
if($sn=='1' && $key1!=1 or $sn=='2' && $key2!=1 or $sn=='3' && $key3!=1){
echo"<script>parent.main.location=\"canalizaciya.php?warning=4&key=$sn\"</script>";
mysql_query("UPDATE labirint SET $keys='1' WHERE glav_id=$glav_id");
}
else
echo"<script>parent.main.location=\"canalizaciya.php?warning=5&key=$sn\"</script>";

}

if(in_array($_GET['sun'], array('gaika'))) {
if($sunduk=='0'){
mysql_query("UPDATE podzem SET $sund='1' WHERE glav_id=$glav_id");
mysql_query("INSERT INTO `objects` (`user`,`inf`,`min`,`tip`,`time`, `about`) VALUES ('".$stat['user']."','gaika|Qayka|1|0|0|0|0|1','0|0|0|0|0|0|0|0','49','".time()."', 'Qayka')");
echo"<script>parent.main.location=\"canalizaciya.php?warning=6\"</script>";
}else{echo"<script>parent.main.location=\"canalizaciya.php?warning=7\"</script>";}}

if(in_array($_GET['sun'], array('bolt'))) {
if($sunduk=='0'){
mysql_query("UPDATE podzem SET $sund='1' WHERE glav_id=$glav_id");
mysql_query("INSERT INTO `objects` (`user`,`inf`,`min`,`tip`,`time`, `about`) VALUES ('".$stat['user']."','bolt|Bolt|1|0|0|0|0|1','0|0|0|0|0|0|0|0','49','".time()."', 'Bolt')");

echo"<script>parent.main.location=\"canalizaciya.php?warning=8\"</script>";
}else{echo"<script>parent.main.location=\"canalizaciya.php?warning=7\"</script>";}}

if(in_array($_GET['sun'], array('se_kluchiik'))) {
if($g=='2'){

mysql_query("UPDATE podzem SET $s='10' WHERE glav_id=$glav_id");
mysql_query("INSERT INTO `objects` (`user`,`inf`,`min`,`tip`,`time`, `about`) VALUES ('".$stat['user']."','kluchik|Acar|1|0|0|0|0|1','0|0|0|0|0|0|0|0','49','".time()."', 'Aзar')");
echo"<script>parent.main.location=\"canalizaciya.php?warning=9\"</script>";
}
else{echo"<script>parent.main.location=\"canalizaciya.php?warning=2\"</script>";}}
/*
if(in_array($_GET['sun'], array('el'))) {
if($el=='0'){
$fo = mysql_query("INSERT INTO inv(owner,img,object_type,object_razdel,kr,iznos_max,name,mass,vostan_hp,min_lev
el,min_sila,min_power ) VALUES ('$hozyain','elek/hp.gif','elek','elek','0','5','Зелье жизни +100хп','5','100','4','5','8')");

mysql_query("UPDATE labirint SET el='1' WHERE glav_id=$glav_id and login='$hozyain'");

header("location: /main.php?act=none&warning=10");exit;
}else{header("location: /main.php?act=none&warning=11");exit;}}*/
?>
<script language="JavaScript">
        var stop_time=20;
        function load_page()
        {
                setTimeout('update_timeout()',100);
        }
           var max_stop_time = stop_time;
        function update_timeout()
        {
                stop_time--;
                if(stop_time>=0)
                {
                        var o = document.getElementById("move");
                        if(o)
                        {
                            var width = ((max_stop_time-stop_time)/max_stop_time)*110;
                            if (width > 110)
                            {
                                width = 110
                            }
                            o.style.width = width+'px';
                        }
                }
                setTimeout('update_timeout()',100);
        }
        function check_time()
        {
                if(stop_time<1) return true;
                else
                {
                        document.getElementById("mess").innerHTML=" Gцzləyin.";
                        return false;
                }
        }

        </script>



<?
print'<table width="100%" border="0" background=i/town/bgg2.gif>';
print'<tr align=right valign=top border="0">
<td>
<table width="100%" border="0">
  <tr>';
print'<td width="48%" align="left" valign="top">';

print'<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="18">';

if($warning=='1'){print"<font style='font-size:12px; color:red;'>[b]Siz əldə etdiniz 'Qayka'[/b]</font>
";}
if($warning=='3'){print"<font style='font-size:12px; color:red;'>[b]Siz əldə etdiniz 'Vint'[/b]</font>
";}
if($warning=='2'){print"<font style='font-size:12px; color:red;'>[b]Kimsə sizdən daha sьrətlidir![/b]
</font>";}
if($warning=='4'){print"<font style='font-size:12px; color:red;'>[b]Siz Aзar №$key gцtьrdьnьz[/b]</font>
";}
if($warning=='5'){print"<font style='font-size:12px; color:red;'>[b]Sizdə artıq Aзar №$key var[/b]</font>
";}

if($warning=='6'){print"<font style='font-size:12px; color:red;'>[b]Siz tapdınız 'Qayka'[/b]</font>
";}
if($warning=='8'){print"<font style='font-size:12px; color:red;'>[b]Siz tapdınız 'Bolt'[/b]</font>
";}
if($warning=='7'){print"<font style='font-size:12px; color:red;'>[b]Sandıq boşdur[/b]</font>
";}

if($warning=='9'){print"<font style='font-size:12px; color:red;'>[b]Siz əldə etdiniz 'Aзar'[/b]</font>
";}
if($warning=='10'){print"<font style='font-size:12px; color:red;'>[b]Siz can eliksiri gцtьrdьnьz[/b]</font>
";}
if($warning=='11'){print"<font style='font-size:12px; color:red;'>[b]Siz artıq eliksiri gцtьrmьsьnьz![/b]</font>
";}
print'</td>
</tr>
</table>
';

$sid = mysql_query("select * from labirint where glav_id='$glav_id'");
while($did = mysql_fetch_array($sid))
{
$lab_login=$did["login"];
$result = mysql_query("SELECT * FROM players WHERE user='$lab_login'");
$stat = mysql_fetch_array($result);
$lab_lvl=$stat["level"];
$pod_login = $stat["user"];
echo"<script LANGUAGE=\"JavaScript\" SRC=\"i/show_inf.js\"></SCRIPT>
<script LANGUAGE=\"JavaScript\" SRC=\"i/login_form.js\"></SCRIPT>";
 print"<table border='0' cellspacing='0' cellpadding='0'><tr><td>";
print"<script language=JavaScript>
show_inf('$stat[user]','$stat[id]','$stat[level]','$stat[rank]','$stat[tribe]');
</SCRIPT>";
              print"</td> ";
              print"<td>";

include("inc/main/changed.php");
$log=htmlspecialchars($log);
$hp[0]=$stat["hp_now"];
//$hp[1]=$db["hp_all"];
$hp[1]=$stat["hp_max"];
//
$cure_hp=$stat["cure_hp"];
$jtn=$stat["jeton"];
$hpp = $stat["hp_now"];
//$hp_all  = $db["hp_all"];
$hp_all  = $stat["hp_max"];
$time_to_cure=$cure_hp-time();
$pl1 = str_replace(" ","%20",$lab_login);

print " <font id=\"info\"></font>";
if($hpp>$hp_all){
$news = mysql_query("UPDATE players SET hp=$hp_all WHERE user='$lab_login'");
}
echo"
<font color=darkred>[b]Jeton : [u]$jtn[/u] ədəd.[/b]</font>

<font color=red>$msg</font>
";










?>



<?





              
              print"</td></tr></table>";


}
print"
";


$gag = mysql_query("SELECT * FROM qwest WHERE login='$hozyain' and status!='ok'");
while($qw = mysql_fetch_array($gag))
{
$name_qwest = $qw["name_qwest"];
$zadanie = $qw["zadanie"];
$qwes = mysql_query("SELECT id FROM objects WHERE inf='kluchik|Ключик|1|0|0|0|0|1' and user='".$stat['user']."'");
$qwesta = mysql_fetch_array($qwes);
if($qwesta){$ok_qwest = "1";}else{$ok_qwest = "0";}
print"<font style='font-size:13px; color:#000'>Задание:</font> <font style='font-size:11px; color:#000'>$zadanie ($ok_qwest/1)</font>

";
}

if($kill>'0'){print"<font style='font-size:15px; color:#600'> [b]Цlmьsьnьz:</font>[/b] <b style='font-size:14px; color:#000'>$kill[/b]

";}
include "inc/canalization/podzem_res.php";

        print'</td>';

    print'<td width="52%" align=right valign=top border="0">';


   print' <table><tr>
<td width="530" height="285" align="right">';


print"<font style='font-size:18px; color:#400000'>[b]Kanalizasiya[/b]</font>[url="'?act=cexit&ids=$User'"][b]Зıx[/b][/url]";
print'<div style="position:relative;  id="ione"><div align="left">[img]i/canalization/podzem.jpg[/img]</div>';
echo"<div style='position:absolute; left:374px; top:123px;'><img src='i/canalization/yo.gif' border='0' width='150' height='130'></div>";


//////////////////////////////////////////navig///////////////////////////////////
$step1=next_step($Location, $Vector);
if($step1['fwd']) {
echo"<div style='position:absolute; left:430px; top:40px;'>[url="'?action=forward&path=ireli'"]<img src='i/canalization/img/podzem/top.gif' border='0' width='43' height='21' alt='İrəli getmək'>[/url]</div>";
}else{
echo"<div style='position:absolute; left:430px; top:40px;'><img src='i/canalization/img/podzem/top.gif' border='0' width='43' height='21' alt='İrəli olmaz'></a></div>";}

echo"<div style='position:absolute; left:382px; top:50px;'>[url="'?action=rotateleft&path=sola'><img"][/url]</div>";

echo"<div style='position:absolute; left:493px; top:50px;'>[url="'?action=rotateright&path=saga'><img"][/url]</div>";


$step1=next_step($Location, $Vector);
if($step1['back']) {
echo"<div style='position:absolute; left:430px; top:84px;'>[url="'?action=back&path=geriye'"]<img src='i/canalization/img/podzem/b.gif' border='0' width='43' height='25' alt='Geri getmək'>[/url]</div>";
}else{
echo"<div style='position:absolute; left:430px; top:84px;'><img src='i/canalization/img/podzem/b.gif' border='0' width='43' height='25' alt='Geri olmaz'></a></div>";}
/////////////////////////////////////////////////////////////////////////////////
echo build_move_image($Location, $Vector);

include"inc/canalization/podzem_mod.php";
?>
<script>load_page();</script>
<div style='position:absolute; left:398px; top:10px;'>
<table cellpadding="0" border=0 width=110 cellspacing="0">
<tr>
<table cellspacing="0" cellpadding="0" width="110" border="0">
<tr>
<td width="110" >[img]i/canalization/move.gif[/img]</td>
</tr>
<tr>
<td><div id=mess style='color:#ff0000'></div></td>
</tr>
</table>
</td>
</tr>
</table></div>
<?
print'</div>';

//echo"<div style='position:absolute; left:90px; top:20px; width:px; height:1px; z-index:101; overflow:visible;'>";
if($Vector==0) echo '[size="1"]Şimala baxın[/size]';
if($Vector==90) echo"[size="1"]Şərqə baxın[/size]";
if($Vector==180) echo '[size="1"]Cənuba baxın[/size]';
if($Vector==270) echo '[size="1"]Qərbə baxın[/size]';
echo"</div>";
if($stat["user"]=='XGame'){echo"
[size="1"]Koordinat:[/size] [<font color='red'>$Location</font>]
[size="1"]Vektor:[/size] [<font color='red'>$Vector</font>]";}




echo"Created By XGame";






print'</td></tr>
</table>


    </td>
  </tr>
</table>

</td>
</tr>
</table>';



//}
?>
<div id=hint4 class=ahint></div>
<LINK REL=StyleSheet HREF='i/main.css' TYPE='text/css'>

<script>
var rnd = Math.random();
function attack(b,b2,b3,n,n2,n3)
{
 document.location.href="?act=atk&b="+b+"&b2="+b2+"&b3="+b3+"&n="+n+"&n2="+n2+"&n3="+n3+"&rnd="+Math.random();
}
function dialog()
{
 document.location.href="?act=luka&rnd="+Math.random();
}
function OpenMenu(b,b2,b3,n,n2,n3){
         var el, x, y;
         el = document.all("oMenu");
         x = event.clientX + document.documentElement.scrollLeft +document.body.scrollLeft - 5;
         y = event.clientY + document.documentElement.scrollTop + document.body.scrollTop-5;
         if (event.clientY + 72 > document.body.clientHeight) { y-=62 } else { y-=2 }
         el.innerHTML = '<div class=menuItem onmouseout="this.className=\'menuItem\';" onmouseover="this.className=\'menuItem2\';" onclick="this.disabled = true;attack('+b+','+b2+','+b3+','+n+','+n2+','+n3+');closeMenu(event);"> Hьcum </>';

         el.style.left = x + "px";
         el.style.top  = y + "px";
         el.style.visibility = "visible";
}
function Opendialog(b,b2,b3,n,n2,n3){
         var el, x, y;
         el = document.all("oMenu");
         x = event.clientX + document.documentElement.scrollLeft +document.body.scrollLeft - 5;
         y = event.clientY + document.documentElement.scrollTop + document.body.scrollTop-5;
         if (event.clientY + 72 > document.body.clientHeight) { y-=62 } else { y-=2 }
         el.innerHTML = '<div class=menuItem onmouseout="this.className=\'menuItem\';" onmouseover="this.className=\'menuItem2\';" onclick="this.disabled = true;attack('+b+','+b2+','+b3+','+n+','+n2+','+n3+');"> Hьcum </div><div class=menuItem onmouseout="this.className=\'menuItem\';" onmouseover="this.className=\'menuItem2\';" onclick="this.disabled = true;dialog();closeMenu(event);"> Danışmaq </div>';


         el.style.left = x + "px";
         el.style.top  = y + "px";
         el.style.visibility = "visible";
}
//Закрыть меню наподения
function closeMenu(event){
         if (window.event && window.event.toElement)
          {var cls = window.event.toElement.className;
                  if (cls=='menuItem' || cls=='menu') return;
          }
         document.all("oMenu").style.visibility = "hidden";
         document.all("oMenu").style.top="0px";
         document.all("oMenu").style.left="0px";
         return false;
}
</script>

<div style="position:absolute; left:130px; top:50px;" ID=oMenu CLASS="menu"></DIV>
<script>load_page();</script>
</BODY>
</HTML>
 
а базу можно???

+ еще этот фаил нужно podzem_mod.php
 
Напоминает файл канализации из БК, только заточенный под ИВ.
Думаю что можно из БК также взять файл podzem_mod.php и переписать его под ИВ

Что касается базы - похоже надо будет самим восстанавливать. Если честно, мне даже как то лень её восстанавливать...
Да, кст... В ИВ боты с ранком rank==60 а не 63 )
Сколько помню, под ранком 63 там тоже какой то бот есть, но они не рабочие :D
 
';
}
if($Location==26 && $Vector==270){
echo'<div style="position:absolute; left:97px; top:50px;">
rewet.gif
';
}
if($Location==25 && $Vector==270){
echo'<div style="position:absolute; left:50px; top:27px;">
rewet.gif
</div>';
}

if($Location==11 && $Vector==0){
echo'<div style="position:absolute; left:130px; top:66px;">
rewet.gif
</div>';
}
if($Location==21 && $Vector==0){
echo'<div  style="position:absolute; left:103px; top:50px;">
rewet.gif
</div>';
}
if($Location==31 && $Vector==0){
echo'<div  style="position:absolute; left:60px; top:31px;">
rewet.gif
</div>';
}

if($Location==01 && $Vector==90){
echo'<div style="position:absolute; left:121px; top:66px;">
rewet.gif
</div>';
}
if($Location==02 && $Vector==90){
echo'<div style="position:absolute; left:97px; top:50px;">
rewet.gif
</div>';
}
if($Location==03 && $Vector==90){
echo'<div style="position:absolute; left:48px; top:31px;">
rewet.gif
</div>';
}

if($Location==41 && $Vector==180){
echo'<div style="position:absolute; left:60px; top:31px;">
rewet.gif
</div>';
}

if($Location==24 && $Vector==90){
echo'<div  style="position:absolute; left:55px; top:27px;">
rewet.gif
</div>';
}

if($Location==47 && $Vector==270){
echo'<div style="position:absolute; left:150px; top:105px;">
zel.gif
</div>';
}
if($Location==46 && $Vector==270){
echo'<div style="position:absolute; left:130px; top:120px;"> </div>';
}

if($Location==91 && $Vector==90){echo'<div  style="position:absolute; left:170px; top:140px;">
key3.gif
</div>';}
if($Location==92 && $Vector==90){echo'<div style="position:absolute; left:160px; top:180px;"> </div>';}
if($Location==86 && $Vector==0){echo'<div  style="position:absolute; left:170px; top:140px;">
key2.gif
</div>';}
if($Location==96 && $Vector==0){echo'<div style="position:absolute; left:160px; top:180px;"> </div>';}
if($Location==79 && $Vector==0){echo'<div style="position:absolute; left:180px; top:135px;">
key1.gif
</div>';}
if($Location==89 && $Vector==0){echo'<div style="position:absolute; left:170px; top:140px;">
key1.gif
</div>';}
if($Location==99 && $Vector==0){echo'<div style="position:absolute; left:160px; top:180px;"> </div>';}


//////////////////////////////////////////////////////////////////////////////////
/////////////////////Sandıqи/////////////////////
if($Location==76 && $Vector==270){echo'<div style="position:absolute; left:150px; top:125px;">
sun.gif
</div>';}
if($Location==75 && $Vector==270){echo'<div style="position:absolute; left:140px; top:155px;"> </div>';}

if($Location==88 && $Vector==180){echo'<div style="position:absolute; left:150px; top:135px;">
sun.gif
</div>';}
if($Location==79 && $Vector==270){echo'<div style="position:absolute; left:150px; top:135px;">
sun.gif
</div>';}
if($Location==68 && $Vector==0){echo'<div style="position:absolute; left:150px; top:135px;">
sun.gif
</div>';}
if($Location==77 && $Vector==90){echo'<div style="position:absolute; left:150px; top:135px;">
sun.gif
</div>';}
if($Location==78){echo'<div style="position:absolute; left:150px; top:170px;"> </div>';}


if($Location==63 && $Vector==270){echo'<div style="position:absolute; left:150px; top:125px;">
sun.gif
</div>';}
if($Location==62 && $Vector==270){echo'<div style="position:absolute; left:150px; top:170px;"> </div>';}

if($Location==91 && $Vector==180){echo'<div style="position:absolute; left:175px; top:125px;">
sun.gif
</div>';}
if($Location==81 && $Vector==180){echo'<div style="position:absolute; left:165px; top:125px;">
sun.gif
</div>';}
if($Location==71 && $Vector==180){echo'<div style="position:absolute; left:150px; top:125px;">
sun.gif
</div>';}
if($Location==61 && $Vector==180){echo'<div style="position:absolute; left:145px; top:170px;"> </div>';}


if($Location==13 && $Vector==270){echo'<div style="position:absolute; left:160px; top:145px;">
2.gif
</div>';}
if($Location==12 && $Vector==270){echo'<div style="position:absolute; left:155px; top:190px;"> </div>';}

if($Location==23 && $Vector==270){echo'<div style="position:absolute; left:160px; top:145px;">
2.gif
</div>';}
if($Location==22 && $Vector==270){echo'<div style="position:absolute; left:155px; top:190px;"> </div>';}

if($Location==33 && $Vector==270){echo'<div style="position:absolute; left:160px; top:145px;">
2.gif
</div>';}
if($Location==32 && $Vector==270){echo'<div style="position:absolute; left:155px; top:190px;"> </div>';}
//////////////////////////////////////////






if($Location==25 && $Vector==90 && $bot1<='1'){
echo'<div style="position:absolute; left:120px; top:80px;">
mazares.gif
</div>';}
if($Location==25 && $Vector==90 && $bot2<='1'){
echo'<div style="position:absolute; left:160px; top:90px;">
mazares.gif
</div>';}
if($Location==25 && $Vector==90 && $bot3<='1'){
echo'<div style="position:absolute; left:200px; top:80px;">
mazares.gif
</div>';}

if($Location==26 && $Vector==90 && $bot1<='1'){
echo'<div onmouseout="closeMenu();"  style="position:absolute; left:60px; top:20px;">
mazares.gif
</div>';}
if($Location==26 && $Vector==90 && $bot2<='1'){
echo'<div onmouseout="closeMenu();"  style="position:absolute; left:130px; top:40px;">
mazares.gif
</div>';}
if($Location==26 && $Vector==90 && $bot3<='1'){
echo'<div onmouseout="closeMenu();"  style="position:absolute; left:200px; top:20px;">
mazares.gif
</div>';}



if($Location==27 && $Vector==270 && $bot4<='1'){
echo'<div style="position:absolute; left:160px; top:80px;">
mazares.gif
</div>';}
if($Location==26 && $Vector==270 && $bot4<='1'){
echo"<div onmouseout='closeMenu();'  style='position:absolute; left:150px; top:25px;'><img src='i/canalization/mazares.gif' width='100' border='0' height='180' alt='MazareS' style='CURSOR:hand;' onClick='OpenMenu(1,0,0,4,0,0);'></div>";}




if($Location==27 && $Vector==0 && $bot5<='1'){
echo'<div style="position:absolute; left:160px; top:50px;">
epartu.gif
</div>';}
if($Location==37 && $Vector==0 && $bot5<='1'){
echo"<div onmouseout='closeMenu();' style='position:absolute; left:145px; top:25px;'><img src='i/canalization/epartu.gif' width='100' border='0' height='180' alt='Epartu' style='CURSOR:hand;' onClick='OpenMenu(2,0,0,5,0,0);'></div>";}




if($Location==28 && $Vector==180 && $bot6<='1'){
echo"<div onmouseout='closeMenu();' style='position:absolute; left:145px; top:25px;'><img src='i/canalization/luka.gif' width='100' border='0' height='180' alt='Kiara' style='CURSOR:hand;' onClick='Opendialog(3,0,0,6,0,0);'></div>";}



if($Location==25 && $Vector==0 && $bot7<='1'){
echo'<div style="position:absolute; left:130px; top:80px;">
mazares.gif
</div>';}
if($Location==25 && $Vector==0 && $bot8<='1'){
echo'<div style="position:absolute; left:190px; top:80px;">
mazares.gif
</div>';}

if($Location==35 && $Vector==0 && $bot7<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:85px; top:20px;">
mazares.gif
</div>';}
if($Location==35 && $Vector==0 && $bot8<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:185px; top:20px;">
mazares.gif
</div>';}


if($Location==35 && $Vector==0 && $bot9<='1'){
echo'<div style="position:absolute; left:140px; top:70px;">
mazares.gif
</div>';}
if($Location==35 && $Vector==0 && $bot10<='1'){
echo'<div style="position:absolute; left:190px; top:70px;">
mazares.gif
</div>';}
if($Location==45 && $Vector==0 && $bot9<='1'){
echo'<div style="position:absolute; left:130px; top:80px;">
mazares.gif
</div>';}
if($Location==45 && $Vector==0 && $bot10<='1'){
echo'<div style="position:absolute; left:190px; top:80px;">
mazares.gif
</div>';}

if($Location==55 && $Vector==0 && $bot9<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:85px; top:20px;">
mazares.gif
</div>';}
if($Location==55 && $Vector==0 && $bot10<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:185px; top:20px;">
mazares.gif
</div>';}



if($Location==66 && $Vector==0 && $bot11<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:60px; top:20px;">
ursi.gif
</div>';}
if($Location==66 && $Vector==0 && $bot13<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:130px; top:40px;">
epartu.gif
</div>';}
if($Location==66 && $Vector==0 && $bot12<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:200px; top:20px;">
ursi.gif
</div>';}



if($Location==66 && $Vector==270 && $bot14<='1'){
echo'<div style="position:absolute; left:120px; top:80px;">
ursi.gif
</div>';}
if($Location==66 && $Vector==270 && $bot15<='1'){
echo'<div style="position:absolute; left:160px; top:90px;">
mazares.gif
</div>';}
if($Location==66 && $Vector==270 && $bot16<='1'){
echo'<div style="position:absolute; left:200px; top:80px;">
mazares.gif
</div>';}

if($Location==65 && $Vector==270 && $bot14<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:70px; top:30px;">
ursi.gif
</div>';}
if($Location==65 && $Vector==270 && $bot15<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:130px; top:40px;">
mazares.gif
</div>';}
if($Location==65 && $Vector==270 && $bot16<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:200px; top:20px;">
mazares.gif
</div>';}



if($Location==64 && $Vector==0 && $bot17<='1'){
echo'<div style="position:absolute; left:120px; top:80px;">
ursi.gif
</div>';}
if($Location==64 && $Vector==0 && $bot18<='1'){
echo'<div style="position:absolute; left:160px; top:90px;">
ursi.gif
</div>';}
if($Location==64 && $Vector==0 && $bot19<='1'){
echo'<div style="position:absolute; left:200px; top:80px;">
mazares.gif
</div>';}

if($Location==74 && $Vector==0 && $bot17<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:70px; top:30px;">
ursi.gif
</div>';}
if($Location==74 && $Vector==0 && $bot18<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:140px; top:50px;">
ursi.gif
</div>';}
if($Location==74 && $Vector==0 && $bot19<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:200px; top:20px;">
mazares.gif
</div>';}



if($Location==84 && $Vector==90 && $bot20<='1'){
echo'<div style="position:absolute; left:120px; top:80px;">
ursi.gif
</div>';}
if($Location==84 && $Vector==90 && $bot21<='1'){
echo'<div style="position:absolute; left:160px; top:90px;">
ursi.gif
</div>';}
if($Location==84 && $Vector==90 && $bot22<='1'){
echo'<div style="position:absolute; left:200px; top:80px;">
ursi.gif
</div>';}

if($Location==85 && $Vector==90 && $bot20<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:60px; top:30px;">
ursi.gif
</div>';}
if($Location==85 && $Vector==90 && $bot21<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:130px; top:50px;">
ursi.gif
</div>';}
if($Location==85 && $Vector==90 && $bot22<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:200px; top:30px;">
ursi.gif
</div>';}


//Priman//
if($Location==86 && $Vector==0 && $bot23<='1'){
echo"<div onmouseout='closeMenu();' style='position:absolute; left:150px; top:25px;'><img src='i/canalization/priman.gif' width='100' border='0' height='180' alt='Priman' style='CURSOR:hand;' onClick='OpenMenu(5,0,0,23,0,0);'></div>";}


///////////

if($Location==54 && $Vector==90 && $bot24<='1'){
echo'<div style="position:absolute; left:140px; top:81px;">
mazares.gif
</div>';}
if($Location==54 && $Vector==90 && $bot25<='1'){
echo'<div style="position:absolute; left:190px; top:81px;">
mazares.gif
</div>';}

if($Location==55 && $Vector==90 && $bot24<='1'){
echo'<div style="position:absolute; left:130px; top:80px;">
mazares.gif
</div>';}
if($Location==55 && $Vector==90 && $bot25<='1'){
echo'<div style="position:absolute; left:190px; top:80px;">
mazares.gif
</div>';}

if($Location==56 && $Vector==90 && $bot24<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:85px; top:20px;">
mazares.gif
</div>';}
if($Location==56 && $Vector==90 && $bot25<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:185px; top:20px;">
mazares.gif
</div>';}





if($Location==57 && $Vector==0 && $bot28<='1'){
echo'<div  style="position:absolute; left:175px; top:80px;">
mazares.gif
</div>';}
if($Location==67 && $Vector==0 && $bot28<='1'){
echo'<div  style="position:absolute; left:160px; top:70px;">
mazares.gif
</div>';}
if($Location==89 && $Vector==270 && $bot28<='1'){
echo'<div style="position:absolute; left:160px; top:70px;">
mazares.gif
</div>';}
if($Location==77 && $Vector==0 && $bot28<='1'){
echo"<div onmouseout='closeMenu();' style='position:absolute; left:150px; top:25px;'><img src='i/canalization/mazares.gif' width='100' border='0' height='180' alt='MazareS' style='CURSOR:hand;' onClick='OpenMenu(1,0,0,28,0,0);'></div>";}
if($Location==88 && $Vector==270 && $bot28<='1'){
echo"<div onmouseout='closeMenu();' style='position:absolute; left:150px; top:25px;'><img src='i/canalization/mazares.gif' width='100' border='0' height='180' alt='MazareS' style='CURSOR:hand;' onClick='OpenMenu(1,0,0,28,0,0);'></div>";}





if($Location==57 && $Vector==0 && $bot27<='1'){
echo'<div style="position:absolute; left:160px; top:70px;">
mazares.gif
</div>';}
if($Location==79 && $Vector==270 && $bot27<='1'){
echo'<div style="position:absolute; left:160px; top:70px;">
mazares.gif
</div>';}
if($Location==67 && $Vector==0 && $bot27<='1'){
echo"<div onmouseout='closeMenu();' style='position:absolute; left:150px; top:25px;'><img src='i/canalization/mazares.gif' width='100' border='0' height='180' alt='MazareS' style='CURSOR:hand;' onClick='OpenMenu(1,0,0,27,0,0);'></div>";}
if($Location==78 && $Vector==270 && $bot27<='1'){
echo"<div onmouseout='closeMenu();' style='position:absolute; left:150px; top:25px;'><img src='i/canalization/mazares.gif' width='100' border='0' height='180' alt='MazareS' style='CURSOR:hand;' onClick='OpenMenu(1,0,0,27,0,0);'></div>";}
if($Location==87 && $Vector==180 && $bot27<='1'){
echo"<div onmouseout='closeMenu();' style='position:absolute; left:150px; top:25px;'><img src='i/canalization/mazares.gif' width='100' border='0' height='180' alt='MazareS' style='CURSOR:hand;' onClick='OpenMenu(1,0,0,27,0,0);'></div>";}







if($Location==57 && $Vector==0 && $bot26<='1'){
echo"<div onmouseout='closeMenu();' style='position:absolute; left:150px; top:25px;'><img src='i/canalization/mazares.gif' width='100' border='0' height='180' alt='MazareS' style='CURSOR:hand;' onClick='OpenMenu(1,0,0,26,0,0);'></div>";}




if($Location==88 && $Vector==180 && $bot29<='1'){
echo'<div style="position:absolute; left:160px; top:70px;">
ursi.gif
</div>';}

if($Location==67 && $Vector==90 && $bot29<='1'){
echo"<div onmouseout='closeMenu();' style='position:absolute; left:150px; top:25px;'><img src='i/canalization/ursi.gif' width='100' border='0' height='180' alt='Ursi' style='CURSOR:hand;' onClick='OpenMenu(4,0,0,29,0,0);'></div>";}
if($Location==78 && $Vector==180 && $bot29<='1'){
echo"<div onmouseout='closeMenu();' style='position:absolute; left:150px; top:25px;'><img src='i/canalization/ursi.gif' width='100' border='0' height='180' alt='Ursi' style='CURSOR:hand;' onClick='OpenMenu(4,0,0,29,0,0);'></div>";}
if($Location==69 && $Vector==270 && $bot29<='1'){
echo"<div onmouseout='closeMenu();' style='position:absolute; left:150px; top:25px;'><img src='i/canalization/ursi.gif' width='100' border='0' height='180' alt='Ursi' style='CURSOR:hand;' onClick='OpenMenu(4,0,0,29,0,0);'></div>";}





if($Location==77 && $Vector==90 && $bot30<='1' or $Location==99 && $Vector==180 && $bot30<='1'){
echo'<div style="position:absolute; left:135px; top:80px;">
mazares.gif
</div>';}
if($Location==77 && $Vector==90 && $bot31<='1' or $Location==99 && $Vector==180 && $bot31<='1'){
echo'<div style="position:absolute; left:185px; top:80px;">
mazares.gif
</div>';}


if($Location==69 && $Vector==0 && $bot30<='1' or $Location==78 && $Vector==90 && $bot30<='1' or $Location==89 && $Vector==180 && $bot30<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:85px; top:20px;">
mazares.gif
</div>';}
if($Location==69 && $Vector==0 && $bot31<='1' or $Location==78 && $Vector==90 && $bot31<='1' or $Location==89 && $Vector==180 && $bot31<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:185px; top:20px;">
mazares.gif
</div>';}



//Amakar//
if($Location==69 && $Vector==0 && $bot32<='1'){
echo'<div style="position:absolute; left:170px; top:75px;">
amakar.gif
</div>';}
if($Location==79 && $Vector==0 && $bot32<='1'){
echo'<div style="position:absolute; left:165px; top:70px;">
amakar.gif
</div>';}
if($Location==89 && $Vector==0 && $bot32<='1'){
echo"<div onmouseout='closeMenu();'  style='position:absolute; left:150px; top:25px;'><img src='i/canalization/amakar.gif' width='100' border='0' height='180' alt='Amakar' style='CURSOR:hand;' onClick='OpenMenu(6,0,0,32,0,0);'></div>";}


///////////


/////////////////////////3 тунел/////////////////////////
if($Location==56 && $Vector==270 && $bot33<='1'){
echo'<div style="position:absolute; left:140px; top:85px;">
mazares.gif
</div>';}
if($Location==56 && $Vector==270 && $bot34<='1'){
echo'<div style="position:absolute; left:190px; top:85px;">
mazares.gif
</div>';}

if($Location==55 && $Vector==270 && $bot33<='1'){
echo'<div style="position:absolute; left:130px; top:80px;">
mazares.gif
</div>';}
if($Location==55 && $Vector==270 && $bot34<='1'){
echo'<div style="position:absolute; left:190px; top:80px;">
mazares.gif
</div>';}

if($Location==54 && $Vector==270 && $bot33<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:95px; top:30px;">
mazares.gif
</div>';}
if($Location==54 && $Vector==270 && $bot34<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:195px; top:30px;">
mazares.gif
</div>';}




if($Location==53 && $Vector==0 && $bot36<='1'){
echo'<div style="position:absolute; left:130px; top:80px;">
mazares.gif
</div>';}
if($Location==53 && $Vector==0 && $bot37<='1'){
echo'<div style="position:absolute; left:165px; top:80px;">
mazares.gif
</div>';}
if($Location==53 && $Vector==0 && $bot38<='1'){
echo'<div style="position:absolute; left:200px; top:80px;">
mazares.gif
</div>';}
if($Location==63 && $Vector==0 && $bot36<='1'){
echo'<div style="position:absolute; left:115px; top:70px;">
mazares.gif
</div>';}
if($Location==63 && $Vector==0 && $bot37<='1'){
echo'<div style="position:absolute; left:155px; top:80px;">
mazares.gif
</div>';}
if($Location==63 && $Vector==0 && $bot38<='1'){
echo'<div style="position:absolute; left:195px; top:70px;">
mazares.gif
</div>';}
if($Location==73 && $Vector==0 && $bot36<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:60px; top:20px;">
mazares.gif
</div>';}
if($Location==73 && $Vector==0 && $bot37<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:130px; top:40px;">
mazares.gif
</div>';}
if($Location==73 && $Vector==0 && $bot38<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:190px; top:20px;">
mazares.gif
</div>';}



if($Location==53 && $Vector==0 && $bot35<='1'){
echo"<div onmouseout='closeMenu();' style='position:absolute; left:140px; top:25px;'><img src='i/canalization/mazares.gif' width='100' border='0' height='180' alt='MazareS' style='CURSOR:hand;' onClick='OpenMenu(1,0,0,35,0,0);'></div>";}




if($Location==83 && $Vector==270 && $bot39<='1'){
echo"<div onmouseout='closeMenu();' style='position:absolute; left:90px; top:20px;'><img src='i/canalization/epartu.gif' width='100' border='0' height='180' alt='Epartu' style='CURSOR:hand;' onClick='OpenMenu(2,2,0,39,40,0);'></div>";}
if($Location==83 && $Vector==270 && $bot40<='1'){
echo"<div onmouseout='closeMenu();' style='position:absolute; left:190px; top:20px;'><img src='i/canalization/epartu.gif' width='100' border='0' height='180' alt='Epartu' style='CURSOR:hand;' onClick='OpenMenu(2,2,0,39,40,0);'></div>";}





if($Location==91 && $Vector==180 && $bot41<='1'){
echo'<div style="position:absolute; left:115px; top:70px;">
mazares.gif
</div>';}
if($Location==91 && $Vector==180 && $bot42<='1'){
echo'<div style="position:absolute; left:155px; top:80px;">
mazares.gif
</div>';}
if($Location==91 && $Vector==180 && $bot43<='1'){
echo'<div style="position:absolute; left:195px; top:70px;">
mazares.gif
</div>';}
if($Location==81 && $Vector==180 && $bot41<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:75px; top:20px;">
mazares.gif
</div>';}
if($Location==81 && $Vector==180 && $bot42<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:135px; top:40px;">
mazares.gif
</div>';}
if($Location==81 && $Vector==180 && $bot43<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:195px; top:20px;">
mazares.gif
</div>';}



//Assende//
if($Location==61 && $Vector==0 && $bot44<='1'){
echo"<div style='position:absolute; left:170px; top:70px;'><img src='i/canalization/assende.gif' width='45' border='0' height='80' alt='Assende'></div>";}
if($Location==71 && $Vector==0 && $bot44<='1'){
echo"<div style='position:absolute; left:150px; top:20px;'><img src='i/canalization/assende.gif' width='80' border='0' height='150' alt='Assende'></div>";}
if($Location==81 && $Vector==0 && $bot44<='1'){
echo"<div onmouseout='closeMenu();' style='position:absolute; left:150px; top:25px;'>
<img src='i/canalization/assende.gif' width='100' border='0' height='180' alt='Assende' style'CURSOR:hand;' onClick='OpenMenu(7,0,0,44,0,0,4,0,0);'></div>";}

//////////////////////end///////////////////////////
if($Location==04 && $Vector==0 && $bot45<='1'){echo"<div style='position:absolute; left:165px; top:60px;'><img src='i/canalization/ursi.gif' width='50' border='0' height='90' alt='Ursi'></div>";}
if($Location==14 && $Vector==0 && $bot45<='1'){echo"<div style='position:absolute; left:160px; top:50px;'><img src='i/canalization/ursi.gif' width='70' border='0' height='120' alt='Ursi'></div>";}
if($Location==24 && $Vector==0 && $bot45<='1'){
echo"<div onmouseout='closeMenu();' style='position:absolute; left:150px; top:25px;'><img src='i/canalization/ursi.gif' width='100' border='0' height='180' alt='Ursi' style'CURSOR:hand;' onClick='OpenMenu(4,0,0,45,0,0);'></div>";}


if($Location==34 && $Vector==180 && $bot46<='1'){echo"<div style='position:absolute; left:165px; top:60px;'><img src='i/canalization/ursi.gif' width='50' border='0' height='90' alt='Ursi'></div>";}
if($Location==24 && $Vector==180 && $bot46<='1'){echo"<div style='position:absolute; left:160px; top:50px;'><img src='i/canalization/ursi.gif' width='70' border='0' height='120' alt='Ursi'></div>";}
if($Location==14 && $Vector==180 && $bot46<='1'){
echo"<div onmouseout='closeMenu();' style='position:absolute; left:150px; top:25px;'><img src='i/canalization/ursi.gif' width='100' border='0' height='180' alt='Ursi' style'CURSOR:hand;' onClick='OpenMenu(4,0,0,46,0,0);'></div>";}




if($Location==04 && $Vector==270 && $bot47<='1'){
echo'<div style="position:absolute; left:120px; top:50px;">
epartu.gif
</div>';}
if($Location==04 && $Vector==270 && $bot48<='1'){
echo'<div style="position:absolute; left:160px; top:60px;">
epartu.gif
</div>';}
if($Location==04 && $Vector==270 && $bot49<='1'){
echo'<div style="position:absolute; left:200px; top:50px;">
epartu.gif
</div>';}
if($Location==03 && $Vector==270 && $bot47<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:80px; top:35px;">
epartu.gif
</div>';}
if($Location==03 && $Vector==270 && $bot48<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:190px; top:35px;">
epartu.gif
</div>';}
if($Location==03 && $Vector==270 && $bot49<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:140px; top:45px;">
epartu.gif
</div>';}
if($Location==04 && $Vector==270){
echo'<div style="position:absolute; left:50px; top:27px;">
rewet.gif
</div>';
}




if($Location==01 && $Vector==0 && $bot53<='1'){
echo'<div style="position:absolute; left:120px; top:60px;">
epartu.gif
</div>';}
if($Location==01 && $Vector==0 && $bot54<='1'){
echo'<div style="position:absolute; left:160px; top:65px;">
epartu.gif
</div>';}
if($Location==01 && $Vector==0 && $bot55<='1'){
echo'<div style="position:absolute; left:200px; top:60px;">
epartu.gif
</div>';}
if($Location==11 && $Vector==0 && $bot53<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:80px; top:35px;">
epartu.gif
</div>';}
if($Location==11 && $Vector==0 && $bot54<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:190px; top:35px;">
epartu.gif
</div>';}
if($Location==11 && $Vector==0 && $bot55<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:140px; top:45px;">
epartu.gif
</div>';}






if($Location==01 && $Vector==0 && $bot50<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:80px; top:35px;">
epartu.gif
</div>';}
if($Location==01 && $Vector==0 && $bot51<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:190px; top:35px;">
epartu.gif
</div>';}
if($Location==01 && $Vector==0 && $bot52<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:140px; top:45px;">
epartu.gif
</div>';}



if($Location==41 && $Vector==90 && $bot56<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:80px; top:35px;">
epartu.gif
</div>';}
if($Location==41 && $Vector==90 && $bot57<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:190px; top:35px;">
epartu.gif
</div>';}
if($Location==41 && $Vector==90 && $bot58<='1'){
echo'<div onmouseout="closeMenu();" style="position:absolute; left:140px; top:45px;">
epartu.gif
</div>';}


if($Location==43 && $Vector==180 && $bot59<='1'){
echo"<div onmouseout='closeMenu();' style='position:absolute; left:150px; top:30px;'><img src='i/canalization/enqur.gif' width='100' border='0' height='180' alt='Enqur' style'CURSOR:hand;' onClick='OpenMenu(7,1,1,7,1,1);'></div>";}


//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////

?>[/code]
 
Оу) Спасибо за podzem_mod.php
Если не жалко, можешь выкинуть бд и картинки?)
2 Спабо уже заработал =^.^=
 
Этого достаточно, чтобы до настоящего времени)))
 
У каво есть рабочая каналка под двиг ив стучите в icq#: 621170049
 
А для какого исходника ( мож мне на епоху подойдёт ?)
 
Оу..Давненько тут небыл...
Ставлю спасибки. Примного благодарен за помощ...

XGame, скинь базу данных без неё как-то никак. Картинки сам подгоняю или из БК возьму.
 
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Скрытая информация: "inc//canalization/canalization_mod.php" <input type="button" value="Показать" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Скрыть'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Показать'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
<?
// Лабиринт 8х8
$labirint=array();
$vector=0;
$labirint['01']=array(02,11);
$labirint['02']=array(03,01);
$labirint['03']=array(04,02);
$labirint['04']=array(14,03);
$labirint['05']=array();
$labirint['06']=array();
$labirint['07']=array();
$labirint['08']=array(18);
$labirint['09']=array();


$labirint['11']=array(01,21);
$labirint['12']=array(13);
$labirint['13']=array(23,12);
$labirint['14']=array(24,04);
$labirint['15']=array();
$labirint['16']=array(26);
$labirint['17']=array();
$labirint['18']=array(28,08);
$labirint['19']=array();


$labirint['21']=array(11,31);
$labirint['22']=array(23);
$labirint['23']=array(33,22,13);
$labirint['24']=array(25,34,14);
$labirint['25']=array(26,24,35);
$labirint['26']=array(25,16,27);
$labirint['27']=array(26,28,37);
$labirint['28']=array(27,29,18);
$labirint['29']=array(28,30);



$labirint['31']=array(21,41);
$labirint['32']=array(33);
$labirint['33']=array(43,32,23);
$labirint['34']=array(24);
$labirint['35']=array(25,45);
$labirint['36']=array();
$labirint['37']=array(27,47);
$labirint['38']=array();


$labirint['41']=array(31,42);
$labirint['42']=array(41,43);
$labirint['43']=array(42,44,33);
$labirint['44']=array(43);
$labirint['45']=array(35,55);
$labirint['46']=array(47);
$labirint['47']=array(37,46,48);
$labirint['48']=array(47);
$labirint['49']=array();


$labirint['51']=array();
$labirint['52']=array();
$labirint['53']=array(54,63);
$labirint['54']=array(55,53);
$labirint['55']=array(45,65,56,54);
$labirint['56']=array(55,57);
$labirint['57']=array(56,67);
$labirint['58']=array();


$labirint['61']=array(71);
$labirint['62']=array(63);
$labirint['63']=array(53,62,73);
$labirint['64']=array(65,74);
$labirint['65']=array(64,55,66);
$labirint['66']=array(65,76);
$labirint['67']=array(57,68,77);
$labirint['68']=array(67,69,78);
$labirint['69']=array(68,79);


$labirint['71']=array(81,61);
$labirint['72']=array();
$labirint['73']=array(63,83);
$labirint['74']=array(64,84);
$labirint['75']=array(76);
$labirint['76']=array(66,75);
$labirint['77']=array(67,78,87);
$labirint['78']=array(77,79,88,68);
$labirint['79']=array(69,80,78,89);


$labirint['81']=array(82,71,91);
$labirint['82']=array(83,81);
$labirint['83']=array(73,82);
$labirint['84']=array(74,85);
$labirint['85']=array(84,86);
$labirint['86']=array(85,96);
$labirint['87']=array(77,88);
$labirint['88']=array(87,89,78);
$labirint['89']=array(88,79,99);


$labirint['91']=array(81,92);
$labirint['92']=array(91);
$labirint['93']=array();
$labirint['94']=array();
$labirint['95']=array();
$labirint['96']=array(86);
$labirint['97']=array();
$labirint['98']=array();
$labirint['99']=array(89);

function build_move_image($location, $vector) {
$step1=next_step($location, $vector);
if($step1['fwd']) {$step2=next_step($step1['fwd'], $vector);}
if($step2['fwd']) {$step3=next_step($step2['fwd'], $vector);}
if($step3['fwd']) {$step4=next_step($step3['fwd'], $vector);}
else{$step4['fwd']=false;}


if(!$step4['left']) $s.='<div style="position:absolute; left:11px; top:10px;">
ln4.gif
</div>';
if($step4['left']) $s.='<div style="position:absolute; left:11px; top:10px;">
ly4.gif
</div>';
if($step4['right']) $s.='<div style="position:absolute; left:11px; top:10px;">
ry4.gif
</div>';
if(!$step4['right']) $s.='<div style="position:absolute; left:11px; top:10px;">
rn4.gif
</div>';

if(!$step3['right']) $s.='<div style="position:absolute; left:11px; top:10px;">
rn3.gif
</div>';
if($step3['right']) {$s.='<div style="position:absolute; left:11px; top:10px;">
ry3.gif
</div>';}
if($step3['left']) {$s.='<div style="position:absolute; left:11px; top:10px;">
ly3.gif
</div>';}
if(!$step3['left']) {$s.='<div style="position:absolute; left:11px; top:10px;">
ln3.gif
</div>';}

if(!$step2['right']) {$s.='<div style="position:absolute; left:11px; top:10px;">
rn2.gif
</div>';}
if($step2['right']) {$s.='<div style="position:absolute; left:11px; top:10px;">
ry2.gif
</div>';}
if($step2['left']) $s.='<div style="position:absolute; left:11px; top:10px;">
ly2.gif
</div>';
if(!$step2['left']) $s.='<div style="position:absolute; left:11px; top:10px;">
ln2.gif
</div>';

if(!$step1['right']){$s.='<div style="position:absolute; left:11px; top:10px;">
rn1.gif
</div>';}
if($step1['right']) {$s.='<div style="position:absolute; left:11px; top:10px;">
ry1.gif
</div>';}
if($step1['left']) {$s.='<div style="position:absolute; left:11px; top:10px;">
ly1.gif
</div>';}
if(!$step1['left']) {$s.='<div style="position:absolute; left:11px; top:10px;">
ln1.gif
</div>';}

///////stenq////////
if(!$step4['fwd']) $s.='<div style="position:absolute; left:11px; top:10px;">
cy3.gif
</div>';
if(!$step3['fwd']) $s.='<div style="position:absolute; left:11px; top:10px;">
cn3.gif
</div>';
if(!$step2['fwd'])$s.='<div style="position:absolute; left:11px; top:10px;">
cn2.gif
</div>';
if(!$step1['fwd']) $s.='<div style="position:absolute; left:11px; top:10px;">
cn1.gif
</div>';

return $s;
}

function next_step($location, $vector) {
global $labirint;
$row=intval(substr($location, 0, 1));
$col=intval(substr($location, 1));
$cell=array();
// fwd
$c=$col;$r=$row;
if($vector==90) {$c=$col+1;}
elseif($vector==180) {$r=$row-1;}
elseif($vector==270) {$c=$col-1;}
else {$r=$row+1;}
$cell['fwd']=$r.$c;
if($r>9 or $r<0 or $c>9 or $c<0 or !in_array($cell['fwd'], $labirint[$location])) {$cell['fwd']=false;}
//else if($location==$loc && $vector==$vect)$cell['fwd']=false;
// left
$c=$col;$r=$row;
if($vector==90) {$r=$row+1;}
elseif($vector==180) {$c=$col+1;}
elseif($vector==270) {$r=$row-1;}
else {$c=$col-1;}
$cell['left']=$r.$c;
if($r>9 or $r<0 or $c>9 or $c<0 or !in_array($cell['left'], $labirint[$location])) {$cell['left']=false;}
// right
$c=$col;$r=$row;
if($vector==90) {$r=$row-1;}
elseif($vector==180) {$c=$col-1;}
elseif($vector==270) {$r=$row+1;}
else {$c=$col+1;}
$cell['right']=$r.$c;
if($r>9 or $r<0 or $c>9 or $c<0 or !in_array($cell['right'], $labirint[$location])) {$cell['right']=false;}
// back
$c=$col;$r=$row;
if($vector==90) {$c=$col-1;}
elseif($vector==180) {$r=$row+1;}
elseif($vector==270) {$c=$col+1;}
else {$r=$row-1;}
$cell['back']=$r.$c;
if($r>9 or $r<0 or $c>9 or $c<0 or !in_array($cell['back'], $labirint[$location])) {$cell['back']=false;}
return $cell;
}
function parse_time_to_days($sec, $full=false) {
$s='';
if($sec<60) $s=''.$sec.' san. ';
else {
$tmp=floor($sec/60);
$sc=$sec-$tmp*60;
if($tmp>=1440) {
$d=floor($tmp/1440);
$s.=''.$d.' gun. ';
$tmp-=$d*1440;
}
if($tmp>=60) {
$d=floor($tmp/60);
$s.=''.$d.' saat. ';
$tmp-=$d*60;
}
if($tmp>0) $s.=''.$tmp.' deq. ';
if($full) $s.=''.$sc.' san. ';
}
return $s;
}
?>
</div>
</div>
</div>



<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Скрытая информация: "inc/canalization/podzem_dialog.php" <input type="button" value="Показать" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Скрыть'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Показать'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
<HTML><HEAD>


<meta content="text/html; charset=windows-1251" http-equiv=Content-Type>
<META Http-Equiv=Cache-Control Content=no-cache>
<meta http-equiv=PRAGMA content=NO-CACHE>
<META Http-Equiv=Expires Content=0>
</HEAD>

<?
//<script src='http://img.combats.com/i/commoninf.js'></SCRIPT>
?>


<script>
function cnf(s,l)
{
if (confirm(s)) { location=l; };
}

var Hint3Name = '';
function gfastshow(dsc, dx, dy) { top.fullfastshow(document, mmoves3, window.event, dsc, dx, dy); }
function ghideshow() { top.fullhideshow(mmoves3); }

// Заголовок, название скрипта, имя поля с логином, номер диалогового ответа
function findlogin(title, script, name, n){
document.all("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor="#E5E1D5><tr><td align=center>'+title+'</td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint3();"><BIG>x</td></tr><tr><td colspan=2>'+
'<table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><form action="'+script+'" method=GET><INPUT TYPE=hidden name=sd4 value="282653698"><INPUT TYPE=hidden name=move_dialog value="' + n + '"><td colspan=2>'+
'Укажите логин персонажа:<small>
(можно щелкнуть по логину в чате)</TD></TR><TR><TD width=50% align=right><INPUT TYPE=text NAME="'+name+'"></TD><TD width=50%><INPUT type=image SRC=http://img.combats.com/i/b__ok.gif WIDTH=25 HEIGHT=18></TD></TR></FORM></TABLE></td></tr></table>';
document.all("hint3").style.visibility = "visible";
document.all("hint3").style.left = 100;
document.all("hint3").style.top = 100;
document.all(name).focus();
Hint3Name = name;
}

function closehint3(){
document.all("hint3").style.visibility="hidden";
Hint3Name='';
}

</SCRIPT>
<div id=hint3 class=ahint></div>
<div id="mmoves3" background='i/town/bgg2.gif' style="background-color:#e5e2d4; visibility:hidden; z-index: 101; overflow:visible; position:absolute; border-color:#e5e2d4; border-style:solid; border-width: 1px; padding: 2px;"></div>
<TABLE width=100% bgcolor=#e5e2d4 background='i/town/bgg2.gif'>
<TD width=37 height="349" valign=left>


<script>top.setHP(422,422,120);top.setMana(585,585,100)</SCRIPT>










<?
//showHP($hozyain);
//include "player_inv.php";
?>
</TD>
<TD width=866 valign="top">

<?
$qwest_id = $db["id"];
$gag = mysql_query("SELECT * FROM qwest WHERE login='".$stat['user']."'");
while($qw = mysql_fetch_array($gag))
{
$name_qwest = $qw["name_qwest"];
if($name_qwest=="kluchik|Ключик|1|0|0|0|0|1"){$qwest="1"; $name_qw = "kluchik|Ключик|1|0|0|0|0|1";}
}
$sasd = mysql_query("SELECT * FROM qwest WHERE login='".$stat['user']."' and name_qwest='$name_qw'");
$qwus = mysql_fetch_array($sasd);
$qwest_status = $qwus["status"];
//$qwes = mysql_query("SELECT id,object_type,kollvo FROM inv WHERE object_razdel='other' and object_type='$name_qw' and owner='$hozyain'");
$qwes = mysql_query("SELECT id FROM objects WHERE inf='kluchik|Ключик|1|0|0|0|0|1' and user='".$stat['user']."'");
$qwesta = mysql_fetch_array($qwes);
if($qwesta){$ok_qwest = "1";}


if(!isset($d)){print"Kiara səni salamlayır!
";}
if($d=='1'){print"ОН... Он был тут первым... САМЫМ! Гайки, болты, вентили... чинииил... Лука помогал ему... А он... ОН! он ПРЕДАААЛ!! Луку... ЛУКУ ОБИИИИДЕЛ! Он... он теперь не с намиии... ПОМОЙКАаа... Запаааах... Найди.. УБЕЕЙ! а.. Лука, лука даст тебе новые жетоны. Целых 3!!";}
if($d=='1.1'){print"";}

if($qwest_status!='ok'){
if($ok_qwest=='1'){if($d=='1.2'){print"Ооо... Лука рад... Лука очень благодарен тебе... Лука даст тебе подарок... Лука даст тебе одно из двух... Лука даст Гайку силы или Гайку мудрости... выберай...";}}

if($ok_qwest=='1')
{
if($d=='1.3'){
$sql="INSERT INTO inv(user_id,owner,img,object_type,object_razdel,kr,iznos_max,name,mass,login,min
_level,min_sila,min_intellekt,mf_antikrit,mf_antiuvorot,add_hp,add_mana,add_sila,
b_head,b_corp,b_poyas,b_legs) VALUES ('$qwest_id','".$stat['user']."','amulet/g_sila.gif','amulet','obj','90','30','Гайка силы','1','','4','15','','27','27','33','','3','5','5','5','5')";
$res=mysql_query($sql);
mysql_query("DELETE FROM objects WHERE inf='kluchik|Ключик|1|0|0|0|0|1' and user='".$stat['user']."'");
mysql_query("UPDATE qwest SET status='ok' WHERE name_qwest='kluchik|Ключик|1|0|0|0|0|1' and login='".$stat['user']."'");
//UpdateMass($hozyain);
if(!$res){echo mysql_error();}
print"<font style='font-size:11px; color:red;'>Вы получили 'Гайку силы' .</font>


Лука говарит спасибо...";}
}
if($ok_qwest=='1')
{
if($d=='1.4'){
$sql="INSERT INTO inv(user_id,owner,img,object_type,object_razdel,kr,iznos_max,name,mass,login,min
_level,min_sila,min_intellekt,mf_antikrit,mf_antiuvorot,add_hp,add_mana,add_sila,
add_intellekt,b_head,b_corp,b_poyas,b_legs) VALUES ('$qwest_id','".$stat['user']."','amulet/g_mudr.gif','amulet','obj','90','30','Гайка мудрости','1','','4','','15','27','','30','30','',3,'5','5','5','5')";
$res=mysql_query($sql);
mysql_query("DELETE FROM inv WHERE object_type='kluchiik' and owner='".$stat['user']."'");
mysql_query("UPDATE qwest SET status='ok' WHERE name_qwest='kluchik|Ключик|1|0|0|0|0|1' and login='".$stat['user']."'");
//UpdateMass($hozyain);
print"<font style='font-size:11px; color:red;'>Вы получили 'Гайку мудрости'.</font>


Лука говарит спасибо...";}
}
}


if($d=='2'){print"Цена-аа... У Луки много жетонов. Лука не жаадный. Лука берет 3 Гайки и отдает жетон. Лука дает жетон за целый Болт. Лука дает ТРИ жетона за найденный вентиль. Лука дает жетоны серебрянные, если Гайки и Вентили Чистые, а Болт Длинный! Лука дает золотые жетоны, если Гайки с Резьбой, Вентиль Рабочий, а Болт Нужный!";}
/////////////////////
if($d=='3'){
$sear = mysql_query("SELECT * FROM objects WHERE inf='gaika|Qayka|1|0|0|0|0|1' and user='".$stat['user']."'");
$total_mass=mysql_num_rows($sear);
for($i=0; $i<$kol; $i++)
{
$alls = mysql_fetch_array($sear);
$alls_id = $alls['id'];
}
$vear = mysql_query("SELECT * FROM objects WHERE inf='vint|Vint|1|0|0|0|0|1' and user='".$stat['user']."'");
$total_mass_v=mysql_num_rows($vear);

for($i=0; $i<$total_mass_v; $i++)
{
$vls = mysql_fetch_array($vear);
$vls_id = $vls['id'];
}
$vearb = mysql_query("SELECT * FROM objects WHERE inf='bolt|Bolt|1|0|0|0|0|1' and user='".$stat['user']."'");
$total_mass_b=mysql_num_rows($vearb);

for($i=0; $i<$total_mass_b; $i++)
{
$bls = mysql_fetch_array($vear);
$bls_id = $bls['id'];
}
if($total_mass<3){$vsego="0"; $ziton="0";}
if($total_mass>=3){$vsego="3"; $ziton="1";}
if($total_mass>=6){$vsego="6"; $ziton="2";}
if($total_mass>=9){$vsego="9"; $ziton="3";}
if($total_mass>=12){$vsego="12"; $ziton="4";}
if($total_mass>=15){$vsego="15"; $ziton="5";}
if($total_mass>=18){$vsego="18"; $ziton="6";}
if($total_mass>=21){$vsego="21"; $ziton="7";}
if($total_mass>=24){$vsego="24"; $ziton="8";}
if($total_mass>=27){$vsego="27"; $ziton="9";}
if($total_mass>=30){$vsego="30"; $ziton="10";}
if($total_mass>=33){$vsego="33"; $ziton="11";}
if($total_mass>=36){$vsego="36"; $ziton="12";}
if($total_mass>=39){$vsego="39"; $ziton="13";}
if($total_mass>=42){$vsego="42"; $ziton="14";}
if($total_mass>=45){$vsego="45"; $ziton="15";}
if($total_mass>=48){$vsego="48"; $ziton="16";}
if($total_mass>=51){$vsego="51"; $ziton="17";}
if($total_mass>=54){$vsego="54"; $ziton="18";}
if($total_mass>=57){$vsego="57"; $ziton="19";}
if($total_mass>=60){$vsego="60"; $ziton="20";}
$ostalos = $total_mass-$vsego;
$XLimit = $total_mass-$ostalos;
if($ostalos=='0'){mysql_query("DELETE FROM objects WHERE user='".$stat['user']."' AND inf='gaika|Qayka|1|0|0|0|0|1'");}
else{
mysql_query("DELETE FROM objects WHERE user='".$stat['user']."' AND inf='gaika|Qayka|1|0|0|0|0|1' LIMIT $XLimit");}
}
if($total_mass_v<=0){$vsego_v="0"; $ziton_v="0";}
if($total_mass_v>=1){$vsego_v="1"; $ziton_v="3";}
if($total_mass_v>=2){$vsego_v="2"; $ziton_v="6";}
if($total_mass_v>=3){$vsego_v="3"; $ziton_v="9";}
if($total_mass_v>=4){$vsego_v="4"; $ziton_v="12";}
if($total_mass_v>=5){$vsego_v="5"; $ziton_v="15";}
if($total_mass_v>=6){$vsego_v="6"; $ziton_v="18";}
if($total_mass_v>=7){$vsego_v="7"; $ziton_v="21";}
if($total_mass_v>=8){$vsego_v="8"; $ziton_v="24";}
if($total_mass_v>=9){$vsego_v="9"; $ziton_v="27";}
if($total_mass_v>=10){$vsego_v="10"; $ziton_v="30";}
if($total_mass_v>=11){$vsego_v="11"; $ziton_v="33";}
if($total_mass_v>=12){$vsego_v="12"; $ziton_v="36";}
if($total_mass_v>=13){$vsego_v="13"; $ziton_v="39";}
if($total_mass_v>=14){$vsego_v="14"; $ziton_v="42";}
if($total_mass_v>=15){$vsego_v="15"; $ziton_v="45";}
if($total_mass_v>=16){$vsego_v="16"; $ziton_v="48";}
if($total_mass_v>=17){$vsego_v="17"; $ziton_v="51";}
if($total_mass_v>=18){$vsego_v="18"; $ziton_v="54";}
if($total_mass_v>=19){$vsego_v="19"; $ziton_v="57";}
if($total_mass_v>=20){$vsego_v="20"; $ziton_v="60";}
$ostalos_v = $total_mass_v-$vsego_v;
$XLimit2 = $total_mass_v-$ostalos_v;
if($ostalos_v=='0'){mysql_query("DELETE FROM objects WHERE user='".$stat['user']."' AND inf='vint|Vint|1|0|0|0|0|1'");}
else{
mysql_query("DELETE FROM objects WHERE user='".$stat['user']."' AND inf='vint|Vint|1|0|0|0|0|1' LIMIT $XLimit2");}

if($total_mass_b<=0){$vsego_b="0"; $ziton_b="0";}
if($total_mass_b>=1){$vsego_b="1"; $ziton_b="1";}
if($total_mass_b>=2){$vsego_b="2"; $ziton_b="2";}
if($total_mass_b>=3){$vsego_b="3"; $ziton_b="3";}
if($total_mass_b>=4){$vsego_b="4"; $ziton_b="4";}
if($total_mass_b>=5){$vsego_b="5"; $ziton_b="5";}
if($total_mass_b>=6){$vsego_b="6"; $ziton_b="6";}
if($total_mass_b>=7){$vsego_b="7"; $ziton_b="7";}
if($total_mass_b>=8){$vsego_b="8"; $ziton_b="8";}
if($total_mass_b>=9){$vsego_b="9"; $ziton_b="9";}
if($total_mass_b>=10){$vsego_b="10"; $ziton_b="10";}
if($total_mass_b>=11){$vsego_b="11"; $ziton_b="11";}
if($total_mass_b>=12){$vsego_b="12"; $ziton_b="12";}
if($total_mass_b>=13){$vsego_b="13"; $ziton_b="13";}
if($total_mass_b>=14){$vsego_b="14"; $ziton_b="14";}
if($total_mass_b>=15){$vsego_b="15"; $ziton_b="15";}
if($total_mass_b>=16){$vsego_b="16"; $ziton_b="16";}
if($total_mass_b>=17){$vsego_b="17"; $ziton_b="17";}
if($total_mass_b>=18){$vsego_b="18"; $ziton_b="18";}
if($total_mass_b>=19){$vsego_b="19"; $ziton_b="19";}
if($total_mass_b>=20){$vsego_b="20"; $ziton_b="20";}
$ostalos_b = $total_mass_b-$vsego_b;
$XLimit3 = $total_mass_b-$ostalos_b;
if($ostalos_b=='0'){mysql_query("DELETE FROM objects WHERE user='".$stat['user']."' AND inf='bolt|Bolt|1|0|0|0|0|1'");}
else{
mysql_query("DELETE FROM objects WHERE user='".$stat['user']."' AND inf='bolt|Bolt|1|0|0|0|0|1' LIMIT $XLimit3");}


if($ziton!='0'){$fo = mysql_query("UPDATE players SET jeton=jeton+$ziton WHERE user='".$stat['user']."'");}
if($ziton_v!='0'){$fo = mysql_query("UPDATE players SET jeton=jeton+$ziton_v WHERE user='".$stat['user']."'");}
if($ziton_b!='0'){$fo = mysql_query("UPDATE players SET jeton=jeton+$ziton_b WHERE user='".$stat['user']."'");}

if($ziton<=0 and $ziton_v<=0 and $ziton_b<=0){print"Sizin Təhvil verəcək heз bir elementiniz yoxdur *sad* ";}
if($ziton>0){print" Siz təhvil verdiniz: $vsego ədəd qayka
Qazandınız: $ziton ədəd Jeton.
";}
if($ziton_v>0){print" Siz təhvil verdiniz: $vsego_v ədəd ventil
Qazandınız: $ziton_v ədəd Jeton.
";}
if($ziton_b>0){print" Siz təhvil verdiniz: $vsego_b ədəd Ventil
Qazandınız: $ziton_b ədəd Jeton.";}

//////////////////////
if($d=='4'){print"А?...";}
if($d=='5'){print"Лука и Мартын тут живут давно... чииинят трубыы. Лука Чинит. Лука не любит пауков... Лука любит жетоны... Они красивые... Лука любит играть с ними... Мартыын к паукам ушел... Теперь Лука один, чииинит...";}
if($qwest!='1'){
if($d=='6'){print"Да да! Мартын гаад... он украл у Луки важную вещь 'Ключиик'... убей Мартына... забери 'Ключиик'... принеси его к Луке... Лука вознаградит тебя...";}
if($d=='7'){
$T1 = mysql_query("INSERT INTO qwest (user_id,login,name_qwest,name_items,id_items,dlja,zadanie,kw,status) VALUES('$qwest_id','".$stat['user']."','kluchiik','Ключиик','','Лука','Найти ключиик','0','no')");
print"<font style='font-size:11px; color:red;'>Вы приняли задание.(Найти 'ключиик').</font>


Хорошо... Лука будет ждать...";}
}
?>







<?

//Вопросы)


if(!isset($d)){print"&bull;<A href='?act=dialog&d=1.1'> Mən Jetonu necə əldə edə bilərəm?</A>
";}
if(!isset($d)){print"&bull;<A href='canalizaciya.php'> Mən getdim , sağ ol.</A>
";}

if($d=='1'){print"&bull;<A href='?act=dialog'> Понятно. Но я хотел поговорить о другом. </A>
";}
if($d=='1'){print"&bull;<A href='canalizaciya.php'> Я, пожалуй, пойду.</A>
";}


if($d=='1.1'){print"&bull;<A href='?act=dialog&d=3'> Mənə Jeton lazımdır. </A>
";}
if($d=='1.1'){print"&bull;<A href='canalizaciya.php'> Mən getdim , sağ ol.</A>
";}

if($ok_qwest=='1'){if($d=='1.2'){print"&bull;<A href='?act=dialog&d=1.3'> Выбераю Гайку силы.</A>
";}}
if($ok_qwest=='1'){if($d=='1.2'){print"&bull;<A href='?act=dialog&d=1.4'> Выбераю Гайку мудрости.</A>
";}}
if($ok_qwest=='1'){if($d=='1.2'){print"&bull;<A href='canalizaciya.php'> Я, пожалуй, пойду..</A>
";}}
if($d=='1.3'){print"&bull;<A href='canalizaciya.php'> Я, пожалуй, пойду.</A>
";}
if($d=='1.4'){print"&bull;<A href='canalizaciya.php'> Я, пожалуй, пойду.</A>
";}

if($d=='2'){print"&bull;<A href='?act=dialog&d=3'> Я хочу поменять ИХ на жетоны. </A>
";}
if($d=='2'){print"&bull;<A href='?act=dialog'> Спасибо, за прайс-лист. </A>
";}
if($d=='2'){print"&bull;<A href='canalizaciya.php'> Я, пожалуй, пойду.</A>
";}



if($d=='3'){print"&bull;<A href='?act=dialog'> Qoy qalsın gələn dəfəyə... </A>
";}
if($d=='3'){print"&bull;<A href='canalizaciya.php'> Mən getdim.Gцrьşənədək.</A>
";}

if($d=='4'){print"&bull;<A href='?act=dialog&d=1.1'> Что ты там говорил про гайки-вентили? </A>
";}
if($d=='4'){print"&bull;<A href='?act=dialog&d=5'> Расскажи мне о себе. </A>
";}
if($d=='4'){print"&bull;<A href='canalizaciya.php'> Я, пожалуй, пойду.</A>
";}

if($d=='5'){print"&bull;<A href='?act=dialog&d=1.1'> Что ты там говорил про гайки-вентили? </A>
";}
if($qwest!='1'){if($d=='5'){print"&bull;<A href='?act=dialog&d=6'> Может помочь чем? </A>
";}}
if($d=='5'){print"&bull;<A href='canalizaciya.php'> Я, пожалуй, пойду.</A>
";}

if($d=='6'){print"&bull;<A href='?act=dialog&d=7'> Я помогу тебе... принесу я ключиик... жди! </A>
";}
if($d=='6'){print"&bull;<A href='canalizaciya.php'> Да ну тя сам разберайся.</A>
";}

if($d=='7'){print"&bull;<A href='canalizaciya.php'> Я, пойду.(конец диалога).</A>
";}



print"[/i]

";


?>
</TD>
<TD width=400 valign="top">
<H3><font color=red>Kiara</font></H3>
<img src='i/img/bot5.jpg' alt='Kiara' style='CURSOR:hand;' ></td>
</TABLE>
</BODY>
</HTML>



</div>
</div>
</div>

<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Скрытая информация: "inc/canalization/podzem_res.php" <input type="button" value="Показать" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Скрыть'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Показать'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
<?
if($Location==27 && $bot1==2 or $Location==27 && $bot2==2 or $Location==27 && $bot3==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>
';}
if($Location==27 && $bot1==2){print' ';}
if($Location==27 && $bot2==2){echo' ';}
if($Location==27 && $bot3==2){echo' ';}

if($Location==25 && $bot4==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>

';}

if($Location==47 && $bot5==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>

';}

if($Location==18 && $bot6==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>

';}

if($Location==45 && $bot7==2 or $Location==45 && $bot8==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>
';}
if($Location==45 && $bot7==2){print' ';}
if($Location==45 && $bot8==2){echo' ';}

if($Location==65 && $bot9==2 or $Location==65 && $bot10==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>
';}
if($Location==65 && $bot9==2){print' ';}
if($Location==65 && $bot10==2){echo' ';}

if($Location==76 && $bot11==2 or $Location==76 && $bot12==2 or $Location==76 && $bot13==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>
';}
if($Location==76 && $bot11==2){print' ';}
if($Location==76 && $bot12==2){echo' ';}
if($Location==76 && $bot13==2){echo' ';}

if($Location==64 && $bot14==2 or $Location==64 && $bot15==2 or $Location==64 && $bot16==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>
';}
if($Location==64 && $bot14==2){print' ';}
if($Location==64 && $bot15==2){echo' ';}
if($Location==64 && $bot16==2){echo' ';}

if($Location==84 && $bot17==2 or $Location==84 && $bot18==2 or $Location==84 && $bot19==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>
';}
if($Location==84 && $bot17==2){print' ';}
if($Location==84 && $bot18==2){echo' ';}
if($Location==84 && $bot19==2){echo' ';}

if($Location==86 && $bot20==2 or $Location==86 && $bot21==2 or $Location==86 && $bot22==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>
';}
if($Location==86 && $bot20==2){print' ';}
if($Location==86 && $bot21==2){echo' ';}
if($Location==86 && $bot22==2){echo' ';}

if($Location==96 && $bot23==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>

';}

if($Location==57 && $bot24==2 or $Location==57 && $bot25==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>
';}
if($Location==57 && $bot24==2){print' ';}
if($Location==57 && $bot25==2){echo' ';}

if($Location==87 && $bot28==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>

';}

if($Location==77 && $bot27==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>

';}

if($Location==67 && $bot26==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>

';}

if($Location==68 && $bot29==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>

';}

if($Location==79 && $bot30==2 or $Location==79 && $bot31==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>
';}
if($Location==79 && $bot30==2){print' ';}
if($Location==79 && $bot31==2){echo' ';}

if($Location==99 && $bot32==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>

';}

if($Location==53 && $bot33==2 or $Location==53 && $bot34==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>
';}
if($Location==53 && $bot33==2){print' ';}
if($Location==53 && $bot34==2){echo' ';}

if($Location==83 && $bot36==2 or $Location==83 && $bot37==2 or $Location==83 && $bot38==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>
';}
if($Location==83 && $bot36==2){print' ';}
if($Location==83 && $bot37==2){echo' ';}
if($Location==83 && $bot38==2){echo' ';}

if($Location==63 && $bot35==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>

';}

if($Location==82 && $bot39==2 or $Location==82 && $bot40==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>
';}
if($Location==82 && $bot39==2){echo' ';}
if($Location==82 && $bot40==2){echo' ';}

if($Location==71 && $bot41==2 or $Location==71 && $bot42==2 or $Location==71 && $bot43==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>
';}
if($Location==71 && $bot41==2){print' ';}
if($Location==71 && $bot42==2){echo' ';}
if($Location==71 && $bot43==2){echo' ';}

if($Location==91 && $bot44==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>

';}

if($Location==34 && $bot45==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>

';}

if($Location==04 && $bot46==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>

';}

if($Location==02 && $bot47==2 or $Location==02 && $bot48==2 or $Location==02 && $bot49==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>
';}
if($Location==02 && $bot47==2){print' ';}
if($Location==02 && $bot48==2){echo' ';}
if($Location==02 && $bot49==2){echo' ';}

if($Location==21 && $bot53==2 or $Location==21 && $bot54==2 or $Location==21 && $bot55==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>
';}
if($Location==21 && $bot53==2){print' ';}
if($Location==21 && $bot54==2){echo' ';}
if($Location==21 && $bot55==2){echo' ';}

if($Location==11 && $bot50==2 or $Location==11 && $bot51==2 or $Location==11 && $bot52==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>
';}
if($Location==11 && $bot50==2){print' ';}
if($Location==11 && $bot51==2){echo' ';}
if($Location==11 && $bot52==2){echo' ';}

if($Location==42 && $bot56==2 or $Location==42 && $bot57==2 or $Location==42 && $bot58==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>
';}
if($Location==42 && $bot56==2){print' ';}
if($Location==42 && $bot57==2){echo' ';}
if($Location==42 && $bot58==2){echo' ';}

if($Location==33 && $bot59==2){echo'<font style="font-size:15px; color:#600"> Siz otaqda səpələnmiş halda tapdınız:</font>

';}
?>


</div>
</div>
</div>






<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Скрытая информация: "shopKanal.php" <input type="button" value="Показать" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Скрыть'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Показать'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
<?
include("inc/db_connect.php");
$stat = mysql_fetch_array(mysql_query("select * from players where user='".addslashes($user)."' and pass='".addslashes($pass)."'"));

if ($stat['bloked']) echo"<script>top.location='index.php?action=logout'</script>";


if($_GET['act']=="cixis")
{
mysql_query("UPDATE labirint SET location='28',vector='90' WHERE login='".$stat['user']."'");
mysql_query("UPDATE players SET room=700 WHERE user='".$stat['user']."'");
print "<script>location.href='canalizaciya.php'</script>"; exit();
}

if ($stat['t_time']) { header("Location: prison.php"); exit; }
elseif ($stat['v_time']) { header("Location: ambulance.php"); exit; } // Редиректим в больницу
elseif ($stat['k_time']) { header("Location: academy.php"); exit; } // Редиректим в академию
elseif ($stat['o_time']) { header("Location: juvelir.php"); exit; }
elseif ($stat['r_time']) { header("Location: podzem.php"); exit; }
elseif ($stat['battle']) { header("Location: battle.php"); exit; }
elseif ($stat['room']!=709) { header("Location: main.php"); exit; }
else {

if (!isset($_GET['otdel']) or !is_numeric($_GET['otdel'])) $otdel=1; else $otdel=$_GET['otdel'];
if (($otdel<1 or $otdel>30 or $otdel==18 or $otdel==19) && $otdel!=97) die("Kiara ambarı: '".$otdel."'");

if (!isset($otdel)) $otdel=1;

if (!empty($buy))
include("inc/kanal/buy.php");


$title = 'Kiara ambarı';
include("inc/html_header.php");

echo"
<script LANGUAGE='javascript'>
document.ondragstart = test;
//запрет на перетаскивание
document.onselectstart = test;
//запрет на выделение элементов страницы
//document.oncontextmenu = test;
//запрет на выведение контекстного меню

function test() {
return false
}
</SCRIPT>";

include("inc/kanal/otdels.php");

echo'<link rel=stylesheet type="text/css" href="i/shop.css">';

echo"
<BODY background='i/town/bgg2.gif' bgcolor=#EBEDEC leftmargin=0 topmargin=0>";

echo"<style>
.none { display: none }
</style>

<table width=100% cellspacing=0 cellpadding=5 border=0>
<tr>
<td>Balansında: ".$stat['jeton']." Jeton.
</td>
<td align=right valign=top>



<img src='i/refresh.gif' style='CURSOR: Hand' alt='Yenilə' onclick='window.location.href=\"shopKanal.php?otdel=".$otdel."&tmp=\"+Math.random();\"\"'>

<img src='i/back.gif' style='CURSOR: Hand' alt='Geri qayıt' onclick='window.location.href=\"shopKanal.php?act=cixis&tmp=\"+Math.random();\"\"'>
</td>
</tr>
</table>";


echo"<table width=100% cellspacing=0 cellpadding=3 border=0>
<tr>
<td align=right>
<center><font class=title>Kiara ambarı</font></center>
";

if (!empty($msg)) echo"<center><FONT COLOR=RED>$msg</font></center>
";

echo"<table width=100% cellspacing=0 cellpadding=3 border=0>
<tr>
<td width='20%' height='100%' valign='top'>

<link rel=stylesheet type='text/css' href='city.css'>

<table width='100' border='0' cellspacing='0' cellpadding='0' align=center>
<tr height='22'>
<td width='20' align='right' valign='bottom'><img src='i/town/tbl-shp_sml-corner-top-left.gif' width='20' height='22' /></td>
<td class='tbl-shp_sml-top' valign='top' align='center'>
<table border='0' cellspacing='0' cellpadding='0' >
<tr height='22'>
<td width='27'><img src='i/town/tbl-usi_label-left.gif' width='27' height='22'/></td>
<td align='center' class='tbl-usi_label-center'>Bцlmələr</td>
<td width='27'><img src='i/town/tbl-usi_label-right.gif' width='27' height='22'/></td>
</tr>
</table>
</td>
<td width='20' align='left' valign='bottom'><img src='i/town/tbl-shp_sml-corner-top-right.gif' width='20' height='22'/></td>
</tr>
<tr>
<td class='tbl-usi_left'></td>
<td class='tbl-usi_bg' valign='top' style='padding: 6 4 6 4'>



<table border='1' 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'>Kanalizasiya əşyaları:</td>
</tr>
<tr>
<td width='100%' align='center'><a href='?otdel=1'>Əşyalar</a></td>

</tr>

</table>




</td><td class='tbl-usi_right' align=left></td>
</tr>

<tr height='18'>
<td width='20' align='right' valign='top'><img src='i/town/tbl-shp_sml-corner-bottom-left.gif' width='20' height='18' /></td>
<td class='tbl-shp_sml-bottom' valign='top' align='center'> </td>
<td width='20' align='left' valign='top'><img src='i/town/tbl-shp_sml-corner-bottom-right.gif' width='20' height='18'/></td>
</tr>
</table>";

echo"<td width='80%' height='100%' align='center' valign='top'>

<table width=100% border='0' cellspacing='0' cellpadding='0' align=center>
<tr height='22'>
<td width='20' align='right' valign='bottom'><img src='i/town/tbl-shp_sml-corner-top-left.gif' width='20' height='22' /></td>
<td class='tbl-shp_sml-top' valign='top' align='center'>
<table border='0' cellspacing='0' cellpadding='0' >
<tr height='22'>
<td width='27'><img src='i/town/tbl-usi_label-left.gif' width='27' height='22'/></td>
<td align='center' class='tbl-usi_label-center'>";

echo"Bцlmə : \"".$otdels[$otdel]."\"";

echo"</td>
<td width='27'><img src='i/town/tbl-usi_label-right.gif' width='27' height='22'/></td>
</tr>
</table>
</td>
<td width='20' align='left' valign='bottom'><img src='i/town/tbl-shp_sml-corner-top-right.gif' width='20' height='22'/></td>
</tr>
<tr>
<td class='tbl-usi_left'></td>
<td class='tbl-usi_bg' valign='top' style='padding: 6 4 6 4'>

<table width=100% cellspacing=0 cellpadding=5 border=0>
<tr>
<td >";


include('inc/kanal/_otdels.php');

echo"
</td>
</tr>
</table>

</td><td class='tbl-usi_right' align=left></td>
</tr>

<tr height='18'>
<td width='20' align='right' valign='top'><img src='i/town/tbl-shp_sml-corner-bottom-left.gif' width='20' height='18' /></td>
<td class='tbl-shp_sml-bottom' valign='top' align='center'> </td>
<td width='20' align='left' valign='top'><img src='i/town/tbl-shp_sml-corner-bottom-right.gif' width='20' height='18'/></td>
</tr>
</table>";

}
?>
</div>
</div>
</div>
 

Похожие темы

Сверху