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.
11 if( isset( $_SERVER['SCRIPT_NAME'] )) {
12 $path = preg_replace('/index.php/', '', $_SERVER['SCRIPT_NAME']);
15 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
16 <html xmlns
='http://www.w3.org/1999/xhtml' xml
:lang
='en' lang
='en'>
18 <title
>MediaWiki
<?php
echo $wgVersion ?
></title
>
19 <meta http
-equiv
='Content-Type' content
='text/html; charset=utf-8' />
20 <style type
='text/css' media
='screen, projection'>
23 background
-color
: #fff;
24 font
-family
: sans
-serif
;
34 <img src
='<?php echo $path ?>skins/common/images/mediawiki.png' alt
='The MediaWiki logo' />
36 <h1
>MediaWiki
<?php
echo $wgVersion ?
></h1
>
39 if ( file_exists( 'config/LocalSettings.php' ) ) {
40 echo( 'To complete the installation, move <tt>config/LocalSettings.php</tt> to the parent directory.' );
42 echo( "Please <a href='${path}config/index.php' title='setup'> set up the wiki</a> first." );