Dear all,
I have a challenge here of understanding the page masks as used in this code;
<?
$access_level_map['loader'] = 1;
$access_level_map['support'] = 3;
$access_level_map['admin'] = 7;
$access_level_map['superadmin'] = 15;
define("LOAD_PAGE_MASK",1);
define("SUPPORT_PAGE_MASK",2);
define("ADMIN_PAGE_MASK",4);
define("SUPER_ADMIN_PAGE_MASK",8);
$pageMaskMap['add_employee.php'] = SUPPORT_PAGE_MASK;
$pageMaskMap['awpdc.php'] = SUPPORT_PAGE_MASK;
$pageMaskMap['awpdc_blocked.php'] = SUPPORT_PAGE_MASK;
$pageMaskMap['awpdc_unblocked.php'] = SUPPORT_PAGE_MASK;
?>
What I know is that this page controls which user can access what page. However, I have been tasked to add another user to this mask, and I have no idea on how to go about this one.
Any help will be greatly appreciated.
Thanx