$ObjFirewall = new firewall(); require_once 'src/core/security/authentication.php'; $ObjAuth = new authentication(); require_once 'src/core/controller/akonga.php'; $ObjAkonga = new akonga(); // <-- END CORE LOAD MECHANISMS // Run Firewall Checks before hitting authentication if ($myApp['firewall'] == "on") { if ($ObjFirewall->runIPcheck() != true) { // Your IP address is not in the approved range or implicit speicification require_once 'web/core/security/ipviolation.php'; exit; } } // Run an authentication maintain check $authcheck = $ObjAuth->maintainauth(); // Pull the correct folder and file from the page request if ($_POST['x'] != "") { // posting values to a specific function $a = db::escapechars(trim($_POST['x'])); // module $b = db::escapechars(trim($_POST['y'])); // function $c = db::escapechars(trim($_POST['z'])); // file } else { // Split the URL into the load functions and possible variable entities $urlVars = explode("/", $_SERVER['REQUEST_URI']); $a = db::escapechars(trim($urlVars[2])); // module $b = db::escapechars(trim($urlVars[3]));