From eed8e55909a54331cd37bc7d9c0da090c08d3e3b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 2 Aug 2004 21:44:55 +0000 Subject: [PATCH] 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. --- config/index.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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; "; -- 2.20.1