4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 * http://www.gnu.org/copyleft/gpl.html
23 namespace MediaWiki\Installer
;
25 use MediaWiki\Specials\SpecialVersion
;
27 class WebInstallerWelcome
extends WebInstallerPage
{
32 public function execute() {
33 if ( $this->parent
->request
->wasPosted() && $this->getVar( '_Environment' ) ) {
36 $this->parent
->output
->addWikiTextAsInterface( wfMessage( 'config-welcome' )->plain() );
37 $status = $this->parent
->doEnvironmentChecks();
38 if ( $status->isGood() ) {
39 $this->parent
->output
->addHTML(
40 '<div class="cdx-message cdx-message--block cdx-message--success">' .
41 '<span class="cdx-message__icon"></span> <div class="cdx-message__content">' .
42 wfMessage( 'config-env-good' )->escaped() . '</div></div>' );
43 $this->parent
->output
->addWikiTextAsInterface(
44 wfMessage( 'config-welcome-section-copyright',
45 SpecialVersion
::getCopyrightAndAuthorList(),
46 $this->parent
->getVar( 'wgServer' ) .
47 $this->parent
->getDocUrl( 'Copying' )
53 $this->parent
->showStatusMessage( $status );