|
|
@@ -93,16 +93,16 @@ if (!$result->isValid()) {
|
|
|
|
|
|
<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>, and generate
|
|
|
+ In order to use this component you will need
|
|
|
+ <ulink url="http://recaptcha.net/whyrecaptcha.html">an account</ulink>, and generate
|
|
|
public and private keys for the mailhide API.
|
|
|
</para>
|
|
|
<example id="zend.service.recaptcha.mailhide.example-1">
|
|
|
@@ -111,7 +111,7 @@ if (!$result->isValid()) {
|
|
|
// The mail address we want to hide
|
|
|
$mail = 'mail@example.com';
|
|
|
|
|
|
-// Create an instance of the mailhide component, passing it your public and private keys as well as
|
|
|
+// Create an instance of the mailhide component, passing it your public and private keys as well as
|
|
|
// the mail address you want to hide
|
|
|
$mailHide = new Zend_Service_ReCaptcha_Mailhide();
|
|
|
$mailHide->setPublicKey($pubKey);
|
|
|
@@ -123,11 +123,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 windows 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">
|
|
|
@@ -171,14 +171,14 @@ print($mailHide);
|
|
|
</table>
|
|
|
</para>
|
|
|
<para>
|
|
|
- The configuration options can be set by sending it as the fourth argument to the
|
|
|
- constructor or by calling the <methodname>setOptions($options)</methodname> which takes
|
|
|
+ The configuration options can be set by sending it as the fourth argument to the
|
|
|
+ constructor or by calling the <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">
|
|
|
<title>Generating many hidden email addresses</title>
|
|
|
<programlisting language="php"><![CDATA[
|
|
|
-// Create an instance of the mailhide component, passing it your public and private keys as well as
|
|
|
+// Create an instance of the mailhide component, passing it your public and private keys as well as
|
|
|
// well the mail address you want to hide
|
|
|
$mailHide = new Zend_Service_ReCaptcha_Mailhide();
|
|
|
$mailHide->setPublicKey($pubKey);
|