Files
Testing/html5-chat1/chatadmin/protect.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

13 lines
353 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;
}