diff --git a/pandora_console/include/class/ConsoleSupervisor.php b/pandora_console/include/class/ConsoleSupervisor.php
index b5da926ddc..7ef169aec1 100644
--- a/pandora_console/include/class/ConsoleSupervisor.php
+++ b/pandora_console/include/class/ConsoleSupervisor.php
@@ -278,6 +278,12 @@ class ConsoleSupervisor
if ((bool) enterprise_installed() === true) {
$this->checkLibaryError();
}
+
+ /*
+ * Check MYSQL Support Version
+ */
+
+ $this->checkMYSQLSettings();
}
@@ -560,6 +566,12 @@ class ConsoleSupervisor
$this->checkLibaryError();
}
+ /*
+ * Check MYSQL Support Version
+ *
+ */
+ $this->checkMYSQLSettings();
+
}
@@ -860,6 +872,7 @@ class ConsoleSupervisor
case 'NOTIF.CRON.CONFIGURED':
case 'NOTIF.ALLOWOVERRIDE.MESSAGE':
case 'NOTIF.HAMASTER.MESSAGE':
+ case 'NOTIF.MYSQL.VERSION':
default:
// NOTIF.SERVER.STATUS.
@@ -1790,6 +1803,45 @@ class ConsoleSupervisor
$this->cleanNotifications('NOTIF.PHP.SERIALIZE_PRECISION');
}
+ if (version_compare('8.1', PHP_VERSION) >= 0) {
+ $url = 'https://www.php.net/supported-versions.php';
+ $this->notify(
+ [
+ 'type' => 'NOTIF.PHP.VERSION',
+ 'title' => __('PHP UPDATE REQUIRED'),
+ 'message' => __('You should update your PHP version because it will be out of official support').'
'.__('Current PHP version: ').PHP_VERSION,
+ 'url' => $url,
+ ]
+ );
+ } else {
+ $this->cleanNotifications('NOTIF.PHP.VERSION');
+ }
+ }
+
+
+ /**
+ * Checks if MYSQL version is supported.
+ *
+ * @return void
+ */
+ public function checkMYSQLSettings()
+ {
+ global $config;
+
+ $mysql_version = $config['dbconnection']->server_info;
+ if (version_compare('8.0', $mysql_version) >= 0) {
+ $url = 'https://www.mysql.com/support/eol-notice.html';
+ $this->notify(
+ [
+ 'type' => 'NOTIF.MYSQL.VERSION',
+ 'title' => __('MYSQL UPDATE REQUIRED'),
+ 'message' => __('You should update your MYSQL version because it will be out of official support').'
'.__('Current MYSQL version: ').$mysql_version,
+ 'url' => $url,
+ ]
+ );
+ } else {
+ $this->cleanNotifications('NOTIF.MYSQL.VERSION');
+ }
}