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');
|
|
|
|
|
|
|
|
|
|
// check PHP version
|
|
|
|
|
if (version_compare(PHP_VERSION, '5.5.9', '<')) {
|
2017-06-27 20:09:42 +08:00
|
|
|
|
exit(
|
|
|
|
|
'[Error] Blessing Skin Server needs PHP version >= 5.5.9, you are now using '.PHP_VERSION.'<br>'.
|
|
|
|
|
'[错误] 你的 PHP 版本过低('.PHP_VERSION.'),Blessing Skin Server 要求至少为 5.5.9'
|
|
|
|
|
);
|
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
|
|
|
|
|
2016-12-17 19:52:22 +08:00
|
|
|
|
// check the runtime environment
|
2016-12-17 20:48:13 +08:00
|
|
|
|
runtime_check(array(
|
2016-12-30 20:42:37 +08:00
|
|
|
|
'extensions' => array('pdo_mysql', 'openssl', 'gd', 'mbstring', 'tokenizer')
|
2016-12-17 20:48:13 +08:00
|
|
|
|
));
|
2016-11-21 22:04:10 +08:00
|
|
|
|
|
2016-12-17 13:06:36 +08:00
|
|
|
|
// handle the request
|
|
|
|
|
require __DIR__.'/bootstrap/handler.php';
|