From: Brion Vibber Date: Mon, 2 Aug 2004 21:44:55 +0000 (+0000) Subject: Add a big shiny obvious error message for safe mode even more obvious than the existi... X-Git-Tag: 1.5.0alpha1~2535 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=eed8e55909a54331cd37bc7d9c0da090c08d3e3b;p=lhc%2Fweb%2Fwiklou.git Add a big shiny obvious error message for safe mode even more obvious than the existing big shiny error message. Safe mode is evil and I hope it dies a slow painful death. --- diff --git a/config/index.php b/config/index.php index 264f17038f..eafe930110 100644 --- a/config/index.php +++ b/config/index.php @@ -191,6 +191,17 @@ $conf = new ConfigData; install_version_checks(); print "
  • PHP " . phpversion() . " ok
  • \n"; +if( ini_get( "safe_mode" ) ) { + ?> +
  • Warning: PHP's + safe mode is active! + 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.
  • + prettyURLs = true; print "
  • PHP server API is $sapi; ";