"Strict"]); //none, lax, strict session_set_cookie_params(["Secure" => "true"]); //false, true session_set_cookie_params(["HttpOnly" => "true"]); //false, true session_start(); session_regenerate_id(); error_reporting(E_ALL ^ E_NOTICE); ini_set('display_errors',1); require('router.php'); require('request.php'); require "vendor/autoload.php"; $request = new Request(); Router::parse($request->url, $request); define("BASE", "https://www.itinerazor.com/"); define("ROOT_EMAIL", "kimealabs@gmail.com"); define("RECAPTCHA_PRIVATE", "6Lejp8wdAAAAAHZ882cudFfCMB_9EzdqzpkQN-VR"); define("RECAPTCHA_PUBLIC", "6Lejp8wdAAAAAP56gc6ID5CrxHS_Z3f_LCGf4jBy"); if(!empty($_SERVER['HTTP_CLIENT_IP'])){ $ip = $_SERVER['HTTP_CLIENT_IP']; }elseif(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){ $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; }else{ $ip = $_SERVER['REMOTE_ADDR']; } if (isset($_SESSION["login"]["id"])) { $user = Itinerazor\User::retrieve($_SESSION["login"]["id"]); // $log = new Nickeldog\Log(); // $response = $log->byActiveClient($_SESSION["login"]["id"]); // if ($response) { // $now = date("Y-m-d H:i:s"); // $log->Current = $now; // if (!isset($_COOKIE["lid"]) && $log->Type == "persistent") setCookie("lid", $log->Id, time()+(24*3600*30), "/"); // } } if (isset($_COOKIE["rgpd"])) { $rgpd = explode(",", $_COOKIE["rgpd"]); $rgpd = ["analytics"=>$rgpd[0], "counters"=>$rgpd[1]]; } if ($request->controller == "Jarvis") { require_once("controllers/jarvis.php"); exit(); } // if (!$SYSTEM->Website && !isset($_SESSION["loginAdmin"])) { // require_once("controllers/busyController.php"); // exit(); // } if ($request->controller == "webhook") { require_once("jarvis/webhook.php"); exit(); } // if ($request->controller == "cron9") { // require_once("cron/nine.php"); // exit(); // } // // if ($request->controller == "cron14") { // require_once("cron/fourteen.php"); // exit(); // } $controller = 'index'; if ($request->controller != "") $controller = $request->controller; $indexPage = "noindex"; if ($request->controller == "" || $request->controller == "trail") $indexPage = "index, nofollow"; if (is_file('controllers/'.$controller.'Controller.php')) require_once("controllers/".$controller."Controller.php"); else require_once("controllers/404Controller.php"); ?>