Extension:ControlSpecialVersion

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
ControlSpecialVersion

Release status:Extension status stable

ImplementationTemplate:Extension#type Special page
DescriptionTemplate:Extension#description Allow adjustment of what information Special:Version shows
Author(s)Template:Extension#username Greg Sabino Mullane (turnsteptalk)
Latest versionTemplate:Extension#version 1.6 (November 8, 2017)
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license MIT License
Download http://bucardo.org/downloads/ControlSpecialVersion.mw.extension.tar.gz
ParametersTemplate:Extension#parameters
  • $wgControlSpecialVersion_mediawiki_show
  • $wgControlSpecialVersion_mediawiki_show_rcs
  • $wgControlSpecialVersion_php_show
  • $wgControlSpecialVersion_postgres_rename
  • $wgControlSpecialVersion_postgres_norevision
  • $wgControlSpecialVersion_mysql_norevision
  • $wgControlSpecialVersion_extension_show_versions
  • $wgControlSpecialVersion_extensions_hidden
Hooks usedTemplate:Extension#hook
SoftwareInfoManual:Hooks/SoftwareInfo
ExtensionTypesManual:Hooks/ExtensionTypes
APIQuerySiteInfoGeneralInfoManual:Hooks/APIQuerySiteInfoGeneralInfo

Translate the ControlSpecialVersion extension if it is available at translatewiki.net

Check usage and version matrix.

The ControlSpecialVersion extension allows control of some items on the Special:Version. For example, it can prevent showing what version of PHP you are using.

Installation[edit]

  • Download and place the file(s) in a directory called ControlSpecialVersion in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/ControlSpecialVersion/ControlSpecialVersion.php";
    
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parameters[edit]

$wgControlSpecialVersion_mediawiki_show
Whether to show the version of MediaWiki being used: defaults to true
$wgControlSpecialVersion_mediawiki_show_rcs
Whether to show the revision and date information for the MediaWiki version
$wgControlSpecialVersion_php_show
Whether to show the version of PHP being used: defaults to false
$wgControlSpecialVersion_postgres_rename
Rename PostgreSQL to Postgres. Defaults to true
$wgControlSpecialVersion_postgres_norevision
Show the major version of Postgres, not the revision. Defaults to true
$wgControlSpecialVersion_mysql_norevision
Show the major version of MySQL, not the revision. Defaults to true
$wgControlSpecialVersion_extension_show_versions
Show the version number of all extensions. Defaults to true
$wgControlSpecialVersion_extensions_hidden
Array of extensions that should be completely hidden. Defaults to none

PHP Version Hiding[edit]

Note that the PHP version may also be exposed in your HTTP header. To prevent the PHP version from showing via Apache, edit the Apache config file and set the "ServerTokens" to "ProductOnly". To prevent PHP from adding verison information when it is serving pages, edit the PHP config file (php.ini) and set "expose_php" to Off.