+
+print "<li>PHP " . phpversion() . ": ";
+if( version_compare( phpversion(), "5.0", "lt" ) ) {
+ print "ok";
+} else {
+ print " <b>the MonoBook skin will be disabled due to an incompatibility
+ between the PHPTAL template library and PHP 5</b>. The wiki should
+ function normally, but with the older look and feel.";
+}
+print "</li>\n";
+
+if( ini_get( "register_globals" ) ) {
+ ?>
+ <li><b class='error'>Warning:</b> <b>PHP's
+ <tt><a href="http://php.net/register_globals">register_globals</a></tt>
+ option is enabled.</b> MediaWiki will work correctly, but this setting
+ increases your exposure to potential security vulnerabilities in PHP-based
+ software running on your server. <b>You should disable it if you are able.</b></li>
+ <?php
+}
+
+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
+}