2016-01-21 19:03:39 +08:00
|
|
|
|
<?php
|
2016-08-28 10:05:21 +08:00
|
|
|
|
|
2016-01-21 19:03:39 +08:00
|
|
|
|
/**
|
2016-09-10 18:09:12 +08:00
|
|
|
|
* Entrance of Blessing Skin Server
|
2016-08-28 10:05:21 +08:00
|
|
|
|
*
|
2016-09-10 18:09:12 +08:00
|
|
|
|
* @package Blessing Skin Server
|
|
|
|
|
* @author printempw <h@prinzeugen.net>
|
2016-01-21 19:03:39 +08:00
|
|
|
|
*/
|
2016-02-10 15:20:13 +08:00
|
|
|
|
|
2016-12-17 20:48:13 +08:00
|
|
|
|
@ini_set('display_errors', 'on');
|
|
|
|
|
|
2017-08-05 14:15:26 +08:00
|
|
|
|
// Check PHP version
|
2018-07-14 14:53:41 +08:00
|
|
|
|
if (version_compare(PHP_VERSION, '7.1.3', '<')) {
|
2018-02-24 19:21:04 +08:00
|
|
|
|
header('Content-Type: text/html; charset=UTF-8');
|
2017-06-27 20:09:42 +08:00
|
|
|
|
exit(
|
2018-07-14 14:53:41 +08:00
|
|
|
|
'[Error] Blessing Skin requires PHP version >= 7.1.3, you are now using '.PHP_VERSION.'<br>'.
|
|
|
|
|
'[错误] 你的 PHP 版本过低('.PHP_VERSION.'),Blessing Skin 要求至少为 7.1.3'
|
2017-06-27 20:09:42 +08:00
|
|
|
|
);
|
2016-12-17 20:48:13 +08:00
|
|
|
|
}
|
|
|
|
|
|
2016-12-17 19:52:22 +08:00
|
|
|
|
require __DIR__.'/bootstrap/autoload.php';
|
2016-11-21 22:04:10 +08:00
|
|
|
|
|
2017-08-05 14:15:26 +08:00
|
|
|
|
// Check the runtime environment
|
2016-12-17 20:48:13 +08:00
|
|
|
|
runtime_check(array(
|
2017-06-30 11:23:26 +08:00
|
|
|
|
'extensions' => array('pdo_mysql', 'openssl', 'gd', 'mbstring', 'tokenizer'),
|
2018-07-15 22:07:40 +08:00
|
|
|
|
'write_permission' => array('storage', 'plugins', 'bootstrap/cache')
|
2016-12-17 20:48:13 +08:00
|
|
|
|
));
|
2016-11-21 22:04:10 +08:00
|
|
|
|
|
2017-08-05 14:15:26 +08:00
|
|
|
|
// Process the request
|
2017-08-05 13:40:42 +08:00
|
|
|
|
require __DIR__.'/bootstrap/kernel.php';
|