meowboard/index.php
threeoh6000 0a2925c5f5
Add displaying images, adjust upload parameters.
Also add copyright information to the footer in the template.
2024-07-28 21:23:46 +01:00

17 lines
383 B
PHP

<?php
include 'include/db.php';
include 'include/templates.php';
if (isset($_COOKIE["meowboardSession"])) {
if (checkSessionToken($_COOKIE["meowboardSession"]) == 0) {
setcookie("meowboardSession", "", 1);
}
}
showHeader();
$imgs = getImages();
for ($i = 0; $i < sizeof($imgs); $i++){
dispImage($imgs[$i]["location"], explode(",", $imgs[$i]["tags"]));
}
echo $footer;
?>