Show link to validation on history page (for anons)
[lhc/web/wiklou.git] / index.php
index 6fc5565..bc82eaf 100644 (file)
--- a/index.php
+++ b/index.php
@@ -8,6 +8,8 @@ unset( $IP );
 @ini_set( 'allow_url_fopen', 0 ); # For security...
 if( !file_exists( 'LocalSettings.php' ) ) {
        define( 'MEDIAWIKI', true );
+       $IP = "." ;
+       require_once( './includes/Defines.php' );
        require_once( 'includes/DefaultSettings.php' ); # used for printing the version
 ?>
 <!DOCTYPE html PUBLIC "-//W3C/DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -34,7 +36,7 @@ if( !file_exists( 'LocalSettings.php' ) ) {
                
                <h1>MediaWiki <?php echo $wgVersion ?></h1>
                <div class='error'>
-               <?
+               <?php
                if ( file_exists( 'config/LocalSettings.php' ) ) {
                        echo( "To complete the installation, move <tt>config/LocalSettings.php</tt> to the parent directory." );
                } else {
@@ -45,7 +47,7 @@ if( !file_exists( 'LocalSettings.php' ) ) {
                </div>
        </body>
 </html>
-<?
+<?php
        die();
 }