From 4e9d2deed4a6a6f6de43d69b5ce19169f91d69fc Mon Sep 17 00:00:00 2001 From: Ivor Barhansky Date: Tue, 11 Apr 2023 23:21:03 +0300 Subject: [PATCH] refactor, remove mysql_query, errors --- modules_data/_zv.php | 56 ++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 30 deletions(-) diff --git a/modules_data/_zv.php b/modules_data/_zv.php index 0e5b4b44..f7f2680d 100644 --- a/modules_data/_zv.php +++ b/modules_data/_zv.php @@ -19,6 +19,7 @@ if ($_GET['r'] == 3 || $_GET['r'] == 8 || !isset($_GET['r'])) { $_GET['r'] = 2; } +/** @var User $u */ if ($u->info['inTurnir'] > 0 && $u->info['inUser'] == 0 && $u->info['room'] == 318) { die(''); } @@ -30,6 +31,9 @@ $js_5356 = sprintf( 0 + $u->stats['mpNow'], 0 + $u->stats['mpAll'], time() - $u->info['regHP'], time() - $u->info['regMP'], 0 + $u->rgd[0], 0 + $u->rgd[1] ); + +$code ??= PassGen::intCode(); + ?>