Jump to content
MediaWiki

Manual:Hooks/CanIPUseHTTPS

From mediawiki.org
This feature was removed completely in version 1.37.0 (after being deprecated in 1.35.0).
CanIPUseHTTPS
Available from version 1.22.0
Removed in version 1.37.0 (Gerrit change 675293)
Called when checking if an IP address can use HTTPS
Define function:
public static function onCanIPUseHTTPS( $ip, &$canDo ) { ... }
Attach hook: In extension.json:
{
"Hooks":{
"CanIPUseHTTPS":"MediaWiki\\Extension\\MyExtension\\Hooks::onCanIPUseHTTPS"
}
}
Called from: File(s): GlobalFunctions.php
Interface: CanIPUseHTTPSHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:CanIPUseHTTPS extensions.

Details

[edit ]
  • $ip: The IP address in human-readable form
  • &$canDo: This reference should be set to false if the client may not be able to use HTTPS

See also

[edit ]

AltStyle によって変換されたページ (->オリジナル) /