if ($_GET["info"]) { $item_id = (int) $_GET["info"]; $sql_info = mysql_fetch_Array(mysql_query("SELECT * FROM inv WHERE owner='" . $login . "' and object_razdel='obj' and id=" . $item_id)); if ($sql_info) { echo "<img src='http://www.meydan.az/img/items/" . $sql_info["img"] . "' border='0' /><br/>"; echo show_item($db, $sql_info); } } else { if ($otdel == "obj") { showPlayer_inv($db); echo "<br/>[<a href=\"?act=unwear_full\">Снять все</a>]<br/>"; } else { if ($otdel == "magic") { for ($j = 0; $j <= 1; $j++) { for ($i = $j * 6 + 100; $i <= $j * 6 + 105; $i++) { echo showpic($db, $i, 2); } unset($i); } } } } ?> <div class="sep1"></div> <div class="sep2"></div> <div class="aheader">[<a href='?otdel=obj&<?php echo $random; ?> '>Экипировка</a>] [<a href='?otdel=magic&<?php echo $random; ?>
<script>top.setHP(<?php echo $hp[0] . "," . $hp[1] . ",100"; ?> );</script> <script>top.setMana(<?php echo $mana['0'] . "," . $mana['1'] . ",100"; ?> );</script> <?php showPlayer($db); echo "<table cellspacing='3' border=0 cellpadding='0' width='220' align=left>"; for ($j = 0; $j <= 1; $j++) { echo "<tr>"; for ($i = $j * 6 + 100; $i <= $j * 6 + 105; $i++) { echo "<td width=37>"; showpic($db, $i, 0); echo " </td>"; } unset($i); echo "</tr>"; } echo "</table>"; unset($j); ?> </td> <td> </td> <td valign=top><br> <?php echo "\n\t\t\t\t\tСила: " . ($db["sila"] + $effect["add_sila"]) . "<br>\n\t\t\t\t\tЛовкость: " . ($db["lovkost"] + $effect["add_lovkost"]) . "<br>\n\t\t\t\t\tУдача: " . ($db["udacha"] + $effect["add_udacha"]) . "<br>\n\t\t\t\t\tВыносливость: " . $db["power"] . "<br>"; if ($db["level"]) {
if ($db["intellekt"] >= $min_i && $db["vospriyatie"] >= $min_v && $db["level"] >= $min_l && $ordens == 1 && $db["mana"] >= $mana) { include "magic/{$files}"; //$opponent=getNextEnemy($login,$enemy_team,$creator,$bid); Header("Location: battle.php?tmp={$random}"); } else { echo "<script>errmess('У Вас недостаточно параметров для кастования этого заклятия!');</script>"; $_GET['act'] = ""; } } } } ######################################################################################## echo "<table cellspacing='0' border=0 cellpadding='0' align=center>"; echo "<tr><td align=center>"; for ($i = 100; $i <= 111; $i++) { showpic($db, $i, 4); } unset($i); echo "</td></tr>"; echo "</table>"; $T_D = mysql_fetch_array(mysql_query("SELECT * FROM battles WHERE id='" . $bid . "'")); $lasthit = $T_D["lasthit"]; ######################################################################################## if ($b == 1) { if ($db["hp"] <= 0) { if ($lasthit + $to + 10 * 60 < time()) { Header("Location: battle.php?act=t_win&tmp={$random}"); die; } echo "<b style='color:#ff0000'>Для вас бой окончен. Ожидаем пока закончат и другие игроки....</b><BR>\n\t\t<input type=button value='Обновить' name='refresh' id='refresh' class='inup' onClick=\"location.href='battle.php'\">"; } else {
{ if (!file_exists(PICTURES . $cat_rotate)) { return ''; } $types_pic = array('jpg'); if ($handle = opendir(PICTURES . $cat_rotate)) { $a = 1; while (false !== ($file = readdir($handle))) { if ($file[0] == '.' || !in_array(getftype($file), $types_pic)) { continue; } $f_name[$a] = $file; $a++; } closedir($handle); } $number = rand(1, $a - 1); $image = $f_name[$number]; return $image; } function showpic($cat_rotate) { global $prefflp, $gallerypath; $random_pic = select_pic($cat_rotate); echo '<div class="gallery"> <a href="' . $prefflp . '/' . $gallerypath . '/' . $cat_rotate . '/' . $random_pic . '" rel="prettyPhoto[gallery-' . $cat_rotate . ']" title="Кликните на изображении для увеличения."> <img src="' . $prefflp . '/' . $gallerypath . '/' . $cat_rotate . '/thumb/t' . $random_pic . '" alt=" " /></a> </div>'; } showpic($photorotpath);