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