27require_once dirname( __FILE__ ) .
'/../includes/PHPVersionCheck.php';
30define(
'MW_CONFIG_CALLBACK',
'Installer::overrideConfig' );
31define(
'MEDIAWIKI_INSTALL',
true );
35chdir( dirname( __DIR__ ) );
36require dirname( __DIR__ ) .
'/includes/WebStart.php';
45 if ( !$installer->startSession() ) {
46 if ( $installer->request->getVal(
"css" ) ) {
48 $installer->outputCss();
52 $errors = $installer->getPhpErrors();
53 $installer->showError(
'config-session-error', $errors[0] );
58 $fingerprint = $installer->getFingerprint();
59 if ( isset( $_SESSION[
'installData'][$fingerprint] ) ) {
60 $session = $_SESSION[
'installData'][$fingerprint];
65 if ( !is_null(
$wgRequest->getVal(
'uselang' ) ) ) {
67 } elseif ( isset( $session[
'settings'][
'_UserLang'] ) ) {
68 $langCode = $session[
'settings'][
'_UserLang'];
72 $wgLang = Language::factory( $langCode );
73 RequestContext::getMain()->setLanguage(
$wgLang );
75 $installer->setParserLanguage(
$wgLang );
79 $session = $installer->execute( $session );
81 $_SESSION[
'installData'][$fingerprint] = $session;
$wgMetaNamespace
Name of the project namespace.
wfEntryPointCheck( $entryPoint)
Check php version and that external dependencies are installed, and display an informative error if e...
$wgCanonicalNamespaceNames
Definitions of the NS_ constants are in Defines.php.
if(! $wgDBerrorLogTZ) $wgRequest
static getWebInstaller(WebRequest $request)
Instantiates and returns an instance of WebInstaller or its descendant classes.
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))