|
|
@@ -95,19 +95,19 @@ if (!$result->isValid()) {
|
|
|
validating the reCAPTCHA are automated for you.
|
|
|
</para>
|
|
|
</sect2>
|
|
|
-
|
|
|
+
|
|
|
<sect2 id="zend.service.recaptcha.mailhide">
|
|
|
<title>Hiding email addresses</title>
|
|
|
-
|
|
|
+
|
|
|
<para>
|
|
|
- <classname>Zend_Service_ReCaptcha_MailHide</classname> can be used to hide email
|
|
|
- addresses. It will replace a part of an email address with a link that opens a popup
|
|
|
- window with a reCAPTCHA challenge. Solving the challenge will reveal the complete
|
|
|
- email address.
|
|
|
+ <classname>Zend_Service_ReCaptcha_MailHide</classname> can be used to hide email
|
|
|
+ addresses. It will replace a part of an email address with a link that opens a popup
|
|
|
+ window with a reCAPTCHA challenge. Solving the challenge will reveal the complete
|
|
|
+ email address.
|
|
|
</para>
|
|
|
<para>
|
|
|
- In order to use this component you will need
|
|
|
- <ulink url="http://recaptcha.net/whyrecaptcha.html">an account</ulink> to generate
|
|
|
+ In order to use this component you will need
|
|
|
+ <ulink url="http://recaptcha.net/whyrecaptcha.html">an account</ulink> to generate
|
|
|
public and private keys for the mailhide API.
|
|
|
</para>
|
|
|
<example id="zend.service.recaptcha.mailhide.example-1">
|
|
|
@@ -128,11 +128,11 @@ print($mailHide);
|
|
|
]]></programlisting>
|
|
|
</example>
|
|
|
<para>
|
|
|
- The example above will display "m...@example.com" where "..." has a link that opens up
|
|
|
+ The example above will display "m...@example.com" where "..." has a link that opens up
|
|
|
a popup window with a reCAPTCHA challenge.
|
|
|
</para>
|
|
|
<para>
|
|
|
- The public key, private key, and the email address can also be specified in the
|
|
|
+ The public key, private key, and the email address can also be specified in the
|
|
|
constructor of the class. A fourth argument also exists that enables you to set some
|
|
|
options for the component. The available options are listed in the following table:
|
|
|
<table id="zend.service.recaptcha.mailhide.options.table">
|
|
|
@@ -176,8 +176,8 @@ print($mailHide);
|
|
|
</table>
|
|
|
</para>
|
|
|
<para>
|
|
|
- The configuration options can be set by sending them as the fourth argument to the
|
|
|
- constructor or by calling <methodname>setOptions($options)</methodname>, which takes
|
|
|
+ The configuration options can be set by sending them as the fourth argument to the
|
|
|
+ constructor or by calling <methodname>setOptions($options)</methodname>, which takes
|
|
|
an associative array or an instance of <link linkend="zend.config">Zend_Config</link>.
|
|
|
</para>
|
|
|
<example id="zend.service.recaptcha.mailhide.example-2">
|