Display warning when magic_quotes_gpc=off _and_ register_globals=on -- tidyup wordwrap and center it proper.

This commit is contained in:
martinlanghoff
2005-11-12 05:30:23 +00:00
parent 2193242b48
commit aa910f60b0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -320,7 +320,7 @@
}
if (ini_get_bool('register_globals') && !ini_get_bool('magic_quotes_gpc')) {
print_simple_box(get_string('globalsquoteswarning', 'admin', 'center'));
print_simple_box(get_string('globalsquoteswarning', 'admin'), 'center');
}
+1 -1
View File
@@ -97,7 +97,7 @@ $string['edithelpdocs'] = 'Edit help documents';
$string['editstrings'] = 'Edit strings';
$string['filterall'] = 'Filter all strings';
$string['filteruploadedfiles'] = 'Filter uploaded files';
$string['globalsquoteswarning'] = '<strong>Security Warning</strong>: to operate securely, Moodle requires that you make certain changes to your current PHP settings. You <em>must</em> set <code>magic_quotes_gpc=on</code>. If possible, you should also set <code>register_globals=off</code> to improve security. These settings are controlled editing your <code>php.ini</code>, Apache/IIS configuration or <code>.htaccess</code> file.';
$string['globalsquoteswarning'] = '<strong>Security Warning</strong>: to operate securely, Moodle requires <br />that you make certain changes to your current PHP settings. <br />You <em>must</em> set <code>magic_quotes_gpc=on</code>. If possible, you should <br />also set <code>register_globals=off</code> to improve security. These <br />settings are controlled editing your <code>php.ini</code>, Apache/IIS <br />configuration or <code>.htaccess</code> 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.';