$locRights['repDef'] = $ugDet !== null && $ugDet[0][2] == '1' ? true : false; $_SESSION['localRights'] = $locRights; switch ($moduletype) { case 'admin': // beg. admin module $authorizeObj = new authorize($_SESSION['empID'], $_SESSION['isAdmin']); if (!$authorizeObj->isActionPermitted($_GET['uniqcode'])) { die('Your are not authorize to view this page'); } $view_controller = new ViewController(); if (isset($_POST['delState']) && $_POST['delState'] == 'DeleteMode' && $locRights['delete']) { $arrList[0] = $_POST['chkLocID']; $view_controller->delParser(trim($_GET['uniqcode']), $arrList); } if (isset($_GET['VIEW']) && $_GET['VIEW'] == 'MAIN' && $locRights['view']) { $view_controller->viewList($_GET, $_POST); break; } // choosing which extractor switch ($_GET['uniqcode']) { case 'GEN': if (isset($_POST['STAT'])) { $extractor = new EXTRACTOR_GenInfo(); } break; case 'EST': if (isset($_POST['sqlState'])) { $extractor = new EXTRACTOR_EmployStat(); } break; case 'JOB':