00001 <?php
00002
00003 # MediaWiki web-based config/installation
00004 # Copyright (C) 2004 Brion Vibber <brion@pobox.com>, 2006 Rob Church <robchur@gmail.com>
00005 # http://www.mediawiki.org/
00006 #
00007 # This program is free software; you can redistribute it and/or modify
00008 # it under the terms of the GNU General Public License as published by
00009 # the Free Software Foundation; either version 2 of the License, or
00010 # (at your option) any later version.
00011 #
00012 # This program is distributed in the hope that it will be useful,
00013 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00015 # GNU General Public License for more details.
00016 #
00017 # You should have received a copy of the GNU General Public License along
00018 # with this program; if not, write to the Free Software Foundation, Inc.,
00019 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00020 # http://www.gnu.org/copyleft/gpl.html
00021
00022 # Attempt to set up the include path, to fix problems with relative includes
00023 $IP = dirname( dirname( __FILE__ ) );
00024 define( 'MW_INSTALL_PATH', $IP );
00025
00026 # Define an entry point and include some files
00027 define( "MEDIAWIKI", true );
00028 define( "MEDIAWIKI_INSTALL", true );
00029 define( "TEXTSEARCH_COMPAT", true );
00030
00031 # Check for PHP 5
00032 if ( !function_exists( 'version_compare' )
00033 || version_compare( phpversion(), '5.0.0' ) < 0
00034 ) {
00035 define( 'MW_PHP4', '1' );
00036 require( "$IP/includes/DefaultSettings.php" );
00037 require( "$IP/includes/templates/PHP4.php" );
00038 exit;
00039 }
00040
00041
00042
00043
00044 require( dirname( __FILE__ ) . "/Installer.php" );