Files
BW/html5-chat/chatadmin/protect.php
sean 343b4a3f3f
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-19 18:32:17 -05:00

13 lines
365 B
PHP

<?php function checkCanEnter($panel) {
//print_r($_SESSION);exit();
if ($panel=='' && isset($_SESSION['role'])) {
return true;
}
if (isset($_SESSION['role']) && $_SESSION['role']['canEnterChatAdmin'] && $_SESSION['role'][$panel]) {
return true;
}
session_destroy();
header('location:/chatadmin');
exit;
}