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