From 2f723e02b85baf8ff6a5e2f4dda649e688f73565 Mon Sep 17 00:00:00 2001 From: "Igor Barkov (iwork)" Date: Wed, 30 Sep 2020 15:58:44 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B8=D0=BA=D1=80=D1=83=D1=87?= =?UTF-8?q?=D0=B8=D0=B2=D0=B0=D0=B5=D0=BC=20=D1=88=D0=B0=D0=B1=D0=BB=D0=BE?= =?UTF-8?q?=D0=BD.=20=D0=A5=D0=BE=D1=80=D0=BE=D0=BD=D0=B8=D0=BC=20=D0=B8?= =?UTF-8?q?=D0=B4=D0=B8=D0=BE=D1=82=D1=81=D0=BA=D0=B8=D0=B5=20=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=B1=D0=BA=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buy_klan.php | 2 +- c_forest.php | 44 ++++++++++++++++++++++--------------------- ch.php | 2 +- enter_cave.php | 2 +- fbattle.php | 2 +- forest.php | 2 +- game.php | 2 +- game2.php | 2 +- group_arena.php | 2 +- hostel.php | 2 +- hostel_checkpoint.php | 2 +- hostel_room.php | 2 +- lab_enter.php | 2 +- labirint.php | 2 +- magic/ldadd.php | 2 +- magic/un_align.php | 2 +- magic/vips.php | 2 +- main.php | 2 +- quest_room.php | 2 +- tower.php | 2 +- towerin.php | 2 +- towerstamp.php | 2 +- 22 files changed, 44 insertions(+), 42 deletions(-) diff --git a/buy_klan.php b/buy_klan.php index 8732a61..33a69f6 100644 --- a/buy_klan.php +++ b/buy_klan.php @@ -1,6 +1,6 @@ $dat[$forest['room']]['Up'], 'Down' => $dat[$forest['room']]['Down'], 'Left' => $dat[$forest['room']]['Left'], 'Right' => $dat[$forest['room']]['Right']]; - return $dat; + return ['Up' => $dat[$forest['room']]['Up'], 'Down' => $dat[$forest['room']]['Down'], 'Left' => $dat[$forest['room']]['Left'], 'Right' => $dat[$forest['room']]['Right']]; } $map_user = loadmap_cell(); @@ -73,33 +72,40 @@ if ($_GET['move'] == 'true') { } else { $error = 'Not in this life'; } - if (empty($error)) db::c()->query('UPDATE `forest` SET `room` = "?s", `room_id` = ?i WHERE `id` = ?i', $forest['room'], $forest['room_id'], $forest['id']); + if (empty($error)) { + db::c()->query('UPDATE `forest` SET `room` = "?s", `room_id` = ?i WHERE `id` = ?i', $forest['room'], $forest['room_id'], $forest['id']); + } } -if ($map_user['Right'] == 1) $map_page = << + onclick="location.href='?move=true&Dir=Right';" alt="Вправо"> MAP; -if ($map_user['Left'] == 1) $map_page = << + onclick="location.href='?move=true&Dir=Left';" alt="Влево"> MAP; -if ($map_user['Down'] == 1) $map_page = << + onclick="location.href='?move=true&Dir=Down';" alt="Вниз"> MAP; -if ($map_user['Up'] == 1) $map_page = << + onclick="location.href='?move=true&Dir=Up';" alt="Вверх"> MAP; +} +Template::header('forest'); ?> - - - - forest - -
@@ -135,6 +139,4 @@ MAP;
-
- - \ No newline at end of file +
\ No newline at end of file diff --git a/ch.php b/ch.php index 8d098d1..b03e10c 100644 --- a/ch.php +++ b/ch.php @@ -1,6 +1,6 @@ room == 51) { header('location: city.php'); exit; } diff --git a/game.php b/game.php index 7e376cf..ccd6d9b 100644 --- a/game.php +++ b/game.php @@ -6,7 +6,7 @@ */ session_start(); -if (!isset($_SESSION['uid'])) header("Location: index.php"); +if (empty($_SESSION['uid'])) header("Location: index.php"); //include("config.php"); //$msg = filter_input(INPUT_POST,'msg'); diff --git a/game2.php b/game2.php index 5bfc2a1..4c73e29 100644 --- a/game2.php +++ b/game2.php @@ -6,7 +6,7 @@ */ session_start(); -if (!isset($_SESSION['uid'])) header("Location: index.php"); +if (empty($_SESSION['uid'])) header("Location: index.php"); //include("config.php"); //$msg = filter_input(INPUT_POST,'msg'); diff --git a/group_arena.php b/group_arena.php index d0ba46d..44fd76b 100644 --- a/group_arena.php +++ b/group_arena.php @@ -1,6 +1,6 @@ array(8, 16, 24, 32), 2 => array(15, 30, 45, 60), 3 => array(25, 50, 75, 100), 4 => array(40, 80, 120, 160)); diff --git a/hostel_room.php b/hostel_room.php index 138f69e..7f08d23 100644 --- a/hostel_room.php +++ b/hostel_room.php @@ -1,6 +1,6 @@