From 287745cc418893c5bf549d924c18415a6a192839 Mon Sep 17 00:00:00 2001 From: lopar Date: Thu, 22 Mar 2018 22:16:25 +0200 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D0=BF=D0=B8=D0=BB=D0=B5=D0=BD=20?= =?UTF-8?q?=D1=81=D0=B1=D1=80=D0=BE=D1=81=20=D0=BD=D0=B0=D0=B2=D1=8B=D0=BA?= =?UTF-8?q?=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bank.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/bank.php b/bank.php index 2f93fdc..93676a7 100644 --- a/bank.php +++ b/bank.php @@ -183,23 +183,6 @@ if (!$_SESSION['bankid']) { $_POST['change'] = 0; } - if ($_GET['dropm']) { - if (2 <= $bank['ekr']) { - undressall($user['id']); - if (mysql_query("UPDATE `users` SET `master`=noj+mec+topor+dubina+mfire+mwater+mair+mearth+mlight+mgray+mdark+master,noj=0,mec=0,topor=0,dubina=0,mfire=0,mwater=0,mair=0,mearth=0,mlight=0,mgray=0,mdark=0 WHERE `id`='" . $user['id'] . "' LIMIT 1;")) { - mysql_query("UPDATE `bank` SET `ekr`=`ekr`-'2' WHERE `id`='" . $_SESSION['bankid'] . "' LIMIT 1;"); - mysql_query("INSERT INTO `delo` (`id`,`author`,`pers`,`text`,`type`,`date`) VALUES ('','0','" . $_SESSION['uid'] . "','" . $user['login'] . " перераспределил умения, заплатив 2 екр. со счета №" . $_SESSION['bankid'] . " в банке. ',1,'" . time() . "');"); - $bank = mysql_fetch_array(mysql_query("SELECT * FROM `bank` WHERE `id`='" . $_SESSION['bankid'] . "';")); - $mywarn = "Все прошло удачно. Вы можете перераспределить умения."; - } else { - $mywarn = "Произошла ошибка!"; - } - } else { - $mywarn = "У вас недостаточно денег на валютном счету для выполнения операции"; - } - $_GET['dropm'] = 0; - } - ### Чеки /** *