Changeset 3453406
- Timestamp:
- 02/04/2026 02:47:40 AM (5 weeks ago)
- Location:
- admin-toolbox/trunk
- Files:
-
- 2 edited
-
atb_functions.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
admin-toolbox/trunk/atb_functions.php
r3437331 r3453406 6 6 Author: RLDD 7 7 Author URI: https://richardlerma.com/contact/ 8 Version: 6.1. 08 Version: 6.1.1 9 9 Text Domain: admin-toolbox 10 10 Copyright: (c) 2017-2026 rldd.net - All Rights Reserved … … 13 13 */ 14 14 15 global $atb_version; $atb_version='6.1. 0';15 global $atb_version; $atb_version='6.1.1'; 16 16 if(!defined('ABSPATH')) exit; 17 17 … … 198 198 $userid=0; 199 199 $ip=atb_ip(); 200 201 if(function_exists('atb_check_abuse')) { 202 $abuse_score=get_transient("abu_$ip"); 203 if($abuse_score>5) {header("HTTP/1.1 403 Forbidden");exit();} 204 } 205 200 206 $url=sanitize_text_field(substr($_SERVER['REQUEST_URI'],0,250)); 201 207 if(!get_transient("atb_flag_".atb_cui())) if(is_user_logged_in()) $userid=atb_cui(); … … 217 223 atb_r("INSERT INTO wp_atb_pagehits(ip,userid,url,referrer) VALUES ('$ip','$userid','$url','$referrer');"); 218 224 } else atb_r("UPDATE wp_atb_pagehits SET subsq=IFNULL(subsq,0)+1 WHERE ip='$ip' AND userid='$userid' AND url='$url' ORDER BY hit_id DESC LIMIT 1;"); 219 220 if(function_exists('atb_check_abuse')) {221 $abuse_score=get_transient("abu_$ip");222 if($abuse_score>5) {header("HTTP/1.1 401 Unauthorized");exit();}223 }224 225 } 225 226 -
admin-toolbox/trunk/readme.txt
r3437331 r3453406 6 6 Requires at least: 6.0 7 7 Tested up to: 6.9 8 Stable tag: 6.1. 08 Stable tag: 6.1.1 9 9 10 10 Manage an array of administrative options improving user control and resource management. … … 48 48 49 49 == Changelog == 50 = 6.1.1 = * Improved visit handling of blocked ips 50 51 = 6.1.0 = * Add option to disable admin email types. Workaround for running page_hit process on small servers. 51 52 = 6.0.37 = * Minor aesthetic improvements
Note: See TracChangeset
for help on using the changeset viewer.