Extension:ControlSpecialVersion
Appearance
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. |
ControlSpecialVersion Release status: unmaintained |
|
---|---|
Implementation | Special page |
Description | Allow adjustment of what information Special:Version shows |
Author(s) | Greg Sabino Mullane (turnsteptalk) |
Latest version | 1.6 (2017-11-08) |
MediaWiki | |
Database changes | No |
License | MIT License |
Download | http://bucardo.org/downloads/ControlSpecialVersion.mw.extension.tar.gz |
|
|
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 yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php file:
require_once "$IP/extensions/ControlSpecialVersion/ControlSpecialVersion.php";
- 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.