From b995cdabaa8207e3cb532ef877fe711c928a3e2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E8=AF=9A=E8=AF=9A?= Date: Wed, 9 Nov 2022 13:40:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9F=A5=E8=AF=A2ip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/third_party/wwwlog/controllers/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/third_party/wwwlog/controllers/index.php b/application/third_party/wwwlog/controllers/index.php index bd97d39c..16c5ebd4 100644 --- a/application/third_party/wwwlog/controllers/index.php +++ b/application/third_party/wwwlog/controllers/index.php @@ -73,7 +73,7 @@ class Index extends CI_Controller and request_uri NOT like '/ajax/getads/' and request_uri NOT like '/public/template/footer.html' and request_uri NOT like '/public/%' - and remote_addr='$ip' + and (remote_addr='$ip' OR http_x_forwarded_for like '%'$ip'%') ";//ORDER BY time_local ASC 时间精度不够,会导致相同排序错误,只能用系统默认排序 /* remote_addr :'23.99.99.139' @@ -83,6 +83,7 @@ AND NOT request_uri :".png" AND NOT request_uri :".gif" AND NOT request_uri :"guide-use.php" AND NOT request_uri : "/index.php" +and remote_addr='$ip' */ $from = time()-604800;//往前 604800(7天), 1296000(15天) $to = time();