blessing-skin-server/index.php
2018-02-24 19:21:04 +08:00

31 lines
818 B
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* Entrance of Blessing Skin Server
*
* @package Blessing Skin Server
* @author printempw <h@prinzeugen.net>
*/
@ini_set('display_errors', 'on');
// Check PHP version
if (version_compare(PHP_VERSION, '5.5.9', '<')) {
header('Content-Type: text/html; charset=UTF-8');
exit(
'[Error] Blessing Skin requires PHP version >= 5.5.9, you are now using '.PHP_VERSION.'<br>'.
'[错误] 你的 PHP 版本过低('.PHP_VERSION.'Blessing Skin 要求至少为 5.5.9'
);
}
require __DIR__.'/bootstrap/autoload.php';
// Check the runtime environment
runtime_check(array(
'extensions' => array('pdo_mysql', 'openssl', 'gd', 'mbstring', 'tokenizer'),
'write_permission' => array('storage', 'plugins')
));
// Process the request
require __DIR__.'/bootstrap/kernel.php';