From bdbbaf02455731fce643b116f69174f07516e0ea Mon Sep 17 00:00:00 2001 From: lopar Date: Thu, 15 Feb 2018 23:02:00 +0200 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=D0=B8=D0=BC=20=D1=81?= =?UTF-8?q?=D0=BF=D0=B8=D1=81=D0=BE=D0=BA=20=D0=BF=D0=B0=D0=BB=D0=B0=D0=B4?= =?UTF-8?q?=D0=B8=D0=BD=D0=BE=D0=B2.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- palklan.php | 45 +++++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/palklan.php b/palklan.php index 617c19b..dc73f6c 100644 --- a/palklan.php +++ b/palklan.php @@ -1,22 +1,25 @@ query('SELECT `login`,`status`,`align`,`room`,(select `id` from `online` WHERE `date` >= ?i AND `id` = users.`id`) AS `online` FROM `users` WHERE `align` = 1 ORDER BY `login` ASC', $timer)->fetch_assoc(); - while ($data) { - if (!empty($data['online'])) { - echo ''; - echo $data['align'].$data['login']." — ".$data['status']." — ".$data['room']."
"; - } else { - echo ''; - echo $data['align'].$data['login']." — ".$data['status']." — персонаж не в клубе
"; - } +include_once "config.php"; + +function showpals() +{ + $timer = time() - 60; + $data = db::c()->query('SELECT `login`,`status`,`align`,`room`,(SELECT `id` FROM `online` WHERE `date` >= ?i AND `id` = users.`id`) AS `online` FROM `users` WHERE `align` = 1 ORDER BY `login` ASC', $timer)->fetch_assoc(); + while ($data) { + if (!empty($data['online'])) { + echo ''; + echo $data['align'] . $data['login'] . " — " . $data['status'] . " — " . $data['room'] . "
"; + } else { + echo ''; + echo $data['align'] . $data['login'] . " — " . $data['status'] . " — персонаж не в клубе
"; } } - ?> +} + +?> @@ -24,10 +27,12 @@ -
-
-

Паладины

- -
+
+ +
+
+

Паладины

+ +
\ No newline at end of file