From cecb985bee3bdd252e1b8dc0bd500b37cd52be01 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 16 May 2007 20:58:53 +0000 Subject: Aktualisierung auf MediaWiki 1.10.0 Plugins angepasst und verbessert kleine Korrekturen am Design --- extensions/FunnyDot.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'extensions/FunnyDot.php') diff --git a/extensions/FunnyDot.php b/extensions/FunnyDot.php index 418575e2..d9d932ae 100644 --- a/extensions/FunnyDot.php +++ b/extensions/FunnyDot.php @@ -1,9 +1,6 @@ 'FunnyDot', @@ -12,13 +9,15 @@ $wgExtensionCredits['other'][] = array( 'url' => 'http://www.laber-land.de', ); -function hexVal($in) +class FunnyDot { + +private static function hexVal($in) { $result = preg_replace('/[^0-9a-fA-F]/', '', $in); return (empty($result) ? 0 : $result); } -function checkAntiSpamHash() +public static function checkAntiSpamHash() { global $wgAntiSpamHash, $wgAntiSpamTimeout, $wgAntiSpamWait; @@ -27,7 +26,7 @@ function checkAntiSpamHash() if (!empty($_COOKIE['AntiSpamTime']) && !empty($_COOKIE['AntiSpamHash'])) { $time = intval($_COOKIE['AntiSpamTime']); - $hash = hexVal($_COOKIE['AntiSpamHash']); + $hash = self::hexVal($_COOKIE['AntiSpamHash']); if ($hash != sha1($time.$wgAntiSpamHash)) { @@ -51,5 +50,6 @@ function checkAntiSpamHash() return true; } -} # End invocation guard +} + ?> \ No newline at end of file -- cgit v1.2.3-54-g00ecf