Files
mcinv/frontend/index.php

12 lines
146 B
PHP

<?php
$token = $_COOKIE["token"] ?? null;
if ($token) {
header("Location: items.php");
} else {
header("Location: login.php");
}
exit;