| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
namespace MediaWiki\Installer; |
| 24 |
|
| 25 |
use MediaWiki\Specials\SpecialVersion; |
| 26 |
|
| 27 |
class WebInstallerWelcome extends WebInstallerPage { |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
public function execute() { |
| 33 |
if ( $this->parent->request->wasPosted() && $this->getVar( '_Environment' ) ) { |
| 34 |
return 'continue'; |
| 35 |
} |
| 36 |
$this->parent->output->addWikiTextAsInterface( wfMessage( 'config-welcome' )->plain() ); |
| 37 |
$status = $this->parent->doEnvironmentChecks(); |
| 38 |
if ( $status->isGood() ) { |
| 39 |
$this->parent->showSuccess( 'config-env-good' ); |
| 40 |
$this->parent->output->addWikiTextAsInterface( |
| 41 |
wfMessage( 'config-welcome-section-copyright', |
| 42 |
SpecialVersion::getCopyrightAndAuthorList(), |
| 43 |
$this->parent->getVar( 'wgServer' ) . |
| 44 |
$this->parent->getDocUrl( 'Copying' ) |
| 45 |
)->plain() |
| 46 |
); |
| 47 |
$this->startForm(); |
| 48 |
$this->endForm(); |
| 49 |
} else { |
| 50 |
$this->parent->showStatusMessage( $status ); |
| 51 |
} |
| 52 |
|
| 53 |
return ''; |
| 54 |
} |
| 55 |
|
| 56 |
} |