fde97067b24db4ae9e9803428c304770a343194b
8 if ( isset( $wgVersion ) ) {
9 $wgVersion = htmlspecialchars( $wgVersion );
11 $wgVersion = 'VERSION';
13 # Set the path in case we hit a page such as /index.php/Main_Page
14 # Could use <base href> but then we have to worry about http[s]/port #/etc.
15 $ext = strpos( $_SERVER['SCRIPT_NAME'], 'index.php5' ) === false ?
'php' : 'php5';
17 if( isset( $_SERVER['SCRIPT_NAME'] )) {
18 $path = htmlspecialchars( preg_replace('/index.php5?/', '', $_SERVER['SCRIPT_NAME']) );
20 #Remove filename in path, prevents going to corrupt URLs (e.g. http://server/path/api.phpconfig/index.php)
21 if(substr($path, strlen($path)-1) != "/"){
22 $path = substr($path, 0, strrpos($path, "/")+
1);
25 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
26 <html xmlns
='http://www.w3.org/1999/xhtml' xml
:lang
='en' lang
='en'>
28 <title
>MediaWiki
<?php
echo $wgVersion ?
></title
>
29 <meta http
-equiv
='Content-Type' content
='text/html; charset=utf-8' />
30 <style type
='text/css' media
='screen, projection'>
33 background
-color
: #fff;
34 font
-family
: sans
-serif
;
44 <img src
="<?php echo $path ?>skins/common/images/mediawiki.png" alt
='The MediaWiki logo' />
46 <h1
>MediaWiki
<?php
echo $wgVersion ?
></h1
>
49 if ( file_exists( 'config/LocalSettings.php' ) ) {
50 echo( 'To complete the installation, move <tt>config/LocalSettings.php</tt> to the parent directory.' );
52 echo( "Please <a href=\"${path}config/index.{$ext}\" title='setup'> set up the wiki</a> first." );