XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
Protector Class Reference

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 3 of file protector.php.

Member Function Documentation

Protector::_bigumbrella_check_recursive (   $val)

Definition at line 477 of file protector.php.

Referenced by bigumbrella_init().

Here is the caller graph for this function:

Protector::_dblayertrap_check_recursive (   $val)

Definition at line 440 of file protector.php.

References return.

Referenced by dblayertrap_init().

Here is the caller graph for this function:

Protector::_initial_recursive (   $val,
  $key 
)

Definition at line 86 of file protector.php.

References false, output_log(), and replace_doubtful().

Referenced by Protector().

Here is the call graph for this function:

Here is the caller graph for this function:

Protector::_spam_check_point_recursive (   $val)

Definition at line 1000 of file protector.php.

Referenced by spam_check().

Here is the caller graph for this function:

Protector::bigumbrella_init ( )

Definition at line 491 of file protector.php.

References $_GET, $_SERVER, and _bigumbrella_check_recursive().

Here is the call graph for this function:

Protector::bigumbrella_outputcheck (   $s)

Definition at line 503 of file protector.php.

Protector::call_filter (   $type,
  $dying_message = '' 
)

Definition at line 1136 of file protector.php.

References $ret, $type, and ProtectorFilterHandler\getInstance().

Referenced by check_brute_force(), check_dos_attack(), purge(), and spam_check().

Here is the call graph for this function:

Here is the caller graph for this function:

Protector::check_brute_force ( )

Definition at line 963 of file protector.php.

References $_POST, $_SERVER, $result, $ret, $xoopsDB, call_filter(), exit, output_log(), register_bad_ips(), return, and true.

Here is the call graph for this function:

Protector::check_contami_systemglobals ( )

Definition at line 721 of file protector.php.

References $_safe_contami.

Protector::check_dos_attack (   $uid = 0,
  $can_ban = false 
)

Definition at line 838 of file protector.php.

References $_SERVER, $result, $ret, $uid, $xoopsDB, call_filter(), deny_by_htaccess(), exit, false, output_log(), register_bad_ips(), true, and write_file_bwlimit().

Here is the call graph for this function:

Protector::check_sql_isolatedcommentin (   $sanitize = true)

Definition at line 738 of file protector.php.

References $_safe_isocom, false, replace_doubtful(), and true.

Here is the call graph for this function:

Protector::check_sql_union (   $sanitize = true)

Definition at line 759 of file protector.php.

References $_safe_union, false, replace_doubtful(), and true.

Here is the call graph for this function:

Protector::check_uploaded_files ( )

Definition at line 666 of file protector.php.

References $_safe_badext, $ext, false, and true.

Protector::dblayertrap_init (   $force_override = false)

Definition at line 458 of file protector.php.

References $_GET, $_POST, $_SERVER, $GLOBALS, _dblayertrap_check_recursive(), and return.

Here is the call graph for this function:

Protector::deny_by_htaccess (   $ip = null)

Definition at line 387 of file protector.php.

References $_SERVER, false, and true.

Referenced by check_dos_attack().

Here is the caller graph for this function:

Protector::disable_features ( )

Definition at line 1040 of file protector.php.

References $_GET, $_POST, $_SERVER, exit, and output_log().

Here is the call graph for this function:

Protector::eliminate_dotdot ( )

Definition at line 567 of file protector.php.

References $_GET, $_REQUEST, output_log(), and true.

Here is the call graph for this function:

Protector::get_bad_ips (   $with_jailed_time = false)

Definition at line 290 of file protector.php.

References $bad_ips, $pos, and get_filepath4badips().

Referenced by register_bad_ips().

Here is the call graph for this function:

Here is the caller graph for this function:

Protector::get_bwlimit ( )

Definition at line 246 of file protector.php.

References get_filepath4bwlimit().

Here is the call graph for this function:

static Protector::get_filepath4badips ( )
static

Definition at line 312 of file protector.php.

References XOOPS_DB_PREFIX, and XOOPS_DB_USER.

Referenced by get_bad_ips(), and write_file_badips().

Here is the caller graph for this function:

static Protector::get_filepath4bwlimit ( )
static

Definition at line 255 of file protector.php.

References XOOPS_DB_PREFIX, and XOOPS_DB_USER.

Referenced by get_bwlimit(), and write_file_bwlimit().

Here is the caller graph for this function:

Protector::get_filepath4confighcache ( )

Definition at line 338 of file protector.php.

References XOOPS_DB_PREFIX, and XOOPS_DB_USER.

Referenced by Protector(), and updateConfFromDb().

Here is the caller graph for this function:

static Protector::get_filepath4group1ips ( )
static

Definition at line 332 of file protector.php.

References XOOPS_DB_PREFIX, and XOOPS_DB_USER.

Referenced by get_group1_ips().

Here is the caller graph for this function:

Protector::get_group1_ips (   $with_info = false)

Definition at line 318 of file protector.php.

References $group1_ips, and get_filepath4group1ips().

Here is the call graph for this function:

& Protector::get_ref_from_base64index ( $current,
  $indexes 
)

Definition at line 621 of file protector.php.

References $index, and false.

Referenced by replace_doubtful().

Here is the caller graph for this function:

Protector::getConf ( )

Definition at line 159 of file protector.php.

References $_conf.

Protector::getDblayertrapDoubtfuls ( )

Definition at line 434 of file protector.php.

References $_dblayertrap_doubtfuls.

Protector::intval_allrequestsendid ( )

Definition at line 528 of file protector.php.

References $_GET, $_POST, $_REQUEST, and true.

Protector::ip_match (   $ips)

Definition at line 344 of file protector.php.

References $_SERVER, false, and true.

Protector::output_log (   $type = 'UNKNOWN',
  $uid = 0,
  $unique_check = false,
  $level = 1 
)
Protector::Protector ( )

Definition at line 56 of file protector.php.

References $_GET, $_POST, _initial_recursive(), get_filepath4confighcache(), and true.

Referenced by getInstance().

Here is the call graph for this function:

Here is the caller graph for this function:

Protector::purge (   $redirect_to_top = false)

Definition at line 165 of file protector.php.

References $_SESSION, $GLOBALS, $ret, call_filter(), and exit.

Here is the call graph for this function:

Protector::register_bad_ips (   $jailed_time = 0,
  $ip = null 
)

Definition at line 278 of file protector.php.

References $_SERVER, $bad_ips, false, get_bad_ips(), and write_file_badips().

Referenced by check_brute_force(), and check_dos_attack().

Here is the call graph for this function:

Here is the caller graph for this function:

Protector::replace_doubtful (   $key,
  $val 
)

Definition at line 632 of file protector.php.

References $_GET, $_POST, $_REQUEST, exit, and get_ref_from_base64index().

Referenced by _initial_recursive(), check_sql_isolatedcommentin(), and check_sql_union().

Here is the call graph for this function:

Here is the caller graph for this function:

Protector::setConn (   $conn)

Definition at line 153 of file protector.php.

Protector::spam_check (   $points4deny,
  $uid 
)

Definition at line 1026 of file protector.php.

References $_POST, $_SERVER, $ret, $uid, _spam_check_point_recursive(), call_filter(), exit, and output_log().

Here is the call graph for this function:

Protector::stopforumspam (   $uid)

Definition at line 777 of file protector.php.

References $_POST, $_SERVER, $query, $result, $uid, $url, and output_log().

Here is the call graph for this function:

Protector::updateConfFromDb ( )

Definition at line 126 of file protector.php.

References $constpref, $result, false, get_filepath4confighcache(), true, and XOOPS_DB_PREFIX.

Here is the call graph for this function:

Protector::write_file_badips (   $bad_ips)

Definition at line 261 of file protector.php.

References $bad_ips, false, get_filepath4badips(), and true.

Referenced by register_bad_ips().

Here is the call graph for this function:

Here is the caller graph for this function:

Protector::write_file_bwlimit (   $expire)

Definition at line 229 of file protector.php.

References false, get_filepath4bwlimit(), and true.

Referenced by check_dos_attack().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Protector::$_bad_globals = array()

Definition at line 11 of file protector.php.

Protector::$_bigumbrella_doubtfuls = array()

Definition at line 17 of file protector.php.

Protector::$_conf = array()

Definition at line 8 of file protector.php.

Referenced by getConf().

Protector::$_conf_serialized = ''

Definition at line 9 of file protector.php.

Protector::$_conn = null

Definition at line 7 of file protector.php.

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

Definition at line 20 of file protector.php.

Protector::$_dblayertrap_doubtfuls = array()

Definition at line 19 of file protector.php.

Referenced by getDblayertrapDoubtfuls().

Protector::$_done_badext = false

Definition at line 29 of file protector.php.

Protector::$_done_contami = false

Definition at line 33 of file protector.php.

Protector::$_done_dos = false

Definition at line 36 of file protector.php.

Protector::$_done_dotdot = false

Definition at line 31 of file protector.php.

Protector::$_done_intval = false

Definition at line 30 of file protector.php.

Protector::$_done_isocom = false

Definition at line 34 of file protector.php.

Protector::$_done_nullbyte = false

Definition at line 32 of file protector.php.

Protector::$_done_union = false

Definition at line 35 of file protector.php.

Protector::$_dos_stage = null

Definition at line 48 of file protector.php.

Protector::$_doubtful_requests = array()

Definition at line 16 of file protector.php.

Protector::$_logged = false

Definition at line 27 of file protector.php.

Protector::$_safe_badext = true

Definition at line 38 of file protector.php.

Referenced by check_uploaded_files().

Protector::$_safe_contami = true

Definition at line 39 of file protector.php.

Referenced by check_contami_systemglobals().

Protector::$_safe_isocom = true

Definition at line 40 of file protector.php.

Referenced by check_sql_isolatedcommentin().

Protector::$_safe_union = true

Definition at line 41 of file protector.php.

Referenced by check_sql_union().

Protector::$_should_be_banned = false

Definition at line 46 of file protector.php.

Protector::$_should_be_banned_time0 = false

Definition at line 45 of file protector.php.

Protector::$_spamcount_uri = 0

Definition at line 43 of file protector.php.

Protector::$error = false

Definition at line 15 of file protector.php.

Protector::$ip_matched_info = null

Definition at line 50 of file protector.php.

Protector::$last_error_type = 'UNKNOWN'

Definition at line 52 of file protector.php.

Protector::$message = ''

Definition at line 13 of file protector.php.

Protector::$mydirname

Definition at line 5 of file protector.php.

Protector::$warning = false

Definition at line 14 of file protector.php.


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