mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-01-30 14:09:58 +08:00
add runtime check
This commit is contained in:
parent
4ef6fba0c6
commit
6834b68948
13
index.php
13
index.php
@ -7,6 +7,19 @@
|
||||
* @author printempw <h@prinzeugen.net>
|
||||
*/
|
||||
|
||||
// runtime check
|
||||
if (version_compare(PHP_VERSION, '5.5.9', '<')) {
|
||||
exit('[Error] Blessing Skin Server needs PHP version >= 5.5.9, you are now using '.PHP_VERSION);
|
||||
}
|
||||
|
||||
if (!class_exists('PDO')) {
|
||||
exit('[Error] You have not installed the PDO extension');
|
||||
}
|
||||
|
||||
if (!function_exists('openssl_encrypt')) {
|
||||
exit('[Error] You have not installed the OpenSSL extension');
|
||||
}
|
||||
|
||||
require __DIR__.'/bootstrap/autoload.php';
|
||||
|
||||
$app = require_once __DIR__.'/bootstrap/app.php';
|
||||
|
Loading…
Reference in New Issue
Block a user