23# T32219 : can not use pathinfo() on URLs since slashes do not match
28foreach ( array_filter( explode(
'/', $_SERVER[
'PHP_SELF'] ) ) as $part ) {
29 if ( !preg_match(
'/\.(php)$/', $part,
$matches ) ) {
36# Check to see if the installer is running
37if ( !function_exists(
'session_name' ) ) {
41 session_name(
'mw_installer_session' );
43 $oldReporting = error_reporting( E_ALL & ~E_NOTICE );
45 error_reporting( $oldReporting );
51# Render error page if no LocalSettings file can be found
56 'version' => ( defined(
'MW_VERSION' ) ?
MW_VERSION :
'VERSION' ),
58 'localSettingsExists' => file_exists( MW_CONFIG_FILE ),
62}
catch ( Exception $e ) {
63 echo
'Error: ' . htmlspecialchars( $e->getMessage() );
const MW_VERSION
The running version of MediaWiki.
wfIniGetBool( $setting)
Safety wrapper around ini_get() for boolean settings.
A BagOStuff object with no objects in it.