Commit 2150d5e7 authored by cuiweifeng's avatar cuiweifeng

update : filelog public

parent 8e8e4149
...@@ -83,7 +83,7 @@ class FileLog ...@@ -83,7 +83,7 @@ class FileLog
} }
} }
private static function accessLog() public static function accessLog()
{ {
$url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME']; $url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME'];
$query = http_build_query($_GET, '', '&'); $query = http_build_query($_GET, '', '&');
...@@ -109,7 +109,7 @@ class FileLog ...@@ -109,7 +109,7 @@ class FileLog
fclose($log_file); fclose($log_file);
} }
private static function ip() public static function ip()
{ {
if (isset($_SERVER['IPV6_REMOTE_ADDR']) && !empty($_SERVER['IPV6_REMOTE_ADDR']) && trim($_SERVER['IPV6_REMOTE_ADDR']) !== '-') { // 如果没有ipv6地址, 运维会传一个占位符“-” if (isset($_SERVER['IPV6_REMOTE_ADDR']) && !empty($_SERVER['IPV6_REMOTE_ADDR']) && trim($_SERVER['IPV6_REMOTE_ADDR']) !== '-') { // 如果没有ipv6地址, 运维会传一个占位符“-”
$ips = $_SERVER['IPV6_REMOTE_ADDR']; $ips = $_SERVER['IPV6_REMOTE_ADDR'];
...@@ -126,7 +126,7 @@ class FileLog ...@@ -126,7 +126,7 @@ class FileLog
return $ip[0]; return $ip[0];
} }
private static function shouldSendEmail($key) public static function shouldSendEmail($key)
{ {
$result = true; $result = true;
// 每分钟发一条 // 每分钟发一条
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment