Added missing mysql extension check

This commit is contained in:
Roman Kelesidis 2023-09-24 12:35:46 +07:00
parent f6f0d89cf9
commit 2f77d38e42

View File

@ -360,6 +360,8 @@ ini_set('error_log', LOG_DIR .'php_err.log'); // имя лог файла
// Check some variable // Check some variable
// Magic quotes // Magic quotes
if (@get_magic_quotes_gpc()) die('Set magic_quotes off'); if (@get_magic_quotes_gpc()) die('Set magic_quotes off');
// MySQL
if (!extension_loaded('mysql')) die('Mysql extension not installed');
// JSON // JSON
if (!function_exists('json_encode')) die('Json_encode not installed'); if (!function_exists('json_encode')) die('Json_encode not installed');
// Mbstring // Mbstring