is_admin($conn, $_SESSION['id'])) { $check_sanity = $sanity->get_results(); if (!empty($check_sanity) || isset($check_sanity)) { ?>
= "12" && $time < "17") { $time_welc = "Good afternoon"; } else if ($time >= "17" && $time < "19") { $time_welc = "Good evening"; } else if ($time >= "19") { $time_welc = "Good night"; } // Welcome depending on if user is logged in or not if (isset($_SESSION["username"])) { echo "

".$time_welc." ".$_SESSION['username']."!

"; } else { echo "

".$time_welc."!

"; } // Random welcome message $welcome_message = $user_settings['welcome_msg']; echo "

".$welcome_message[array_rand($welcome_message, 1)]."

"; ?>
"; while ($image = mysqli_fetch_array($image_request)) { // Getting thumbnail if (file_exists("images/thumbnails/".$image['imagename'])) { $image_path = "images/thumbnails/".$image['imagename']; } else { $image_path = "images/".$image['imagename']; } // Check for NSFW tag if (str_contains($image['tags'], "nsfw")) { echo ""; } else { echo ""; } } echo ""; } else { echo "

Nothing here!

There are no images in the gallery, upload some!

"; } ?>