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();