#11461 Add warning about php and mysql versions

This commit is contained in:
miguel angel rasteu 2023-06-06 10:55:05 +02:00
parent 11a8bd688d
commit aed402245e
1 changed files with 20 additions and 0 deletions

View File

@ -1165,6 +1165,26 @@ if ((bool) ($config['maintenance_mode'] ?? false) === true
exit('</html>'); exit('</html>');
} }
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.'
).'</br>'.__('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.'
).'</br>'.__('Current MYSQL version: ').$mysql_version
);
}
}
// Pure. // Pure.
if ($config['pure'] == 0) { if ($config['pure'] == 0) {