X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=config%2Findex.php;h=7051b01ece96c96ceb13638c0c9e9642a8ecc575;hb=32a8f9c71169ffe15994e1235b1de2442d62c0f2;hp=7aede224120bc1a2bc2ab0d0afc27d8c1d4e638b;hpb=aeaada603307a299998fbcae5787e3be3cda21bc;p=lhc%2Fweb%2Fwiklou.git diff --git a/config/index.php b/config/index.php index 7aede22412..7051b01ece 100644 --- a/config/index.php +++ b/config/index.php @@ -1,6 +1,7 @@ +# Copyright (C) 2004 Brion Vibber , 2006 Rob Church # http://www.mediawiki.org/ # # This program is free software; you can redistribute it and/or modify @@ -22,121 +23,133 @@ error_reporting( E_ALL ); header( "Content-type: text/html; charset=utf-8" ); @ini_set( "display_errors", true ); -?> +# In case of errors, let output be clean. +$wgRequestTime = microtime(); + +# Attempt to set up the include path, to fix problems with relative includes +$IP = dirname( dirname( __FILE__ ) ); +define( 'MW_INSTALL_PATH', $IP ); +$sep = PATH_SEPARATOR; +if( !ini_set( "include_path", ".$sep$IP$sep$IP/includes$sep$IP/languages" ) ) { + set_include_path( ".$sep$IP$sep$IP/includes$sep$IP/languages" ); +} + +# Define an entry point and include some files +define( "MEDIAWIKI", true ); +define( "MEDIAWIKI_INSTALL", true ); +require_once( "includes/Defines.php" ); +require_once( "includes/DefaultSettings.php" ); +require_once( "includes/MagicWord.php" ); +require_once( "includes/Namespace.php" ); + +?> + - - MediaWiki installation + MediaWiki <?php echo( $wgVersion ); ?> Installation - + @import "../skins/monobook/main.css"; - + .env-check { + font-size: 90%; + margin: 1em 0 1em 2.5em; + } -
-
- -
- - MediaWiki is - Copyright (C) 2001-2004 by Magnus Manske, Brion Vibber, Lee Daniel Crocker, - Tim Starling, Erik Möller, Gabriel Wicke and others.

- - - -

This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version.

- -

This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details.

- -

You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - or read it online

-
+ .config-section { + margin-top: 2em; + } - + .config-input { + clear: left; + zoom: 100%; /* IE hack */ + } -

MediaWiki installation

+ .config-section .config-desc { + clear: left; + margin: 0 0 2em 18em; + padding-top: 1em; + font-size: 85%; + } + .iput-text, .iput-password { + width: 14em; + margin-right: 1em; + } + + .error { + color: red; + background-color: #fff; + font-weight: bold; + left: 1em; + font-size: 100%; + } + + .error-top { + color: red; + background-color: #FFF0F0; + border: 2px solid red; + font-size: 130%; + font-weight: bold; + padding: 1em 1.5em; + margin: 2em 0 1em; + } + + ul.plain { + list-style-type: none; + list-style-image: none; + float: left; + margin: 0; + padding: 0; + } + + .btn-install { + font-weight: bold; + font-size: 110%; + padding: .2em .3em; + } + + .license { + font-size: 85%; + padding-top: 3em; + } + + + + + +
+
+
+
+ +

MediaWiki Installation

Wiki is configured. - -

Already configured... return to the wiki.

+if( file_exists( "../LocalSettings.php" ) ) { + dieout( "

Setup has completed, your wiki is configured.

-

(You should probably remove this directory for added security.)

" ); +

Please delete the /config directory for extra security.

" ); } -if( file_exists( "./LocalSettings.php" ) || file_exists( "./AdminSettings.php" ) ) { - dieout( "

You're configured!

+if( file_exists( "./LocalSettings.php" ) ) { + writeSuccessMessage(); -

Please move LocalSettings.php to the parent directory, then - try out your wiki. - (You should remove this config directory for added security once you're done.)

" ); + dieout( '' ); } if( !is_writable( "." ) ) { @@ -156,20 +169,13 @@ if( !is_writable( "." ) ) { } -require_once( "../install-utils.inc" ); -require_once( "../maintenance/updaters.inc" ); -require_once( "../maintenance/convertLinks.inc" ); -require_once( "../maintenance/archives/moveCustomMessages.inc" ); +require_once( "install-utils.inc" ); +require_once( "maintenance/updaters.inc" ); class ConfigData { function getEncoded( $data ) { - # Hackish - global $wgUseLatin1; - if( $wgUseLatin1 ) { - return utf8_decode( $data ); /* to latin1 wikis */ - } else { - return $data; - } + # removing latin1 support, no need... + return $data; } function getSitename() { return $this->getEncoded( $this->Sitename ); } function getSysopName() { return $this->getEncoded( $this->SysopName ); } @@ -178,47 +184,71 @@ class ConfigData { ?> -

Please include all of the lines below when reporting installation problems.

-

Checking environment...

-