2016-01-05 20:48:25 +00:00
|
|
|
<?php
|
2024-01-05 18:27:39 +00:00
|
|
|
|
2016-01-05 20:48:25 +00:00
|
|
|
/**
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
|
|
|
*
|
|
|
|
|
* @file
|
2019-11-25 23:24:49 +00:00
|
|
|
* @ingroup Installer
|
2016-01-05 20:48:25 +00:00
|
|
|
*/
|
|
|
|
|
|
2024-01-05 18:27:39 +00:00
|
|
|
namespace MediaWiki\Installer;
|
|
|
|
|
|
2023-09-14 11:14:36 +00:00
|
|
|
use MediaWiki\Specials\SpecialVersion;
|
|
|
|
|
|
2016-01-05 20:48:25 +00:00
|
|
|
class WebInstallerWelcome extends WebInstallerPage {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
public function execute() {
|
2019-03-29 20:12:24 +00:00
|
|
|
if ( $this->parent->request->wasPosted() && $this->getVar( '_Environment' ) ) {
|
|
|
|
|
return 'continue';
|
2016-01-05 20:48:25 +00:00
|
|
|
}
|
2018-10-22 03:00:14 +00:00
|
|
|
$this->parent->output->addWikiTextAsInterface( wfMessage( 'config-welcome' )->plain() );
|
2016-01-05 20:48:25 +00:00
|
|
|
$status = $this->parent->doEnvironmentChecks();
|
|
|
|
|
if ( $status->isGood() ) {
|
2025-02-17 04:28:25 +00:00
|
|
|
$this->parent->showSuccess( 'config-env-good' );
|
2019-07-18 00:29:12 +00:00
|
|
|
$this->parent->output->addWikiTextAsInterface(
|
|
|
|
|
wfMessage( 'config-welcome-section-copyright',
|
|
|
|
|
SpecialVersion::getCopyrightAndAuthorList(),
|
2023-12-14 08:41:46 +00:00
|
|
|
$this->parent->getVar( 'wgServer' ) .
|
|
|
|
|
$this->parent->getDocUrl( 'Copying' )
|
2019-07-18 00:29:12 +00:00
|
|
|
)->plain()
|
|
|
|
|
);
|
2016-01-05 20:48:25 +00:00
|
|
|
$this->startForm();
|
|
|
|
|
$this->endForm();
|
|
|
|
|
} else {
|
|
|
|
|
$this->parent->showStatusMessage( $status );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return '';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|