PHPSessionHandler: Implement SessionHandlerInterface
[mediawiki.git] / includes / installer / WebInstallerComplete.php
blobf443db4c874c67990869599df0fb83cc7f0c3b60
1 <?php
2 /**
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 * http://www.gnu.org/copyleft/gpl.html
18 * @file
19 * @ingroup Deployment
22 class WebInstallerComplete extends WebInstallerPage {
24 public function execute() {
25 // Pop up a dialog box, to make it difficult for the user to forget
26 // to download the file
27 $lsUrl = $this->getVar( 'wgServer' ) . $this->parent->getURL( array( 'localsettings' => 1 ) );
28 if ( isset( $_SERVER['HTTP_USER_AGENT'] ) &&
29 strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE' ) !== false
30 ) {
31 // JS appears to be the only method that works consistently with IE7+
32 $this->addHtml( "\n<script>jQuery( function () { location.href = " .
33 Xml::encodeJsVar( $lsUrl ) . "; } );</script>\n" );
34 } else {
35 $this->parent->request->response()->header( "Refresh: 0;url=$lsUrl" );
38 $this->startForm();
39 $this->parent->disableLinkPopups();
40 $this->addHTML(
41 $this->parent->getInfoBox(
42 wfMessage( 'config-install-done',
43 $lsUrl,
44 $this->getVar( 'wgServer' ) .
45 $this->getVar( 'wgScriptPath' ) . '/index.php',
46 '<downloadlink/>'
47 )->plain(), 'tick-32.png'
50 $this->addHTML( $this->parent->getInfoBox(
51 wfMessage( 'config-extension-link' )->text() ) );
53 $this->parent->restoreLinkPopups();
54 $this->endForm( false, false );