2024-08-01 14:06:36 +01:00
|
|
|
<?php
|
|
|
|
include 'include/db.php';
|
|
|
|
include 'include/templates.php';
|
|
|
|
|
2024-08-01 14:39:16 +01:00
|
|
|
if (!isset($_GET['id'])) {
|
|
|
|
die("<meta http-equiv=\"refresh\" content=\"0; url=/\">");
|
|
|
|
}
|
|
|
|
|
2024-08-01 14:06:36 +01:00
|
|
|
showHeader();
|
2024-08-01 14:39:16 +01:00
|
|
|
$imgs = getImage($_GET['id']);
|
|
|
|
if ($imgs == NULL) {
|
|
|
|
die("<meta http-equiv=\"refresh\" content=\"0; url=/\">");
|
|
|
|
}
|
2024-08-01 14:06:36 +01:00
|
|
|
$tags = explode(",", $imgs[0]["tags"]);
|
|
|
|
|
|
|
|
echo '<center><img src="' . $imgs[0]["location"] . '" /></center>';
|
2024-08-01 14:39:16 +01:00
|
|
|
echo '<strong>Uploader:</strong> ' . uuidToUsername($imgs[0]["uploader"]);
|
2024-08-01 14:06:36 +01:00
|
|
|
echo '<br/><strong>Tags:</strong>';
|
|
|
|
for($x = 0; $x < count($tags); $x++) {
|
|
|
|
printTag($tags[$x], true);
|
|
|
|
}
|
|
|
|
echo $footer;
|
|
|
|
?>
|