/** * XoopsCaptchaText::render() * * @return */ function render() { parent::render(); parent::loadConfig(); $form = $this->loadText() . ' <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; }
function render() { parent::render(); parent::loadConfig(); $form = $this->loadText() . " <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; }
/** * XoopsCaptcha::loadForm() * * @return string */ public function loadForm() { $form = $this->handler->render(); $this->setCode(); return $form; }