From 814b7b301c499c0f6f97be371dc66e90b4c866ee Mon Sep 17 00:00:00 2001 From: lopar Date: Tue, 13 Feb 2018 23:13:56 +0200 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B2=D1=85=D0=BE?= =?UTF-8?q?=D0=B4=D0=B0=20=D0=B2=20=D0=B8=D0=B3=D1=80=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fight.php | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/fight.php b/fight.php index db74738..1e842ea 100644 --- a/fight.php +++ b/fight.php @@ -24,10 +24,9 @@ include("config.php"); query('SELECT `enter_game`, `id` FROM `users` WHERE `id` = ?i', $_SESSION['uid'])->fetch_assoc(); if ($my_us['enter_game'] == 1) { - $my_us['enter_game'] = 0; - mysql_query("UPDATE `users` SET `enter_game` = '" . $my_us['enter_game'] . "' WHERE `id` = '" . $my_us['id'] . "' LIMIT 1"); + db::c()->query('UPDATE `users` SET `enter_game` = 0 WHERE `id` = ?i', $my_us['id']); ?> @@ -107,17 +106,6 @@ include("config.php"); top.frames['refreshed'].location = 'ch.php?show=' + Math.random() + s; } - var OnlineDelay = 12; - var OnlineTimerOn = -1; - var OnlineStop = true; - - function rld(now) { - if (OnlineTimerOn < 0 || now) { - var tm = now ? 2000 : OnlineDelay * 1000; - OnlineTimerOn = setTimeout('onlineReload(' + now + ')', tm); - } - } - var changeroom = 1; var localroom = 1;