MediaWiki REL1_32
WebInstallerComplete.php
Go to the documentation of this file.
1<?php
23
24 public function execute() {
25 // Pop up a dialog box, to make it difficult for the user to forget
26 // to download the file
27 $lsUrl = $this->getVar( 'wgServer' ) . $this->parent->getUrl( [ 'localsettings' => 1 ] );
28 if ( isset( $_SERVER['HTTP_USER_AGENT'] ) &&
29 strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE' ) !== false
30 ) {
31 // JS appears to be the only method that works consistently with IE7+
32 $this->addHTML( "\n<script>jQuery( function () { location.href = " .
33 Xml::encodeJsVar( $lsUrl ) . "; } );</script>\n" );
34 } else {
35 $this->parent->request->response()->header( "Refresh: 0;url=$lsUrl" );
36 }
37
38 $this->startForm();
39 $this->parent->disableLinkPopups();
40 $location = $this->parent->getLocalSettingsLocation();
41 $msg = 'config-install-done';
42 if ( $location !== false ) {
43 // config-install-done-path
44 $msg .= '-path';
45 }
46 $this->addHTML(
47 $this->parent->getInfoBox(
48 wfMessage( $msg,
49 $lsUrl,
50 $this->getVar( 'wgServer' ) .
51 $this->getVar( 'wgScriptPath' ) . '/index.php',
52 '<downloadlink/>',
53 $location ?: ''
54 )->plain(), 'tick-32.png'
55 )
56 );
57 $this->addHTML( $this->parent->getInfoBox(
58 wfMessage( 'config-extension-link' )->text() ) );
59
60 $this->parent->restoreLinkPopups();
61 $this->endForm( false, false );
62 }
63
64}
This list may contain false positives That usually means there is additional text with links below the first Each row contains links to the first and second as well as the first line of the second redirect text
Abstract class to define pages for the web installer.
endForm( $continue='continue', $back='back')
getVar( $var, $default=null)
either a plain
Definition hooks.txt:2105
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation use $formDescriptor instead default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message additional optional elements are parameters for the key that are processed with wfMessage() -> params() ->parseAsBlock() - offset Set to overwrite offset parameter in $wgRequest set to '' to unset offset - wrap String Wrap the message in html(usually something like "&lt;div ...>$1&lt;/div>"). - flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LogException':Called before an exception(or PHP error) is logged. This is meant for integration with external error aggregation services