代码拉取完成,页面将自动刷新
<?php
include_once("config.php");
include_once("class/Operate.class.php");
$ip = $handle->getip();
$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地址查询工具 - IPInfo</title>
<meta name="generator" content="EverEdit" />
<meta name="author" content="xiaoz.me" />
<meta name="keywords" content="geoip,ip查询网,本地ip查询,本机ip查询,ip查询" />
<meta name="description" content="IPInfo是一个开源的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.4">
<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="./dcache.php" target = "_blank"><i class="layui-icon"></i> 清缓存</a></li>
<li class="layui-nav-item"><a href="https://github.com/helloxz/IPinfo" rel = "nofollow" target = "_blank"><i class="layui-icon"></i> 源码</a></li>
<li class="layui-nav-item"><a href="https://doc.xiaoz.me/#/api/ipinfo" rel = "nofollow" target = "_blank"><i class="layui-icon"></i> API</a></li>
<li class="layui-nav-item"><a href="javascript:;" onclick = "about();"><i class="layui-icon"></i> 关于</a></li>
</ul>
</div>
<div class="right layui-hide-xs">
<ul class="layui-nav" lay-filter="">
<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>
<thead>
<tr>
<th width="90%">
<input id="ip" type="text" required="" lay-verify="required" placeholder="请输入 IP 或 URL" autocomplete="off" class="layui-input" data-cip-id="url">
</th>
<th width="10%"><button type="submit" class="layui-btn layui-btn" onclick = "queryip()"><i class="layui-icon"></i> 查 询</button></th>
</tr>
</thead>
</tbody>
</table>
<div id="myip" style = "margin-top:4em;">
<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>
<div id="allip" style = "margin-top:4em;"></div>
</div>
</div>
</div>
<!--内容部分END-->
<!--底部-->
<div class="footer layui-hide-xs">
<div class="layui-container">
<div class="layui-row">
<div class="layui-col-lg12">
Copyright © 2018 Powered by <a href="https://ip.awk.sh/" target = "_blank">IPinfo.</a> | Author <a href = "https://www.xiaoz.me/" target = "_blank">xiaoz.me</a>
</div>
</div>
</div>
</div>
<!--底部END-->
<script src="https://lib.sinaapp.com/js/jquery/2.2.4/jquery-2.2.4.min.js"></script>
<script src="./layui/layui.js"></script>
<script src = "./static/embed.js?v=1.9"></script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。