From 9ce4886b3e3de6e3523ccdc4dfb088ad17710329 Mon Sep 17 00:00:00 2001 From: "Igor Barkov (iwork)" Date: Tue, 17 Sep 2019 15:05:06 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D0=B8=D1=80=D0=B0=D0=B5=D0=BC=20?= =?UTF-8?q?=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=87=D0=B8=D0=BA=20?= =?UTF-8?q?"=D0=BA=D0=B0=D1=80=D1=82=D1=8B=20=D0=BC=D0=B8=D1=80=D0=BE?= =?UTF-8?q?=D0=B2".=20=D0=9D=D0=BE=D0=B2=D1=8B=D0=B9=20=D1=81=D1=82=D0=B8?= =?UTF-8?q?=D0=BB=D1=8C=20=D0=B4=D0=BB=D1=8F=20=D1=82=D0=B0=D0=B1=D0=BB?= =?UTF-8?q?=D0=B8=D1=86,=20=D0=BA=D0=BE=D1=82=D0=BE=D1=80=D1=8B=D0=B5=20?= =?UTF-8?q?=D1=85=D0=BE=D1=82=D1=8F=D1=82=20cellpadding,=20cellspacing=20?= =?UTF-8?q?=D0=B8=20=D0=BF=D0=BE=D0=B4=D0=BE=D0=B1=D0=BD=D1=8B=D0=B5=20?= =?UTF-8?q?=D1=88=D1=82=D1=83=D0=BA=D0=B8=20=D0=BF=D0=BE=20=D0=BD=D1=83?= =?UTF-8?q?=D0=BB=D1=8F=D0=BC=20=D0=B8=20=D1=82=D0=B5=D0=BA=D1=81=D1=82=20?= =?UTF-8?q?=D1=81=D0=BB=D0=B5=D0=B2=D0=B0=20=D1=81=D0=B2=D0=B5=D1=80=D1=85?= =?UTF-8?q?=D1=83.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/main.css | 14 +++++ main.php | 146 ++++++++++++--------------------------------------- 2 files changed, 47 insertions(+), 113 deletions(-) diff --git a/css/main.css b/css/main.css index ee238cc..dc95720 100644 --- a/css/main.css +++ b/css/main.css @@ -1062,4 +1062,18 @@ img.item-wrap-normal { div.topRoomButtons { float: right; +} + +table.allzeroes { + /* cellspacing = 0 */ + border-collapse: collapse; + border-spacing: 0; + width: 100%; +} + +table.allzeroes th, td { + /* cellpadding = 0 */ + padding: 0; + text-align: left; + vertical-align: top; } \ No newline at end of file diff --git a/main.php b/main.php index 356d37f..455659c 100644 --- a/main.php +++ b/main.php @@ -729,71 +729,6 @@ if (input::post('setshadowclan')) { die(); } -if (input::get('setch')) { - ?> - - - - - - - - - - - -
-
-
-
full() ?>
-
Сейчас в игре: getNumRows() ?> чел.
-
- - - - - - - - - - - - - -
-
- - - "> query('SELECT SUM(`massa`) AS `summ` FROM `inventory` WHERE `owner` = ?i AND `dressed` = 0 AND `setsale` = 0', $user['id'])->fetch_assoc(); -if ($d['summ'] > get_meshok() && $_GET['got']) { - err('У вас переполнен рюкзак, вы не можете передвигаться...'); - $_GET['got'] = 0; -} - -$eff = db::c()->query('SELECT `id` FROM `effects` WHERE `owner` = ?i AND (`type` = 14 OR `type` = 13) LIMIT 1', $user['id'])->fetch_assoc(); -if (isset($eff['id']) && $_GET['got']) { - err('У вас тяжелая травма, вы не можете передвигатся...'); - $_GET['got'] = 0; -} - +// Входим и выходим если можем. if (isset($_GET['goto'])) { - if ($_GET['goto'] == 'plo' AND !empty($user['zayavka'])) { + $imove = true; + $d = db::c()->query('SELECT SUM(`massa`) AS `summ` FROM `inventory` WHERE `owner` = ?i AND `dressed` = 0 AND `setsale` = 0', $user['id'])->fetch_assoc(); + $eff = db::c()->query('SELECT `id` FROM `effects` WHERE `owner` = ?i AND (`type` = 14 OR `type` = 13) LIMIT 1', $user['id'])->fetch_assoc(); + if ($d['summ'] > get_meshok() && $_GET['got']) { + err('У вас переполнен рюкзак, вы не можете передвигаться...'); + $imove = false; + } + if (isset($eff['id']) && $_GET['got']) { + err('У вас тяжелая травма, вы не можете передвигатся...'); + $imove = false; + } + if ($_GET['goto'] == 'plo' AND !empty($user['zayavka']) AND $imove === true) { db::c()->query('UPDATE `users`,`online` SET `users`.`room` = 20,`online`.`room` = 20 WHERE `online`.`id` = `users`.`id` AND `online`.`id` = ?i', $_SESSION['uid']); header('Location: city.php'); die("Топ-топ-топ..."); } else err('Подали заявку на бой и убегаете из клуба? Нехорошо...'); - if ($_GET['goto'] == 'arena' AND $user['room'] === 20) { + if ($_GET['goto'] == 'arena' AND $user['room'] === 20 AND $imove === true) { db::c()->query('UPDATE `users`, `online` SET `users`.`room` = 1, `online`.`room` = 1 WHERE `online`.`id` = `users`.`id` AND `online`.`id` = ?i', $_SESSION['uid']); header('Location: main.php'); die("Топ-топ-топ..."); } } + if (isset($_GET['use'])) { usemagic($_GET['use'], $_POST['target']); } @@ -1892,46 +1828,30 @@ $online = db::c()->query('SELECT 1 FROM `online` WHERE `real_time` >= ?i', (time ?>
- +
- -
+   -
-
    -
  • -
    - Поединки
    -
  • -
  • -
    Настройки / инвентарь -
    -
  • -
  • -
    - Состояние -
    -
  • -
  • -
    Карта миров
    -
  • -
  • -
    Выйти на Центральную площадь -
    -
  • -
  • -
    Обновить экран -
    -
  • -
+
+
Сейчас в игре: getNumRows() ?> чел.
+
+
+
+ +
+ +
+ +
+ \ No newline at end of file