diff --git a/admin/environment.xml b/admin/environment.xml index eb5b8570c48..315dadea677 100644 --- a/admin/environment.xml +++ b/admin/environment.xml @@ -200,7 +200,7 @@ - + @@ -272,7 +272,7 @@ - + diff --git a/install.php b/install.php index 01ca75272e3..d71ea3baa44 100644 --- a/install.php +++ b/install.php @@ -753,6 +753,8 @@ if ($nextstage == SAVE) { function form_table($nextstage = WELCOME, $formaction = "install.php") { global $INSTALL, $db; + $enablenext = true; + /// Print the standard form if we aren't in the DOWNLOADLANG page /// because it has its own form. if ($nextstage != DOWNLOADLANG) { @@ -787,12 +789,16 @@ function form_table($nextstage = WELCOME, $formaction = "install.php") { /// Check that PHP is of a sufficient version print_compatibility_row(inst_check_php_version(), get_string('phpversion', 'install'), get_string('phpversionerror', 'install'), 'phpversionhelp'); + $enablenext = $enablenext && inst_check_php_version(); /// Check session auto start print_compatibility_row(!ini_get_bool('session.auto_start'), get_string('sessionautostart', 'install'), get_string('sessionautostarterror', 'install'), 'sessionautostarthelp'); + $enablenext = $enablenext && !ini_get_bool('session.auto_start'); /// Check magic quotes print_compatibility_row(!ini_get_bool('magic_quotes_runtime'), get_string('magicquotesruntime', 'install'), get_string('magicquotesruntimeerror', 'install'), 'magicquotesruntimehelp'); + $enablenext = $enablenext && !ini_get_bool('magic_quotes_runtime'); /// Check unsupported PHP configuration - print_compatibility_row(ini_get_bool('magic_quotes_gpc') || (!ini_get_bool('register_globals')), get_string('globalsquotes', 'install'), get_string('globalsquoteserror', 'install'), 'globalsquoteshelp'); + print_compatibility_row(!ini_get_bool('register_globals'), get_string('globalsquotes', 'install'), get_string('globalswarning', 'install')); + $enablenext = $enablenext && !ini_get_bool('register_globals'); /// Check safe mode print_compatibility_row(!ini_get_bool('safe_mode'), get_string('safemode', 'install'), get_string('safemodeerror', 'install'), 'safemodehelp', true); /// Check file uploads @@ -965,9 +971,11 @@ function form_table($nextstage = WELCOME, $formaction = "install.php") {
- \n" : " \n" ?> + \n" : " \n" ?> WELCOME) ? "
\n" : " \n" ?> \n"; echo ""; echo "

$errormessage "; - install_helpbutton("install.php?help=$helpfield"); + if ($helpfield !== '') { + install_helpbutton("install.php?help=$helpfield"); + } echo "

\n"; } echo "\n";