This class is the extended version of excelent code made by kummer.
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
|---|---|
| version | 1.0.1 |
| see | \global\http://contenido.org/forum/viewtopic.php?p=113492#113492 |
HttpInputValidator() : \HttpInputValidator
Configuration path $sConfigPath is mandatory and has to contain the complete path to configuration file with defined parameters.
The class provides two modes: training and arcade. Training mode only logs violations - if log path is given into log file otherwise as comment into HTML output. Arcade mode is made for killing - every violation will cause an hard exit!
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
|---|
checkGetParams() : bool
| see | \cRequestValidator::checkParams() |
|---|---|
| inherited_from | \cRequestValidator::checkGetParams() |
boolTrue if every parameter is finecheckParameter(string $type, string $key, mixed $value) : bool
| see | \cRequestValidator::checkParams() |
|---|---|
| inherited_from | \cRequestValidator::checkParameter() |
stringGET or POST
stringthe key of the parameter
mixedthe value of the parameter
boolTrue if the parameter is finecheckParams() : bool
Parameters which aren't defined in config.http_check.php are considered to be fine
| inherited_from | \cRequestValidator::checkParams() |
|---|
boolTrue if every parameter is finecheckPostParams() : bool
| see | \cRequestValidator::checkParams() |
|---|---|
| inherited_from | \cRequestValidator::checkPostParams() |
boolTrue if every parameter is finegetBadParameter() : string
| inherited_from | \cRequestValidator::getBadParameter() |
|---|
stringthe key of the bad parameterisRegularPost(string $sKey) : mixed
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
|---|
string
mixedshowPosts($bReturn) : string
| deprecated | [2012-07-03] This class was replaced by cRequestValidator |
|---|
stringcheckArray(array $arr, string $type) : bool
| inherited_from | \cRequestValidator::checkArray() |
|---|
arraythe array which has to be checked
stringGET or POST
booltrue if everything is fine.logHackTrial()
| inherited_from | \cRequestValidator::logHackTrial() |
|---|
__construct() : void
CON_ENVIRONMENT . '/config.http_check.php'.
| inherited_from | \cRequestValidator::__construct() |
|---|
\cFileNotFoundException |
if the configuration can not be loaded |
|---|
$_blacklist : array
If any of these is set the request will be invalid
| inherited_from | \cRequestValidator::$$_blacklist |
|---|
$_check : array
Structure has to be:
$check['GET']['param1'] = VALIDATE_FORMAT;
$check['POST']['param2'] = VALIDATE_FORMAT;
Possible formats are defined as constants in top of these class file.
| inherited_from | \cRequestValidator::$$_check |
|---|
$_configPath : string
| inherited_from | \cRequestValidator::$$_configPath |
|---|
$_failure : string
| inherited_from | \cRequestValidator::$$_failure |
|---|
$_log : boolean
| inherited_from | \cRequestValidator::$$_log |
|---|
$_logPath : string
| inherited_from | \cRequestValidator::$$_logPath |
|---|
$_mode : string
| inherited_from | \cRequestValidator::$$_mode |
|---|
CHECK_AREASTRING : string
| inherited_from | \cRequestValidator::CHECK_AREASTRING |
|---|
CHECK_BELANG : string
| inherited_from | \cRequestValidator::CHECK_BELANG |
|---|
CHECK_HASH32 : string
| inherited_from | \cRequestValidator::CHECK_HASH32 |
|---|
CHECK_INTEGER : string
| inherited_from | \cRequestValidator::CHECK_INTEGER |
|---|
CHECK_PATHSTRING : string
| inherited_from | \cRequestValidator::CHECK_PATHSTRING |
|---|
CHECK_PRIMITIVESTRING : string
| inherited_from | \cRequestValidator::CHECK_PRIMITIVESTRING |
|---|
CHECK_STRING : string
| inherited_from | \cRequestValidator::CHECK_STRING |
|---|