function getIp() { if(empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $proxyIp = split(',', $_SERVER['HTTP_X_FORWARDED_FOR']); $UP = $proxyIp[0]; } else { $ip = $_SERVER['REMOTE_ADDR']; } return $ip; }
沒有留言:
張貼留言