Guest User

Untitled

a guest
Oct 22nd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. <?php
  2.  
  3. class Form_ResendActivationEmail extends Zend_Form
  4. {
  5.  
  6. function __construct($options = null)
  7. {
  8. parent::__construct($options);
  9.  
  10. $publickey = '6LdUBLwSAAAAAMTfAwEUVNqVpiG9s0tVPSxz8bct';
  11. $privatekey = '6LdUBLwSAAAAAPUigi8dIYyrMSJuNc9kQpt2fIUV';
  12.  
  13. $recaptcha = new Zend_Service_ReCaptcha($publickey, $privatekey);
  14.  
  15. $captcha = new Zend_Form_Element_Captcha('captcha',
  16. array(
  17. 'captcha' => 'ReCaptcha',
  18. 'captchaOptions' => array('captcha' => 'ReCaptcha', 'service' => $recaptcha),
  19. 'ignore' => true
  20. )
  21. );
  22.  
  23. $submit = new Nutriz_Form_Element_Submit('resend');
  24.  
  25. $submit->setLabel('form_reg_resend')
  26. ->setAttrib('class','modal_resend_submit');
  27.  
  28. $this->addElements(array($captcha, $submit));
  29.  
  30. $this->setAttrib('id', 'resend_form');
  31. }
  32.  
  33. }
Add Comment
Please, Sign In to add comment