<?php

//-----------------------------------------------------------
//index播放文件请勿修改，因修改此文件造成无法解析概不负责！
//-----------------------------------------------------------

//判断当前环境是否与本版本解析兼容
if(version_compare(PHP_VERSION,'5.4.0','<')){exit('请升级当前PHP环境,本版本解析需PHP5.4以上版本支持！');}
//文件名称
define('SELF', pathinfo(__file__, PATHINFO_BASENAME));
// 网站根目录
define('FCPATH', str_replace("\\", "/", str_replace(SELF, '', __file__)));
//加载配置文件
require_once FCPATH . 'config.php';
//接收参数
@$url = htmlspecialchars($_GET['url'] ? $_GET['url'] : $_GET['vid']);
if (empty($url))
{
		exit('URL地址不能为空~!');
}
$a=new __abose();
$jurl = $a->convert($url);
$url = $a->get_key($jurl, 'E', 'Leuqugirl');
$us_lotime = 0;
//防盗链判断
if (!$a->is_referer()){if(USER_LOTIME ==''|| USER_LOLINK==''){header('HTTP/1.1 403 Forbidden');exit(ERROR);}else{$us_lotime='1';}}
//用户验证
$c_to_yz=$a->xxtea_encrypt(C_ROOT_TOKEN,C_ROOT_KEY);
//缓存文件~请确认是否有权限创建文件
if (!is_dir('cache/')) mkdir('cache/'); ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"/> 
<meta name="renderer" content="webkit"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=USER_TITLE?USER_TITLE:'_云解析系统_';?></title>
<style type="text/css">body,html,.content{background-color:black;padding: 0;margin: 0;width:100%;height:100%;color:#999;}.divs{width:100%;height:auto;position:fixed;left:0;top:0;z-index:999}#stats{position:fixed;top:5px;left:10px;font-size:12px;color:#fdfdfd;z-index:2147483647;text-shadow:1px 1px 1px #000, 1px 1px 1px #000}</style>
<script type="text/javascript" src="https://cdn.staticfile.org/blueimp-md5/2.10.0/js/md5.js"></script>
<script type="text/javascript" src="https://apps.bdimg.com/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.staticfile.org/flv.js/1.5.0/flv.js"></script>
<script type="text/javascript" src="<?=$user['path'];?>/ckplayer/ckplayer.js?v=1.1.3"></script>
</head>
<body style="overflow-y:hidden;">
<div id="loading" align="center"><strong><br><br><br><br><br><span class="tips">服务器正在解析中,请稍等....<font class="timemsg">0</font>s</span></strong><span class="timeout" style="display:none;color:#f90;">解析响应超时，请刷新重试！</span></div>
<input type="hidden" id="k1" value='<?=time();?>'/>
<div id="a1" class="content" style="display:none;"></div>
<div id="stats" style="display:none;"></div>
<div id="error" class="content" style="display:none;font-weight:bold;padding-top:90px;" align="center"></div>
<script type="text/javascript">
function tipstime(count){
    $('.timemsg').text(count);
    if (count == 20) {
       $('.tips').hide();
       $('.timeout').show();
    } else {
        count += 1;
        setTimeout(function () {
            tipstime(count);
        }, 1000);
    }
}
tipstime(0);
/*(*^__^*)*/<?=$a->jsencode('fuck = \''.$c_to_yz.'\';domain=\''.$a->bytes().'\';')?>
skin={'url':'<?php echo $url; ?>','skin':'<?=$user['skin']?>','hand':'<?=$user['hand']?>','logo':'<?=$user['cklogo']?>','href':'<?=$user['ckhref']?>','font':'<?=$user['ckfont']?>','dp':'<?=$user['dplayer']?>','expire':'<?=$user['danmaku']?>','id':'<?=C_ROOT_ID?>','cdncache':'<?=$user['cdncache']?>','type':'<?=htmlspecialchars(@$_REQUEST['type']);?>','title':'<?=$user['p2p']?>','auto':'<?=USER_AUTO=="1"?1:0;?>','auto_h5':'<?=USER_AUTO_H5=="1"?1:0;?>','user_ad':'<?=USER_AD?>','us_lotime':'<?=$us_lotime?>','user_lolink':'<?=USER_LOLINK?>','user_lotime':'<?=USER_LOTIME?>','ver':'<?=base64_encode(VERSION)?>','looperror':'<?=$user['looperror']?>','loophead':'<?=$user['loophead']?>','looptime':<?=$user['looptime']?$user['looptime']:"''"?>,'loophref':'<?=$user['loophref']?>','dtitle':'<?=$user['dtitle']?>','dlink':'<?=$user['dlink']?>','fullscreen':'<?=$user['fullscreen']?>','reder':'<?=USER_TONGJI?>','layer':'<?=$user['layer']?>','player':'<?=base64_encode($jurl);?>'},
site_domaim=function(){var path=window.location.pathname;if(path.indexOf(".")>-1){var i=path.lastIndexOf("/");var path=path.substring(0,i+1);}return path;}();
document.writeln("<script type='text/javascript' src='//"+(skin.cdncache==1?window.location.host+site_domaim:domain)+"dplayer/dplayer.js?v=1.4.5'><\/script>");</script><?php if(USER_TONGJI!=''){$tongji='<div style="display:none"><script type="text/javascript">var cnzz_s_tag = document.createElement("script");cnzz_s_tag.type = "text/javascript";cnzz_s_tag.async = true;cnzz_s_tag.charset = "utf-8";cnzz_s_tag.src = "//'.USER_TONGJI.'&async=1";var root_s = document.getElementsByTagName("script")[0];root_s.parentNode.insertBefore(cnzz_s_tag, root_s);</script></div>';echo $tongji;}?></body></html>