IP地址取客户端的,优化
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package com.jsh.util;
|
package com.jsh.util;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
||||||
@@ -266,8 +267,9 @@ public class Tools
|
|||||||
{
|
{
|
||||||
return str.replace("'", "");
|
return str.replace("'", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取用户IP地址
|
* 获取用户IP地址(停用)
|
||||||
* @return 用户IP
|
* @return 用户IP
|
||||||
* @see [类、类#方法、类#成员]
|
* @see [类、类#方法、类#成员]
|
||||||
*/
|
*/
|
||||||
@@ -284,6 +286,36 @@ public class Tools
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 从Request对象中获得客户端IP,处理了HTTP代理服务器和Nginx的反向代理截取了ip
|
||||||
|
* @param request
|
||||||
|
* @return ip
|
||||||
|
*/
|
||||||
|
public static String getLocalIp(HttpServletRequest request) {
|
||||||
|
String remoteAddr = request.getRemoteAddr();
|
||||||
|
String forwarded = request.getHeader("X-Forwarded-For");
|
||||||
|
String realIp = request.getHeader("X-Real-IP");
|
||||||
|
|
||||||
|
String ip = null;
|
||||||
|
if (realIp == null) {
|
||||||
|
if (forwarded == null) {
|
||||||
|
ip = remoteAddr;
|
||||||
|
} else {
|
||||||
|
ip = remoteAddr + "/" + forwarded.split(",")[0];
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (realIp.equals(forwarded)) {
|
||||||
|
ip = realIp;
|
||||||
|
} else {
|
||||||
|
if(forwarded != null){
|
||||||
|
forwarded = forwarded.split(",")[0];
|
||||||
|
}
|
||||||
|
ip = realIp + "/" + forwarded;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ip;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 转化前台批量传入的ID值
|
* 转化前台批量传入的ID值
|
||||||
* @param data
|
* @param data
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
String type = request.getParameter("type");
|
String type = request.getParameter("type");
|
||||||
String location = "首页";
|
String location = "首页";
|
||||||
if(null != type)
|
if(null != type)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%
|
<%
|
||||||
String path = request.getContextPath();
|
String path = request.getContextPath();
|
||||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||||
String clientIp = Tools.getCurrentUserIP();
|
String clientIp = Tools.getLocalIp(request);
|
||||||
%>
|
%>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
|||||||
Reference in New Issue
Block a user