admin view, user specified table

This commit is contained in:
Felix Ivo
2025-06-16 11:17:33 +02:00
parent e62a0ec2af
commit 67d32fcc96
3 changed files with 37 additions and 26 deletions

View File

@@ -13,7 +13,7 @@
}
function isAdmin() {
return isLoggedIn() && isset($_SESSION['role']) && $_SESSION['role'] === 'admin';
return false;// isLoggedIn() && isset($_SESSION['role']) && $_SESSION['role'] === 'admin';
}
function sanitize($data, $flags = ENT_QUOTES, $encoding = 'UTF-8') {
return htmlspecialchars((string)$data, $flags, $encoding);