From: skodak Date: Fri, 11 Jan 2008 23:22:50 +0000 (+0000) Subject: MDL-12914 Register globals trouble; merged from MOODLE_19_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bb7152cc4e404ac5c45f93a40fd0a74b32b18902;p=moodle.git MDL-12914 Register globals trouble; merged from MOODLE_19_STABLE --- diff --git a/admin/index.php b/admin/index.php index 461eb96019..370c586dc3 100644 --- a/admin/index.php +++ b/admin/index.php @@ -571,8 +571,8 @@ print_box(get_string("upgrade$CFG->upgrade", "admin", "$CFG->wwwroot/$CFG->admin/upgrade$CFG->upgrade.php")); } - if (ini_get_bool('register_globals') && !ini_get_bool('magic_quotes_gpc')) { - print_box(get_string('globalsquoteswarning', 'admin'), 'generalbox adminwarning'); + if (ini_get_bool('register_globals')) { + print_box(get_string('globalswarning', 'admin'), 'generalbox adminwarning'); } if (is_dataroot_insecure()) { diff --git a/lang/en_utf8/admin.php b/lang/en_utf8/admin.php index 50ca86ee3f..28450b7407 100644 --- a/lang/en_utf8/admin.php +++ b/lang/en_utf8/admin.php @@ -356,6 +356,7 @@ $string['gdversion'] = 'GD version'; $string['generalsettings'] = 'General settings'; $string['geoipfile'] = 'GeoIP City data file'; $string['globalsquoteswarning'] = '

Security Warning: to operate properly, Moodle requires
that you make certain changes to your current PHP settings.

You must set register_globals=off and/or magic_quotes_gpc=on.
If possible, you should set register_globals=off to improve general
server security, setting magic_quotes_gpc=on is also recommended.

These settings are controlled by editing your php.ini, Apache/IIS
configuration or .htaccess file.

'; +$string['globalswarning'] = '

Security Warning: to operate properly, Moodle requires
that you make certain changes to your current PHP settings.

You must set register_globals=off.

This setting is controlled by editing your php.ini, Apache/IIS
configuration or .htaccess file.

'; $string['googlemapkey'] = 'Google Maps API key'; $string['gotofirst'] = 'Go to first missing string'; $string['gradebook'] = 'Gradebook';