commit3
This commit is contained in:
@@ -6,4 +6,11 @@ if(!preg_match('/^(compras_receipts_test_|payable_sgf_)[a-f0-9]{12}$/D',$s['DB_D
|
||||
foreach($s as $k=>$v){putenv($k.'='.$v);$_ENV[$k]=$_SERVER[$k]=$v;}
|
||||
$public=realpath($s['HOST_ROOT'].'/public');$uri=rawurldecode(parse_url($_SERVER['REQUEST_URI'],PHP_URL_PATH)?:'/');$file=realpath($public.$uri);
|
||||
if($uri!=='/'&&$file&&str_starts_with($file,$public.DIRECTORY_SEPARATOR)&&is_file($file))return false;
|
||||
require $public.'/index.php';
|
||||
// Password-free entry belongs only to this isolated demonstration host.
|
||||
define('LARAVEL_START', microtime(true));
|
||||
require $s['HOST_ROOT'].'/vendor/autoload.php';
|
||||
$app = require $s['HOST_ROOT'].'/bootstrap/app.php';
|
||||
$app->booted(function () use ($s) {
|
||||
require __DIR__.'/payables-demo-entry.php';
|
||||
});
|
||||
$app->handleRequest(\Illuminate\Http\Request::capture());
|
||||
|
||||
Reference in New Issue
Block a user