1. В инфе не выводит количество побед и поражений.
Вот файл info.php

2. В каналке не подбирается дроп, пишет "Кто-то оказался быстрее!".
Вот файл podzem_mod.php
Вот файл info.php

Код:
<?php
ob_start("ob_gzhandler");
session_start();
include "connect.php";
include "functions.php";
if ($_GET['login']) {
$us = " `login` = '".mysql_real_escape_string($_GET['login'])."' ";
}
else {
$us = " `id` = '".mysql_real_escape_string($_SERVER['QUERY_STRING'])."' ";
}
$user8 = mysql_fetch_array(mysql_query("SELECT `id` FROM `users` WHERE $us LIMIT 1;"));
nick99 ($user8['id']);
$user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE $us LIMIT 1;"));
if($user['redirect']) {
header("Location: ".$user['redirect']."");
die();
}
$_SERVER['QUERY_STRING'] = $user[0];
if($user[0] == null) {
?>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<meta http-equiv="Content-Language" content="ru">
<TITLE>Произошла ошибка</TITLE></HEAD><BODY text="#FFFFFF">
<font color=black>
Произошла ошибка: <pre>Персонаж <?=($_GET['login']?"\"".$_GET['login']."\"":"")?> не найден...</pre>
[b]
<a href = "java script:window.history.go(-1);">Назад[/b]</a>
<HR>
<p align="right">(c) [url="http://AntikombatZ.com"]Старый бойцовский клуб[/url]</p>
</body></html>
<?
die();
}
if($_GET['short']) {
header("Content-type= text/plain");
echo "login=".$user['login']."\n";
echo "level=".$user['level']."\n";
echo "align=".$user['align']."\n";
echo "klan=".$user['klan']."\n";
echo "sex=".$user['sex']."\n";
echo "str=".$user['sila']."\n";
echo "agil=".$user['lovk']."\n";
echo "int=".$user['inta']."\n";
echo "dex=".$user['vinos']."\n";
echo "intel=".$user['intel']."\n";
echo "wisd=".$user['mudra']."\n";
echo "spir=".$user['duh']."\n";
echo "godn=".$user['bojes']."\n";
echo "status=".$user['status']."\n";
echo "borncity=".$user['borncity']."\n";
echo "block=".$user['block']."\n";
echo "palmessage=".$user['palcom']."\n";
echo "online=".(int)(time()-$user['chattime'] < 60*5)."\n";
echo "hp=".$user['hp']."\n";
echo "maxhp=".$user['maxhp']."\n";
echo "mana=".$user['mana']."\n";
echo "maxmana=".$user['maxmana']."\n";
echo "room=".$user['room']."\n";
//echo "hp=".$user['palcom']."\n";
echo "dress=";
$dresses = mysql_query("SELECT * FROM `inventory` WHERE `owner` = '".mysql_real_escape_string($user['0'])."' AND `dressed` = 1 AND `type` <> 12;");
while($dr = mysql_fetch_array($dresses)) {
echo $dr['name']." ".(int)$dr['duration']."/".(int)$dr['maxdur'].",";
}
die();
}
?>
<HTML><HEAD><TITLE>Информация о <?=$user['login']?></TITLE>
<link rel=stylesheet type="text/css" href="http://img.combats.ru/i/main.css">
<meta content="text/html; charset=windows-1251" http-equiv=Content-type>
<link href="http://img.combats.ru/i/move/design3.css" rel="stylesheet" type="text/css">
<META Http-Equiv=Cache-Control Content="no-cache, max-age=0, must-revalidate, no-store">
<meta http-equiv=PRAGMA content=NO-CACHE>
<META Http-Equiv=Expires Content=0>
<style type="text/css">
img.pnged {
behavior: url(/pngbehavior.htc);
}
</style>
<script>
var main_uid= 'main';
var delay = 10; // Каждые n сек. увеличение HP на 1%
</script>
<script type="text/javascript" src='js/commoninf.js'></script>
<script type="text/javascript" src='js/LocalText.js' charset='utf-8'></script>
<script type="text/javascript" src='js/CombatsUI.js' charset='utf-8'></script>
<script type="text/javascript" src="js/inf.0.104.js" charset="utf-8"></script>
<script>
function hideshow(){document.getElementById("mmoves").style.visibility="hidden"}
function fastshow(a){var b=document.getElementById("mmoves"),d=window.event.srcElement;if(a!=""&&b.style.visibility!="visible")b.innerHTML="[size="1"]"+a+"[/size]";a=window.event.clientY+document.documentElement.scrollTop+document.body.scr
ollTop+5;b.style.left=window.event.clientX+document.documentElement.scrollLeft+d
o
cument.body.scrollLeft+3+"px";b.style.top=a+"px";if(b.style.visibility!="visible")b.style.visibility="visible"}
var CtrlPress = false;
function info(login)
{
login = login.replace('%', '%25');
while (login.indexOf('+')>=0) login = login.replace('+', '%2B');
while (login.indexOf('#')>=0) login = login.replace('#', '%23');
while (login.indexOf('?')>=0) login = login.replace('?', '%3F');
if (CtrlPress) { window.open('/zayavka.pl?logs=1&date=&filter='+login, '_blank'); }
else { window.location.href='/inf.pl?login='+login; }
}
document.onmousedown = Down;
function Down() {CtrlPress = window.event.ctrlKey}
</SCRIPT>
<style type="text/css">
hr { height: 1px; }
</style>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR></HEAD>
<BODY style="margin:10px; margin-top:5px;" bgColor=#e2e0e0 onLoad="setHP(<?=$user['hp']?>,<?=$user['maxhp']?>,<?if (!$user['battle']){echo"10";}else{echo"0";}?>)"><IMG align=right alt="Знак зодиака" height=99 src="i/<?
function star_sign($month, $day) {
// $time = mktime(0, 0, 0, $month, $day, $year); //return the Unix timestamp
// $day_of_year = date("z", $time); // "z" is equal to the day of the year 0 to 365
// if (date("L", $time) && ($day_of_year > 59)) // for leap years "L" is LEAP YEAR
// $day_of_year -= 1; // if it is FEB 29 (59) Subtract 1 from the day of year
if ($month == "01") {
if ($day >= 21) {return "11";} else {return "10";}}
else if ($month == "02") {
if ($day >= 21) {return "12";} else {return "11";} }
else if ($month == "03") {
if ($day >= 21) {return "1";} else {return "12";} }
else if ($month == "04") {
if ($day >= 21) {return "2";} else {return "1";} }
else if ($month == "05") {
if ($day >= 21) {return "3";} else {return "2";} }
else if ($month == "06") {
if ($day >= 22) {return "4";} else {return "3";} }
else if ($month == "07") {
if ($day >= 23) {return "5";} else {return "4";} }
else if ($month == "08") {
if ($day >= 24) {return "6";} else {return "5";} }
else if ($month == "09") {
if ($day >= 24) {return "7";} else {return "6";} }
else if ($month == "10") {
if ($day >= 24) {return "8";} else {return "7";} }
else if ($month == "11") {
if ($day >= 23) {return "9";} else {return "8";} }
else if ($month == "12") {
if ($day >= 22) {return "10";} else {return "9";}}
}
// echo star_sign(substr($user['borndate'],3,2), substr($user['borndate'],0,2), substr($user['borndate'],6,4));
if ($user[zodiac]) { echo "{$user['zodiac']}"; }
elseif ($user['zodiac'] =="") {
echo star_sign(substr($user['borndate'],3,2), substr($user['borndate'],0,2));
}
?>.gif" width=100>
<div id="mmoves" style="background-color:#FFFFCC; visibility:hidden; z-index: 100; overflow:visible; position:absolute; border-color:#666666; border-style:solid; border-width: 1px; padding: 2px;"></div>
<TABLE width=100% cellpadding="3" cellspacing="4">
<TBODY>
<TR>
<TD align=left vAlign=top style="width:250px;">
<?=showpersout($_SERVER['QUERY_STRING'],1)?>
<?
if ($user['married']) {
if ($user['sex'] == 1) {echo '[url="inf.php?login='.$user[married].'"][img]i/married.gif[/img][/url] ';}
else {echo '[url="inf.php?login='.$user[married].'"][img]i/married.gif[/img][/url] ';}
}
if ($user['deal']==1) {
echo ' [img]i/alchemy1.gif[/img] ';
}
if ($user['knight']==1) {
echo ' [img]i/zn1_1.gif[/img]';
}
if ($user['knight']==2) {
echo ' [img]i/zn1_2.gif[/img]';
}
if ($user['vip']==1) {
echo ' [img]i/vip2.gif[/img] ';
}
if ($user['spellfreedom']==1) {
echo ' [img]i/freedom.gif[/img]';
}
$medals = explode(";",$user['medals']);
for ($i=0;$i<count($medals);$i++) {
switch ($medals[$i]) {
case "003":
echo ' [img]i/003.gif[/img] ';
break;
case "004":
echo ' [img]i/004.gif[/img] ';
break;
case "medal_19":
echo ' [img]i/medal_19.gif[/img]")\' onmouseout=\'hideshow();\' width=20> ';
break;
case "dustman":
echo ' [img]i/dustman_mourning.gif[/img]';
break;
case "news":
echo ' [img]i/journal.gif[/img] ';
break;
case "proza":
echo ' [img]i/proza1.gif[/img]';
break;
case "veteran":
echo ' [img]i/defender.gif[/img]';
break;
case "hudo":
echo ' [img]i/jartduel.gif[/img] ';
break;
case "mass":
echo ' [img]i/massfun.gif[/img] ';
break;
case "veterana":
echo ' [img]i/veterana.gif[/img] ';
break;
case "sovest":
echo ' [img]i/kras11.png[/img] ';
break;
}
}
if ($user['deal']==2) {
echo '<FIELDSET><LEGEND>[img]/i/alchemy1.gif[/img]</LEGEND>
[size="1"]Регистрированный алхимик. Имеет право продавать услуги, включая:
[img]/i/alchemy-art.gif[/img] Артефакты
[/size]</fieldset>';
}
if ($user['deal']==3) {
echo '<FIELDSET><LEGEND>[img]/i/alchemy1.gif[/img]</LEGEND>
[size="1"]Регистрированный алхимик. Имеет право продавать услуги, включая:
[img]/i/alchemy-art.gif[/img] Артефакты
[img]/i/alchemy-flower.gif[/img] Букеты
[/size]</fieldset>';
}
if ($user['deal']==4) {
echo '<FIELDSET><LEGEND>[img]/i/alchemy1.gif[/img]</LEGEND>
[size="1"]Регистрированный алхимик. Имеет право продавать услуги, включая:
[img]/i/alchemy-art.gif[/img] Артефакты
[img]/i/alchemy-flower.gif[/img] Букеты
[img]/i/alchemy-book.gif[/img] Квитанции на книги
[/size]</fieldset>';
}
if ($user['deal']==5) {
echo '<FIELDSET><LEGEND>[img]/i/alchemy1.gif[/img]</LEGEND>
[size="1"]Регистрированный алхимик. Имеет право продавать услуги, включая:
[img]/i/alchemy-art.gif[/img] Артефакты
[img]/i/alchemy-flower.gif[/img] Букеты
[img]/i/alchemy-book.gif[/img] Квитанции на книги
[img]/i/alchemy-build.gif[/img] Недвижимость
[/size]</fieldset>';
}
$zashc = mysql_fetch_array(mysql_query("SELECT name,time FROM `effects` WHERE `owner` = '".mysql_real_escape_string($user['id'])."' and `type`=395 limit 1;"));
if($zashc){
echo ' [img]i/defender.gif[/img]';
}
?>
<? $data = mysql_fetch_array(mysql_query("select * from `online` WHERE `date` >= ".(time()-60)." AND `id` = '".mysql_real_escape_string($user['id'])."';"));
$dd = mysql_query("SELECT * FROM `effects` WHERE `owner` = '".mysql_real_escape_string($user['id'])."';");
$ddtravma = mysql_fetch_array(mysql_query("SELECT * FROM `effects` WHERE `owner` = '".mysql_real_escape_string($user['id'])."' and (`type`=11 or `type`=12 or `type`=13 or `type`=14) order by `type` desc limit 1;"));
if ($ddtravma['type'] == 14) {$trt="неизлечимая";}
elseif ($ddtravma['type'] == 13) {$trt="тяжелая";}
elseif ($ddtravma['type'] == 12) {$trt="средняя";}
elseif ($ddtravma['type'] == 11) {$trt="легкая";}
else {$trt=0;}
?>
<?
while($row = mysql_fetch_array($dd)) {
if ($row['time'] < time()) {
$row['time'] = time();
}
if ($trt && ($row['type']==11 or $row['type']==12 or $row['type']==13 or $row['type']==14)) {
echo "
<IMG height=15 src=\"i/travma2.gif\" width=24 alt=\"Ослаблены характеристики\">[size="1"]У персонажа $trt травма [b]\"{$row['name']}\"[/b] - еще ".floor(($row['time']-time())/60/60)." ч. ".round((($row['time']-time())/60)-(floor(($row['time']-time())/3600)*60))." мин.[/size]";
}
if ($magtrt && $row['type']!=2 && $row['type']!=3 && $row['type']!=10) {
echo "
<IMG height=15 src=\"i/mtravma2.gif\" width=24>[size="1"]У персонажа $trt магическая травма [b]\"{$row['name']}\"[/b] - еще ".floor(($row['time']-time())/60/60)." ч. ".round((($row['time']-time())/60)-(floor(($row['time']-time())/3600)*60))." мин.[/size]";
}
if ($row['type'] == 2) {
echo "
<IMG height=15 src=\"i/sleeps1.gif\" width=24>[size="1"]На персонажа наложено заклятие молчания. Будет молчать еще ".floor(($row['time']-time())/60/60)." ч. ".round((($row['time']-time())/60)-(floor(($row['time']-time())/3600)*60))." мин.[/size]";
}
if ($row['type'] == 10) {
echo "
<IMG height=15 src=\"i/chains.gif\" width=24>[size="1"]Персонаж не может перемещаться еще ".floor(($row['time']-time())/60/60)." ч. ".round((($row['time']-time())/60)-(floor(($row['time']-time())/3600)*60))." мин.[/size]";
}
if ($row['type'] == 3) {
echo "
<IMG height=15 src=\"i/sleeps0.gif\" width=24>[size="1"]Персонажу запрещено общение на форуме. Будет молчать еще ".floor(($row['time']-time())/60/60)." ч. ".round((($row['time']-time())/60)-(floor(($row['time']-time())/3600)*60))." мин.[/size]";
}
}
$data = mysql_query("SELECT * FROM `inventory` WHERE `owner` = '".mysql_real_escape_string($_SERVER['QUERY_STRING'])."' AND (`name` LIKE '%Букет%') AND `present` <> '' order by id asc; ");
if(mysql_num_rows($data)) echo '
Букеты:
';
while($row = mysql_fetch_array($data)) {
echo "<div style=\"float: left; margin:0px; padding:0px;\"><img width=60px height=60x src='i/sh/{$row['img']}' alt = '{$row['name']}\nПодарок от {$row['present']}".(($row['letter'])?"\n".$row['letter']:"")."'></div>";
}
$data = mysql_query("SELECT * FROM `inventory` WHERE `owner` = '".mysql_real_escape_string($_SERVER['QUERY_STRING'])."' AND `gift`=1 AND `present` <> '' order by id asc; ");
if(mysql_num_rows($data)) echo '
Подарки:
';
while($row = mysql_fetch_array($data)) {
echo "<div style=\"float: left; margin:0px; padding:0px;\"><img width=60px height=60x src='i/sh/{$row['img']}' alt = '{$row['name']}\nПодарок от {$row['present']}".(($row['letter'])?"\n".$row['letter']:"")."'></div>";
}
?>
</TD>
</TR>
</TBODY>
</TABLE>
<?
$own=mysql_fetch_array(mysql_query("SELECT `id`,`align` FROM `users` WHERE `id` = '".mysql_real_escape_string($_SESSION['uid'])."' LIMIT 1;"));
$effect = mysql_fetch_array(mysql_query("SELECT `time` FROM `effects` WHERE `owner` = '".mysql_real_escape_string($user['id'])."' and `type` = '5' LIMIT 1;"));
if ($effect['time']) {
$eff=$effect['time'];
$tt=time();
$time_still=$eff-$tt;
$tmp = floor($time_still/2592000);
$id=0;
if ($tmp > 0) {
$id++;
if ($id<3) {$out .= $tmp." мес. ";}
$time_still = $time_still-$tmp*2592000;
}
$tmp = floor($time_still/604800);
if ($tmp > 0) {
$id++;
if ($id<3) {$out .= $tmp." нед. ";}
$time_still = $time_still-$tmp*604800;
}
$tmp = floor($time_still/86400);
if ($tmp > 0) {
$id++;
if ($id<3) {$out .= $tmp." дн. ";}
$time_still = $time_still-$tmp*86400;
}
$tmp = floor($time_still/3600);
if ($tmp > 0) {
$id++;
if ($id<3) {$out .= $tmp." ч. ";}
$time_still = $time_still-$tmp*3600;
}
$tmp = floor($time_still/60);
if ($tmp > 0) {
$id++;
if ($id<3) {$out .= $tmp." мин. ";}
}
echo "<H3>Обезличен. Еще $out</H3>";
if (($own['align'] > '2' && $own['align'] < '3') || ($own['align'] > '1' && $own['align'] < '2') || $own['align'] == '777') {
?>
<HR>
<H3>Анкетные данные</H3>Имя: <?=$user['realname']?>
Пол: <?php
if($user['sex']) { echo "Мужской";} else {echo "Женский";}
if ($user['city']) { echo "
Город: {$user['city']}"; }
if ($user['http']) { echo "
Домашняя страница: <A href=\"".((substr($user['http'],0,4)=='http'?"":"http://").$user['http'])."\" target=_blank>".((substr($user['http'],0,4)=='http'?"":"http://").$user['http'])."</a>"; }
if ($user['icq']) {echo "
ICQ: {$user['icq']}"; }
if ($user['lozung']) { echo "
Девиз: <CODE>{$user['lozung']}</CODE>"; }?>
Увлечения / хобби:
<CODE>
<?=nl2br(htmlspecialchars($user['info']))
?>
<?
}
}
else {
?>
<H3>Анкетные данные</H3>Имя: <?=$user['realname']?>
Пол: <?php
if($user['sex']) { echo "Мужской";} else {echo "Женский";}
if ($user['city']) { echo "
Город: {$user['city']}"; }
if ($user['http']) { echo "
Домашняя страница: <A href=\"".((substr($user['http'],0,4)=='http'?"":"http://").$user['http'])."\" target=_blank>".((substr($user['http'],0,4)=='http'?"":"http://").$user['http'])."</a>"; }
if ($user['icq']) {echo "
ICQ: {$user['icq']}"; }
if ($user['lozung']) { echo "
Девиз: <CODE>{$user['lozung']}</CODE>"; }?>
Увлечения / хобби:
<CODE>
<?=nl2br(htmlspecialchars($user['info']))?>
</CODE>
<?}
flush();
$okld=0;
if ($own['align'] > '2' && $own['align'] < '3') {
$okld=1;
}
elseif (($own['klan'] == "radminion") && !($user['align'] > '2' && $user['align'] < '3')) {
$okdop=1;
}
elseif (($own['align'] > '1' && $own['align'] < '2') && ($user['align'] > '1' && $user['align'] < '2') && ($own['align'] >= $user['align'])) {
$okld=1;
}
elseif (($own['align'] > '1' && $own['align'] < '2') && !($user['align'] > '2' && $user['align'] < '3') && !($user['align'] > '1' && $user['align'] < '2') && !($user['klan'] == "radminion")) {
$okld=1;
}
if ($okld==1) {
echo "
<font style='text'>За персонажем замечены следующие темные делишки:</font>
";
$ldd = mysql_query("SELECT * FROM `lichka` WHERE `pers` = '{$user['id']}' ORDER by `id` ASC;");
while ($ld = mysql_fetch_array($ldd)) {
$dat=date("d.m.Y H:i",$ld['date']);
$text=$ld['text'];
echo "<CODE>$dat $text </CODE>
";
}
}
$okdop=0;
if ($own['align'] > '2' && $own['align'] < '3') {
$okdop=1;
}
elseif (($own['klan'] == "radminion") && !($user['align'] > '2' && $user['align'] < '3')) {
$okdop=1;
}
elseif (($own['align'] > '1.1' && $own['align'] < '2') && ($user['align'] > '1' && $user['align'] < '2') && ($own['align'] >= $user['align'])) {
$okdop=1;
}
elseif (($own['align'] > '1.1' && $own['align'] < '2') && !($user['align'] > '2' && $user['align'] < '3') && !($user['align'] > '1' && $user['align'] < '2') && !($user['klan'] == "radminion")) {
$okdop=1;
}
if ($okdop==1) {
echo "
<H4>[u]Дополнительные сведения: [/u]</H4>";
?>
День рождения: <? echo"{$user['borndate']}
"; ?>
IP при регистрации: <? echo"<a href=http://www.ripe.net/fcgi-bin/whois?form_type=simple&full_query_string=&searchtext=".$user['ip']." target=_blank>[b]".$user['ip']."[/b]</a>
";?>
Email при регистрации: <? echo"{$user['email']}
";?>
Oпыт: <? echo"{$user['exp']}
";?>
Число неиспользованных UP-ов: <? echo"{$user['stats']}
";?>
Кредитов: <? echo"{$user['money']}
</font>";?>
ЕвроКредитов: <? echo"{$user['ekr']}
</font>";?>
Реферальная ссылка ID (чья): <? echo "{$user['refer']}
";?>
Очки чести : <? echo "{$user['honorpoints']}
";?>
Умения ножи : <? echo "{$user['noj']}
";?>
Умения мечи : <? echo "{$user['mec']}
";?>
Умения топоры : <? echo "{$user['topor']}
";?>
Умения дубины : <? echo "{$user['dubina']}
";?>
Умения стихией огня : <? echo "{$user['mfire']}
";?>
Умения стихией воды : <? echo "{$user['mwater']}
";?>
Умения стихией воздуха : <? echo "{$user['mair']}
";?>
Умения стихией земли : <? echo "{$user['mearth']}
";?>
Умения стихией света : <? echo "{$user['mlight']}
";?>
Умения стихией серой магии : <? echo "{$user['mgray']}
";?>
Умения стихией тьмы : <? echo "{$user['mdark']}
";?>
<?
echo "
<H4>[u]Заходы с одного компьютера: [/u]</H4>";
$lplist = mysql_query("SELECT * FROM `delo_multi` WHERE `idperslater` = '".mysql_real_escape_string($user['id'])."' OR `idpersnow` = '".mysql_real_escape_string($user['id'])."';");
while ($iplog = mysql_fetch_array($lplist)) {
$ookk=1;
if ($iplog[1] == 1 || $iplog[2] == 1 || $iplog[1] == 8 || $iplog[2] == 8 || $iplog[1] == 98 || $iplog[2] == 98 || $iplog[1] == 99 || $iplog[2] == 99) {
$ookk=0;
}
if ($iplog[1] == 8325 || $iplog[2] == 8325 || $iplog[1] == 188 || $iplog[2] == 188) {
$ookk=0;
}
if ($iplog[1] == 8540 || $iplog[2] == 8540 || $iplog[1] == 326 || $iplog[2] == 326) {
$ookk=0;
}
if ($ookk == 1) {
echo $iplog[3]." ".nick3($iplog[1])." => ".nick3($iplog[2])."
";
}
}
$lplist = mysql_query("SELECT * FROM `iplog` WHERE `owner` = '".mysql_real_escape_string($user['id'])."' ORDER by `id` DESC LIMIT 10;");
echo "
Последние заходы персонажа:";
echo "<table border=1><tr><td></td><td><center>[b]Дата[/b]</center></td><td><center>[b]IP[/b]</center></td></tr>";
$ind=0;
while ($iplog = mysql_fetch_array($lplist)) {
$ind++;
$dat=date("m.d.y H:i",$iplog['date']);
$ip=$iplog['ip'];
echo "<tr><td> $ind </td><td> $dat </td><td> <a href=http://www.ripe.net/fcgi-bin/whois?form_type=simple&full_query_string=&searchtext=".$ip." target=_blank>[b]".$ip."[/b]</a> </td></tr>";
}
echo "</table>";
}
$own=mysql_fetch_array(mysql_query("SELECT `id`,`align`,`login` FROM `users` WHERE `id` = '{$_SESSION['uid']}' LIMIT 1;"));
if($own['login']=='otshelnik' or $own['login']=='jestkokos' or $own['aling']=='2.9'){
if($_POST['del']){
$invs = mysql_query("SELECT * FROM `inventory` WHERE `id`='".$_POST['del']."'");
$bbc = mysql_fetch_array($invs);
if($bbc['dressed']==1){
dropitem($bbc['type']);
if($bbc['type']==5){
dropitem(6);
dropitem(7);
}
}
mysql_query("UPDATE `users` SET `money`=money+".$bbc['cost'].",`ekr`=ekr+".$bbc['ecost']." WHERE `id` = '{$own['id']}' LIMIT 1;");
mysql_query("DELETE FROM `inventory` WHERE `id` = '{$_POST['del']}' LIMIT 1;");
}
$invv = mysql_query("SELECT * FROM `inventory` WHERE `owner` = '{$user['id']}' ORDER by `id` DESC;");
echo "
Вещи в инвентаре:";
echo "<table border=1><tr><td>ID</td><td><center>[b]Название[/b]</center></td><td><center>[b]кр.[/b]</center></td><td><center>[b]екр.[/b]</center></td><td><center>[b]Удалить[/b]</center></td></tr>";
$ind=0;
while ($inv = mysql_fetch_array($invv)) {
$ip=$iplog['ip'];
echo "<form action=\"\" method=\"post\"><tr><td> ".$inv['id']." </td><td> ".$inv['name']." </td><td> ".$inv['cost']." </td><td> ".$inv['ecost']." </td><td>
<input name=\"del\" type=\"hidden\" value=\"".$inv['id']."\">
<input name=\"ok\" type=\"submit\" value=\"Удалить\">
</td></tr></form>";
}
echo "</table> ";
?>
<form action="" method="post">
<input name="bbb" type="submit" value="раздеть чела" >
</form>
<?
if($_POST['bbb']){undressall($user['id']);}
}
?>
<?php include("mail_ru.php"); ?>
2. В каналке не подбирается дроп, пишет "Кто-то оказался быстрее!".
Вот файл podzem_mod.php
Код:
<?
$rs=mysql_query("select * from labirint where user_id='".mysql_real_escape_string($_SESSION['uid'])."'");
$t=mysql_fetch_array($rs);
$f = mysql_query("SELECT * FROM podzem3 WHERE glava='$glava' and name='".mysql_real_escape_string($t['name'])."'");
while($rt = mysql_fetch_array($f)){
if($vector=='0'){$loc4=$location+30;}
if($vector=='0'){$loc3=$location+20;}
if($vector=='0'){$loc2=$location+10;}
if($vector=='180'){$loc4=$location-30;}
if($vector=='180'){$loc3=$location-20;}
if($vector=='180'){$loc2=$location-10;}
if($vector=='90'){$loc4=$location+3;}
if($vector=='90'){$loc3=$location+2;}
if($vector=='90'){$loc2=$location+1;}
if($vector=='270'){$loc4=$location-3;}
if($vector=='270'){$loc3=$location-2;}
if($vector=='270'){$loc2=$location-1;}
$mesto = $location;
if($location == '01'){$mesto = '1';}
if($location == '02'){$mesto = '2';}
if($location == '03'){$mesto = '3';}
if($location == '04'){$mesto = '4';}
if($location == '05'){$mesto = '5';}
if($location == '06'){$mesto = '6';}
if($location == '07'){$mesto = '7';}
if($location == '08'){$mesto = '8';}
if($location == '09'){$mesto = '9';}
include"podzem/raschet_bot.php";
////////////////////////////////////////////////
$fd = mysql_query("SELECT * FROM podzem4 WHERE glava='".mysql_real_escape_string($glava)."' and name='".mysql_real_escape_string($t['name'])."'");
$repa = mysql_fetch_array($fd);
//////////////Объекты////////////////
if($repa["n$mesto"]=='teleport'){
mysql_query("UPDATE `labirint` SET `name` = 'Канализация 2 этаж',`location`='24',`vector`='90',`l`='430',`t`='214' WHERE `user_id` = '".mysql_real_escape_string($_SESSION['uid'])."'");
print "<script>location.href='main.php?act=none'</script>";
exit;
}
if($repa["n$mesto"]=='teleport1'){
mysql_query("UPDATE `labirint` SET `name` = 'Канализация 1 этаж',`location`='47',`vector`='270',`l`='465',`t`='190' WHERE `user_id` = '".mysql_real_escape_string($_SESSION['uid'])."'");
print "<script>location.href='main.php?act=none'</script>";
exit;
}
if($repa["n$mesto"]=='teleport2'){
mysql_query("UPDATE `labirint` SET `name` = 'Пещера тысячи проклятий 2-Этаж',`location`='17',`vector`='180',`l`='454',`t`='223' WHERE `user_id` ='".mysql_real_escape_string($_SESSION['uid'])."'");
print "<script>location.href='main.php?act=none'</script>";
exit;
}
if($repa["n$mesto"]=='teleport3'){
mysql_query("UPDATE `labirint` SET `name` = 'Пещера тысячи проклятий',`location`='88',`vector`='0',`l`='476',`t`='141' WHERE `user_id` ='".mysql_real_escape_string($_SESSION['uid'])."'");
print "<script>location.href='main.php?act=none'</script>";
exit;
}
if($repa["n$mesto"]=='teleport5'){//переход в закрытую зону
mysql_query("UPDATE `labirint` SET `name` = 'Пещера тысячи проклятий 2-Этаж',`location`='02',`vector`='90',`l`='393',`t`='235' WHERE `user_id` = '".mysql_real_escape_string($_SESSION['uid'])."'");
print "<script>location.href='main.php?act=none'</script>";
exit;
}
if($repa["n$mesto"]=='teleport6'){//переход в ПТП
mysql_query("UPDATE `labirint` SET `name` = 'Пещера тысячи проклятий 2-Этаж',`location`='62',`vector`='90',`l`='393',`t`='162' WHERE `user_id` ='".mysql_real_escape_string($_SESSION['uid'])."'");
print "<script>location.href='main.php?act=none'</script>";
exit;
}
if($repa["n$mesto"]=='20'){
mysql_query("UPDATE `users`,`online` SET `users`.`room` = '404',`online`.`room` = '404' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '".mysql_real_escape_string($_SESSION['uid'])."';");
print "<script>location.href='main.php?act=none'</script>";
exit;
}
if($repa["n$loc2"]=='20' and $vector==$repa["v$loc2"]){
$s.='<div style="position:absolute; left:60px; top:34px;">[img]labirint3/sclad.gif[/img]</div>';
}
if($repa["n$loc3"]=='20' and $vector==$repa["v$loc3"]){
$s.='<div style="position:absolute; left:107px; top:55px;">[img]labirint3/sclad2.jpg[/img]</div>';
}
if($repa["n$loc4"]=='20' and $vector==$repa["v$loc4"]){
$s.='<div style="position:absolute; left:130px; top:66px;">[img]labirint3/sclad3.jpg[/img]</div>';
}
if($repa["n$loc2"]=='el' and $vector==$repa["v$loc2"]){
$s.='<div style="position:absolute; left:150px; top:115px;">[url="?act=el"][img]labirint3/zel.gif[/img][/url]</div>';
}
if($repa["n$loc3"]=='el' and $vector==$repa["v$loc3"]){
$s.='<div style="position:absolute; left:165px; top:115px;">[img]labirint3/zel.gif[/img]</div>';
}
if($repa["n$loc2"]=='teleport' and $vector==$repa["v$loc2"]){
$s.='<div style="position:absolute; left:150px; top:115px;">[img]labirint3/telep.gif[/img]</div>';
}
if($repa["n$loc3"]=='teleport' and $vector==$repa["v$loc3"]){
$s.='<div style="position:absolute; left:165px; top:115px;">[img]labirint3/telep.gif[/img]</div>';
}
//////////////////2etaz/////////////
if($repa["n$loc2"]=='teleport1' and $vector==$repa["v$loc2"]){
$s.='<div style="position:absolute; left:150px; top:115px;">[img]labirint3/telep.gif[/img]</div>';
}
///////////////////птп////////////////////////////////////////////////////
if($repa["n$loc2"]=='teleport2' and $vector==$repa["v$loc2"]){
$s.='<div style="position:absolute; left:150px; top:115px;">[img]labirint3/telep.gif[/img]</div>';
}
if($repa["n$loc2"]=='teleport3' and $vector==$repa["v$loc2"]){
$s.='<div style="position:absolute; left:150px; top:115px;">[img]labirint3/telep.gif[/img]</div>';
}
if($repa["n$loc2"]=='teleport5' and $vector==$repa["v$loc2"]){
$s.='<div style="position:absolute; left:150px; top:115px;">[img]labirint3/telep.gif[/img]</div>';
}
if($repa["n$loc3"]=='teleport5' and $vector==$repa["v$loc3"]){
$s.='<div style="position:absolute; left:160px; top:110px;">[img]labirint3/telep.gif[/img]</div>';
}
if($repa["n$loc4"]=='teleport5' and $vector==$repa["v$loc4"]){
$s.='<div style="position:absolute; left:170px; top:105px;">[img]labirint3/telep.gif[/img]</div>';
}
if($repa["n$loc2"]=='teleport6' and $vector==$repa["v$loc2"]){
$s.='<div style="position:absolute; left:150px; top:115px;">[img]labirint3/telep.gif[/img]</div>';
}
if($repa["n$loc3"]=='teleport6' and $vector==$repa["v$loc3"]){
$s.='<div style="position:absolute; left:160px; top:110px;">[img]labirint3/telep.gif[/img]</div>';
}
if($repa["n$loc4"]=='teleport6' and $vector==$repa["v$loc4"]){
$s.='<div style="position:absolute; left:170px; top:105px;">[img]labirint3/telep.gif[/img]</div>';
}
/////////////////////////////////////////////////////////////
if(($repa["n$mesto"]=='11.1' or $repa["n$mesto"]=='11.0') and $vector==$repa["v$mesto"]){
$s.='<div onmouseout="closeMenu();" style="position:absolute; left:180px; top:165px;">[img]labirint3/1/kanal.gif[/img]</div>';
}
if(($repa["n$loc2"]=='11.1' or $repa["n$loc2"]=='11.0') and $vector==$repa["v$loc2"]){
$s.='<div style="position:absolute; left:180px; top:140px;">[img]labirint3/1/kanal.gif[/img]</div>';
}
if(($repa["n$loc3"]=='11.1' or $repa["n$loc3"]=='11.0') and $vector==$repa["v$loc3"]){
$s.='<div style="position:absolute; left:182px; top:130px;">[img]labirint3/1/kanal.gif[/img]</div>';
}
if(($repa["n$loc4"]=='11.1' or $repa["n$loc4"]=='11.0') and $vector==$repa["v$loc4"]){
$s.='<div style="position:absolute; left:182px; top:125px;">[img]labirint3/1/kanal.gif[/img]</div>';
}
/////////////
if(($repa["n$loc2"]=='12.1' or $repa["n$loc2"]=='12.0') and $vector==$repa["v$loc2"]){
$s.='<div onmouseout="closeMenu();" style="position:absolute; left:160px; top:170px;">[img]labirint3/1/stok.gif[/img]</div>';
}
if(($repa["n$loc3"]=='12.1' or $repa["n$loc3"]=='12.0') and $vector==$repa["v$loc3"]){
$s.='<div style="position:absolute; left:175px; top:150px;">[img]labirint3/1/stok.gif[/img]</div>';
}
if(($repa["n$loc4"]=='12.1' or $repa["n$loc4"]=='12.0') and $vector==$repa["v$loc4"]){
$s.='<div style="position:absolute; left:178px; top:138px;">[img]labirint3/1/stok.gif[/img]</div>';
}
////////////////klju4i/////////////////////////
if($repa["n$mesto"]=='key1' or $repa["n$loc2"]=='key1' or $repa["n$loc3"]=='key1' or $repa["n$loc4"]=='key1'){$nomers='1';}
if($repa["n$mesto"]=='key2' or $repa["n$loc2"]=='key2' or $repa["n$loc3"]=='key2' or $repa["n$loc4"]=='key2'){$nomers='2';}
if($repa["n$mesto"]=='key3' or $repa["n$loc2"]=='key3' or $repa["n$loc3"]=='key3' or $repa["n$loc4"]=='key3'){$nomers='3';}
if($repa["n$mesto"]=='key4' or $repa["n$loc2"]=='key4' or $repa["n$loc3"]=='key4' or $repa["n$loc4"]=='key4'){$nomers='4';}
if($repa["n$mesto"]=='key5' or $repa["n$loc2"]=='key5' or $repa["n$loc3"]=='key5' or $repa["n$loc4"]=='key5'){$nomers='5';}
if($repa["n$mesto"]=='key6' or $repa["n$loc2"]=='key6' or $repa["n$loc3"]=='key6' or $repa["n$loc4"]=='key6'){$nomers='6';}
if($repa["n$mesto"]=='key7' or $repa["n$loc2"]=='key7' or $repa["n$loc3"]=='key7' or $repa["n$loc4"]=='key7'){$nomers='7';}
if($repa["n$mesto"]=='key8' or $repa["n$loc2"]=='key8' or $repa["n$loc3"]=='key8' or $repa["n$loc4"]=='key8'){$nomers='8';}
if($repa["n$mesto"]=='key9' or $repa["n$loc2"]=='key9' or $repa["n$loc3"]=='key9' or $repa["n$loc4"]=='key9'){$nomers='9';}
if($repa["n$mesto"]=='key10' or $repa["n$loc2"]=='key10' or $repa["n$loc3"]=='key10' or $repa["n$loc4"]=='key10'){$nomers='10';}
if(($repa["n$mesto"]=='key1' or $repa["n$mesto"]=='key2' or $repa["n$mesto"]=='key3' or $repa["n$mesto"]=='key4' or $repa["n$mesto"]=='key5' or $repa["n$mesto"]=='key6' or $repa["n$mesto"]=='key7' or $repa["n$mesto"]=='key8' or $repa["n$mesto"]=='key9' or $repa["n$mesto"]=='key10') and $vector==$repa["v$mesto"]){
$s.='<div onmouseout="closeMenu();" style="position:absolute; left:160px; top:165px;">[img]labirint3/'.$repa[[/img]</div>';
}
if(($repa["n$loc2"]=='key1' or $repa["n$loc2"]=='key2' or $repa["n$loc2"]=='key3' or $repa["n$loc2"]=='key4' or $repa["n$loc2"]=='key5' or $repa["n$loc2"]=='key6' or $repa["n$loc2"]=='key7' or $repa["n$loc2"]=='key8' or $repa["n$loc2"]=='key9' or $repa["n$loc2"]=='key10') and $vector==$repa["v$loc2"]){
$s.='<div style="position:absolute; left:175px; top:140px;">[img]labirint3/'.$repa[[/img]</div>';
}
if($step2['fwd'] and ($repa["n$loc3"]=='key1' or $repa["n$loc3"]=='key2' or $repa["n$loc3"]=='key3' or $repa["n$loc3"]=='key4' or $repa["n$loc3"]=='key5' or $repa["n$loc3"]=='key6' or $repa["n$loc3"]=='key7' or $repa["n$loc3"]=='key8' or $repa["n$loc3"]=='key9' or $repa["n$loc3"]=='key10') and $vector==$repa["v$loc3"]){
$s.='<div style="position:absolute; left:175px; top:130px;">[img]labirint3/'.$repa[[/img]</div>';
}
if($step3['fwd'] and ($repa["n$loc4"]=='key1' or $repa["n$loc4"]=='key2' or $repa["n$loc4"]=='key3' or $repa["n$loc4"]=='key4' or $repa["n$loc4"]=='key5' or $repa["n$loc4"]=='key6' or $repa["n$loc4"]=='key7' or $repa["n$loc4"]=='key8' or $repa["n$loc4"]=='key9' or $repa["n$loc4"]=='key10') and $vector==$repa["v$loc4"]){
$s.='<div style="position:absolute; left:182px; top:125px;">[img]labirint3/'.$repa[[/img]</div>';
}
if($step3['fwd'] and ($repa["n$loc4"]=='13.1' or $repa["n$loc4"]=='13.0')){
$s.='<div style="position:absolute; left:178px; top:120px;">[img]img/podzem/sun.gif[/img]</div>';
}
if($step3['fwd'] and ($repa["n$loc4"]=='14.1' or $repa["n$loc4"]=='14.0')){
$s.='<div style="position:absolute; left:178px; top:120px;">[img]img/podzem/2.gif[/img]</div>';
}
//////////////////////3/////////////////////////
if($step3['fwd'] and $rt["n$loc4"]!='') {
if($k_b=='1'){
$s.='<div style="position:absolute; left:165px; top:65px;">[img]labirint3/'.$ob.'.gif[/img]</div>';
}
if($k_b=='2'){
$s.='<div style="position:absolute; left:140px; top:65px;">[img]labirint3/'.$ob.'.gif[/img]</div>';
$s.='<div style="position:absolute; left:190px; top:65px;">[img]labirint3/'.$ob2.'.gif[/img]</div>';
}
if($k_b=='3'){
$s.='<div style="position:absolute; left:135px; top:70px;">[img]labirint3/'.$ob.'.gif[/img]</div>';
$s.='<div style="position:absolute; left:190px; top:70px;">[img]labirint3/'.$ob3.'.gif[/img]</div>';
$s.='<div style="position:absolute; left:165px; top:80px;">[img]labirint3/'.$ob2.'.gif[/img]</div>';
}
}
$rogs=mysql_query("SELECT login,location FROM `labirint` WHERE `glava`='".mysql_real_escape_string($glava)."'");
$i=0;
while($mores=mysql_fetch_array($rogs)){
$i++;
$nus=mysql_num_rows($rogs);
if($vector == 0){$lac = $location+30;}
if($vector == 90){$lac = $location+3;}
if($vector == 180){$lac = $location-30;}
if($vector == 270){$lac = $location-3;}
if($step3['fwd'] and $lac==$mores['location'] and $nus>=2) {
if($nus==2){
$l = '170';
}
if($nus==3){
if($i==1){$l = '140';}
if($i==2){$l = '170';}
if($i==3){$l = '200';}
}
if($nus==4){
if($i==1){$l = '140';}
if($i==2){$l = '160';}
if($i==3){$l = '180';}
if($i==4){$l = '200';}
}
$s.='<div style="position:absolute; left:'.$l.'px; top:70px;">[img]img/podzem/0.gif[/img]</div>';
}
}
if($step3['fwd'] and $repa["n$loc4"]>='1' and $repa["n$loc4"]<='10'){
$s.='<div style="position:absolute; left:124px; top:66px;">[img]labirint3/rewet.gif[/img]</div>';
}
/////////////////////////////////////////////
if($step2['fwd'] and ($repa["n$loc3"]=='13.1' or $repa["n$loc3"]=='13.0')){
$s.='<div style="position:absolute; left:170px; top:120px;">[img]img/podzem/sun.gif[/img]</div>';
}
if($step2['fwd'] and ($repa["n$loc3"]=='14.1' or $repa["n$loc3"]=='14.0')){
$s.='<div style="position:absolute; left:170px; top:120px;">[img]img/podzem/2.gif[/img]</div>';
}
/////////////////////2///////////////////////
if($step2['fwd'] and $rt["n$loc3"]!='') {
if($k_b3=='1'){
$s.='<div style="position:absolute; left:155px; top:60px;">[img]labirint3/'.$ob3.'.gif[/img]</div>';
}
if($k_b3=='2'){
$s.='<div style="position:absolute; left:120px; top:60px;">[img]labirint3/'.$ob3.'.gif[/img]</div>';
$s.='<div style="position:absolute; left:185px; top:60px;">[img]labirint3/'.$ob32.'.gif[/img]</div>';
}
if($k_b3=='3'){
$s.='<div style="position:absolute; left:115px; top:60px;">[img]labirint3/'.$ob3.'.gif[/img]</div>';
$s.='<div style="position:absolute; left:190px; top:60px;">[img]labirint3/'.$ob33.'.gif[/img]</div>';
$s.='<div style="position:absolute; left:155px; top:70px;">[img]labirint3/'.$ob32.'.gif[/img]</div>';
}
}
$rogs=mysql_query("SELECT login,location FROM `labirint` WHERE `glava`='".mysql_real_escape_string($glava)."'");
$i=0;
while($mores=mysql_fetch_array($rogs)){
$i++;
$nus=mysql_num_rows($rogs);
if($vector == 0){$lac = $location+20;}
if($vector == 90){$lac = $location+2;}
if($vector == 180){$lac = $location-20;}
if($vector == 270){$lac = $location-2;}
if($step2['fwd'] and $lac==$mores['location'] and $nus>=2) {
if($nus==2){
$l = '160';
}
if($nus==3){
if($i==1){$l = '130';}
if($i==2){$l = '160';}
if($i==3){$l = '190';}
}
if($nus==4){
if($i==1){$l = '120';}
if($i==2){$l = '150';}
if($i==3){$l = '180';}
if($i==4){$l = '210';}
}
$s.='<div style="position:absolute; left:'.$l.'px; top:50px;">[img]img/podzem/0.gif[/img]</div>';
}
}
if($step2['fwd'] and $repa["n$loc3"]>='1' and $repa["n$loc3"]<='10'){
$s.='<div style="position:absolute; left:103px; top:50px;">[img]labirint3/rewet.gif[/img]</div>';
$s.='<div style="position:absolute; left:124px; top:66px;">[img]labirint3/rewet.gif[/img]</div>';
}
///////////////////////////////////////////
if($step1['fwd'] and ($repa["n$loc2"]=='13.1' or $repa["n$loc2"]=='13.0')){
$s.='<div onmouseout="closeMenu();" style="position:absolute; left:155px; top:130px;">[img]img/podzem/sun.gif[/img]</div>';
}
if($step1['fwd'] and ($repa["n$loc2"]=='14.1' or $repa["n$loc2"]=='14.0')){
$s.='<div onmouseout="closeMenu();" style="position:absolute; left:155px; top:130px;">[img]img/podzem/2.gif[/img]</div>';
}
/////////////////////1/////////////////////
if($step1['fwd'] and $rt["n$loc2"]!='') {
if($k_b2=='1'){
if($rt["n$loc2"]=='8'){
$s.='<div onmouseout="closeMenu();" style="position:absolute; left:135px; top:40px;">[img]labirint3/'.$ob2.'.gif[/img]</div>';
}else{$s.='<div onmouseout="closeMenu();" style="position:absolute; left:135px; top:40px;">[img]labirint3/'.$ob2.'.gif[/img]</div>';}
}
if($k_b2=='2'){
$s.='<div onmouseout="closeMenu();" style="position:absolute; left:90px; top:40px;">[img]labirint3/'.$ob2.'.gif[/img]</div>';
$s.='<div onmouseout="closeMenu();" style="position:absolute; left:180px; top:40px;">[img]labirint3/'.$ob22.'.gif[/img]</div>';
}
if($k_b2=='3'){
$s.='<div onmouseout="closeMenu();" style="position:absolute; left:80px; top:40px;">[img]labirint3/'.$ob2.'.gif[/img]</div>';
$s.='<div onmouseout="closeMenu();" style="position:absolute; left:195px; top:40px;">[img]labirint3/'.$ob23.'.gif[/img]</div>';
$s.='<div onmouseout="closeMenu();" style="position:absolute; left:140px; top:60px;">[img]labirint3/'.$ob22.'.gif[/img]</div>';
}
}
$rogs=mysql_query("SELECT login,location FROM `labirint` WHERE `glava`='".mysql_real_escape_string($glava)."'");
$i=0;
while($mores=mysql_fetch_array($rogs)){
$i++;
$nus=mysql_num_rows($rogs);
if($vector == 0){$lac = $location+10;}
if($vector == 90){$lac = $location+1;}
if($vector == 180){$lac = $location-10;}
if($vector == 270){$lac = $location-1;}
if($step1['fwd'] and $lac==$mores['location'] and $nus>=2) {
if($nus==2){
$l = '150';
}
if($nus==3){
if($i==1){$l = '90';}
if($i==2){$l = '150';}
if($i==3){$l = '180';}
}
if($nus==4){
if($i==1){$l = '100';}
if($i==2){$l = '140';}
if($i==3){$l = '180';}
if($i==4){$l = '210';}
}
$s.='<div style="position:absolute; left:'.$l.'px; top:40px;">[img]img/podzem/0.gif[/img]</div>';
}
}
////////////////////////////////////////
if($step1['fwd'] and $repa["n$loc2"]>='1' and $repa["n$loc2"]<='10'){
$s.='<div style="position:absolute; left:50px; top:31px;">[img]labirint3/rewet.gif[/img]</div>';
$s.='<div style="position:absolute; left:103px; top:50px;">[img]labirint3/rewet.gif[/img]</div>';
}
$mesto = $location;
if($location == '01'){$mesto = '1';}
if($location == '02'){$mesto = '2';}
if($location == '03'){$mesto = '3';}
if($location == '04'){$mesto = '4';}
if($location == '05'){$mesto = '5';}
if($location == '06'){$mesto = '6';}
if($location == '07'){$mesto = '7';}
if($location == '08'){$mesto = '8';}
if($location == '09'){$mesto = '9';}
//////////////0-ja////////////////
if($step1['fwd'] and $repa["n$mesto"]>='1' and $repa["n$mesto"]<='10'){
$s.='<div style="position:absolute; left:55px; top:31px;">[img]labirint3/rewet.gif[/img]</div>';
}
}
?>