Your IP : 216.73.217.6


Current Path : /home/smartconb/www/armencom33/acv2026/includes/
Upload File :
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();
    }
}