Added installed extensions check (#129)

* Mbstring check
* BCMath check
This commit is contained in:
Roman Kelesidis 2023-04-04 22:39:41 +07:00 committed by GitHub
parent 32bcab7ca2
commit 33c69a5981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -420,6 +420,10 @@ ini_set('error_log', LOG_DIR .'php_err.log');
if (get_magic_quotes_gpc()) die('Set magic_quotes off');
// JSON
if (!function_exists('json_encode')) die('Json_encode not installed');
// Mbstring
if (!extension_loaded('mbstring')) die('Mbstring not installed');
// BCMath
if (!extension_loaded('bcmath')) die('BCMath not installed');
// Triggers
define('BB_ENABLED', TRIGGERS_DIR .'$on');