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 | |
parent | 8add05d668d630e884f202b30811fe8b853097a6 (diff) |
Neue Foren-Adresse (forum.archlinux.de) eingefügt
-rw-r--r-- | extensions/FunnyDot.php | 10 | ||||
-rw-r--r-- | 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 <a href="http://www.laber-land.de/?page=Forums;id=20">archlinux.de-Forum</a>.'); + $template->set('link', 'Um Dich hier anzumelden, nutze Deine Konto-Daten aus dem <a href="http://forum.archlinux.de/">archlinux.de-Forum</a>.'); } function setDomain( $domain ) { |