mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
MDL-43537 remove environemnt checks and strings that are not used any more
This commit is contained in:
parent
6a27439b8f
commit
460b5b791f
3 changed files with 0 additions and 76 deletions
|
@ -34,32 +34,3 @@
|
|||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* This function will look for the risky PHP setting register_globals
|
||||
* in order to inform about. MDL-12914
|
||||
*
|
||||
* @param object $result the environment_results object to be modified
|
||||
* @return mixed null if the test is irrelevant or environment_results object with
|
||||
* status set to true (test passed) or false (test failed)
|
||||
*/
|
||||
function php_check_register_globals($result) {
|
||||
|
||||
/// Check for register_globals. If enabled, security warning
|
||||
if (ini_get_bool('register_globals')) {
|
||||
$result->status = false;
|
||||
} else {
|
||||
$result = null;
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
function php_check_php533($result) {
|
||||
if (version_compare(phpversion(), '5.3.3') < 0) {
|
||||
$result->status = false;
|
||||
} else {
|
||||
$result = null;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue