From 0dd85be028ef9157f588b87f03f160fe949b9ae9 Mon Sep 17 00:00:00 2001 From: "Igor Barkov (iwork)" Date: Mon, 16 Sep 2019 17:15:30 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D1=8C=D1=88=D0=B5=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=B4=D0=B0=20=D0=BD=D0=B0=20=D1=82=D0=B5=20=D0=B6=D0=B5?= =?UTF-8?q?=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.php | 48 +++--------------------------------------------- 1 file changed, 3 insertions(+), 45 deletions(-) diff --git a/main.php b/main.php index e4ccc38..763145c 100644 --- a/main.php +++ b/main.php @@ -2282,54 +2282,12 @@ if (input::get('edit')) { //========================================================================================================== //проверяем соответствие комнаты и скрипта -if ($user['room'] == 20) { - header('Location: city.php'); - die(); -} -if ($user['room'] == 21) { - header('Location: city.php'); - die(); -} -if ($user['room'] == 26) { - header('Location: city.php'); - die(); -} -if ($user['room'] == 48) { - header('Location: city.php'); - die(); -} -if ($user['room'] == 51) { - header('Location: city.php'); - die(); -} -if ($user['room'] == 52) { - header('Location: city.php'); - die(); -} -if ($user['room'] == 651) { - header('Location: city.php'); - die(); -} -if ($user['room'] == 2655) { - header('Location: city.php'); - die(); -} -if ($user['room'] == 2601) { - header('Location: city.php'); - die(); -} -if ($user['room'] == 2701) { - header('Location: city.php'); - die(); -} -if ($user['room'] == 2702) { - header('Location: city.php'); - die(); -} -if ($user['room'] == 2111) { + +if (in_array($user['room'], [20,21,26,48,51,52,651,2655,2601,2701,2702,2111], 1)) { header('Location: city.php'); die(); } + if ($user['room'] == 22) { header('Location: shop.php'); die();