On 17/06/2009, at 2:26 PM, John Doe wrote:
I have access to the toolserver and rcip is not available. please note that the chechuser table is created by an extension and not by mediawiki thus you cannot depend on extensions that my or may not be insalled on all wikis. it may be that way on MWF wikis bit mediawiki is not just used on MWF wikis. what you want done cannot be done untill CU is merged into the trunk
As Daniel explained, the proposal is to disable the functionality except for wikis with an extension providing the past-IP data installed. On these wikis, the data would be provided by means of a hook.
Approximate pseudocode:
Instead of selecting rc_ip in the Block class, use the following $ips = array(); wfRunHooks( 'UserGetPastIPs', array( $user, &$ips ) );
In the CheckUser extension, hook this: function onUserGetPastIPs( $user, &$ips ) { // Add IPs found by checkuser extension to the $ips array. }
Of course, this is pointless if you can filter out rc_ip with a view on the toolserver...
-- Andrew Garrett Contract Developer, Wikimedia Foundation agarrett@wikimedia.org http://werdn.us