checkGetParams() : bool
checkParameter(string $type, string $key, mixed $value) : bool
| see | \cRequestValidator::checkParams() |
|---|
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
boolTrue if every parameter is finecheckPostParams() : bool
getBadParameter() : string
stringthe key of the bad parametercheckArray(array $arr, string $type) : bool
arraythe array which has to be checked
stringGET or POST
booltrue if everything is fine.logHackTrial()
__construct() : void
CON_ENVIRONMENT . '/config.http_check.php'.
\cFileNotFoundException |
if the configuration can not be loaded |
|---|
$_blacklist : array
If any of these is set the request will be invalid
$_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.
$_configPath : string
$_failure : string
$_log : boolean
$_logPath : string
$_mode : string
$_instance : \cRequestValidator
CHECK_AREASTRING : string
CHECK_BELANG : string
CHECK_HASH32 : string
CHECK_INTEGER : string
CHECK_PATHSTRING : string
CHECK_PRIMITIVESTRING : string
CHECK_STRING : string