tmss
发表于 2019-10-10 20:07
一笑懸命桑
发表于 2019-10-11 09:20
本帖最后由 一笑懸命桑 于 2019-10-11 09:23 编辑
几百CB为大佬备着,这是根目录的
<?php include('system/inc.php');
$q=$_GET['wd'];
$seach=file_get_contents('https://so.360kan.com/index.php?kw='.$q);
$szz='#js-playicon" title="(.*?)"\s*data-logger#';
$szz1='#a href="(.*?)" class="g-playicon js-playicon"#';
$szz2='#<img src="(.*?)" alt="(.*?)" \/>#';
$szz3='#(<b>(.*?)</b><span>(.*?)</span></li></ul>)?<ul class="index-(.*?)-ul g-clear">(\n\s*)?<li>(\n\s*)?<b>类型:</b>(\n\s*)?<span>(.*?)</span>#';
$szz4='#<span class="playtype">[\s\S]*?</span>#';
$szz5='#<b>地区:</b>[\s\S]*?</li>#';
$szz6='#<div class="m-score">(.*?)</div>#';//评分
$szz7='#<b>导演:</b>(.*?)</li>#';//导演
$szz8='#<div class="m-description">[\s\S]*?</div>#';//简介
$mxzl="#<dl class='w-star-intro'><dt>介绍:</dt><dd>(.*?)</dd></dl>#";//简介
$mxss='#<li data-logger=(.*?) class=\'w-mfigure\'><a class=\'w-mfigure-imglink g-playicon js-playicon\' href=\'(.*?)\'> <img src=\'(.*?)\' data-src=\'(.*?)\' alt=\'(.*?)\'/><span class=\'w-mfigure-hintbg\'>(.*?)</span><span class=\'w-mfigure-hint\'>(.*?)</span></a><h4><a class=\'w-mfigure-title\' href=\'(.*?)\'>(.*?)</a></h4></li>#';//模糊搜索结果
preg_match_all($szz,$seach,$sarr);
preg_match_all($szz8,$seach,$sarr8);
preg_match_all($szz1,$seach,$sarr1);
preg_match_all($szz2,$seach,$sarr2);
preg_match_all($szz3,$seach,$sarr3);
preg_match_all($szz4,$seach,$sarr4);
preg_match_all($szz5,$seach,$sarr5);
preg_match_all($szz6,$seach,$sarr6);
preg_match_all($szz7,$seach,$sarr7);
preg_match_all($mxss,$seach,$sarr10);
preg_match_all($mxzl,$seach,$sarr9);
$one=$sarr;//标题
$two=$sarr2;//图片
$three=$sarr3;//集数
$si=$sarr4;//类型
$wu=$sarr5;//年代
$liu=$sarr6;//评分
$qi=$sarr7;//导演
$ba=$sarr8;//简介
$nine =$sarr1;
$mingxing =$sarr10;
$mingxing1 =$sarr10;
$mingxing2 =$sarr10;
$mingxing3 =$sarr10;
$mingxing4 =$sarr9;
include 'data/bangdan.php';
include('moban/'.$mkcms_bdyun.'/seacher.php');
?>
这个是模板里的
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?phpinclude 'head.php';?>
<title>搜索<?php echo $q?>-<?php echo $mkcms_seoname;?></title>
<meta name="keywords" content="<?php echo $q?>,<?php echo $mkcms_keywords;?>">
<meta name="description" content="<?php echo $mkcms_description;?>">
</head>
<body class="vod-search">
<?phpinclude 'header.php';?>
<div class="container">
<div class="row">
<div class="col-md-9 col-sm-12 hy-main-content">
<div class="hy-layout clearfix">
<div class="hy-video-head">
<span class="text-muted pull-right hidden-xs"></span>
<h4 class="margin-0">搜索到与<span class="text-color">“<?php echo $q?>”</span>相关的影片</h4>
</div>
<?php
$result = mysql_query('select * from mkcms_vod where d_name like "%'.$q.'%" order by d_id desc');
while ($row = mysql_fetch_array($result))
{
$tupian=$row['d_picture'];
$cs=$row['d_name'];
$jianjie=$row['d_content'];
$cc="./bplay.php?play=";
$dd="./bplay/";
if ($mkcms_wei==1){
$chuandi=$dd.$row['d_id'];
$html=".html";
}
else{
$chuandi=$cc.$row['d_id'];
$html="";
}
?>
<div class="hy-video-details active clearfix">
<div class="item clearfix">
<dl class="content">
<dt><a class="videopic" href="<?php echo $chuandi?><?php echo $html?>" style="background: url(<?php echo $tupian?>) no-repeat; background-position:50% 50%; background-size: cover;"><span class="play hidden-xs"></span></a></dt>
<dd class="clearfix">
<div class="head">
<h3><?php echo $cs?></h3>
</div>
<div class="score">
<div class="star">
<span class="star-cur" id="score-0"></span>
</div>
<span class="branch"></span>
<script type="text/javascript">
var str = "0%"
document.getElementById("score-0").style.width = (str.replace(".", ""))
</script>
</div>
<ul>
<li><span><?php echo $row['d_zhuyan']?></span></li>
<li><span>类型:<?php echo get_channel_name($row['d_parent'])?></span></li>
<li><span class="text-muted">简介:</span><?php echo $jianjie?></li>
</ul>
<div class="block">
<a class="text-muted" href="<?php echo $chuandi?><?php echo $html?>">查看详情 <i class="icon iconfont icon-xiangyou"></i></a>
</div>
</dd>
</dl>
</div>
</div>
<?php } ?>
<?php
if (!empty($one)){
foreach ($one as $ni=>$cs){
$mvsrc1 = str_replace("http://www.360kan.com", "", "$nine[$ni]");
$pingfen = str_replace('<div class="b-tomato"><div class="rating-site yellow"><p class="value">评分:<span>', '', "$liu[$ni]");
$pingfen = str_replace('</span></p></div></div>', '', "$pingfen");
$pingfen = str_replace(' ', '', "$pingfen");
$pingfen = str_replace('<div class="cont">', '', "$pingfen");
$pingfen = str_replace('<h3 class="title">', '', "$pingfen");
$pingfen = str_replace(array("\r\n", "\r", "\n"), '', "$pingfen");
$pingfen = str_replace('<div class="b-tomato"><div class="rating-site red"><p class="value">评分:<span>', '', "$pingfen");
$pingfen = str_replace('<div class="b-tomato"><div class="rating-site green"><p class="value">评分:<span>', '', "$pingfen");
$jianjie= str_replace("data-desc='", '', "$ba[$ni]");
$jianjie= str_replace("'>", '', "$jianjie");
$jianjie= str_replace("<i>", "<span class=text-muted>", "$jianjie");
$jianjie= str_replace("</i>","</span>", "$jianjie");
$tupian=$two[$ni];
if ($mkcms_wei==1){
$chuandi='../../vod'.$mvsrc1;
}
else{
$chuandi='./play.php?play='.$mvsrc1;
}//结束
$d_scontent=explode(',',$mkcms_shoufei);
for($i=0;$i<count($d_scontent);$i++)
{
if($cs==$d_scontent[$i]){
//提示错误值
$xianshi='style="display:none"';
}
}
?>
<div class="hy-video-details active clearfix" <?php echo $xianshi?>>
<div class="item clearfix">
<dl class="content">
<dt><a class="videopic" href="<?php echo $chuandi?>" style="background: url(<?php echo $tupian?>) no-repeat; background-position:50% 50%; background-size: cover;"><span class="play hidden-xs"></span></a></dt>
<dd class="clearfix">
<div class="head">
<h3><?php echo $cs?><?php echo $three[$ni]?><?php echo $si[$ni]?></h3>
</div>
<div class="score">
<div class="star">
<span class="star-cur" id="score-<?php echo $pingfen?>"></span>
</div>
<span class="branch"><?php echo $pingfen?></span>
<script type="text/javascript">
var str = "<?php echo $pingfen?>%"
document.getElementById("score-<?php echo $pingfen?>").style.width = (str.replace(".", ""))
</script>
</div>
<ul><li><?php echo $jianjie?></li></ul>
<div class="block">
<a class="text-muted" href="<?php echo $chuandi?>">查看详情 <i class="icon iconfont icon-xiangyou"></i></a>
</div>
</dd>
</dl>
</div>
</div>
<?php }
}else{
foreach ($mingxing as $k=>$mx){
$mvsrc1 = str_replace("http://www.360kan.com", "", "$mingxing[$k]");
$tupian=$mingxing1[$k];
$title=$mingxing2[$k];
$jishu=$mingxing3[$k];
if ($mkcms_wei==1){
$chuandi='../../vod'.$mvsrc1;
}
else{
$chuandi='./play.php?play='.$mvsrc1;
}//结束
?>
<div class="hy-video-details active clearfix">
<div class="item clearfix">
<dl class="content">
<dt><a class="videopic" href="<?php echo $chuandi?>" style="background: url(<?php echo $tupian?>) no-repeat; background-position:50% 50%; background-size: cover;"><span class="play hidden-xs"></span></a></dt>
<dd class="clearfix">
<div class="head">
<h3><?php echo $title?><?php echo $jishu?></h3>
</div>
<ul>
<li><span class="text-muted">主演:</span><?php echo $q?></li>
</ul>
<div class="block">
<a class="text-muted" href="<?php echo $chuandi ?>">查看详情 <i class="icon iconfont icon-xiangyou"></i></a>
</div>
</dd>
</dl>
</div>
</div>
<?php } ?>
<?php } ?>
</div>
</div>
<div class="col-md-3 col-sm-12 hy-main-side hidden-sm hidden-xs">
<div class="hy-layout clearfix">
<div class="hy-video-ranking side clearfix">
<div class="head">
<a class="text-muted pull-right" href="<?php echo $mkcms_domain;?>movie.php?m=/dianying/list.php?cat=all%26pageno=1">更多 <i class="icon iconfont icon-xiangyou"></i></a>
<h4><i class="icon iconfont icon-top text-color"></i> 电影排行榜</h4>
</div>
<div class="item">
<ul class="clearfix">
<?php
include './data/bangdan.php';
foreach ($bdArr['dy']['title'] as $k=>$title){
$bdurl=$bdArr['dy']['url'][$k];//url
$bdurl = str_replace("http://www.360kan.com", "", $bdurl);
$bdnum=$bdArr['dy']['num'][$k];//num
if ($mkcms_wei==1){
$chuandi='./vod'.$bdurl;
}
else{
$chuandi='./play.php?play='.$bdurl;
}
echo "<li class='text-overflow '><span class='pull-right text-color'>$bdnum</span><a href='$chuandi' title='$title'><em class='number active'>></em>$title</a></li>";
}
?>
</ul>
</div>
</div>
<div class="hy-video-ranking side clearfix">
<div class="head">
<a class="text-muted pull-right" href="<?php echo $mkcms_domain;?>tv.php?u=/dianshi/list.php?cat=all%26pageno=1">更多 <i class="icon iconfont icon-xiangyou"></i></a>
<h4><i class="icon iconfont icon-top text-color"></i> 剧集排行榜</h4>
</div>
<div class="item">
<ul class="clearfix">
<?php
foreach ($bdArr['tv']['title'] as $k=>$title){
$bdurl=$bdArr['tv']['url'][$k];//url
$bdurl = str_replace("http://www.360kan.com", "", $bdurl);
$bdnum=$bdArr['tv']['num'][$k];//num
if ($mkcms_wei==1){
$chuandi='./vod'.$bdurl;
}
else{
$chuandi='./play.php?play='.$bdurl;
}
echo "<li class='text-overflow '><span class='pull-right text-color'>$bdnum</span><a href='$chuandi' title='$title'><em class='number active'>></em>$title</a></li>";
}
?>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
var swiper = new Swiper('.hy-slide', {
pagination: '.swiper-pagination',
paginationClickable: true,
autoplay: 3000,
});
</script>
<?phpinclude 'footer.php';?>
tmss
发表于 2019-10-10 21:35
马克
发表于 2019-10-10 20:49
楼主擅长php么,我有米酷6.2.3能帮忙改个东西么
tmss
发表于 2019-10-10 20:59
马克
发表于 2019-10-10 21:22
让它支持php7.2 再加个海报分享功能
艾诗迷
发表于 2019-10-10 21:33
能分享一下整套米酷的程序么。。。。我也一直在找这个程序。
tmss
发表于 2019-10-10 21:34
艾诗迷
发表于 2019-10-10 21:38
tmss 发表于 2019-10-10 21:35
【影视源码】MKCMS米酷影视[更新至6.2.3] http://blog.xfj.me/105.html
是这个吗?
这个是收费的吗
一笑懸命桑
发表于 2019-10-10 21:44
我愿意重CB求楼主改一个mkcms5.0的php文件
{:301_973:}楼主看成吗
tmss
发表于 2019-10-10 21:49