From: Magnus Manske Date: Thu, 31 Mar 2005 08:13:37 +0000 (+0000) Subject: Fixed installation bug X-Git-Tag: 1.5.0alpha1~452 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=e76fa905e33ae5c261a65736a2b9614007f6e975;p=lhc%2Fweb%2Fwiklou.git Fixed installation bug --- diff --git a/config/index.php b/config/index.php index 7199c393b4..64bddeabc3 100644 --- a/config/index.php +++ b/config/index.php @@ -331,7 +331,7 @@ $conf->IP = dirname( dirname( __FILE__ ) ); print "
  • Installation directory: " . htmlspecialchars( $conf->IP ) . "
  • \n"; # $conf->ScriptPath = "/~brion/inplace"; -$conf->ScriptPath = preg_replace( '{^(.*)/config.*$}', '$1', $_SERVER["SCRIPT_NAME"] ); +$conf->ScriptPath = preg_replace( '{^(.*)/config.*$}', '$1', $_SERVER["PHP_SELF"] ); # was SCRIPT_NAME print "
  • Script URI path: " . htmlspecialchars( $conf->ScriptPath ) . "
  • \n"; $conf->posted = ($_SERVER["REQUEST_METHOD"] == "POST"); diff --git a/index.php b/index.php index 5972935a53..bc82eaf4bc 100644 --- a/index.php +++ b/index.php @@ -8,7 +8,7 @@ unset( $IP ); @ini_set( 'allow_url_fopen', 0 ); # For security... if( !file_exists( 'LocalSettings.php' ) ) { define( 'MEDIAWIKI', true ); - $IP = "127.0.0.1" ; + $IP = "." ; require_once( './includes/Defines.php' ); require_once( 'includes/DefaultSettings.php' ); # used for printing the version ?>