diff --git a/admin/index.php b/admin/index.php index 6400fb399cb..2419c3ede14 100644 --- a/admin/index.php +++ b/admin/index.php @@ -8,9 +8,9 @@ /// Check that PHP is of a sufficient version /// Moved here because older versions do not allow while(@ob_end_clean()); - if (version_compare(phpversion(), "5.2.4") < 0) { + if (version_compare(phpversion(), "5.2.8") < 0) { $phpversion = phpversion(); - echo "Sorry, Moodle requires PHP 5.2.4 or later (currently using version $phpversion)"; + echo "Sorry, Moodle requires PHP 5.2.8 or later (currently using version $phpversion)"; die; } @@ -405,9 +405,8 @@ /// setup critical warnings before printing admin tree block $insecuredataroot = is_dataroot_insecure(true); - $register_globals_enabled = ini_get_bool('register_globals'); - $SESSION->admin_critical_warning = ($register_globals_enabled || $insecuredataroot==INSECURE_DATAROOT_ERROR); + $SESSION->admin_critical_warning = ($insecuredataroot==INSECURE_DATAROOT_ERROR); $adminroot = admin_get_root(); @@ -433,10 +432,6 @@ print_box(get_string("upgrade$CFG->upgrade", "admin", "$CFG->wwwroot/$CFG->admin/upgrade$CFG->upgrade.php")); } - if ($register_globals_enabled) { - print_box(get_string('globalswarning', 'admin'), 'generalbox adminerror'); - } - if ($insecuredataroot == INSECURE_DATAROOT_WARNING) { print_box(get_string('datarootsecuritywarning', 'admin', $CFG->dataroot), 'generalbox adminwarning'); } else if ($insecuredataroot == INSECURE_DATAROOT_ERROR) { diff --git a/lang/en_utf8/admin.php b/lang/en_utf8/admin.php index a8937cbe7e3..9ceadd5f446 100644 --- a/lang/en_utf8/admin.php +++ b/lang/en_utf8/admin.php @@ -396,6 +396,8 @@ $string['experimental'] = 'Experimental'; $string['experimentalsettings'] = 'Experimental settings'; $string['extendedusernamechars'] = 'Allow extended characters in usernames'; $string['extrauserselectorfields'] = 'When selecting users, search and display'; +$string['fatalsessionautostart'] = '
Serious configuration error detected, please notify server administrator.
To operate properly, Moodle requires that administrator changes PHP settings.
session.auto_start must be set to off.
This setting is controlled by editing php.ini, Apache/IIS
configuration or .htaccess file on the server.
Serious configuration error detected, please notify server administrator.
To operate properly, Moodle requires that administrator changes PHP settings.
magic_quotes_runtime must be set to off.
This setting is controlled by editing php.ini, Apache/IIS
configuration or .htaccess file on the server.