include('check.php');
error_reporting(0);
$yuming='http://www.360kan.com';
$player = $yuming.$_GET['play'];
$tvinfo = file_get_contents($player);
$tvzz='#
$tvzz1 = '##';
$dyzz= '#站点排序:[\s\S]+?
$bflist = '#(.*?)#';
$jianjie = '#
(.*?)
#';$biaoti = '#
(.*?)
#';$pan = '#
(.*?)
#';$pan1 = '#
(.*?)
#';preg_match_all($jianjie, $tvinfo, $jjarr);
preg_match_all($tvzz, $tvinfo, $tvarr);
preg_match_all($dyzz, $tvinfo, $dyarr);
preg_match_all($pan, $tvinfo, $ptvarr);
preg_match_all($pan1, $tvinfo, $ptvarr1);
preg_match_all($dyzz, $tvinfo, $tvlist);
preg_match_all($biaoti, $tvinfo, $btarr);
$mvsrc = implode($glue, $tvlist[0]);
preg_match_all($bflist, $mvsrc, $dyarr1);
//print_r($dyarr1[0]);
$dysrc=$dyarr1[0];
$c=$dyarr1[3];//电影的播放链接
$d=$dyarr1[4];//电影来源
$jian = $jjarr[1][0];//简介
$timu = $btarr[1][0];//标题
$panduan = $ptvarr[1][0];
$panduan1 = $ptvarr1[1][0];
$zyv="#
$qi="#(.*?)#";
$zyimg="#data-src='(.*?)' alt='(.*?)'#";
preg_match_all($zyv, $tvinfo,$zyvarr);
$zylist = implode($glue, $zyvarr[0]);
preg_match_all($ztlizz, $zylist,$zyliarr);
preg_match_all($qi, $zylist,$qiarr);
preg_match_all($zyimg, $zylist,$imgarr);
$mvsrc1 = str_replace("http://cps.youku.com/redirect.html?id=0000028f&url=", "", "$dysrc");
$zcf = implode($glue, $tvarr[0]);
preg_match_all($tvzz1, $zcf, $tvarr1);
$result = mysql_query('select * from xtcms_vod order by d_id asc');
while ($row = mysql_fetch_array($result))
<?php echo $timu; ?>-正在播放-<?php echo $xtcms_seoname;?>var videourls = document.getElementById('video');
var xlqieh = document.getElementById('videourlgo');
videourls.src = urls+xlqieh.href;
al.attr('class','am-btn am-btn-default lipbtn');
al[g].href = 'javascript:void(0)';
al.eq(g).attr('onclick','bofang(\''+ji[g]+'\',\''+btnji[g]+'\')');
document.getElementById('xuji').style.display='block';
document.getElementById('xlu').style.display = 'block';
var tishi = ('正在为您播放<?php echo $timu; ?>');
document.getElementById('xuji').innerHTML = tishi;
var tishi = ('正在为您播放<?php echo $timu; ?> '+jiid+'');
var jitotal = $(".lipbtn").length;
$("#btn-prev").attr("style","");
$("#btn-prev").attr("style","display:none;");
$("#btn-next").attr("style","");
$("#btn-next").attr("style","display:none;");
document.getElementById('videourlgo').href=mp4url;
document.getElementById('xuji').innerHTML = tishi;
document.getElementById('jishu').innerHTML = jiid;
$(".btn-play-active").attr("style","");
$(".btn-play-active").removeClass("btn-play-active");
$("#"+jiid).addClass("btn-play-active");
$("#"+jiid).attr("style","background: #00a0e9;color: #ffffff;border:1px solid #00a0e9;");
if(mp4url.indexOf('iqiyi')>=0){
document.getElementById('video').src='<?php echo $mjk;?>'+mp4url;
}else if(mp4url.indexOf('qq')>=0){
document.getElementById('video').src='<?php echo $mjk;?>'+mp4url;
}else if(mp4url.indexOf('sohu')>=0){
document.getElementById('video').src='<?php echo $mjk;?>'+mp4url;
}else if(mp4url.indexOf('youku')>=0){
document.getElementById('video').src='<?php echo $mjk;?>'+mp4url;
}else if(mp4url.indexOf('tudou')>=0){
document.getElementById('video').src='<?php echo $mjk;?>'+mp4url;
}else if(mp4url.indexOf('le')>=0){
document.getElementById('video').src='<?php echo $mjk;?>'+mp4url;
}else if(mp4url.indexOf('58')>=0 && mp4url.indexOf('58')<5 ){
document.getElementById('video').src='<?php echo $mjk;?>'+mp4url;
document.getElementById('video').src='<?php echo $mjk;?>'+mp4url;
document.getElementById('addid').style.display = 'none';
var jishu = document.getElementById('jishu').innerHTML;
var tishi = ('正在为您播放<?php echo $timu; ?> '+jishu+'');
document.getElementById('xuji').innerHTML = tishi;
$("#"+jishu).addClass("btn-play-active");
$("#"+jishu).attr("style","background: #00a0e9;color: #ffffff;border:1px solid #00a0e9;");
$("#btn-prev").attr("style","display:none;");
$("#btn-prev").click(function(){
var obj = $(".btn-play-active");
$(".btn-play-active").attr("style","");
$(".btn-play-active").removeClass("btn-play-active");
obj.parent().prev().children(0).click();
$("#btn-next").click(function(){
var obj = $(".btn-play-active");
$(".btn-play-active").attr("style","");
$(".btn-play-active").removeClass("btn-play-active");
obj.parent().next().children(0).click();
var swiper = new Swiper('.hy-switch', {
pagination: '.swiper-pagination',
nextButton: '.swiper-button-next',
prevButton: '.swiper-button-prev',