Example #1
0
 function render()
 {
     parent::render();
     parent::loadConfig();
     $form = $this->loadText() . "&nbsp;&nbsp; <input type='text' name='" . $this->config["name"] . "' id='" . $this->config["name"] . "' size='" . $this->config["num_chars"] . "' maxlength='" . $this->config["num_chars"] . "' value='' />";
     $form .= "<br />" . $this->config["rule_text"];
     if (!empty($this->config["maxattempt"])) {
         $form .= "<br />" . sprintf($this->config["maxattempt_text"], $this->config["maxattempt"]);
     }
     return $form;
 }
Example #2
0
 /**
  * XoopsCaptchaText::render()
  *
  * @return
  */
 function render()
 {
     parent::render();
     parent::loadConfig();
     $form = $this->loadText() . '&nbsp;&nbsp; <input type="text" name="' . $this->config['name'] . '" id="' . $this->config['name'] . '" size="' . $this->config['num_chars'] . '" maxlength="' . $this->config['num_chars'] . '" value="" />';
     $form .= '<br />' . $this->config['rule_text'];
     if (!empty($this->config['maxattempt'])) {
         $form .= '<br />' . sprintf($this->config['maxattempt_text'], $this->config['maxattempt']);
     }
     return $form;
 }
Example #3
0
 /**
  * XoopsCaptchaImage::__construct()
  *
  * @param mixed $handler
  */
 function __construct($handler = null)
 {
     parent::__construct($handler);
     parent::loadConfig('image');
 }
Example #4
0
 /**
  * XoopsCaptcha::loadForm()
  *
  * @return string
  */
 public function loadForm()
 {
     $form = $this->handler->render();
     $this->setCode();
     return $form;
 }