From a4003750c3a8a4d94ed673cb21696569cd67ce37 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 27 Jun 2007 17:06:34 +0200 Subject: =?UTF-8?q?Neue=20Foren-Adresse=20(forum.archlinux.de)=20eingef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/FunnyDot.php | 10 ++-------- extensions/LLAuthPlugin.php | 6 +++--- 2 files changed, 5 insertions(+), 11 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)) { diff --git a/extensions/LLAuthPlugin.php b/extensions/LLAuthPlugin.php index f5bb718f..93edbe4a 100644 --- a/extensions/LLAuthPlugin.php +++ b/extensions/LLAuthPlugin.php @@ -4,9 +4,9 @@ $wgHooks['isValidPassword'][] = 'LLAuthPlugin::isValidPassword'; $wgExtensionCredits['other'][] = array( 'name' => 'LLAuthPlugin', - 'description' => 'Authentifizierung am Laber-Land-Forum', + 'description' => 'Authentifizierung am LL-Forum', 'author' => 'Pierre Schmitz', - 'url' => 'http://www.laber-land.de', + 'url' => 'http://www.archlinux.de', ); require_once('includes/AuthPlugin.php'); @@ -55,7 +55,7 @@ class LLAuthPlugin extends AuthPlugin { function modifyUITemplate( &$template ) { $template->set( 'usedomain', false ); - $template->set('link', 'Um Dich hier anzumelden, nutze Deine Konto-Daten aus dem archlinux.de-Forum.'); + $template->set('link', 'Um Dich hier anzumelden, nutze Deine Konto-Daten aus dem archlinux.de-Forum.'); } function setDomain( $domain ) { -- cgit v1.2.2