* (bug 7037) Fix regression in login tab order
[lhc/web/wiklou.git] / includes / templates / NoLocalSettings.php
1 <?php
2 # Prevent XSS
3 if ( isset( $wgVersion ) ) {
4 $wgVersion = htmlspecialchars( $wgVersion );
5 } else {
6 $wgVersion = 'VERSION';
7 }
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 $path = '';
11 if( isset( $_SERVER['SCRIPT_NAME'] )) {
12 $path = preg_replace('/index.php/', '', $_SERVER['SCRIPT_NAME']);
13 }
14 ?>
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'>
17 <head>
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'>
21 html, body {
22 color: #000;
23 background-color: #fff;
24 font-family: sans-serif;
25 text-align: center;
26 }
27
28 h1 {
29 font-size: 150%;
30 }
31 </style>
32 </head>
33 <body>
34 <img src='<?php echo $path ?>skins/common/images/mediawiki.png' alt='The MediaWiki logo' />
35
36 <h1>MediaWiki <?php echo $wgVersion ?></h1>
37 <div class='error'>
38 <?php
39 if ( file_exists( 'config/LocalSettings.php' ) ) {
40 echo( 'To complete the installation, move <tt>config/LocalSettings.php</tt> to the parent directory.' );
41 } else {
42 echo( "Please <a href='${path}config/index.php' title='setup'> set up the wiki</a> first." );
43 }
44 ?>
45
46 </div>
47 </body>
48 </html>