function showStatus() { try { $ret = MWBlocker::getStatus(); echo $ret . "\n"; } catch (MWEexception $e) { die($e->getMessage() . "\n"); } }
function mwBlockerCheck() { global $wgDBname; $ip = wfGetIP(); try { MWBlocker::queueCheck($ip, "creating account on {$wgDBname}"); } catch (MWException $e) { } return true; }
/** * Get a brief bit of status info on the update daemon. * @return string * @static */ function getStatus() { return MWBlocker::sendRPC('blocker.getStatus'); }