diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2007-06-27 17:06:34 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2007-06-27 17:06:34 +0200 |
commit | a4003750c3a8a4d94ed673cb21696569cd67ce37 (patch) | |
tree | eac4a84c90d5c51f6cad4e53e0ffc5d6d4967334 /extensions/FunnyDot.php | |
parent | 8add05d668d630e884f202b30811fe8b853097a6 (diff) |
Neue Foren-Adresse (forum.archlinux.de) eingefügt
Diffstat (limited to 'extensions/FunnyDot.php')
-rw-r--r-- | extensions/FunnyDot.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/extensions/FunnyDot.php b/extensions/FunnyDot.php index d9d932ae..7cd00007 100644 --- a/extensions/FunnyDot.php +++ b/extensions/FunnyDot.php @@ -6,17 +6,11 @@ $wgExtensionCredits['other'][] = array( 'name' => 'FunnyDot', 'description' => 'Schutz vor Spam-Bots', 'author' => 'Pierre Schmitz', - 'url' => 'http://www.laber-land.de', + 'url' => 'http://www.archlinux.de', ); class FunnyDot { -private static function hexVal($in) - { - $result = preg_replace('/[^0-9a-fA-F]/', '', $in); - return (empty($result) ? 0 : $result); - } - public static function checkAntiSpamHash() { global $wgAntiSpamHash, $wgAntiSpamTimeout, $wgAntiSpamWait; @@ -26,7 +20,7 @@ public static function checkAntiSpamHash() if (!empty($_COOKIE['AntiSpamTime']) && !empty($_COOKIE['AntiSpamHash'])) { $time = intval($_COOKIE['AntiSpamTime']); - $hash = self::hexVal($_COOKIE['AntiSpamHash']); + $hash = self::$_COOKIE['AntiSpamHash']; if ($hash != sha1($time.$wgAntiSpamHash)) { |