(bug 24007) Diff pages now mention the number of users having edited intermediate...
[lhc/web/wiklou.git] / includes / templates / NoLocalSettings.php
1 <?php
2 /**
3 * Template used when there is no LocalSettings.php file
4 *
5 * @file
6 * @ingroup Templates
7 */
8
9 if ( !isset( $wgVersion ) ) {
10 $wgVersion = 'VERSION';
11 }
12 $script = $_SERVER['SCRIPT_NAME'];
13 $path = pathinfo( $script, PATHINFO_DIRNAME ) . '/';
14 $path = str_replace( '//', '/', $path );
15 $ext = pathinfo( $script, PATHINFO_EXTENSION );
16 ?>
17 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
18 <html xmlns='http://www.w3.org/1999/xhtml' lang='en'>
19 <head>
20 <title>MediaWiki <?php echo htmlspecialchars( $wgVersion ) ?></title>
21 <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
22 <style type='text/css' media='screen'>
23 html, body {
24 color: #000;
25 background-color: #fff;
26 font-family: sans-serif;
27 text-align: center;
28 }
29
30 h1 {
31 font-size: 150%;
32 }
33 </style>
34 </head>
35 <body>
36 <img src="<?php echo htmlspecialchars( $path ) ?>skins/common/images/mediawiki.png" alt='The MediaWiki logo' />
37
38 <h1>MediaWiki <?php echo htmlspecialchars( $wgVersion ) ?></h1>
39 <div class='error'>
40 <?php
41 if ( file_exists( 'config/LocalSettings.php' ) ) {
42 echo( 'To complete the installation, move <tt>config/LocalSettings.php</tt> to the parent directory.' );
43 } else {
44 echo( "Please <a href=\"" . htmlspecialchars( $path ) . "config/index." . htmlspecialchars( $ext ) . "\" title='setup'> set up the wiki</a> first." );
45 }
46 ?>
47
48 </div>
49 </body>
50 </html>