diff --git a/admin/index.php b/admin/index.php index afd34d4bf76..ee8f2fc9cf4 100644 --- a/admin/index.php +++ b/admin/index.php @@ -319,8 +319,8 @@ print_spacer(10,10); } - if (ini_get_bool('register_globals') && !ini_get_bool('magic_quotes_gpc')) { - print_simple_box(get_string('globalsquoteswarning', 'admin'), 'center', '60%'); + if (ini_get_bool('register_globals')) { + print_simple_box(get_string('globalswarning', 'admin'), 'center', '60%'); } if (is_dataroot_insecure()) { diff --git a/lang/en_utf8/admin.php b/lang/en_utf8/admin.php index 419b017b7bb..1d9d2d7c97d 100644 --- a/lang/en_utf8/admin.php +++ b/lang/en_utf8/admin.php @@ -159,6 +159,7 @@ $string['filtermatchoneperpage'] = 'Filter match once per page'; $string['filtermatchonepertext'] = 'Filter match once per text'; $string['filteruploadedfiles'] = 'Filter uploaded files'; $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['helpadminseesall'] = 'Do admins see all calendar events or just those that apply to themselves?'; $string['helpcalendarsettings'] = 'Configure various calendar and date/time-related aspects of Moodle'; $string['helpforcetimezone'] = 'You can allow users to individually select their timezone, or force a timezone for everyone.';