3 if ( isset( $wgVersion ) ) {
4 $wgVersion = htmlspecialchars( $wgVersion );
6 $wgVersion = 'VERSION';
8 # Set the path in case we hit a page such as /index.php/Main_Page
9 # Could use <base href> but then we have to worry about http[s]/port #/etc.
10 $ext = strpos( $_SERVER['SCRIPT_NAME'], 'index.php5' ) === false ?
'php' : 'php5';
12 if( isset( $_SERVER['SCRIPT_NAME'] )) {
13 $path = htmlspecialchars( preg_replace('/index.php5?/', '', $_SERVER['SCRIPT_NAME']) );
16 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
17 <html xmlns
='http://www.w3.org/1999/xhtml' xml
:lang
='en' lang
='en'>
19 <title
>MediaWiki
<?php
echo $wgVersion ?
></title
>
20 <meta http
-equiv
='Content-Type' content
='text/html; charset=utf-8' />
21 <style type
='text/css' media
='screen, projection'>
24 background
-color
: #fff;
25 font
-family
: sans
-serif
;
35 <img src
="<?php echo $path ?>skins/common/images/mediawiki.png" alt
='The MediaWiki logo' />
37 <h1
>MediaWiki
<?php
echo $wgVersion ?
></h1
>
40 if ( file_exists( 'config/LocalSettings.php' ) ) {
41 echo( 'To complete the installation, move <tt>config/LocalSettings.php</tt> to the parent directory.' );
43 echo( "Please <a href=\"${path}config/index.{$ext}\" title='setup'> set up the wiki</a> first." );