From 59de59024c4a21b990992e5e37430b14a5716def Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Thu, 29 Sep 2022 11:56:14 +0000 Subject: [PATCH] Terrible terrible code --- group.php | 13 +++++++++++++ index.php | 6 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/group.php b/group.php index d177a48..6ab2ee1 100644 --- a/group.php +++ b/group.php @@ -309,6 +309,19 @@ $group_list = mysqli_query($conn, "SELECT * FROM groups ORDER BY id DESC"); + if (empty($group_list) && !$_SESSION["loggedin"]) { + ?> + + + get_image_info($conn, $image_list[array_rand($image_list, 1)]); diff --git a/index.php b/index.php index 7225dc6..ddf0203 100644 --- a/index.php +++ b/index.php @@ -94,12 +94,12 @@ // Check for NSFW tag if (str_contains($image['tags'], "nsfw")) { echo ""; } else { echo ""; } }