From aed402245edf69dd14aecbac4a7a74b62cd7ad9d Mon Sep 17 00:00:00 2001 From: miguel angel rasteu Date: Tue, 6 Jun 2023 10:55:05 +0200 Subject: [PATCH] #11461 Add warning about php and mysql versions --- pandora_console/index.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pandora_console/index.php b/pandora_console/index.php index aaf960eb91..200ea7572c 100755 --- a/pandora_console/index.php +++ b/pandora_console/index.php @@ -1165,6 +1165,26 @@ if ((bool) ($config['maintenance_mode'] ?? false) === true exit(''); } +if (empty($_GET['sec']) === true) { + // PHP Version. + if (version_compare('8.1', PHP_VERSION) >= 0) { + ui_print_warning_message( + __( + 'You should update your PHP version because it will be out of official support.' + ).'
'.__('Current PHP version: ').PHP_VERSION + ); + } + + // MYSQL Version. + $mysql_version = explode(' ', mysqli_get_client_info())[1]; + if (version_compare('8.0', $mysql_version) >= 0) { + ui_print_warning_message( + __( + 'You should update your MYSQL version because it will be out of official support.' + ).'
'.__('Current MYSQL version: ').$mysql_version + ); + } +} // Pure. if ($config['pure'] == 0) {