fix a problem by not inserting __MWTEMPLATESECTION for section titles that don't...
[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;
13 $fname = "wfSpecialVersion";
14
15 $prefix = wfMsg( 'special_version_prefix' );
16 $postfix = wfMsg( 'special_version_postfix' );
17 if( $prefix != '&nbsp;' ) {
18 $wgOut->addWikiText( $prefix );
19 }
20 $wgOut->addHTML( '
21 <p>This wiki is powered by <b><a href="http://www.mediawiki.org/">MediaWiki</a></b>,
22 copyright (C) 2001-2004 by Magnus Manske, Brion Vibber, Lee Daniel Crocker,
23 Tim Starling, Erik M&ouml;ller, and others.</p>
24
25 <p>MediaWiki is free software; you can redistribute it and/or modify
26 it under the terms of the GNU General Public License as published by
27 the Free Software Foundation; either version 2 of the License, or
28 (at your option) any later version.</p>
29
30 <p>MediaWiki is distributed in the hope that it will be useful,
31 but WITHOUT ANY WARRANTY; without even the implied warranty of
32 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33 GNU General Public License for more details.</p>
34
35 <p>You should have received <a href="../COPYING">a copy of the GNU General Public License</a>
36 along with this program; if not, write to the Free Software
37 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
38 or <a href="http://www.gnu.org/copyleft/gpl.html">read it online</a></p>
39 ');
40 if( $postfix != '&nbsp;' ) {
41 $wgOut->addWikiText( $postfix );
42 }
43 $versions = array(
44 "[http://wikipedia.sf.net/ MediaWiki]" => $wgVersion,
45 "[http://www.php.net/ PHP]" => phpversion() . " (" . php_sapi_name() . ")"
46 );
47
48 $dbr =& wfGetDB( DB_SLAVE );
49 $dblink = $dbr->getSoftwareLink();
50 $versions[$dblink] = $dbr->getServerVersion();
51
52 $out = '';
53 foreach( $versions as $module => $ver ) {
54 $out .= ":$module: $ver\n";
55 }
56 $wgOut->addWikiText( $out );
57 }
58 ?>