load(THELIA_ROOT.'.env'); } // List of allowed IP $trustedIp = array( '::1', '127.0.0.1', ); $request = Request::createFromGlobals(); if (false === in_array($request->getClientIp(), $trustedIp)) { header('HTTP/1.0 403 Forbidden'); exit('You are not allowed to access this file.'); } $thelia = new Thelia("dev", true); if (PHP_VERSION_ID < 70000) { $thelia->loadClassCache(); } $response = $thelia->handle($request)->prepare($request)->send(); $thelia->terminate($request, $response);