get_user_info($conn, $_GET['user']);
$join_date = new DateTime($user['created_at']);
?>
";
} else {
echo "
";
}
?>
is_admin($conn, $user['id'])) echo "Admin";
?>
Member since: format('d/m/Y T'); ?>
Failed to load user info
";
}
?>
execute();
$query = $stmt->get_result();
while ($image = mysqli_fetch_array($query)) {
// 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 "
";
}
}
}
?>