MediaWiki
REL1_40
WebInstallerComplete.php
Go to the documentation of this file.
1
<?php
22
class
WebInstallerComplete
extends
WebInstallerPage
{
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
new
HtmlArmor
(
wfMessage
( $msg,
49
$lsUrl,
50
$this->
getVar
(
'wgServer'
) .
51
$this->
getVar
(
'wgScriptPath'
) .
'/index.php'
,
52
Message::rawParam
( $this->parent->makeDownloadLinkHtml() ),
53
$location ?:
''
54
)->parse() ),
'tick-32.png'
55
)
56
);
57
$this->
addHTML
( $this->parent->getInfoBox(
58
wfMessage
(
'config-extension-link'
)->plain() ) );
59
60
$this->parent->restoreLinkPopups();
61
$this->
endForm
(
false
,
false
);
62
return
''
;
63
}
64
65
}
wfMessage
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition
GlobalFunctions.php:893
HtmlArmor
Marks HTML that shouldn't be escaped.
Definition
HtmlArmor.php:30
Message\rawParam
static rawParam( $raw)
Definition
Message.php:1135
WebInstallerComplete
Definition
WebInstallerComplete.php:22
WebInstallerComplete\execute
execute()
Definition
WebInstallerComplete.php:24
WebInstallerPage
Abstract class to define pages for the web installer.
Definition
WebInstallerPage.php:32
WebInstallerPage\startForm
startForm()
Definition
WebInstallerPage.php:71
WebInstallerPage\endForm
endForm( $continue='continue', $back='back')
Definition
WebInstallerPage.php:88
WebInstallerPage\addHTML
addHTML( $html)
Definition
WebInstallerPage.php:67
WebInstallerPage\getVar
getVar( $var, $default=null)
Definition
WebInstallerPage.php:154
includes
installer
WebInstallerComplete.php
Generated on Thu Jun 27 2024 14:02:57 for MediaWiki by
1.10.0