* (bug 829) Fix URL-escaping on block success
[lhc/web/wiklou.git] / includes / SpecialVersion.php
index 048d726..30f2fe1 100644 (file)
@@ -1,12 +1,24 @@
 <?php
+/**
+ *
+ * @package MediaWiki
+ * @subpackage SpecialPage
+ */
 
-function wfSpecialVersion()
-{
+/**
+ * constructor
+ */
+function wfSpecialVersion() {
        global $wgUser, $wgOut, $wgVersion;
        $fname = "wfSpecialVersion";
 
+       $prefix = wfMsg( 'special_version_prefix' );
+       $postfix = wfMsg( 'special_version_postfix' );
+       if( $prefix != '&nbsp;' ) {
+               $wgOut->addWikiText( $prefix );
+       }
        $wgOut->addHTML( '
- This wiki is powered by <b><a href="http://www.mediawiki.org/">MediaWiki</a></b>,  
<p>This wiki is powered by <b><a href="http://www.mediawiki.org/">MediaWiki</a></b>,  
  copyright (C) 2001-2004 by Magnus Manske, Brion Vibber, Lee Daniel Crocker,
  Tim Starling, Erik M&ouml;ller, and others.</p>
  
@@ -25,13 +37,19 @@ function wfSpecialVersion()
  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  or <a href="http://www.gnu.org/copyleft/gpl.html">read it online</a></p>
        ');
+       if( $postfix != '&nbsp;' ) {
+               $wgOut->addWikiText( $postfix );
+       }
        $versions = array(
                "[http://wikipedia.sf.net/ MediaWiki]" => $wgVersion,
-               "[http://www.php.net/ PHP]" => phpversion(),
-               "[http://www.mysql.com/ MySQL]" => mysql_get_server_info()
+               "[http://www.php.net/ PHP]" => phpversion() . " (" . php_sapi_name() . ")"
        );
+       
+       $dbr =& wfGetDB( DB_SLAVE );
+       $dblink = $dbr->getSoftwareLink();
+       $versions[$dblink] = $dbr->getServerVersion();
        
-       $out = "";
+       $out = '';
        foreach( $versions as $module => $ver ) {
                $out .= ":$module: $ver\n";
        }