加入收藏 | 设为首页 | 会员中心 | 我要投稿 丽水站长网 (https://www.0578zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 运营中心 > 建站资源 > 经验 > 正文

帝国CMS新浪iplookup根据ip跳转到其他域名

发布时间:2021-12-17 10:29:09 所属栏目:经验 来源:互联网
导读:$IP_str=file_get_contents(http://int.dpool.sina.com.cn/iplookup/iplookup.php); $IP_tmp = explode(/n, $IP_str); $IPcou=count($IP_tmp)-1; $IP_tmp1 = explode( , $IP_tmp[0]); if($IP_tmp1[5]){ $user_IP=$IP_tmp1[5]; }else{ $user_IP=$IP_tmp1[4];
$IP_str=file_get_contents('http://int.dpool.sina.com.cn/iplookup/iplookup.php');
$IP_tmp = explode("/n", $IP_str);
$IPcou=count($IP_tmp)-1;
$IP_tmp1 = explode("        ", $IP_tmp[0]);
if($IP_tmp1[5]){
        $user_IP=$IP_tmp1[5];         
}else{
        $user_IP=$IP_tmp1[4];                 
}//开源软件:Cuoxin.com
if($user_IP == '上海'){
   header('Location: A.php');
}elseif($user_IP == '北京'){
   header('Location: B.php');
}else{
   header('Location: C.php');
}
 

(编辑:丽水站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读