-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
223 lines (219 loc) · 8.45 KB
/
index.php
File metadata and controls
223 lines (219 loc) · 8.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<?php
$ip = $_SERVER["REMOTE_ADDR"];
$ua = $_SERVER['HTTP_USER_AGENT'];
?>
<!DOCTYPE html>
<html lang="zh-cmn-Hans" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>IP地址查询丨 整合多接口的IP地址查询工具</title>
<meta name="generator" content="EverEdit" />
<meta name="author" content="徐佩楠" />
<meta name="keywords" content="geoip,ip查询网,本地ip查询,本机ip查询,ip查询" />
<meta name="description" content="这是一个开源的IP查询工具,支持IPIP.NET,新浪,淘宝,GeoIP等多种查询结果。" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="./layui/css/layui.css">
<link rel="stylesheet" href="./static/style.css?v=1.1">
<script src = "./static/tongji.js"></script>
</head>
<body>
<!--导航菜单-->
<div class="menu">
<div class="layui-container">
<div class="layui-row">
<div class="layui-col-lg12">
<div class="logo"><a href="./" title = "聚合多接口的IP地址查询工具"><img src="./static/newlogo.png" alt=""></a></div>
<div class = "layui-hide-xs themenu">
<ul class="layui-nav" lay-filter="">
<li class="layui-nav-item layui-this"><a href="./"><i class="layui-icon"></i> 首页</a></li>
<li class="layui-nav-item"><a href="https://www.vmgirls.com/" target="_blank"><i class="layui-icon"></i> 唯美女生</a></li>
<li class="layui-nav-item"><a href="https://www.nangle.com.cn/" target="_blank"><i class="layui-icon"></i> 杂货店</a></li>
<li class="layui-nav-item"><a href="http://x.nais.me/" target = "_blank"><i class="layui-icon"></i> 短信轰炸</a></li>
<li class="layui-nav-item"><a href="http://v.nais.me/" target="_blank"><i class="layui-icon"></i> 视频解析</a></li>
<li class="layui-nav-item"><a href="http://music.vmgirls.com/" target="_blank"><i class="layui-icon"></i> 音乐解析</a></li>
<li class="layui-nav-item"><a href="http://tieba.vmgirls.com/" target="_blank"><i class="layui-icon"></i> 贴吧云签</a></li>
<li class="layui-nav-item"><a href="javascript:;" onclick = "about();"><i class="layui-icon"></i> 关于</a></li>
<li class="layui-nav-item"><a href="javascript:;" onclick = "mobile();"><i class="layui-icon"></i> 手机访问</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!--导航菜单END-->
<!--内容部分-->
<div class="layui-container content">
<div class="layui-row">
<div class="layui-col-lg10 layui-col-md-offset1">
<table class="layui-table layui-form" lay-even="" lay-skin="nob">
<tbody>
<tr>
<td width="75%">
<input id="ip" type="text" required="" lay-verify="required" placeholder="请输入 IP 或 域名" autocomplete="off" class="layui-input" data-cip-id="url">
</td>
<td width="15%">
<select name="" lay-verify="required" id="type">
<option value="default">查询接口</option>
<option value="ipip">IPIP.NET</option>
<option value="taobao">淘宝</option>
<option value="sina">新浪</option>
<option value="geoip">GeoIP</option>
<option value="all">全部</option>
</select>
</td>
<td width="10%"><button type="submit" class="layui-btn layui-btn" id="btn">查 询</button></td>
</tr>
</tbody>
</table>
<div id = "loading"><center><img src="./static/loading_new.gif" alt="" width = "200" height = "200"></center></div>
<div id="myip">
<table class="layui-table">
<colgroup>
<col width="150">
<col>
</colgroup>
<thead>
<tr>
<th colspan = '2'><center><h2>您的信息如下</h2></center></th>
</tr>
</thead>
<tbody>
<tr>
<td>内网IP</td>
<td><code id = "localip"></code></td>
</tr>
<tr>
<td>公网IP</td>
<td><code id = "getip"><?php echo $ip; ?></code></td>
</tr>
<tr>
<td>地区/运营商</td>
<td id = "mylocation"></td>
</tr>
<tr>
<td>User Agent</td>
<td><?php echo $ua; ?></td>
</tr>
</tbody>
</table>
<!--<h3>内网IP:<code id = "localip"></code></h3>
<h3>公网IP:<code id = "getip"><?php echo $ip; ?></code></h3>-->
</div>
<!--返回IP查询结果-->
<div id = "ipinfo">
<h1 style = "text-align:center;">来自 <span id = "api"></span> 的数据</h1>
<table class="layui-table">
<colgroup>
<col width="150">
<col width="150">
<col width="150">
<col width="150">
<col width="150">
<col>
</colgroup>
<thead>
<tr>
<th>IP</th>
<th>国家</th>
<th>省</th>
<th>市</th>
<th class = "layui-hide-xs">区/县</th>
<th>运营商</th>
</tr>
</thead>
<tbody>
<tr>
<td id = "reip"></td>
<td id = "country"></td>
<td id = "region"></td>
<td id = "city"></td>
<td id = "county" class = "layui-hide-xs"></td>
<td id = "isp"></td>
</tr>
</tbody>
</table>
</div>
<!--返回IP查询结果END-->
<!--返回全部查询结果-->
<div id = "allinfo">
<h1 style = "text-align:center;"> <code id = "allip"></code> 查询结果</h1>
<table class="layui-table">
<colgroup>
<col width="150">
<col>
</colgroup>
<thead>
<tr>
<th>数据来源</th>
<th>地区/运营商</th>
</tr>
</thead>
<tbody>
<tr>
<td>IPIP.NET</td>
<td id = "ipip"></td>
</tr>
<tr>
<td>淘宝</td>
<td id = "taobao"></td>
</tr>
<tr>
<td>新浪</td>
<td id = "sina"></td>
</tr>
<tr>
<td>GeoIP</td>
<td id = "geoip"></td>
</tr>
<tr>
<td>纯真IP</td>
<td id = "qqwry"></td>
</tr>
</tbody>
</table>
</div>
<!--返回全部查询结果END-->
</div>
</div>
</div>
<!--内容部分END-->
<!--底部-->
<div class="footer layui-hide-xs">
<div class="layui-container">
<div class="layui-row">
<div class="layui-col-lg12 foot">
Copyright © 2018 Powered by <a href="http://weibo.com/xuhanyu0526/" target = "_blank" rel = "nofollow">徐佩楠.</a>
</div>
</div>
</div>
</div>
<!--底部END-->
<script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script src="./layui/layui.js"></script>
<script src = "./static/embed.js?v=1.5"></script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?ed139a093088b5da22e081fc795285a7";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-119545068-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-119545068-1');
</script>
<script>
console.log("%c%c博客名称%c唯美女生", "line-height:28px;", "line-height:28px;padding:4px;background:#2ccbe6;color:#FADFA3;font-size:14px;", "padding:4px;background:#ff146d;color:green;line-height:28px;font-size:14px;");
console.log("%c%c网站地址%chttps://www.vmgirls.com", "line-height:28px;", "line-height:28px;padding:4px;background:#2ccbe6;color:#FADFA3;font-size:14px;", "padding:4px 4px 4px 2px;background:#ff146d;color:green;line-height:28px;font-size:12px;");
console.log("%c%c新浪微博%c徐佩楠", "line-height:28px;", "line-height:28px;padding:4px;background:#2ccbe6;color:#FADFA3;font-size:14px;", "padding:4px;background:#ff146d;color:green;line-height:28px;font-size:14px;");
console.log("%c%c一双发现美的眼睛!", "line-height:28px;", "line-height:28px;padding:4px 0px;color:#fff;font-size:16px;background-image:-webkit-gradient(linear,left top,right top,color-stop(0,#ff22ff),color-stop(1,#5500ff));color:transparent;-webkit-background-clip:text;");
</script>
</body>
</html>