get_user_info($conn, $_GET['user']);
$join_date = new DateTime($user['created_at']);
?>
";
$pfp_colour = $make_stuff->get_image_colour("images/pfp/".$user['pfp_path']);
if (!empty($pfp_colour)) {
$pfp_colour = $pfp_colour;
} else {
$pfp_colour = "var(--bg-3)";
}
?>
";
}
?>
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 "
";
}
}
}
?>