27 $this->
object = $object;
28 $this->
config = $object->config;
32 parent::__construct(
'',
'xcaptchaform',
$xoops->getEnv(
'PHP_SELF'),
'post',
true,
'horizontal');
34 $this->
addElement(
new Xoops\Form\Text(_XCAPTCHA_NUM_CHARS,
'num_chars', 2, 2, $this->
config[
'num_chars']),
true);
36 $this->
addElement(
new Xoops\Form\RadioYesNo(_XCAPTCHA_CASESENSITIVE,
'casesensitive', $this->
config[
'casesensitive']));
39 for (
$i = 10;
$i <= 30; ++
$i) {
40 $fontmin_form->addOption(
$i,
$i);
45 for (
$i = 10;
$i <= 30; ++
$i) {
46 $fontmax_form->addOption(
$i,
$i);
50 $backtype_form =
new Xoops\Form\Select(_XCAPTCHA_BACKGROUND_TYPE,
'background_type', $this->
config[
'background_type'], $size = 7);
51 $backtype_form->addOption(0, _XCAPTCHA_BACKGROUND_BAR);
52 $backtype_form->addOption(1, _XCAPTCHA_BACKGROUND_CIRCLE);
53 $backtype_form->addOption(2, _XCAPTCHA_BACKGROUND_LINE);
54 $backtype_form->addOption(3, _XCAPTCHA_BACKGROUND_RECTANGLE);
55 $backtype_form->addOption(4, _XCAPTCHA_BACKGROUND_ELLIPSE);
56 $backtype_form->addOption(5, _XCAPTCHA_BACKGROUND_POLYGONE);
57 $backtype_form->addOption(100, _XCAPTCHA_BACKGROUND_IMAGE);
60 $backnum_form =
new Xoops\Form\Select(_XCAPTCHA_BACKGROUND_NUM,
'background_num', $this->
config[
'background_num']);
61 for (
$i = 10;
$i <= 100;
$i =
$i+10) {
62 $backnum_form->addOption(
$i,
$i);
66 $polygon_point =
new Xoops\Form\Select(_XCAPTCHA_POLYGON_POINT,
'polygon_point', $this->
config[
'polygon_point']);
67 for (
$i = 3;
$i <= 20; ++
$i) {
68 $polygon_point->addOption(
$i,
$i);
72 $value = implode(
'|', $this->
config[
'skip_characters']);
73 $this->
addElement(
new Xoops\Form\TextArea(_XCAPTCHA_SKIP_CHARACTERS,
'skip_characters', $value, 5, 50),
true);
82 $cancel_send->setExtra(
"onclick='javascript:history.go(-1);'");