| 123456789101112131415161718192021222324252627282930 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- if (!file_exists(__DIR__ . '/install.lock.php')) {
- header('Location: ./install');
- exit(0);
- }
- error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
- header("access-control-allow-headers: Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Mx-ReqToken,X-Requested-With");
- header("access-control-allow-methods: GET, POST, PUT, DELETE, HEAD, OPTIONS");
- header("access-control-allow-credentials: true");
- header("access-control-allow-origin: *");
- // comment out the following two lines when deployed to production
- defined('YII_DEBUG') or define('YII_DEBUG', true);
- defined('YII_ENV') or define('YII_ENV', 'dev'); // dev or prod
- define('RUN_MODE', 'fpm');
- define('DEFAULT_STORE_ID', 1);
- require __DIR__ . '/vendor/autoload.php';
- require __DIR__ . '/vendor/yiisoft/yii2/Yii.php';
- require __DIR__ . '/librarys/WebApplication.php';
- $config = require __DIR__ . '/config/web.php';
- (new app\librarys\WebApplication($config))->run();
|