MediaWiki
REL1_35
WebInstallerWelcome.php
Go to the documentation of this file.
1
<?php
22
class
WebInstallerWelcome
extends
WebInstallerPage
{
23
27
public
function
execute
() {
28
if
( $this->parent->request->wasPosted() && $this->getVar(
'_Environment'
) ) {
29
return
'continue'
;
30
}
31
$this->parent->output->addWikiTextAsInterface(
wfMessage
(
'config-welcome'
)->plain() );
32
$status = $this->parent->doEnvironmentChecks();
33
if
( $status->isGood() ) {
34
$this->parent->output->addHTML(
'<span class="success-message">'
.
35
wfMessage
(
'config-env-good'
)->escaped() .
'</span>'
);
36
$this->parent->output->addWikiTextAsInterface(
37
wfMessage
(
'config-welcome-section-copyright'
,
38
SpecialVersion::getCopyrightAndAuthorList
(),
39
wfExpandUrl
( $this->parent->getDocUrl(
'Copying'
) )
40
)->plain()
41
);
42
$this->
startForm
();
43
$this->
endForm
();
44
}
else
{
45
$this->parent->showStatusMessage( $status );
46
}
47
48
return
''
;
49
}
50
51
}
wfExpandUrl
wfExpandUrl( $url, $defaultProto=PROTO_CURRENT)
Expand a potentially local URL to a fully-qualified URL.
Definition
GlobalFunctions.php:490
wfMessage
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition
GlobalFunctions.php:1220
SpecialVersion\getCopyrightAndAuthorList
static getCopyrightAndAuthorList()
Get the "MediaWiki is copyright 2001-20xx by lots of cool folks" text.
Definition
SpecialVersion.php:222
WebInstallerPage
Abstract class to define pages for the web installer.
Definition
WebInstallerPage.php:30
WebInstallerPage\startForm
startForm()
Definition
WebInstallerPage.php:69
WebInstallerPage\endForm
endForm( $continue='continue', $back='back')
Definition
WebInstallerPage.php:86
WebInstallerWelcome
Definition
WebInstallerWelcome.php:22
WebInstallerWelcome\execute
execute()
Definition
WebInstallerWelcome.php:27
includes
installer
WebInstallerWelcome.php
Generated on Sat Apr 6 2024 00:07:18 for MediaWiki by
1.9.8