Changeset 1438

Show
Ignore:
Timestamp:
05/26/11 22:02:09 (2 years ago)
Author:
Torben Brodt
Message:

finish version 1 and add screenshot

Location:
recaptcha
Files:
3 added
3 modified

Legend:

Unmodified
Added
Removed
  • recaptcha/files/lib/system/event/listener/RecaptchaListener.class.php

    r1437 r1438  
    33require_once(WCF_DIR.'lib/system/event/EventListener.class.php'); 
    44require_once(WCF_DIR.'lib/util/RecaptchaUtil.class.php'); 
     5require_once(WCF_DIR.'lib/util/UserUtil.class.php'); 
    56 
    67/** 
    7  * reCAPTCHA 
     8 * replaces the woltlab captcha through reCAPTCHA 
    89 *  
    910 * @author      Torben Brodt 
     
    4445                                $resp = RecaptchaUtil::check_answer( 
    4546                                        RECAPTCHA_PRIVATEKEY, 
    46                                         $_SERVER["REMOTE_ADDR"], 
     47                                        UserUtil::getIpAddress(), 
    4748                                        isset($_POST["recaptcha_challenge_field"]) ? $_POST["recaptcha_challenge_field"] : '', 
    4849                                        isset($_POST["recaptcha_response_field"]) ? $_POST["recaptcha_response_field"] : '' 
  • recaptcha/package.xml

    r1437 r1438  
    44                <packagename><![CDATA[reCAPTCHA]]></packagename> 
    55                <packagedescription><![CDATA[A captcha system that uses successful decodings to helps digitise books for online use. Background, and details on how to incorporate into a site. Source code in several languages, and plugins for popular blogging and CMS software.]]></packagedescription> 
    6                 <version>1.0.0 Beta 1</version> 
     6                <version>1.0.0</version> 
    77                <plugin>com.woltlab.wcf.data.image.captcha</plugin> 
    88                <date>DATE</date> 
  • recaptcha/templates.diff

    r1437 r1438  
    11--- captcha.tpl 2011-05-24 21:42:15.188033353 +0200 
    2 +++ captcha_patched.tpl 2011-05-26 21:32:35.836768300 +0200 
     2+++ captcha_patched.tpl 2011-05-26 21:44:32.666768166 +0200 
    33@@ -1,4 +1,27 @@ 
    44 {if !$enableFieldset|isset}{assign var=enableFieldset value=true}{/if} 
     
    2020+                       </div> 
    2121+                       <div class="formFieldDesc"> 
    22 +                               <p>{lang}wcf.captcha.captchaString.description{/lang}</p> 
     22+                               <p style="clear:none">{lang}wcf.captcha.captchaString.description{/lang}</p> 
    2323+                               {@$recaptchaString} 
    2424+                       </div>