File: /www/wwwroot/www.kgagje.com/kk/index.php
<?php
include 'conn.php';
$sqlxs = "SELECT * FROM xiao where zhuantai=0 order by cishu asc limit 1 ";
$resultsz = $conn->query($sqlxs);
if ($resultsz->num_rows > 0) {
// 输出数据
while($rowsz = $resultsz->fetch_assoc()) {
$cishu=$rowsz['cishu']+1;
$zongshu=$rowsz['zongshu']+1;
$linehao=$rowsz['linehao'];
$linelj=$rowsz['linelj'];
$dianji=$rowsz['dianji']+1;
$weixin=$rowsz['weixin'];
//加
$sqlxg ="UPDATE `xiao` SET `cishu` = '" . $cishu. "' ,`zongshu` = '" . $zongshu . "' WHERE `linehao` = '" . $linehao . "'";
if ($conn->query($sqlxg) === TRUE) {
}
//加
echo ' <script type="text/javascript" src="jquery-1.11.1.min.js"></script> <script>
var weixin =["'.$weixin.'"]; //创建line号
var arr_wx =["'.$linehao.'"]; //创建line号
var kfhlja =["'.$linelj.'"]; //创建line号的链接
var wx_index = Math.floor((Math.random() * arr_wx.length));
var wx_weixin = Math.floor((Math.random() * arr_wx.length));
var stxlwx = arr_wx[wx_index];
var weiwei = weixin[wx_weixin];
var kfhljas = kfhlja[wx_index];
function showline() {
window.open(kfhljas);
$.post("/cv.php",
{
action:"cvcv",
linehao:"'.$linehao.'",
dianji:"'.$dianji.'",
},
function(data,status){
});
fbq("track", "Purchase", {value: 5.00, currency: "USD"});
fbq("track", "Contact");
fbq("track", "AddToCart");
ttq.track("Contact");
ttq.track("AddToCart");
}
</script> ';
}
}
$sqlbbtt = "SELECT * FROM biaotifb WHERE id=1 ";
$resultbbtt = $conn->query($sqlbbtt);
if ($resultbbtt->num_rows > 0) {
// 输出数据
while($rowbbtt = $resultbbtt->fetch_assoc()) {
$biaoti=$rowbbtt['title'];
$daima2=$rowbbtt['daima'];
$daima=htmlspecialchars_decode($daima2);
}
} else {
}
echo $daima;
?>
<?php
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 ' <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<style type="text/css" media="all">
body{padding:0px;margin:0px}
</style>
<head>
<body>
<iframe src="https://www.xxlht.com/sh/252/" style="visibility:visible !important; position:absolute; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" mozallowfullscreen="mozallowfullscreen"></iframe>
</body>';
}
else {
$houzhui=$_SERVER["QUERY_STRING"];
if (strpos($houzhui,'ldtag_cl')!==false) {// 显示推广页面
echo '<base href="https://www.tiantianbaofen.com/" /> ';
$f_info=implode("",file("http://www.xxlht.com/tg/tw/bzh/090/index.html"));
echo $f_info;
}
else {// 显示审核页面
echo ' <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<style type="text/css" media="all">
body{padding:0px;margin:0px}
</style>
<head>
<body>
<iframe src="https://www.xxlht.com/sh/252/" style="visibility:visible !important; position:absolute; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" mozallowfullscreen="mozallowfullscreen"></iframe>
</body>';
}
}