get_user_info($conn, $_GET['user']);
if (empty($user) || !isset($user)) {
$_SESSION['err'] = "You have followed a broken link to a profile that does not exist!";
header("Location: index.php");
}
$join_date = new DateTime($user['created_at']);
?>
";
while ($image = mysqli_fetch_array($query)) {
// Getting thumbnail
if (file_exists("usr/images/thumbnails/".$image['imagename'])) {
$image_path = "usr/images/thumbnails/" . $image['imagename'];
} else {
$image_path = "usr/images/" . $image['imagename'];
}
// Check for NSFW tag
if (str_contains($image['tags'], "nsfw")) {
echo "
";
} else {
echo "
";
}
}
echo "
";
} else {
echo "
Nothing here!
Come back later when the user uploads something!
";
}
}
?>