MediaWiki  master
WebInstallerWelcome.php
Go to the documentation of this file.
1 <?php
23 
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( $url, $defaultProto=PROTO_CURRENT)
Expand a potentially local URL to a fully-qualified URL using $wgServer (or one of its alternatives).
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Give information about the version of MediaWiki, PHP, the DB and extensions.
Abstract class to define pages for the web installer.
endForm( $continue='continue', $back='back')