From fdf063d527603da8ff21f12b94ce6111e956c886 Mon Sep 17 00:00:00 2001 From: Ivor Barhansky Date: Tue, 14 Feb 2023 22:52:52 +0200 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D0=BE=D1=80=D0=BA=D0=B0=20=D0=BD?= =?UTF-8?q?=D0=B5=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D1=83=D0=B5?= =?UTF-8?q?=D0=BC=D0=BE=D0=B3=D0=BE.=20=D0=9E=D1=87=D0=B5=D0=BD=D1=8C=20?= =?UTF-8?q?=D1=81=D0=BB=D0=BE=D0=BC=D0=B0=D0=BD=D0=BD=D1=8B=D0=B9=20=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D1=80=D1=8B=D0=B9=20=D0=BE=D0=B1=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D0=BD=D0=B8=D0=BA.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ekr_obmen.php | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 ekr_obmen.php diff --git a/ekr_obmen.php b/ekr_obmen.php deleted file mode 100644 index 49b875df..00000000 --- a/ekr_obmen.php +++ /dev/null @@ -1,28 +0,0 @@ -bank['money2']>=$mn) - { - if($mn<0.01 || $mn>1000000000) - { - $re2 = 'Неверно указана сумма'; - }else{ - $upd = mysql_query('UPDATE `bank` SET `money1` = "'.mysql_real_escape_string($u->bank['money1']+($mn*$con)).'",`money2` = "'.mysql_real_escape_string($u->bank['money2']-$mn).'" WHERE `id` = "'.$u->bank['id'].'" LIMIT 1'); - if($upd) - { - $u->bank['money1'] += $mn*$con; - $u->bank['money2'] -= $mn; - $u->addDelo(3,$u->info['id'],'Вы обменяли '.$mn.' екр. на '.($mn*$con).' кр., комиссия 0 кр. (Итого: '.$u->bank['money1'].' кр., '.$u->bank['money2'].' екр.)',time(),$u->info['city'],'Bank.System',0,mysql_real_escape_string($mn*$con),$u->bank['id']); - $re2 = 'Вы удачно обменяли '.$mn.' екр. на '.($mn*$con).' кр.'; - }else{ - $re2 = 'Не удалось выполнить операцию'; - } - } - }else{ - $re2 = 'У вас нет '.$mn.' екр. на счете'; - } - } -?> \ No newline at end of file