XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
image.php
Go to the documentation of this file.
1
<?php
19
class
XcaptchaImage
extends
Xcaptcha
20
{
21
public
$config
= array();
22
23
public
$plugin
;
24
25
public
function
__construct
()
26
{
27
$this->xcaptcha_handler =
Xcaptcha::getInstance
();
28
$this->
config
= $this->xcaptcha_handler->loadConfig(
'image'
);
29
$this->plugin =
'image'
;
30
}
31
32
public
function
VerifyData
()
33
{
34
$system
=
System::getInstance
();
35
$config
= array();
36
$_POST[
'num_chars'
] =
$system
->CleanVars($_POST,
'num_chars'
, 6,
'int'
);
37
$_POST[
'casesensitive'
] =
$system
->CleanVars($_POST,
'casesensitive'
,
false
,
'boolean'
);
38
$_POST[
'fontsize_min'
] =
$system
->CleanVars($_POST,
'fontsize_min'
, 10,
'int'
);
39
$_POST[
'fontsize_max'
] =
$system
->CleanVars($_POST,
'fontsize_max'
, 24,
'int'
);
40
$_POST[
'background_type'
] =
$system
->CleanVars($_POST,
'background_type'
, 0,
'int'
);
41
$_POST[
'background_num'
] =
$system
->CleanVars($_POST,
'background_num'
, 50,
'int'
);
42
$_POST[
'polygon_point'
] =
$system
->CleanVars($_POST,
'polygon_point'
, 3,
'int'
);
43
$_POST[
'skip_characters'
] =
$system
->CleanVars($_POST,
'skip_characters'
,
'o|0|i|l|1'
,
'string'
);
44
$_POST[
'skip_characters'
] = explode(
'|'
, $_POST[
'skip_characters'
]);
45
foreach
(array_keys($this->
config
) as $key) {
46
$config
[$key] = $_POST[$key];
47
}
48
return
$config
;
49
}
50
}
$system
$system
Definition:
page_extensioninstaller.php:74
System\getInstance
static getInstance()
Definition:
system.php:46
XcaptchaImage\__construct
__construct()
Definition:
image.php:25
config
Xcaptcha\getInstance
static getInstance()
Definition:
xcaptcha.php:40
XcaptchaImage\VerifyData
VerifyData()
Definition:
image.php:32
XcaptchaImage\$config
$config
Definition:
image.php:21
XcaptchaImage\$plugin
$plugin
Definition:
image.php:23
Xcaptcha
XcaptchaImage
Definition:
image.php:19
usr64
htdocs
modules
xcaptcha
plugins
image.php
Generated on Fri May 22 2015 03:06:59 for XOOPS by
1.8.9.1