20 defined(
'XOOPS_ROOT_PATH') or die('Restricted access');
31 $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="" />';
33 if (!empty($this->config[
'maxattempts'])) {
48 if ($val_a > $val_b) {
49 $expression =
"{$val_a} - {$val_b} = ?";
50 $this->code = $val_a - $val_b;
52 $expression =
"{$val_a} + {$val_b} = ?";
53 $this->code = $val_a + $val_b;
55 return '<span style="font-style: normal; font-weight: bold; font-size: 100%; font-color: #333; border: 1px solid #333; padding: 1px 5px;">'.$expression.
'</span>';