* Deprecating msg:special_version_prefix and msg:special_version_postfix
[lhc/web/wiklou.git] / includes / SpecialVersion.php
1 <?php
2 /**
3 *
4 * @package MediaWiki
5 * @subpackage SpecialPage
6 */
7
8 /**
9 * constructor
10 */
11 function wfSpecialVersion() {
12 global $wgUser, $wgOut, $wgVersion, $wgScriptPath;
13 $fname = 'wfSpecialVersion';
14
15 $wgOut->addWikiText( "
16 This wiki is powered by '''[http://www.mediawiki.org/ MediaWiki]''',
17 copyright (C) 2001-2005 Magnus Manske, Brion Vibber, Lee Daniel Crocker,
18 Tim Starling, Erik Möller, and others.
19
20 MediaWiki is free software; you can redistribute it and/or modify
21 it under the terms of the GNU General Public License as published by
22 the Free Software Foundation; either version 2 of the License, or
23 (at your option) any later version.
24
25 MediaWiki is distributed in the hope that it will be useful,
26 but WITHOUT ANY WARRANTY; without even the implied warranty of
27 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 GNU General Public License for more details.
29
30 You should have received [{{SERVER}}$wgScriptPath/COPYING a copy of the GNU General Public License]
31 along with this program; if not, write to the Free Software
32 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
33 or [http://www.gnu.org/copyleft/gpl.html read it online]");
34 $versions = array(
35 "[http://wikipedia.sf.net/ MediaWiki]" => $wgVersion,
36 "[http://www.php.net/ PHP]" => phpversion() . " (" . php_sapi_name() . ")"
37 );
38
39 $dbr =& wfGetDB( DB_SLAVE );
40 $dblink = $dbr->getSoftwareLink();
41 $versions[$dblink] = $dbr->getServerVersion();
42
43 $out = '';
44 foreach( $versions as $module => $ver ) {
45 $out .= "*$module: $ver\n";
46 }
47 $wgOut->addWikiText( $out );
48 }
49 ?>