Add a big shiny obvious error message for safe mode even more obvious than the existi...
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 2 Aug 2004 21:44:55 +0000 (21:44 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 2 Aug 2004 21:44:55 +0000 (21:44 +0000)
config/index.php

index 264f170..eafe930 100644 (file)
@@ -191,6 +191,17 @@ $conf = new ConfigData;
 install_version_checks();
 print "<li>PHP " . phpversion() . " ok</li>\n";
 
+if( ini_get( "safe_mode" ) ) {
+       ?>
+       <li class='error'><b>Warning: PHP's
+       <a href='http://www.php.net/features.safe-mode'>safe mode</a> is active!</b>
+       You will likely have problems caused by this. You may need to make the
+       'images' subdirectory writable or specify a TMP environment variable pointing to
+       a writable temporary directory owned by you, since safe mode breaks the system
+       temporary directory.</li>
+       <?php
+}
+
 $sapi = php_sapi_name();
 $conf->prettyURLs = true;
 print "<li>PHP server API is $sapi; ";