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 ""; } }