13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Service |
16 * @package Zend_Service |
17 * @subpackage ReCaptcha |
17 * @subpackage ReCaptcha |
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 */ |
20 */ |
21 |
21 |
22 /** @see Zend_Service_ReCaptcha */ |
22 /** @see Zend_Service_ReCaptcha */ |
23 require_once 'Zend/Service/ReCaptcha.php'; |
23 require_once 'Zend/Service/ReCaptcha.php'; |
26 * Zend_Service_ReCaptcha_MailHide |
26 * Zend_Service_ReCaptcha_MailHide |
27 * |
27 * |
28 * @category Zend |
28 * @category Zend |
29 * @package Zend_Service |
29 * @package Zend_Service |
30 * @subpackage ReCaptcha |
30 * @subpackage ReCaptcha |
31 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
31 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
32 * @license http://framework.zend.com/license/new-bsd New BSD License |
32 * @license http://framework.zend.com/license/new-bsd New BSD License |
33 * @version $Id: MailHide.php 20108 2010-01-06 22:05:31Z matthew $ |
33 * @version $Id: MailHide.php 24593 2012-01-05 20:35:02Z matthew $ |
34 */ |
34 */ |
35 class Zend_Service_ReCaptcha_MailHide extends Zend_Service_ReCaptcha |
35 class Zend_Service_ReCaptcha_MailHide extends Zend_Service_ReCaptcha |
36 { |
36 { |
37 /**#@+ |
37 /**#@+ |
38 * Encryption constants |
38 * Encryption constants |
310 $url = $this->_getUrl(); |
310 $url = $this->_getUrl(); |
311 |
311 |
312 $enc = $this->getOption('encoding'); |
312 $enc = $this->getOption('encoding'); |
313 |
313 |
314 /* Genrate the HTML used to represent the email address */ |
314 /* Genrate the HTML used to represent the email address */ |
315 $html = htmlentities($this->getEmailLocalPart(), ENT_COMPAT, $enc) |
315 $html = htmlentities($this->getEmailLocalPart(), ENT_COMPAT, $enc) |
316 . '<a href="' |
316 . '<a href="' |
317 . htmlentities($url, ENT_COMPAT, $enc) |
317 . htmlentities($url, ENT_COMPAT, $enc) |
318 . '" onclick="window.open(\'' |
318 . '" onclick="window.open(\'' |
319 . htmlentities($url, ENT_COMPAT, $enc) |
319 . htmlentities($url, ENT_COMPAT, $enc) |
320 . '\', \'\', \'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' |
320 . '\', \'\', \'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' |
321 . $this->_options['popupWidth'] |
321 . $this->_options['popupWidth'] |
322 . ',height=' |
322 . ',height=' |
323 . $this->_options['popupHeight'] |
323 . $this->_options['popupHeight'] |
324 . '\'); return false;" title="' |
324 . '\'); return false;" title="' |
325 . $this->_options['linkTitle'] |
325 . $this->_options['linkTitle'] |
326 . '">' . $this->_options['linkHiddenText'] . '</a>@' |
326 . '">' . $this->_options['linkHiddenText'] . '</a>@' |
327 . htmlentities($this->getEmailDomainPart(), ENT_COMPAT, $enc); |
327 . htmlentities($this->getEmailDomainPart(), ENT_COMPAT, $enc); |
328 |
328 |
329 return $html; |
329 return $html; |
330 } |
330 } |
331 |
331 |