prepare('SELECT * FROM users WHERE ROBLOSECURITY = :token');
$GetUser->execute(['token' => $_COOKIE["_ROBLOSECURITY"]]);
$row = $GetUser->fetch(PDO::FETCH_ASSOC);
if (!empty($_COOKIE['_ROBLOSECURITY'])) {
$row = getuserinfo($_COOKIE['_ROBLOSECURITY']);
$userId = isset($row['UserId']) ? (int)$row['UserId'] : (isset($row['UserID']) ? (int)$row['UserID'] : (isset($row['id']) ? (int)$row['id']: 1));
$adminLevel = isset($row['isAdmin']) ? (int)$row['isAdmin'] : 0;
} else {
$userId = 1;
}
if ($adminLevel === 0) {
header('Location: /NewLogin');
exit();
}
include_once $_SERVER['DOCUMENT_ROOT'] . '/Admi/SideBar.php';
if ($adminLevel < AdminLevel::ASSET_MOD) {
echo <<