1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<?php define('HEIRARCHY', 1); require('dash_common.php'); switch ($b_user['type']) { case 'EMPLOYEE': require('dash_employee.php'); break; case 'EMPLOYER': require('dash_employer.php'); break; case 'ADMIN': require('dash_admin.php'); break; default: fatal('Your account is misconfigured.', $b_config['base_url'].'logout.php', '← Log Out'); } ?>