Merge branch 'ent-11461-aviso-fuera-soporte-mysql-5-y-php-8-0' into 'develop'
Ent 11461 aviso fuera soporte mysql 5 y php 8 0 See merge request artica/pandorafms!6040
This commit is contained in:
commit
7471e0ef24
|
@ -278,6 +278,12 @@ class ConsoleSupervisor
|
||||||
if ((bool) enterprise_installed() === true) {
|
if ((bool) enterprise_installed() === true) {
|
||||||
$this->checkLibaryError();
|
$this->checkLibaryError();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Check MYSQL Support Version
|
||||||
|
*/
|
||||||
|
|
||||||
|
$this->checkMYSQLSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -560,6 +566,12 @@ class ConsoleSupervisor
|
||||||
$this->checkLibaryError();
|
$this->checkLibaryError();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Check MYSQL Support Version
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
$this->checkMYSQLSettings();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -860,6 +872,7 @@ class ConsoleSupervisor
|
||||||
case 'NOTIF.CRON.CONFIGURED':
|
case 'NOTIF.CRON.CONFIGURED':
|
||||||
case 'NOTIF.ALLOWOVERRIDE.MESSAGE':
|
case 'NOTIF.ALLOWOVERRIDE.MESSAGE':
|
||||||
case 'NOTIF.HAMASTER.MESSAGE':
|
case 'NOTIF.HAMASTER.MESSAGE':
|
||||||
|
case 'NOTIF.MYSQL.VERSION':
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// NOTIF.SERVER.STATUS.
|
// NOTIF.SERVER.STATUS.
|
||||||
|
@ -1790,6 +1803,45 @@ class ConsoleSupervisor
|
||||||
$this->cleanNotifications('NOTIF.PHP.SERIALIZE_PRECISION');
|
$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').'<br>'.__('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').'<br>'.__('Current MYSQL version: ').$mysql_version,
|
||||||
|
'url' => $url,
|
||||||
|
]
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
$this->cleanNotifications('NOTIF.MYSQL.VERSION');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue