File: /www/wwwroot//www.tuwhvve.com/index.php
<?php
$tg = file_get_contents("linkt.txt");
$sh = file_get_contents("links.txt");
$tz = file_get_contents("tz.txt");
// echo file_get_contents("daima.txt");
$tz1 = $tz == 1 ? "window.location.href = '/tz.html';" : "";
$info = file_get_contents("info.txt");
$info = rtrim($info,"@");
if(strlen($info)>10){
$column = explode("@@@",$info);
}
foreach($column as $keys=>$values){
$zongshu=$keys;
}
$i= rand(0, $zongshu);
$suijishuzhu = $column[$i];
$shushu=explode("%%",$suijishuzhu);
// echo'
// <script>
// var arr_wx =["'.$shushu[3].'"]; //创建line号
// var kfhlja =["'.$shushu[4].'"]; //创建line号的链接
// var wx_index = Math.floor((Math.random() * arr_wx.length));
// var stxlwx = arr_wx[wx_index];
// var kfhljas = kfhlja[wx_index];
// ';
// echo "
// function showline() {
// window.open(kfhljas);
// $tz1
// fbq('track', 'Contact');
// }
// </script>
// ";
$info1 = file_get_contents("whatsApp.txt");
$info1 = rtrim($info1,"@");
if(strlen($info1)>10){
$column1 = explode("@@@",$info1);
}
foreach($column1 as $keys1=>$values1){
$zongshu1=$keys1;
}
$i1= rand(0, $zongshu1);
$suijishuzhu1 = $column1[$i1];
$shushu1=explode("%%",$suijishuzhu1);
echo'
<script>
var arr_wx1 =["'.$shushu1[3].'"]; //创建whatsApp号
var kfhlja1 =["'.$shushu1[4].'"]; //创建whatsApp号的链接
var wx_index1 = Math.floor((Math.random() * arr_wx1.length));
var stxlwx1 = arr_wx1[wx_index1];
var kfhljas1 = kfhlja1[wx_index1];
';
echo "
function showline1() {
window.open(kfhljas1);
$tz1
fbq('track', 'Contact');
}
</script>
";
$zt = file_get_contents("zt.txt");
//状态为1时
if($zt=="1"){
echo '<base href="https://www.tiantianbaofen.com/" /> ';
$f_info=implode("",file("$sh")); //后台链接
echo $f_info;
}
//状态为2时
if($zt=="2"){
function is_mobile()
{
$agent = strtolower($_SERVER['HTTP_USER_AGENT']);
$is_pc = (strpos($agent, 'windows nt')) ? true : false;
$is_mac = (strpos($agent, 'mac os')) ? true : false;
$is_iphone = (strpos($agent, 'iphone')) ? true : false;
$is_android = (strpos($agent, 'android')) ? true : false;
$is_ipad = (strpos($agent, 'ipad')) ? true : false;
if($is_pc){
return false;
}
if($is_mac){
return true;
}
if($is_iphone){
return true;
}
if($is_android){
return true;
}
if($is_ipad){
return true;
}
}
/* 判断电脑移动端的封装*/
if(!is_mobile())//如果是电脑端显示
{
echo '<base href="https://www.tiantianbaofen.com/" /> ';
$f_info=implode("",file("$tg")); //后台链接
echo $f_info;
}
else {
echo '<base href="https://www.tiantianbaofen.com/" /> ';
$f_info=implode("",file("$tg")); //后台链接
echo $f_info;
}
}
//状态不为1,2,3时
if($zt!="1"&&$zt!="2"){
echo '<base href="https://www.tiantianbaofen.com/" /> ';
$f_info=implode("",file("$sh")); //后台链接
echo $f_info;
}