From d9bf4b0bdc440de7f2183b2797538139a419e278 Mon Sep 17 00:00:00 2001 From: Ivor Barhansky Date: Mon, 13 Feb 2023 19:24:48 +0200 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=BF=D1=83=D1=81=D1=82=D0=B8?= =?UTF-8?q?=D0=BB=D1=81=D1=8F=20=D1=87=D0=B0=D1=82.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buttons.php | 85 ++-- js/interface.js | 1039 ++++++++++++++++++++++++----------------------- online.php | 182 ++++----- 3 files changed, 655 insertions(+), 651 deletions(-) diff --git a/buttons.php b/buttons.php index 2ef78ce6..3be1715e 100644 --- a/buttons.php +++ b/buttons.php @@ -40,8 +40,9 @@ if (isset($_GET['showcode'])) { if ($u->info['joinIP'] == 1 && $u->info['ip'] != IP) { er('#Пожалуйста авторизируйтесь с главной страницы'); } elseif (isset($_GET['exit'])) { - setcookie('login', '', time() - 60 * 60 * 24 * 30, '', Config::get('host')); - setcookie('login', '', time() - 60 * 60 * 24 * 30); + setcookie('login', '', 0, '', Config::get('host')); + setcookie('login', '', 0); + setcookie('auth', '', 0); Db::sql('update users set online = unix_timestamp() - 420 where id = ?', [$u->info['id']]); die(Config::get('exit')); } elseif (!isset($u->info['id'])) { @@ -63,13 +64,13 @@ $u->stats = $u->getStats($u->info['id'], 0); - + '; - ?> + if ($deviceType == 'tablet' || $deviceType == 'phone'): ?> - + - + - + - - + info['active'] != '' && $u->info['mail'] == 'No E-mail') { + } elseif (!empty($u->info['active']) && $u->info['mail'] == 'No E-mail') { if (!empty($error)) { echo ''; } @@ -625,7 +620,7 @@ $u->stats = $u->getStats($u->info['id'], 0); } ?>