meowboard/index.php

18 lines
383 B
PHP
Raw Normal View History

2023-10-06 14:48:06 +01:00
<?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"]));
}
2023-10-06 14:48:06 +01:00
echo $footer;
?>