00001 <?php 00002 00003 function wfSpecialVersion() 00004 { 00005 global $wgUser, $wgOut, $wgVersion; 00006 $fname = "wfSpecialVersion"; 00007 00008 $wgOut->addHTML( ' 00009 <p>This wiki is powered by <b><a href="http://www.mediawiki.org/">MediaWiki</a></b>, 00010 copyright (C) 2001-2004 by Magnus Manske, Brion Vibber, Lee Daniel Crocker, 00011 Tim Starling, Erik Möller, and others.</p> 00012 00013 <p>MediaWiki is free software; you can redistribute it and/or modify 00014 it under the terms of the GNU General Public License as published by 00015 the Free Software Foundation; either version 2 of the License, or 00016 (at your option) any later version.</p> 00017 00018 <p>MediaWiki is distributed in the hope that it will be useful, 00019 but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 GNU General Public License for more details.</p> 00022 00023 <p>You should have received <a href="../COPYING">a copy of the GNU General Public License</a> 00024 along with this program; if not, write to the Free Software 00025 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00026 or <a href="http://www.gnu.org/copyleft/gpl.html">read it online</a></p> 00027 '); 00028 $versions = array( 00029 "[http://wikipedia.sf.net/ MediaWiki]" => $wgVersion, 00030 "[http://www.php.net/ PHP]" => phpversion() . " (" . php_sapi_name() . ")", 00031 "[http://www.mysql.com/ MySQL]" => mysql_get_server_info() 00032 ); 00033 00034 $out = ""; 00035 foreach( $versions as $module => $ver ) { 00036 $out .= ":$module: $ver\n"; 00037 } 00038 $wgOut->addWikiText( $out ); 00039 } 00040 ?>