| Current Path : /home/smartconb/www/armencom33/acv2026/includes/ |
| Current File : /home/smartconb/www/armencom33/acv2026/includes/security.ajax.inc.php |
<?php
/**
* User: zaven
* Date: 04.06.2018
* Time: 20:44
* Project: cnpa_mail
**/
if ($_SESSION['ac']['USER_ID'] <= 0) {
ob_clean();
header("HTTP/1.0 403 Forbidden", true, 403);
ob_end_flush();
die();
}
if (isset($permission)) {
if ((int)((int)$_SESSION['ac']["USER_TYPE"] & (int)$permission) != (int)$_SESSION['ac']["USER_TYPE"]) {
ob_clean();
header("HTTP/1.0 403 Forbidden", true, 403);
ob_end_flush();
die();
}
}