Changeset 2615546
- Timestamp:
- 10/18/2021 05:55:40 AM (4 years ago)
- Location:
- code9
- Files:
-
- 2 edited
-
tags/1.0.4/function/code9_anti_brute_foce.php (modified) (3 diffs)
-
trunk/function/code9_anti_brute_foce.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
code9/tags/1.0.4/function/code9_anti_brute_foce.php
r2615542 r2615546 21 21 22 22 $NOW['attemp_amount'] = get_option($NOW['attemp_name'], 0); 23 24 if($NOW['attemp_amount'] > 1) { 23 24 $NOW['attemp_amount']++; 25 26 update_option($NOW['attemp_name'], $NOW['attemp_amount']); 27 28 if($NOW['attemp_amount'] > 2) { 25 29 $NOW['capcha1_name'] = 'code9_anti_brute_force_capha[]' . $user . '[]' . $_SERVER['REMOTE_ADDR'] . '[]capcha1'; 26 30 $NOW['capcha2_name'] = 'code9_anti_brute_force_capha[]' . $user . '[]' . $_SERVER['REMOTE_ADDR'] . '[]capcha2'; … … 28 32 $NOW['caphca1'] = get_option($NOW['capcha1_name'], false); 29 33 $NOW['caphca2'] = get_option($NOW['capcha2_name'], false); 34 30 35 31 36 if( … … 255 260 } 256 261 257 $NOW['attemp_amount']++;258 259 update_option($NOW['attemp_name'], $NOW['attemp_amount']);260 262 261 263 unset($NOW); -
code9/trunk/function/code9_anti_brute_foce.php
r2615536 r2615546 21 21 22 22 $NOW['attemp_amount'] = get_option($NOW['attemp_name'], 0); 23 24 if($NOW['attemp_amount'] > 1) { 23 24 $NOW['attemp_amount']++; 25 26 update_option($NOW['attemp_name'], $NOW['attemp_amount']); 27 28 if($NOW['attemp_amount'] > 2) { 25 29 $NOW['capcha1_name'] = 'code9_anti_brute_force_capha[]' . $user . '[]' . $_SERVER['REMOTE_ADDR'] . '[]capcha1'; 26 30 $NOW['capcha2_name'] = 'code9_anti_brute_force_capha[]' . $user . '[]' . $_SERVER['REMOTE_ADDR'] . '[]capcha2'; … … 28 32 $NOW['caphca1'] = get_option($NOW['capcha1_name'], false); 29 33 $NOW['caphca2'] = get_option($NOW['capcha2_name'], false); 34 30 35 31 36 if( … … 255 260 } 256 261 257 $NOW['attemp_amount']++;258 259 update_option($NOW['attemp_name'], $NOW['attemp_amount']);260 262 261 263 unset($NOW);
Note: See TracChangeset
for help on using the changeset viewer.