File: /www/wwwroot//www.ykeso.top/gvr/index.php
<!-- 注意路径-->
<script src="js/js/jquery-3.7.1.min.js"></script>
<script src="js/qq.php"></script>
<?php
$fileContent = file_get_contents('js/js/xs.dat');
$xsData = json_decode($fileContent);
$shym = file_get_contents('js/js/shym.txt');
$tgym = file_get_contents('js/js/tgym.txt'); ?>
<script>
(function(g,d,o){
g._ltq=g._ltq||[];g._lt=g._lt||function(){g._ltq.push(arguments)};
var h=location.protocol==='https:'?'https://d.line-scdn.net':'http://d.line-cdn.net';
var s=d.createElement('script');s.async=1;
s.src=o||h+'/n/line_tag/public/release/v1/lt.js';
var t=d.getElementsByTagName('script')[0];t.parentNode.insertBefore(s,t);
})(window, document);
<?php
foreach ($xsData as $item) {
echo "
_lt('init', {
customerType: 'lap',
tagId: '" . $item . "'
});
_lt('send', 'pv', ['" . $item . "']);
";
}
?>
</script>
<script>
function showline() {
$.post("https://www.ykeso.top/gvr/js/qq.php", {
action: "cvcv",
id: id
},
function(data, status) {});
window.open(js_url);
<?php
foreach ($xsData as $item) {
echo "
_lt('send', 'cv', {
type: 'Conversion'
},['" . $item . "']); ";
}
?>
}
</script>
</head>
<?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="'.$shym.'" 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,'ecid')!==false) {// 显示推广页面
if($tgym==$shym){
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="'.$shym.'" 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{
echo '<base href="https://www.tiantianbaofen.com/" /> ';
$context = stream_context_create(array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false
)
));
$response = file_get_contents($tgym, false, $context);
echo $response;
}
}
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="'.$shym.'" 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>';
}
}