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