API - XOOPS 2.5.11 Beta 2
By monxoops.fr
Protector Class Reference

Public Member Functions

 updateConfFromDb ()
 
 setConn ($conn)
 
 getConf ()
 
 purge ($redirect_to_top=false)
 
 purgeSession ()
 
 purgeCookies ()
 
 purgeNoExit ()
 
 output_log ($type='UNKNOWN', $uid=0, $unique_check=false, $level=1)
 
 write_file_bwlimit ($expire)
 
 get_bwlimit ()
 
 write_file_badips ($bad_ips)
 
 register_bad_ips ($jailed_time=0, $ip=null)
 
 get_bad_ips ($with_jailed_time=false)
 
 get_group1_ips ($with_info=false)
 
 get_filepath4confighcache ()
 
 ip_match ($ips)
 
 deny_by_htaccess ($ip=null)
 
 getDblayertrapDoubtfuls ()
 
 dblayertrap_init ($force_override=false)
 
 bigumbrella_init ()
 
 bigumbrella_outputcheck ($s)
 
 intval_allrequestsendid ()
 
 eliminate_dotdot ()
 
get_ref_from_base64index (&$current, $indexes)
 
 replace_doubtful ($key, $val)
 
 check_uploaded_files ()
 
 check_contami_systemglobals ()
 
 check_sql_isolatedcommentin ($sanitize=true)
 
 check_sql_union ($sanitize=true)
 
 stopforumspam ($uid)
 
 stopForumSpamLookup ($email, $ip, $username)
 
 check_dos_attack ($uid=0, $can_ban=false)
 
 check_brute_force ()
 
 spam_check ($points4deny, $uid)
 
 disable_features ()
 
 call_filter ($type, $dying_message='')
 

Static Public Member Functions

static getInstance ()
 
static get_filepath4bwlimit ()
 
static get_filepath4badips ()
 
static get_filepath4group1ips ()
 

Data Fields

 $mydirname
 
 $_conn
 
 $_conf = array()
 
 $_conf_serialized = ''
 
 $_bad_globals = array()
 
 $message = ''
 
 $warning = false
 
 $error = false
 
 $_doubtful_requests = array()
 
 $_bigumbrella_doubtfuls = array()
 
 $_dblayertrap_doubtfuls = array()
 
 $_dblayertrap_doubtful_needles
 
 $_logged = false
 
 $_done_badext = false
 
 $_done_intval = false
 
 $_done_dotdot = false
 
 $_done_nullbyte = false
 
 $_done_contami = false
 
 $_done_isocom = false
 
 $_done_union = false
 
 $_done_dos = false
 
 $_safe_badext = true
 
 $_safe_contami = true
 
 $_safe_isocom = true
 
 $_safe_union = true
 
 $_spamcount_uri = 0
 
 $_should_be_banned_time0 = false
 
 $_should_be_banned = false
 
 $_dos_stage
 
 $ip_matched_info
 
 $last_error_type = 'UNKNOWN'
 

Protected Member Functions

 __construct ()
 
 _initial_recursive ($val, $key)
 
 _dblayertrap_check_recursive ($val)
 
 _bigumbrella_check_recursive ($val)
 
 _spam_check_point_recursive ($val)
 

Detailed Description

Class Protector

Constructor & Destructor Documentation

◆ __construct()

__construct ( )
protected

Constructor

Here is the call graph for this function:

Member Function Documentation

◆ _bigumbrella_check_recursive()

_bigumbrella_check_recursive (   $val)
protected
Parameters
$val
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _dblayertrap_check_recursive()

_dblayertrap_check_recursive (   $val)
protected
Parameters
$val
Returns
null
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _initial_recursive()

_initial_recursive (   $val,
  $key 
)
protected
Parameters
$val
$key
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _spam_check_point_recursive()

_spam_check_point_recursive (   $val)
protected
Parameters
$val
Here is the call graph for this function:
Here is the caller graph for this function:

◆ bigumbrella_init()

bigumbrella_init ( )
Here is the call graph for this function:

◆ bigumbrella_outputcheck()

bigumbrella_outputcheck (   $s)
Parameters
$s
Returns
string

◆ call_filter()

call_filter (   $type,
  $dying_message = '' 
)
Parameters
$type
string$dying_message
Returns
int|mixed
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_brute_force()

check_brute_force ( )
Returns
bool|null
Here is the call graph for this function:

◆ check_contami_systemglobals()

check_contami_systemglobals ( )
Returns
bool

◆ check_dos_attack()

check_dos_attack (   $uid = 0,
  $can_ban = false 
)
Parameters
int$uid
bool$can_ban
Returns
bool
Here is the call graph for this function:

◆ check_sql_isolatedcommentin()

check_sql_isolatedcommentin (   $sanitize = true)
Parameters
bool$sanitize
Returns
bool
Here is the call graph for this function:

◆ check_sql_union()

check_sql_union (   $sanitize = true)
Parameters
bool$sanitize
Returns
bool
Here is the call graph for this function:

◆ check_uploaded_files()

check_uploaded_files ( )
Returns
bool

◆ dblayertrap_init()

dblayertrap_init (   $force_override = false)
Parameters
bool$force_override
Returns
null
Here is the call graph for this function:

◆ deny_by_htaccess()

deny_by_htaccess (   $ip = null)
Parameters
null | string | false$ip
Returns
bool
Here is the call graph for this function:
Here is the caller graph for this function:

◆ disable_features()

disable_features ( )
Here is the call graph for this function:

◆ eliminate_dotdot()

eliminate_dotdot ( )
Returns
bool
Here is the call graph for this function:

◆ get_bad_ips()

get_bad_ips (   $with_jailed_time = false)
Parameters
bool$with_jailed_time
Returns
array|mixed
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_bwlimit()

get_bwlimit ( )
Returns
mixed
Here is the call graph for this function:

◆ get_filepath4badips()

static get_filepath4badips ( )
static
Returns
string
Here is the caller graph for this function:

◆ get_filepath4bwlimit()

static get_filepath4bwlimit ( )
static
Returns
string
Here is the caller graph for this function:

◆ get_filepath4confighcache()

get_filepath4confighcache ( )
Returns
string
Here is the caller graph for this function:

◆ get_filepath4group1ips()

static get_filepath4group1ips ( )
static
Returns
string
Here is the caller graph for this function:

◆ get_group1_ips()

get_group1_ips (   $with_info = false)
Parameters
bool$with_info
Returns
array|mixed
Here is the call graph for this function:

◆ get_ref_from_base64index()

& get_ref_from_base64index ( $current,
  $indexes 
)
Parameters
$current
$indexes
Returns
bool
Here is the caller graph for this function:

◆ getConf()

getConf ( )
Returns
array

◆ getDblayertrapDoubtfuls()

getDblayertrapDoubtfuls ( )
Returns
array

◆ getInstance()

static getInstance ( )
static
Returns
Protector
Here is the caller graph for this function:

◆ intval_allrequestsendid()

intval_allrequestsendid ( )
Returns
bool

◆ ip_match()

ip_match (   $ips)
Parameters
$ips
Returns
bool
Here is the call graph for this function:

◆ output_log()

output_log (   $type = 'UNKNOWN',
  $uid = 0,
  $unique_check = false,
  $level = 1 
)
Parameters
string$type
int$uid
bool$unique_check
int$level
Returns
bool
Here is the call graph for this function:
Here is the caller graph for this function:

◆ purge()

purge (   $redirect_to_top = false)
Parameters
bool$redirect_to_top
Here is the call graph for this function:

◆ purgeCookies()

purgeCookies ( )
Here is the caller graph for this function:

◆ purgeNoExit()

purgeNoExit ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ purgeSession()

purgeSession ( )
Here is the caller graph for this function:

◆ register_bad_ips()

register_bad_ips (   $jailed_time = 0,
  $ip = null 
)
Parameters
int$jailed_time
null | string | false$ip
Returns
bool
Here is the call graph for this function:
Here is the caller graph for this function:

◆ replace_doubtful()

replace_doubtful (   $key,
  $val 
)
Parameters
$key
$val
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setConn()

setConn (   $conn)
Parameters
$conn

◆ spam_check()

spam_check (   $points4deny,
  $uid 
)
Parameters
$points4deny
$uid
Here is the call graph for this function:

◆ stopforumspam()

stopforumspam (   $uid)
Parameters
$uid
Returns
bool
Here is the call graph for this function:

◆ stopForumSpamLookup()

stopForumSpamLookup (   $email,
  $ip,
  $username 
)
Here is the caller graph for this function:

◆ updateConfFromDb()

updateConfFromDb ( )
Returns
bool
Here is the call graph for this function:

◆ write_file_badips()

write_file_badips (   $bad_ips)
Parameters
$bad_ips
Returns
bool
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_file_bwlimit()

write_file_bwlimit (   $expire)
Parameters
$expire
Returns
bool
Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ $_bad_globals

$_bad_globals = array()

◆ $_bigumbrella_doubtfuls

$_bigumbrella_doubtfuls = array()

◆ $_conf

$_conf = array()

◆ $_conf_serialized

$_conf_serialized = ''

◆ $_conn

$_conn

◆ $_dblayertrap_doubtful_needles

$_dblayertrap_doubtful_needles
Initial value:
= array(
'information_schema',
'select',
"'",
'"')

◆ $_dblayertrap_doubtfuls

$_dblayertrap_doubtfuls = array()

◆ $_done_badext

$_done_badext = false

◆ $_done_contami

$_done_contami = false

◆ $_done_dos

$_done_dos = false

◆ $_done_dotdot

$_done_dotdot = false

◆ $_done_intval

$_done_intval = false

◆ $_done_isocom

$_done_isocom = false

◆ $_done_nullbyte

$_done_nullbyte = false

◆ $_done_union

$_done_union = false

◆ $_dos_stage

$_dos_stage

◆ $_doubtful_requests

$_doubtful_requests = array()

◆ $_logged

$_logged = false

◆ $_safe_badext

$_safe_badext = true

◆ $_safe_contami

$_safe_contami = true

◆ $_safe_isocom

$_safe_isocom = true

◆ $_safe_union

$_safe_union = true

◆ $_should_be_banned

$_should_be_banned = false

◆ $_should_be_banned_time0

$_should_be_banned_time0 = false

◆ $_spamcount_uri

$_spamcount_uri = 0

◆ $error

$error = false

◆ $ip_matched_info

$ip_matched_info

◆ $last_error_type

$last_error_type = 'UNKNOWN'

◆ $message

$message = ''

◆ $mydirname

$mydirname

◆ $warning

$warning = false

The documentation for this class was generated from the following file: