From d5a3fefdc13890fc0c5f91cdde1c4b9697f70131 Mon Sep 17 00:00:00 2001 From: "Igor Barkov [iwork]" Date: Sat, 23 Jun 2018 15:53:25 +0300 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=B0=D0=B3=20=D1=81=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=B1=D0=B8=D1=80=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=B2=D0=B5=D1=89?= =?UTF-8?q?=D0=B5=D0=B9=20=D0=B8=D0=B7=20=D0=B1=D0=B5=D1=80=D1=91=D0=B7?= =?UTF-8?q?=D0=BA=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/shop.php b/shop.php index 7008533..53340d6 100644 --- a/shop.php +++ b/shop.php @@ -58,7 +58,7 @@ if (isset($_GET['set']) OR isset($_POST['set'])) { $count_ok = 0; } else $count_ok = 1; - $dress = db::c()->query('SELECT * FROM `ashop` WHERE `id`=?i', $set)->fetch_assoc(); + $dress = db::c()->query('SELECT * FROM `shop` WHERE `id`=?i', $set)->fetch_assoc(); if ($count_ok == 0) { err('Неправильно введено количество.'); } elseif (($dress['massa'] * $count + $itemWeight['m']) > (get_meshok())) { @@ -154,38 +154,38 @@ $shopItemType = empty($_POST['sale']) ?: $_POST['sale']; $shopItemTypeNumber = empty($_GET['otdel']) ?: $_GET['otdel']; switch ($shopItemTypeNumber) { default: - $shopItemType = "Оружие: кастеты,ножи"; + $shopItemType = "кастеты,ножи"; $_GET['otdel'] = 1; break; case 1: - $shopItemType = "Оружие: кастеты,ножи"; + $shopItemType = "кастеты,ножи"; break; case 11: - $shopItemType = "Оружие: топоры"; + $shopItemType = "топоры"; break; case 12: - $shopItemType = "Оружие: дубины,булавы"; + $shopItemType = "дубины,булавы"; break; case 13: - $shopItemType = "Оружие: мечи"; + $shopItemType = "мечи"; break; case 14: - $shopItemType = "Оружие: луки и арбалеты"; + $shopItemType = "луки и арбалеты"; break; case 2: - $shopItemType = "Одежда: сапоги"; + $shopItemType = "сапоги"; break; case 21: - $shopItemType = "Одежда: перчатки"; + $shopItemType = "перчатки"; break; case 22: - $shopItemType = "Одежда: легкая броня"; + $shopItemType = "легкая броня"; break; case 23: - $shopItemType = "Одежда: тяжелая броня"; + $shopItemType = "тяжелая броня"; break; case 24: - $shopItemType = "Одежда: шлемы"; + $shopItemType = "шлемы"; break; case 3: $shopItemType = "Щиты";