2016-01-05 20:48:25 +00:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* 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;
|
|
|
|
|
|
|
|
|
|
use HtmlArmor;
|
2024-02-08 18:57:07 +00:00
|
|
|
use MediaWiki\Message\Message;
|
2023-07-20 14:44:39 +00:00
|
|
|
|
2016-01-05 20:48:25 +00:00
|
|
|
class WebInstallerComplete extends WebInstallerPage {
|
|
|
|
|
|
|
|
|
|
public function execute() {
|
|
|
|
|
// Pop up a dialog box, to make it difficult for the user to forget
|
|
|
|
|
// to download the file
|
2016-03-18 13:55:54 +00:00
|
|
|
$lsUrl = $this->getVar( 'wgServer' ) . $this->parent->getUrl( [ 'localsettings' => 1 ] );
|
2024-03-29 22:57:23 +00:00
|
|
|
$this->parent->request->response()->header( "Refresh: 0;url=$lsUrl" );
|
2016-01-05 20:48:25 +00:00
|
|
|
$this->startForm();
|
|
|
|
|
$this->parent->disableLinkPopups();
|
2016-06-20 17:22:51 +00:00
|
|
|
$location = $this->parent->getLocalSettingsLocation();
|
|
|
|
|
$msg = 'config-install-done';
|
|
|
|
|
if ( $location !== false ) {
|
|
|
|
|
// config-install-done-path
|
|
|
|
|
$msg .= '-path';
|
|
|
|
|
}
|
2016-01-05 20:48:25 +00:00
|
|
|
$this->addHTML(
|
|
|
|
|
$this->parent->getInfoBox(
|
2019-07-04 21:23:11 +00:00
|
|
|
new HtmlArmor( wfMessage( $msg,
|
2016-01-05 20:48:25 +00:00
|
|
|
$lsUrl,
|
|
|
|
|
$this->getVar( 'wgServer' ) .
|
2019-07-04 21:17:16 +00:00
|
|
|
$this->getVar( 'wgScriptPath' ) . '/index.php',
|
2019-07-04 21:23:11 +00:00
|
|
|
Message::rawParam( $this->parent->makeDownloadLinkHtml() ),
|
2016-06-20 17:22:51 +00:00
|
|
|
$location ?: ''
|
2019-07-04 21:23:11 +00:00
|
|
|
)->parse() ), 'tick-32.png'
|
2016-01-05 20:48:25 +00:00
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
$this->addHTML( $this->parent->getInfoBox(
|
2019-07-04 21:17:16 +00:00
|
|
|
wfMessage( 'config-extension-link' )->plain() ) );
|
2016-01-05 20:48:25 +00:00
|
|
|
|
|
|
|
|
$this->parent->restoreLinkPopups();
|
|
|
|
|
$this->endForm( false, false );
|
2019-03-22 06:11:04 +00:00
|
|
|
return '';
|
2016-01-05 20:48:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|