XOOPS 2.5.6
Final
|
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 | |
Definition at line 3 of file protector.php.
Protector::_bigumbrella_check_recursive | ( | $val | ) |
Definition at line 477 of file protector.php.
Referenced by bigumbrella_init().
Protector::_dblayertrap_check_recursive | ( | $val | ) |
Definition at line 440 of file protector.php.
References return.
Referenced by dblayertrap_init().
Protector::_initial_recursive | ( | $val, | |
$key | |||
) |
Definition at line 86 of file protector.php.
References false, output_log(), and replace_doubtful().
Referenced by Protector().
Protector::_spam_check_point_recursive | ( | $val | ) |
Definition at line 1000 of file protector.php.
Referenced by spam_check().
Protector::bigumbrella_init | ( | ) |
Definition at line 491 of file protector.php.
References $_GET, $_SERVER, and _bigumbrella_check_recursive().
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().
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.
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().
Protector::check_sql_isolatedcommentin | ( | $sanitize = true | ) |
Definition at line 738 of file protector.php.
References $_safe_isocom, false, replace_doubtful(), and true.
Protector::check_sql_union | ( | $sanitize = true | ) |
Definition at line 759 of file protector.php.
References $_safe_union, false, replace_doubtful(), and true.
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.
Protector::deny_by_htaccess | ( | $ip = null | ) |
Definition at line 387 of file protector.php.
References $_SERVER, false, and true.
Referenced by check_dos_attack().
Protector::disable_features | ( | ) |
Definition at line 1040 of file protector.php.
References $_GET, $_POST, $_SERVER, exit, and output_log().
Protector::eliminate_dotdot | ( | ) |
Definition at line 567 of file protector.php.
References $_GET, $_REQUEST, output_log(), and true.
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().
Protector::get_bwlimit | ( | ) |
Definition at line 246 of file protector.php.
References get_filepath4bwlimit().
|
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().
|
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().
Protector::get_filepath4confighcache | ( | ) |
Definition at line 338 of file protector.php.
References XOOPS_DB_PREFIX, and XOOPS_DB_USER.
Referenced by Protector(), and updateConfFromDb().
|
static |
Definition at line 332 of file protector.php.
References XOOPS_DB_PREFIX, and XOOPS_DB_USER.
Referenced by get_group1_ips().
Protector::get_group1_ips | ( | $with_info = false | ) |
Definition at line 318 of file protector.php.
References $group1_ips, and get_filepath4group1ips().
& Protector::get_ref_from_base64index | ( | & | $current, |
$indexes | |||
) |
Definition at line 621 of file protector.php.
Referenced by replace_doubtful().
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.
|
static |
Definition at line 116 of file protector.php.
References Protector().
Referenced by protector_precommon_badip_errorlog\execute(), protector_precommon_badip_message\execute(), ProtectorMySQLDatabase\injectionFound(), protector_postcommon(), protector_prepare(), ProtectorFilterAbstract\ProtectorFilterAbstract(), ProtectorFilterHandler\ProtectorFilterHandler(), and ProtectorMySQLDatabase\ProtectorMySQLDatabase().
Protector::intval_allrequestsendid | ( | ) |
Protector::ip_match | ( | $ips | ) |
Definition at line 344 of file protector.php.
Protector::output_log | ( | $type = 'UNKNOWN' , |
|
$uid = 0 , |
|||
$unique_check = false , |
|||
$level = 1 |
|||
) |
Definition at line 199 of file protector.php.
References $_SERVER, $result, $type, $uid, true, XOOPS_DB_HOST, XOOPS_DB_NAME, XOOPS_DB_PASS, XOOPS_DB_PREFIX, and XOOPS_DB_USER.
Referenced by _initial_recursive(), check_brute_force(), check_dos_attack(), disable_features(), eliminate_dotdot(), spam_check(), and stopforumspam().
Protector::Protector | ( | ) |
Definition at line 56 of file protector.php.
References $_GET, $_POST, _initial_recursive(), get_filepath4confighcache(), and true.
Referenced by getInstance().
Protector::purge | ( | $redirect_to_top = false | ) |
Definition at line 165 of file protector.php.
References $_SESSION, $GLOBALS, $ret, call_filter(), and exit.
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().
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().
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().
Protector::stopforumspam | ( | $uid | ) |
Definition at line 777 of file protector.php.
References $_POST, $_SERVER, $query, $result, $uid, $url, and output_log().
Protector::updateConfFromDb | ( | ) |
Definition at line 126 of file protector.php.
References $constpref, $result, false, get_filepath4confighcache(), true, and XOOPS_DB_PREFIX.
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().
Protector::write_file_bwlimit | ( | $expire | ) |
Definition at line 229 of file protector.php.
References false, get_filepath4bwlimit(), and true.
Referenced by check_dos_attack().
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 |
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.