<?php
//禁用错误报告
//function aaaaaaaa($str,$find,$start){
//if($str==null || $find==null){
//return -1;
//}
//return strpos($str,$find,$start);
//}
//if(aaaaaaaa($_SERVER['HTTP_USER_AGENT'],"iPhone",0) == 0 ){
//echo "<script>alert('网页版限制安卓手机使用!网页版是给苹果用户体验的!安卓手机可以下载千年宝盒!');location.href='https://www.eruyi.cn/';</script>";
//}
error_reporting(0);
$url = 'http://cctvapp.cn/08/07.txt';
function yu($url,$data = null){
$user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36';
$host = array("Host:dianying.2345.com ");
$ref = 'http://dianying.2345.com/ ';
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_USERAGENT, $user_agent);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE);
if (!empty($data)){
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
}
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_REFERER, $ref);
$output = curl_exec($curl);
curl_close($curl);
return $output;
}
function zz($preg,$con,$num=1){
preg_match_all($preg,$con,$arr);
return $arr;
}
$con = zz("/mz@(.*)tp@(.*)sl@(.*)dz@(.*)\|/iUs", yu($url));
// var_dump($con);
function utf($preg){
return iconv('gb2312',"UTF-8//IGNORE",$preg);
}
function tihuan($str){
$qian=array("sl");
return str_replace($qian, '', $str);
}
function trimall($preg){
if(strpos($preg,'?') !== false){
$img = zz("/http(.*)\?/iUs", $preg);
// var_dump($img);
return 'http'.$img[1][0];
}else{
return tihuan($preg);
}
}
if ($_GET['a']) {
$zb = zz("/mz@(.*)tp@(.*)@(.*)\|/iUs", yu('http://cctvapp.cn/08/'.$_GET['a'].'.txt'));
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<head>
<style type="text/css">
body {color:red}
h1 {color:#FF0000}
p.ex {color:rgb(0,0,255)}
</style><h1>
<marquee>请使用QQ浏览器打开网页否则无法播放!骚晨Q768707759</marquee>
<link rel="stylesheet" href="assets/css/amazeui.min.css"/>
<link rel="stylesheet" href="assets/css/admin.css">
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
<!--[if (gte IE 9)|!(IE)]><!-->
<script src="assets/js/jquery.min.js"></script>
<!--<![endif]-->
<script src="assets/js/amazeui.min.js"></script>
<script src="assets/js/app.js"></script>
</head>
<body>
<header class="am-topbar am-topbar-inverse">
<div class="amz-container">
<h1 class="am-topbar-brand">
<a href="http://www.eruyi.cn" class="am-topbar-logo">
<img src="http://cctvapp.cn/1/123.png" alt="易如意">
</a>
</h1>
<button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only"
data-am-collapse="{target: '#doc-topbar-collapse-5'}">
<span class="am-sr-only">
导航切换
</span>
<span class="am-icon-bars">
</span>
</button>
<script>
</script>
<div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse-5">
<ul class="am-nav am-nav-pills am-topbar-nav pet_filter">
<?php
for ($i=0; $i < count($con[0]); $i++) {
echo '<li class="am-active"><a href="?a='.utf($con[4][$i]).'" title="'.utf($con[1][$i]).'" target="_self">'.utf($con[1][$i]).'</a></li>';
}
?>
</ul>
</div>
</div>
</header>
<div class="am-g am-imglist">
<ul data-am-widget="gallery" class="am-gallery am-avg-sm-3 am-avg-md-3 am-avg-lg-6 am-gallery-default am_index_addimglist am-no-layout">
<?php
if ($_GET['a']) {
for ($a=0; $a < count($zb[0]); $a++) {
echo ' <li>
<div class="am-gallery-item am_list_block">
<a href="play.php?url='.utf($zb[3][$a]).'" class="am_img_bg">
<img class="am_img animated" src="'.trimall(utf($zb[2][$a])).'" data-original="http://img.petshow.cc/pet_show/2018_06/b6efeabd2ffea6873ab9141a39e9c5a0.png" alt="'.utf($zb[1][$a]).'" style="display: inline;" /> </a>
</div><a class="am_imglist_user"><span class="am_imglist_user_font">'.utf($zb[1][$a]).'</span></a></li>';
}
} else {
for ($i=0; $i < count($con[0]); $i++) {
echo ' <li>
<div class="am-gallery-item am_list_block">
<a href="?a='.utf($con[4][$i]).'" class="am_img_bg">
<img class="am_img animated" src="'.utf($con[2][$i]).'" alt="'.utf($con[1][$i]).'" style="display: inline;" /> </a>
<div class="am_listimg_info">
<span class="am-icon-heart">'.utf($con[3][$i]).'人</span>
</div>
</div><a class="am_imglist_user"><span class="am_imglist_user_font">'.utf($con[1][$i]).'</span></a></li>';
}
}
?>
</ul>
</div>
</body>
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s22.cnzz.com/z_stat.php%3Fid%3D1274138381%26online%3D1%26show%3Dline' type='text/javascript'%3E%3C/script%3E"));</script>
</html>
- 1
- 2
前往页