CRM_Core_IDS
in package
Tags
Table of Contents
Properties
- $path : string
- $threshold : array<string|int, mixed>
- Define the threshold for the ids reactions.
Methods
- check() : bool
- Check function.
- createBaseConfig() : array<string|int, mixed>
- Create conservative, minimalist IDS configuration.
- createRouteConfig() : array<string|int, mixed>
- createStandardConfig() : array<string|int, mixed>
- Create the standard, general-purpose IDS configuration used by many pages.
- react() : bool
- This function reacts on the values in the incoming results array.
- create() : IDS_Init
- Create a new PHPIDS configuration object.
- kick() : mixed
- Create an error that prevents the user from continuing.
- log() : bool
- This function writes an entry about the intrusion to the database.
- warn() : array<string|int, mixed>
- Warn about IDS.
Properties
$path
private
string
$path
$threshold
Define the threshold for the ids reactions.
private
array<string|int, mixed>
$threshold
= ['log' => 25, 'warn' => 50, 'kick' => 75]
Methods
check()
Check function.
public
check(array<string|int, mixed> $route) : bool
This function includes the IDS vendor parts and runs the detection routines on the request array.
Parameters
- $route : array<string|int, mixed>
Return values
boolcreateBaseConfig()
Create conservative, minimalist IDS configuration.
public
static createBaseConfig() : array<string|int, mixed>
Return values
array<string|int, mixed>createRouteConfig()
public
static createRouteConfig(array<string|int, mixed> $route) : array<string|int, mixed>
Parameters
- $route : array<string|int, mixed>
Return values
array<string|int, mixed>createStandardConfig()
Create the standard, general-purpose IDS configuration used by many pages.
public
static createStandardConfig() : array<string|int, mixed>
Return values
array<string|int, mixed>react()
This function reacts on the values in the incoming results array.
public
react(IDS_Report $result) : bool
Depending on the impact value certain actions are performed.
Parameters
- $result : IDS_Report
Return values
boolcreate()
Create a new PHPIDS configuration object.
protected
static create(array<string|int, mixed> $config) : IDS_Init
Parameters
- $config : array<string|int, mixed>
-
PHPIDS configuration array (per INI format).
Return values
IDS_Initkick()
Create an error that prevents the user from continuing.
private
kick() : mixed
Tags
log()
This function writes an entry about the intrusion to the database.
private
log(IDS_Report $result[, int $reaction = 0 ]) : bool
Parameters
- $result : IDS_Report
- $reaction : int = 0
Return values
boolwarn()
Warn about IDS.
private
warn(array<string|int, mixed> $result) : array<string|int, mixed>
Parameters
- $result : array<string|int, mixed>