MediaWiki
master
WebInstallerWelcome.php
Go to the documentation of this file.
1
<?php
22
use
MediaWiki\Specials\SpecialVersion
;
23
24
class
WebInstallerWelcome
extends
WebInstallerPage
{
25
29
public
function
execute
() {
30
if
( $this->parent->request->wasPosted() && $this->getVar(
'_Environment'
) ) {
31
return
'continue'
;
32
}
33
$this->parent->output->addWikiTextAsInterface(
wfMessage
(
'config-welcome'
)->plain() );
34
$status = $this->parent->doEnvironmentChecks();
35
if
( $status->isGood() ) {
36
$this->parent->output->addHTML(
'<span class="success-message">'
.
37
wfMessage
(
'config-env-good'
)->escaped() .
'</span>'
);
38
$this->parent->output->addWikiTextAsInterface(
39
wfMessage
(
'config-welcome-section-copyright'
,
40
SpecialVersion::getCopyrightAndAuthorList(),
41
wfExpandUrl
( $this->parent->getDocUrl(
'Copying'
) )
42
)->plain()
43
);
44
$this->
startForm
();
45
$this->
endForm
();
46
}
else
{
47
$this->parent->showStatusMessage( $status );
48
}
49
50
return
''
;
51
}
52
53
}
wfExpandUrl
wfExpandUrl( $url, $defaultProto=PROTO_CURRENT)
Expand a potentially local URL to a fully-qualified URL using $wgServer (or one of its alternatives).
Definition:
GlobalFunctions.php:518
wfMessage
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition:
GlobalFunctions.php:903
MediaWiki\Specials\SpecialVersion
Give information about the version of MediaWiki, PHP, the DB and extensions.
Definition:
SpecialVersion.php:62
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
WebInstallerWelcome
Definition:
WebInstallerWelcome.php:24
WebInstallerWelcome\execute
execute()
Definition:
WebInstallerWelcome.php:29
includes
installer
WebInstallerWelcome.php
Generated on Sat Sep 23 2023 18:08:46 for MediaWiki by
1.9.1