mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
MDL-54901 environment: pg93, openssl, https & utf8mb4
This commit is contained in:
parent
71318407ef
commit
9d2112e88d
@ -1914,7 +1914,7 @@
|
||||
<DATABASE level="required">
|
||||
<VENDOR name="mariadb" version="5.5.31" />
|
||||
<VENDOR name="mysql" version="5.5.31" />
|
||||
<VENDOR name="postgres" version="9.1" />
|
||||
<VENDOR name="postgres" version="9.3" />
|
||||
<VENDOR name="mssql" version="10.0" />
|
||||
<VENDOR name="oracle" version="10.2" />
|
||||
</DATABASE>
|
||||
@ -1941,9 +1941,9 @@
|
||||
<ON_ERROR message="curlrequired" />
|
||||
</FEEDBACK>
|
||||
</PHP_EXTENSION>
|
||||
<PHP_EXTENSION name="openssl" level="optional">
|
||||
<PHP_EXTENSION name="openssl" level="required">
|
||||
<FEEDBACK>
|
||||
<ON_CHECK message="opensslrecommended" />
|
||||
<ON_ERROR message="opensslrequired" />
|
||||
</FEEDBACK>
|
||||
</PHP_EXTENSION>
|
||||
<PHP_EXTENSION name="tokenizer" level="optional">
|
||||
@ -2068,6 +2068,16 @@
|
||||
<ON_ERROR message="unsupporteddblargeprefix" />
|
||||
</FEEDBACK>
|
||||
</CUSTOM_CHECK>
|
||||
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_is_https" level="optional">
|
||||
<FEEDBACK>
|
||||
<ON_CHECK message="ishttpswarning" />
|
||||
</FEEDBACK>
|
||||
</CUSTOM_CHECK>
|
||||
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_incomplete_unicode_support" level="optional">
|
||||
<FEEDBACK>
|
||||
<ON_CHECK message="incompleteunicodesupport" />
|
||||
</FEEDBACK>
|
||||
</CUSTOM_CHECK>
|
||||
</CUSTOM_CHECKS>
|
||||
</MOODLE>
|
||||
</COMPATIBILITY_MATRIX>
|
||||
|
@ -622,6 +622,7 @@ $string['iplookupinfo'] = 'By default Moodle uses the free online NetGeo (The In
|
||||
It is recommended to install local copy of free GeoLite2 City database from MaxMind.<br />
|
||||
IP address location is displayed on simple map or using Google Maps. Please note that you need to have a Google account and apply for free Google Maps API key to enable interactive maps.';
|
||||
$string['iplookupmaxmindnote'] = 'This product includes GeoLite2 data created by MaxMind, available from <a href="http://www.maxmind.com">http://www.maxmind.com</a>.';
|
||||
$string['ishttpswarning'] = 'It has been detected that your site is not secured using HTTPS. For increased security and improved integrations with other systems is highly recommended to migrate your site to HTTPS.';
|
||||
$string['keeptagnamecase'] = 'Keep tag name casing';
|
||||
$string['lang'] = 'Default language';
|
||||
$string['langcache'] = 'Cache language menu';
|
||||
@ -800,6 +801,7 @@ $string['oauthrefreshtokenexpiredshort'] = 'OAuth refresh token expired for {$a-
|
||||
$string['onlynoreply'] = 'Only when from a no-reply address';
|
||||
$string['opcacherecommended'] = 'PHP opcode caching improves performance and lowers memory requirements, OPcache extension is recommended and fully supported.';
|
||||
$string['opensslrecommended'] = 'Installing the optional OpenSSL library is highly recommended -- it enables Moodle Networking functionality.';
|
||||
$string['opensslrequired'] = 'The OpenSSL PHP extension is now required by Moodle to provide stronger cryptographic services.';
|
||||
$string['opentogoogle'] = 'Open to Google';
|
||||
$string['optionalmaintenancemessage'] = 'Optional maintenance message';
|
||||
$string['order1'] = 'First';
|
||||
|
@ -2249,6 +2249,27 @@ function check_mysql_incomplete_unicode_support(environment_results $result) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the site is being served using an ssl url.
|
||||
*
|
||||
* Note this does not really perform any request neither looks for proxies or
|
||||
* other situations. Just looks to wwwroot and warn if it's not using https.
|
||||
*
|
||||
* @param environment_results $result $result
|
||||
* @return environment_results|null updated results object, or null if the site is https.
|
||||
*/
|
||||
function check_is_https(environment_results $result) {
|
||||
global $CFG;
|
||||
|
||||
// Only if is defined, non-empty and whatever core tell us.
|
||||
if (!empty($CFG->wwwroot) && !is_https()) {
|
||||
$result->setInfo('site not https');
|
||||
$result->setStatus(false);
|
||||
return $result;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Upgrade the minmaxgrade setting.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user