This commit is contained in:
2026-10-29 22:42:37 +02:00
parent 78e89a51d2
commit 53ff46b0a2
52 changed files with 2082 additions and 79 deletions
+8 -1
View File
@@ -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());