CaiWuXiTong/index.php
WuYongJie 9595267ee7
Some checks failed
Tests / PHP 8.1 (push) Has been cancelled
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
chore: 导入 Akaunting 初始源码与团队协作规则
2026-07-20 18:20:25 +08:00

39 lines
880 B
PHP

<?php
/**
* @package Akaunting
* @copyright 2017-2023 Akaunting. All rights reserved.
* @license BSL; see LICENSE.txt
* @link https://akaunting.com
*/
define('LARAVEL_START', microtime(true));
if (PHP_SAPI === 'cli-server') {
$path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
if ($path && is_file(__DIR__ . $path)) {
return false;
}
}
// Check for maintenance
if (file_exists($maintenance = __DIR__ . '/storage/framework/maintenance.php')) {
require $maintenance;
}
// Register the auto-loader
require __DIR__ . '/bootstrap/autoload.php';
// Load the app
$app = require_once __DIR__ . '/bootstrap/app.php';
// Run the app
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
)->send();
$kernel->terminate($request, $response);