3 * Template used when there is no LocalSettings.php file
9 if ( !isset( $wgVersion ) ) {
10 $wgVersion = 'VERSION';
13 # bug 30219 : can not use pathinfo() on URLs since slashes do not match
17 foreach( array_filter( explode( '/', $_SERVER['PHP_SELF'] ) ) as $part ) {
18 if( !preg_match( '/\.(php5?)$/', $part, $matches ) ) {
21 $ext = $matches[1] == 'php5' ?
'php5' : 'php';
25 # Check to see if the installer is running
26 if ( !function_exists( 'session_name' ) ) {
27 $installerStarted = false;
29 session_name( 'mw_installer_session' );
30 $oldReporting = error_reporting( E_ALL
& ~E_NOTICE
);
31 $success = session_start();
32 error_reporting( $oldReporting );
33 $installerStarted = ( $success && isset( $_SESSION['installData'] ) );
36 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
37 <html xmlns
='http://www.w3.org/1999/xhtml' lang
='en'>
39 <title
>MediaWiki
<?php
echo htmlspecialchars( $wgVersion ) ?
></title
>
40 <meta http
-equiv
='Content-Type' content
='text/html; charset=utf-8' />
41 <style type
='text/css' media
='screen'>
44 background
-color
: #fff;
45 font
-family
: sans
-serif
;
55 <img src
="<?php echo htmlspecialchars( $path ) ?>skins/common/images/mediawiki.png" alt
='The MediaWiki logo' />
57 <h1
>MediaWiki
<?php
echo htmlspecialchars( $wgVersion ) ?
></h1
>
59 <p
>LocalSettings
.php not found
.</p
>
62 if ( $installerStarted ) {
63 echo( "Please <a href=\"" . htmlspecialchars( $path ) . "mw-config/index." . htmlspecialchars( $ext ) . "\"> complete the installation</a> and download LocalSettings.php." );
65 echo( "Please <a href=\"" . htmlspecialchars( $path ) . "mw-config/index." . htmlspecialchars( $ext ) . "\"> set up the wiki</a> first." );