1 Star 0 Fork 32

乐哥在线 / tvpanel

forked from love / tvpanel 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
getIpInfo.php 507 Bytes
AI 代码解读
一键复制 编辑 原始数据 按行查看 历史
luo2888 提交于 2020-03-03 17:21 . Update
<?php
header("Content-type: text/json; charset=utf-8");
header("Cache-Control:no-cache,must-revalidate");
header("Pragma: no-cache");
include_once "config.php";
if ($_GET['ip']=='myip'){$ip=getuserip();}else{$ip=$_GET['ip'];}
$myurl=dirname('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
$ip_chk=get_config('ip_chk');
if($ip_chk=='1'){
echo file_get_contents("$myurl/apps/iploc/qqzeng.php?ip=$ip");
}else if($ip_chk=='2'){
echo file_get_contents("$myurl/apps/iploc/taobao.php?ip=$ip");
}
?>
1
https://gitee.com/inChoong/tvpanel.git
git@gitee.com:inChoong/tvpanel.git
inChoong
tvpanel
tvpanel
master

搜索帮助