Conditions | 2 |
Paths | 2 |
Total Lines | 21 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 7 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
51 | public function render() |
||
52 | { |
||
53 | $form = $this->loadText() . |
||
54 | " <input type='text' name='" . |
||
55 | $this->config['name'] . |
||
56 | "' id='" . |
||
57 | $this->config['name'] . |
||
58 | "' size='" . |
||
59 | $this->config['num_chars'] . |
||
60 | "' maxlength='" . |
||
61 | $this->config['num_chars'] . |
||
62 | "' value='' />"; |
||
63 | $rule = constant('XOOPS_CAPTCHA_RULE_TEXT'); |
||
64 | if (!empty($rule)) { |
||
65 | $form .= " <small>{$rule}</small>"; |
||
66 | } |
||
67 | |||
68 | $this->setCode(); |
||
69 | |||
70 | return $form; |
||
71 | } |
||
72 | |||
91 |