r10949 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10948‎ | r10949 | r10950 >
Date:11:00, 8 September 2005
Author:vibber
Status:old
Tags:
Comment:
quickie
Modified paths:
  • /trunk/extensions/MWBlocker/MWBlockerHook.php (added) (history)

Diff [purge]

Index: trunk/extensions/MWBlocker/MWBlockerHook.php
@@ -0,0 +1,19 @@
 2+<?php
 3+
 4+require_once( 'MWBlocker.php' );
 5+
 6+$wgExtensionFunctions[] = 'mwBlockerHookSetup';
 7+
 8+function mwBlockerHookSetup() {
 9+ global $wgHooks;
 10+ // create account
 11+ $wgHooks['AddNewAccount'][] = 'mwBlockerCheck';
 12+}
 13+
 14+function mwBlockerCheck() {
 15+ $ip = wfGetIP();
 16+ MWBlocker::queueCheck( $ip, "creating account" );
 17+ return true;
 18+}
 19+
 20+?>
Property changes on: trunk/extensions/MWBlocker/MWBlockerHook.php
___________________________________________________________________
Added: svn:eol-style
121 + native
Added: svn:keywords
222 + Author Date Id Revision

Status & tagging log