代码拉取完成,页面将自动刷新
<?php
if (version_compare($ver = PHP_VERSION, $req = '5.5.9', '<')) {
exit(sprintf('You are running PHP %s, but Pagekit needs at least <strong>PHP %s</strong> to run.', $ver, $req));
}
if (PHP_SAPI == 'cli-server' && is_file(__DIR__.parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))) {
return false;
}
if (!isset($_SERVER['HTTP_MOD_REWRITE']) && !isset($_SERVER['REDIRECT_HTTP_MOD_REWRITE'])) {
$_SERVER['HTTP_MOD_REWRITE'] = 'Off';
} else {
$_SERVER['HTTP_MOD_REWRITE'] = 'On';
}
date_default_timezone_set('UTC');
$env = 'system';
$path = __DIR__;
$config = array(
'path' => $path,
'path.packages' => $path.'/packages',
'path.storage' => $path.'/storage',
'path.temp' => $path.'/tmp/temp',
'path.cache' => $path.'/tmp/cache',
'path.logs' => $path.'/tmp/logs',
'path.vendor' => $path.'/vendor',
'path.artifact' => $path.'/tmp/packages',
'config.file' => realpath($path.'/config.php'),
'system.api' => 'https://pagekit.com'
);
if (!$config['config.file']) {
$env = 'installer';
}
if (PHP_SAPI == 'cli') {
$env = 'console';
}
require_once "$path/app/$env/app.php";
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。