MediaWiki  1.23.2
NoLocalSettings.php
Go to the documentation of this file.
1 <?php
24 if ( !defined( 'MEDIAWIKI' ) ) {
25  die( "NoLocalSettings.php is not a valid MediaWiki entry point\n" );
26 }
27 
28 if ( !isset( $wgVersion ) ) {
29  $wgVersion = 'VERSION';
30 }
31 
32 # bug 30219 : can not use pathinfo() on URLs since slashes do not match
34 $ext = 'php';
35 $path = '/';
36 foreach ( array_filter( explode( '/', $_SERVER['PHP_SELF'] ) ) as $part ) {
37  if ( !preg_match( '/\.(php5?)$/', $part, $matches ) ) {
38  $path .= "$part/";
39  } else {
40  $ext = $matches[1] == 'php5' ? 'php5' : 'php';
41  }
42 }
43 
44 # Check to see if the installer is running
45 if ( !function_exists( 'session_name' ) ) {
46  $installerStarted = false;
47 } else {
48  session_name( 'mw_installer_session' );
49  $oldReporting = error_reporting( E_ALL & ~E_NOTICE );
50  $success = session_start();
51  error_reporting( $oldReporting );
52  $installerStarted = ( $success && isset( $_SESSION['installData'] ) );
53 }
54 ?>
55 <!DOCTYPE html>
56 <html lang="en" dir="ltr">
57  <head>
58  <meta charset="UTF-8" />
59  <title>MediaWiki <?php echo htmlspecialchars( $wgVersion ) ?></title>
60  <style media='screen'>
61  html, body {
62  color: #000;
63  background-color: #fff;
64  font-family: sans-serif;
65  text-align: center;
66  }
67 
68  h1 {
69  font-size: 150%;
70  }
71  </style>
72  </head>
73  <body>
74  <img src="<?php echo htmlspecialchars( $path ) ?>skins/common/images/mediawiki.png" alt='The MediaWiki logo' />
75 
76  <h1>MediaWiki <?php echo htmlspecialchars( $wgVersion ) ?></h1>
77  <div class='error'>
78  <?php if ( !file_exists( MW_CONFIG_FILE ) ) { ?>
79  <p>LocalSettings.php not found.</p>
80  <p>
81  <?php
82  if ( $installerStarted ) {
83  echo "Please <a href=\"" . htmlspecialchars( $path ) . "mw-config/index." . htmlspecialchars( $ext ) . "\"> complete the installation</a> and download LocalSettings.php.";
84  } else {
85  echo "Please <a href=\"" . htmlspecialchars( $path ) . "mw-config/index." . htmlspecialchars( $ext ) . "\"> set up the wiki</a> first.";
86  }
87  ?>
88  </p>
89  <?php } else { ?>
90  <p>LocalSettings.php not readable.</p>
91  <p>Please correct file permissions and try again.</p>
92  <?php } ?>
93 
94  </div>
95  </body>
96 </html>
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
text
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add text
Definition: design.txt:12
$success
$success
Definition: NoLocalSettings.php:50
$installerStarted
$installerStarted
Definition: NoLocalSettings.php:52
permissions
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such and we might be restricted by PHP settings such as safe mode or open_basedir We cannot assume that the software even has read access anywhere useful Many shared hosts run all users web applications under the same so they can t rely on Unix permissions
Definition: distributors.txt:9
title
to move a page</td >< td > &*You are moving the page across *A non empty talk page already exists under the new or *You uncheck the box below In those you will have to move or merge the page manually if desired</td >< td > be sure to &You are responsible for making sure that links continue to point where they are supposed to go Note that the page will &a page at the new title
Definition: All_system_messages.txt:2703
file
We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing we can concentrate it all in an extension file
Definition: hooks.txt:93
MediaWiki
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
$matches
if(!defined( 'MEDIAWIKI')) if(!isset( $wgVersion)) $matches
Definition: NoLocalSettings.php:33
$ext
$ext
Definition: NoLocalSettings.php:34
color
in the sidebar</td >< td > font color
Definition: All_system_messages.txt:425
$path
$path
Definition: NoLocalSettings.php:35
$oldReporting
$oldReporting
Definition: NoLocalSettings.php:49
as
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
Definition: distributors.txt:9