Index: trunk/phase3/config/index.php |
— | — | @@ -1,47 +0,0 @@ |
2 | | -<?php |
3 | | -/** |
4 | | - * MediaWiki web-based config/installation |
5 | | - * |
6 | | - * Copyright © 2004 Brion Vibber <brion@pobox.com>, 2006 Rob Church <robchur@gmail.com> |
7 | | - * http://www.mediawiki.org/ |
8 | | - * |
9 | | - * This program is free software; you can redistribute it and/or modify |
10 | | - * it under the terms of the GNU General Public License as published by |
11 | | - * the Free Software Foundation; either version 2 of the License, or |
12 | | - * (at your option) any later version. |
13 | | - * |
14 | | - * This program is distributed in the hope that it will be useful, |
15 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 | | - * GNU General Public License for more details. |
18 | | - * |
19 | | - * You should have received a copy of the GNU General Public License along |
20 | | - * with this program; if not, write to the Free Software Foundation, Inc., |
21 | | - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
22 | | - * http://www.gnu.org/copyleft/gpl.html |
23 | | - * |
24 | | - * @file |
25 | | - */ |
26 | | - |
27 | | -# Attempt to set up the include path, to fix problems with relative includes |
28 | | -$IP = dirname( dirname( __FILE__ ) ); |
29 | | -define( 'MW_INSTALL_PATH', $IP ); |
30 | | - |
31 | | -# Define an entry point and include some files |
32 | | -define( "MEDIAWIKI", true ); |
33 | | -define( "MEDIAWIKI_INSTALL", true ); |
34 | | - |
35 | | -# Check for PHP 5 |
36 | | -if ( !function_exists( 'version_compare' ) |
37 | | - || version_compare( phpversion(), '5.0.0' ) < 0 |
38 | | -) { |
39 | | - define( 'MW_PHP4', '1' ); |
40 | | - require( "$IP/includes/DefaultSettings.php" ); |
41 | | - require( "$IP/includes/templates/PHP4.php" ); |
42 | | - exit; |
43 | | -} |
44 | | - |
45 | | -// Isolate the rest of the code so this file can die out cleanly |
46 | | -// if we find we're running under PHP 4.x... We use PHP 5 syntax |
47 | | -// which doesn't parse under 4. |
48 | | -require( dirname( __FILE__ ) . "/Installer.php" ); |
Index: trunk/phase3/config/old-index.php |
— | — | @@ -0,0 +1,47 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * MediaWiki web-based config/installation |
| 5 | + * |
| 6 | + * Copyright © 2004 Brion Vibber <brion@pobox.com>, 2006 Rob Church <robchur@gmail.com> |
| 7 | + * http://www.mediawiki.org/ |
| 8 | + * |
| 9 | + * This program is free software; you can redistribute it and/or modify |
| 10 | + * it under the terms of the GNU General Public License as published by |
| 11 | + * the Free Software Foundation; either version 2 of the License, or |
| 12 | + * (at your option) any later version. |
| 13 | + * |
| 14 | + * This program is distributed in the hope that it will be useful, |
| 15 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | + * GNU General Public License for more details. |
| 18 | + * |
| 19 | + * You should have received a copy of the GNU General Public License along |
| 20 | + * with this program; if not, write to the Free Software Foundation, Inc., |
| 21 | + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 22 | + * http://www.gnu.org/copyleft/gpl.html |
| 23 | + * |
| 24 | + * @file |
| 25 | + */ |
| 26 | + |
| 27 | +# Attempt to set up the include path, to fix problems with relative includes |
| 28 | +$IP = dirname( dirname( __FILE__ ) ); |
| 29 | +define( 'MW_INSTALL_PATH', $IP ); |
| 30 | + |
| 31 | +# Define an entry point and include some files |
| 32 | +define( "MEDIAWIKI", true ); |
| 33 | +define( "MEDIAWIKI_INSTALL", true ); |
| 34 | + |
| 35 | +# Check for PHP 5 |
| 36 | +if ( !function_exists( 'version_compare' ) |
| 37 | + || version_compare( phpversion(), '5.0.0' ) < 0 |
| 38 | +) { |
| 39 | + define( 'MW_PHP4', '1' ); |
| 40 | + require( "$IP/includes/DefaultSettings.php" ); |
| 41 | + require( "$IP/includes/templates/PHP4.php" ); |
| 42 | + exit; |
| 43 | +} |
| 44 | + |
| 45 | +// Isolate the rest of the code so this file can die out cleanly |
| 46 | +// if we find we're running under PHP 4.x... We use PHP 5 syntax |
| 47 | +// which doesn't parse under 4. |
| 48 | +require( dirname( __FILE__ ) . "/Installer.php" ); |
Property changes on: trunk/phase3/config/old-index.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 49 | + native |
Added: svn:keywords |
2 | 50 | + Author Date Id Revision |