diff --git a/upload/install/step_1.php b/upload/install/step_1.php index 34fedba..299ab7f 100644 --- a/upload/install/step_1.php +++ b/upload/install/step_1.php @@ -34,7 +34,7 @@ if(!function_exists('ImageCreateFromJpeg')){ $this->core->notify('Ошибка!', 'Библиотека GD не найдена', 2, 'install/?mode=step_1'); } - if(!function_exists('mysql_query')){ $this->core->notify('Ошибка!', 'MySQL не найдена', 2, 'install/?mode=step_1'); } + if(!function_exists('mysql_query') && !function_exists('mysqli_query')){ $this->core->notify('Ошибка!', 'MySQL не найдена', 2, 'install/?mode=step_1'); } if(!function_exists('ob_start')){ $this->core->notify('Ошибка!', 'Функции буферизации данных недоступны', 2, 'install/?mode=step_1'); } @@ -75,7 +75,7 @@ "REG_GLOB" => (@ini_get('register_globals')=='on') ? 'Вкл.' : 'Выкл.', "URL_FOPEN" => (@ini_get('allow_url_fopen')=='1' || @ini_get('allow_url_fopen')=='true') ? 'Вкл.' : 'Выкл.', "GD" => (function_exists('ImageCreateFromJpeg')) ? 'Да' : 'Нет', - "MYSQL" => (function_exists("mysql_query")) ? 'Да' : 'Нет', + "MYSQL" => (function_exists("mysql_query") || function_exists("mysqli_query")) ? 'Да' : 'Нет', "BUFER" => (function_exists("ob_start")) ? 'Да' : 'Нет', "FOLDER_CONFIGS" => (is_writable(MCR_ROOT.'configs') && is_readable(MCR_ROOT.'configs')) ? 'Да' : 'Нет',