diff --git a/index.php b/index.php index b95cae4e..0151906b 100755 --- a/index.php +++ b/index.php @@ -7,6 +7,19 @@ * @author printempw */ +// 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';