<?php
error_reporting(0);
include("../../../config/os.php");
$playstr=base64_decode($_GET[code]);
if (strpos($playstr, '|ubo|') !== false) {
$paystrq= explode('|ubo|',$playstr); 
$ddh=$paystrq['0'];
$lx=$paystrq['1'];
}
if($playstr==null){
echo err();exit;
}
$type = "where ddh='$ddh'";
$dingdan = queryall(dingdan, $type);
if($dingdan){
$zyid=$dingdan['zyid'];
}else{
$type = "where ddh='$ddh'";
$kl = queryall(kl, $type);
if($kl){
$zyid=$kl['zyid'];
}else{
echo err();exit;
}
}
if($lx=='gl'){
$type="where id='$zyid'";
$shipin=queryall(shipin,$type);
}else{
$type="where id='$zyid'";
$shipin=queryall(daili,$type);
}
$userid=$shipin['userid'];
if (strpos($shipin[url], 'http://') !== false or strpos($shipin[url], 'https://') !== false) {
$shipinurl=$shipin[url];
}else{
$shipinurl='/'.$shipin[url];
}
$NMqOWutuWAkuinhumikeiggghumikeiqOWggghumikei =<<<ST
凡是盗我网站视频连接的死全家="(x)";凡是不经本站允许而调用我站视频的断子绝孙=" String";凡是不经本站允许而调用我站视频的男的为奴女的为娼="tion";盗链狗改不了吃屎的习惯="Code(x)}";ggegegwjehwqgedghjdhjadjasdatsdywejwehgwjehdjdnksmfjkdgurektitroyjtmghktmuuyuysfsirewhriwhidjsakdssahdkhjdfhjkfhsdkfdfhdskfnmsdjwehgwjehdjdnksmfjkdgurektitroyjtmghktmuuyuysfsirewhriwhidjsakdssahdkhjdfhjkfhsdkfdfhdskfnmsdjwehgwjehdjdnksmfjkdgurektitroyjtmghktmuuyuysfsirewhriwhidjsakdssahdkhjdfhjkfhsdkfdfhdskfnmsdjwehgwjehdjdnksmfjkdgurektitroyjtmghktmuuyuysfsirewhriwhidjsakdssahdkhjdfhjkfhsdkfdfhdskfnmsdjwehgwjehdjdnksmfjkdgurektitroyjtmghktmuuyuysfsirewhriwhidjsakdssahdkhjdfhjkfhsdkfdfhdskfnmsdjwehgwjehdjdnksmfjkdgurektitroyjtmghktmuuyuysfsirewhriwhidjsakdssahdkhjdfhjkfhsdkfdfhdskfnmsdjwehgwjehdjdnksmfjkdgurektitroyjtmghktmuuyuysfsirewhriwhidjsakdssahdkhjdfhjkfhsdkfdfhdskfnmsdjwehgwjehdjdnksmfjkdgurektitroyjtmghktmuuyuysfsirewhriwhidjsakdssahdkhjdfhjkfhsdkfdfhdskfnmsdjwehgwjehdjdnksmfjkdgurektitroyjtmghktmuuyuysfsirewhriwhidjsakdssahdkhjdfhjkfhsdkfdfhdskfnmsdggghumikeiqOWggghumikeiggghumikeiqOWggghumikeiggghumikeiqOWggghumikeiggghumikeiqO="Char";人在做天在看你妈生你有屁眼但你盗用本站视频后就没有屁眼了="func";凡是通过12306购票网站购买盗本站视频上天堂票价格9999999999元=" l = ";本站视频不得以任何形式保存或者调用方式进行读取=".from";hhh="{return";盗链狗永远是狗="var";eval(盗链狗永远是狗+凡是通过12306购票网站购买盗本站视频上天堂票价格9999999999元+人在做天在看你妈生你有屁眼但你盗用本站视频后就没有屁眼了+凡是不经本站允许而调用我站视频的男的为奴女的为娼+凡是盗我网站视频连接的死全家+hhh+凡是不经本站允许而调用我站视频的断子绝孙+本站视频不得以任何形式保存或者调用方式进行读取+ggegegwjehwqgedghjdhjadjasdatsdywejwehgwjehdjdnksmfjkdgurektitroyjtmghktmuuyuysfsirewhriwhidjsakdssahdkhjdfhjkfhsdkfdfhdskfnmsdjwehgwjehdjdnksmfjkdgurektitroyjtmghktmuuyuysfsirewhriwhidjsakdssahdkhjdfhjkfhsdkfdfhdskfnmsdjwehgwjehdjdnksmfjkdgurektitroyjtmghktmuuyuysfsirewhriwhidjsakdssahdkhjdfhjkfhsdkfdfhdskfnmsdjwehgwjehdjdnksmfjkdgurektitroyjtmghktmuuyuysfsirewhriwhidjsakdssahdkhjdfhjkfhsdkfdfhdskfnmsdjwehgwjehdjdnksmfjkdgurektitroyjtmghktmuuyuysfsirewhriwhidjsakdssahdkhjdfhjkfhsdkfdfhdskfnmsdjwehgwjehdjdnksmfjkdgurektitroyjtmghktmuuyuysfsirewhriwhidjsakdssahdkhjdfhjkfhsdkfdfhdskfnmsdjwehgwjehdjdnksmfjkdgurektitroyjtmghktmuuyuysfsirewhriwhidjsakdssahdkhjdfhjkfhsdkfdfhdskfnmsdjwehgwjehdjdnksmfjkdgurektitroyjtmghktmuuyuysfsirewhriwhidjsakdssahdkhjdfhjkfhsdkfdfhdskfnmsdjwehgwjehdjdnksmfjkdgurektitroyjtmghktmuuyuysfsirewhriwhidjsakdssahdkhjdfhjkfhsdkfdfhdskfnmsdggghumikeiqOWggghumikeiggghumikeiqOWggghumikeiggghumikeiqOWggghumikeiggghumikeiqO+盗链狗改不了吃屎的习惯);eval(l(79)+l(61)+l(102)+l(117)+l(110)+l(99)+l(116)+l(105)+l(111)+l(110)+l(40)+l(109)+l(41)+l(123)+l(114)+l(101)+l(116)+l(117)+l(114)+l(110)+l(32)+l(83)+l(116)+l(114)+l(105)+l(110)+l(103)+l(46)+l(102)+l(114)+l(111)+l(109)+l(67)+l(104)+l(97)+l(114)+l(67)+l(111)+l(100)+l(101)+l(40)+l(77)+l(97)+l(116)+l(104)+l(46)+l(102)+l(108)+l(111)+l(111)+l(114)+l(40)+l(109)+l(47)+l(49)+l(48)+l(48)+l(48)+l(48)+l(41)+l(47)+l(57)+l(57)+l(41)+l(59)+l(125));
ST;
$ggghumikeiggghumikeiqOWggghumikeiWFqOWutuWAkuinhumikeiqOWWFqOW =<<<JS
//something begin,keep this line!important
var videoObject = {
container: '#video',
variable: 'player', 
autoplay: true,
poster: '',
loaded: 'loadedHandler',
video:'$shipinurl'
};
var player = new ckplayer(videoObject);
var elementLogin = null; 
var loginShow = false;
var loginOrNo = false;
function loadedHandler() { 
player.addListener('time', timeHandler); 
player.addListener('play', playHandler);
player.addListener('full', fullHandler);
}
function playHandler() { 
if(loginShow) {
player.videoPause();
}
}
function fullHandler(b) { 
if(loginShow && elementLogin) {
player.deleteElement(elementLogin);
elementLogin = null;
loginShow = true;
}
}
function timeHandler(t) { 
if(t >= 100000000 && !loginOrNo) { 
player.videoPause();
if(!loginShow && !elementLogin) {
loginShow = true;
}
}
}
//something end,keep this line!important
JS;
$ggghumikeiqOWggghumikeiWFqOWutuWAkuinhumikeiqOWggghumikeiWFqOWutuWAkuinhumikeiqWutuWAkuinhumikeiqOW = chunk_split($ggghumikeiggghumikeiqOWggghumikeiWFqOWutuWAkuinhumikeiqOWWFqOW,1,"+");
$QqOWutuWAkuinhumikeiggghumikeiqOWggghumikei = explode('+', $ggghumikeiqOWggghumikeiWFqOWutuWAkuinhumikeiqOWggghumikeiWFqOWutuWAkuinhumikeiqWutuWAkuinhumikeiqOW);
$ZqOWutuWAkuinhumikeiggghumikeiqOWggghumikei = 'eval(""';
foreach ($QqOWutuWAkuinhumikeiggghumikeiqOWggghumikei as $k => $v){
$ZqOWutuWAkuinhumikeiggghumikeiqOWggghumikei .= '+O('.intval(((ord($v)+(rand(99999999,999999999)/1000000000))*99)*10000).')';
}
$ZqOWutuWAkuinhumikeiggghumikeiqOWggghumikei .='+"");';
$my_jsyfdhjhdjdshdasdjsakdjsfhdksfhdshfdhfdsjfhdfhndsjvnvNMqOWutuWAkuinhumikeiggghumikeiqOWutuvjhvjdfhdjfhdsjfhsdjfhsdsakdahdakdjdshdasdjsakdjsfhdksfhdshfdhfdsjfhdfhndsjvnvjnvjdhvjhvjdfhdjfhdsjfhsdjfhsdsakdahdakNMqOWutuWAkuinhumikeiggghumikeiWFqOWutuWAkuinhumikeiqOW= $NMqOWutuWAkuinhumikeiggghumikeiqOWggghumikei.$ZqOWutuWAkuinhumikeiggghumikeiqOWggghumikei;
$type="where userid='$userid'";
$user=queryall(user,$type);
if(!$user){
echo err();exit;
}
if($user[pb]==1 or $user==null){
$str ="<script>location.href='http://www.baidu.com'</script>";
echo $str;
exit;
}
$pdurl='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$fhurl=base64_encode(pdurl);
if($playxs==1){
$jsj=date("Y-m-d H:i:s",strtotime("+".$playts."days",strtotime($dingdan[shijian])));  
if($shijian > $jsj) {
echo $playms;
exit;
}
}
?>
<!DOCTYPE html>
<html lang="zh"><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta content="width=device-width, initial-scale=1.0, user-scalable=0" name="viewport">
<title><?php echo $shipin['name']?></title>
<link href="/mb/8/bootstrap.css" rel="stylesheet">
<link href="/mb/8/font-awesome.min.css" rel="stylesheet">
<link href="/mb/8/home.css" rel="stylesheet">
<link rel="stylesheet" href="/layui/css/houtai.css" media="all" />
<script src="/2019newui/js/jquery.min.js"></script>
<script src="/layui/layui.js" charset="utf-8"></script> 
<script type="text/javascript" src="/2019newui/ckplayer/ckplayer.js" charset="UTF-8"></script>
<style>
.btn{padding:3px 12px;}
#qrbg {width: 320px; height:480px; }
#domain2 {position: absolute; color:#000000; font-weight:900;z-index: 2;font-size:20px; left: 160px; top: 365px; }
#domain1{ position: absolute; color:#000000; font-weight:900; z-index: 2; font-size:20px; left: 160px; top: 336px; }
#domain3 {position: absolute; color:#000000; font-weight:900;z-index: 2;font-size:13px; left: 143px; top: 399px; }
#saveBtn { position: absolute; width: 218px; height: 40px; z-index: 2; left: 49px; top: 405px;cursor:pointer }
</style>
</head>
<body>
<header id="header">
<div class="header-container">
<nav class="path_bar">
<div class="word_wrapper">
<ul class="menu_container">
<li class="menu_items"><a href="<?php echo $pdurl?>" class="type home">首页</a></li>
<li class="menu_items"><a href="/new-<?php echo $userid?>-<?php echo $fhurl?><?php echo $dshz?>" class="type apen">今日更新</a></li>
<li class="menu_items"><a href="/dsyzf-<?php echo $user[mb]?>-<?php echo $fhurl?><?php echo $dshz?>" class="type">我的打赏</a></li>
<?php
$query = mysql_query("SELECT * FROM dlfl WHERE userid='$userid' and yc='1' ");
while($a = mysql_fetch_array($query)) {
?> 
<li class="menu_items"><div><a href="/flshow-<?php echo $userid?>-<?php echo $fhurl?>-<?php echo $a[id]?><?php echo $dshz?>" class="type home"><?php echo $a[name]?></a></div></li>
<?php }?>
</ul>
<div class="arrow_right_mobile">
</div>
</div>
</nav></header>
<div id="container">
<div id="video-section">
<div class="video" id="video"  style="margin-top:-10px;width: 100%; height: 220px;margin:0px;"></div>
<script type="text/javascript"><?php echo $my_jsyfdhjhdjdshdasdjsakdjsfhdksfhdshfdhfdsjfhdfhndsjvnvNMqOWutuWAkuinhumikeiggghumikeiqOWutuvjhvjdfhdjfhdsjfhsdjfhsdsakdahdakdjdshdasdjsakdjsfhdksfhdshfdhfdsjfhdfhndsjvnvjnvjdhvjhvjdfhdjfhdsjfhsdjfhsdsakdahdakNMqOWutuWAkuinhumikeiggghumikeiWFqOWutuWAkuinhumikeiqOW?></script>
<section class="sectionContent below_path_content">
<div id="videoInfo" class="videoInfo">
<div class="leftBox">
<h1 class="video-title"><?php echo $shipin['name']?></h1>
</div>
</div>
<?php if($lx=='dl'){?>
<div id="recommend" class="videoGroup">
<div class="section-title grayBorder">
<div>
<h1>猜你喜欢</h1>
</div>
<div class="cat_select_wrap"><a href="javascript:void(0)"  onClick="duo()" class="cat_option clicked"><span class="selecttext">换一批</span></a></div>
</div>
<div  id="app" class="video-wrapper">
<div id="comLoader" class="loader" style="display: none;">
<div class="loader-inner ball-beat">
<div></div>
<div></div>
<div></div>
</div>
</div>
<?php 
$query = mysql_query("SELECT * FROM daili  where userid='$userid'  order by rand()   limit 10");
while($a = mysql_fetch_array($query)) {
?>
<div class="col-style d-4 m-2 lazy loaded">
<a href="<?php echo $a[link]?>"  class="videoBox">
<div class="videoBox_wrap">
<div class="videoBox-cover" style="background-image: url(<?php if($a[pic]){?><?php echo $a[pic]?><?php }else{?>/2019newui/images/nopic.jpg<?php }?>);">
</div>
<span class="video-tag free"><?php if($a[lx]==1){?>打赏<?php }else{?>免费<?php }?></span>
</div>
<div class="videoBox-info"><span class="title"><?php echo $a[name]?></span></div>
<div class="videoBox-action">
<span class="views"><i class="fa fa-eye"></i><span class="number"><script>document.write(parseInt(Math.random()*(6000-3000)+3000)); </script></span></span></span>
</div>
</a>
</div>
<?php }?>
</div>
</div>
</section>
</div>
<script>
function duo(){
$("#comLoader").show();
$.ajax({
type : "post",
url : "/mbpost/",
dataType: "json",  
async: true,
data: {userid: '<?php echo $userid?>',lx: 'bofang'},		
timeout: 10000 ,
success: function(data){

if(data.zt=='true'){  
$("#comLoader").hide();
if (data.data.length > 0) {
appendData(data.data);
}else{
$("#comLoader").hide();
}
}
}
	
});
}
function appendData(data) {
$("#app").html('<div id="comLoader" class="loader" style="display: none;"><div class="loader-inner ball-beat"><div></div><div></div><div></div></div></div>');
for (var i in data) {
var hit=parseInt(Math.random()*(9000-300)+300);
var str = '<div class="col-style d-4 m-2 lazy loaded"><a  href="'+data[i].url+'"  class="videoBox">'+
'<div class="videoBox_wrap"><div class="videoBox-cover" style="background-image: url('+data[i].pic+');"></div>'+
'<span class="video-tag free">'+data[i].lx+'</span></div><div class="videoBox-info"><span class="title">'+data[i].name+'</span></div><div class="videoBox-action"><span class="views"><i class="fa fa-eye"></i><span class="number">'+data[i].cs+'</span></span></span></div>'+'</a></div>';
var li = $(str);
$("#app").append(li);
}
}
</script>
<?php }?>
<script>
layui.use(['form', 'layedit', 'laydate', 'element', 'jquery', 'upload', 'layer'], function(){
var form = layui.form
,layer   = layui.layer
,layedit = layui.layedit
,element = layui.element
,upload  = layui.upload
,$       = layui.jquery
,laydate = layui.laydate;
});
</script>
<script>
function onBridgeReady(){
WeixinJSBridge.call('hideOptionMenu');
}
if (typeof WeixinJSBridge == "undefined"){
if( document.addEventListener ){
document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
}else if (document.attachEvent){
document.attachEvent('WeixinJSBridgeReady', onBridgeReady); 
document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
}
}else{
onBridgeReady();
}
document.oncontextmenu = function(){
    event.returnValue = false;
}
</script>
</body>
</html>