[Asm] 纯文本查看 复制代码
<?php
error_reporting(0);
include "./inc/aik.config.php";
if (!$_GET["sousuo"]) {
$tiao = $aik["pcdomain"];
?><meta http-equiv=refresh content='0; url=<?php echo $tiao;?>'><?php
}
?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta http-equiv="cache-control" content="no-siteapp">
<title>《<?php echo $_GET["sousuo"];?>》-搜索结果-<?php echo $aik["title"];?></title>
<link rel='stylesheet' id='main-css' href='css/style.css' type='text/css' media='all' />
<link rel='stylesheet' id='main-css' href='css/seacher.css' type='text/css' media='all' />
<script type='text/javascript' src='http://apps.bdimg.com/libs/jquery/2.0.0/jquery.min.js?ver=0.5'></script>
<meta name="keywords" content="《<?php echo $_GET["sousuo"];?>》搜索结果">
<meta name="description" content="<?php echo $aik["title"];?>-《<?php echo $_GET["sousuo"];?>》搜索结果">
<!--[if lt IE 9]><script src="js/html5.js"></script><![endif]-->
<style>
.w-mfigure{
width: 18%;min-width:150px;
min-width:100px;
height: 180px;
margin-left: 10px;
margin-top: 0px;
display: inline-block;}
h4{font-size:12px}
</style>
</head>
<?php
include "header.php";
?>
<base target='_blank'>
<section class="container">
<div style="text-align: center;padding: 10px 0;color: #FF7562;font-size: 12px;">温馨提示:请点击搜索结果的标题或封面图进行观看</div>
<strong class="single-strong">全网搜索(来自爱奇艺/优酷/腾讯/乐视等)</strong> <div class="am-container main" style="padding:0"><?php
$url = 'https://video.360kan.com/v?ie=utf-8&src=360sou_home&q=' . $_GET['sousuo'] . '&_re=0';
$ch = curl_init($url); //初始化
curl_setopt($ch, CURLOPT_HEADER, 0); // 不返回header部分
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // 返回字符串,而非直接输出
curl_setopt($ch, CURLOPT_USERAGENT, "Dalvik/1.6.0 (Linux; U; Android 4.1.4; DROID RAZR HD Build/9.8.1Q-62_VQW_MR-2)");
curl_setopt($ch, CURLOPT_REFERER, "-");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); // https请求 不验证证书和hosts
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
$seach = curl_exec($ch);
$szz='#js-playicon" title="(.*?)"#';
$szz1='#a 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">(.*?)</span>#';
preg_match_all($szz, $seach,$sarr);//$sarr 的1为名字
preg_match_all($szz1, $seach,$sarr1);//$sarr1 的1为详情链接
preg_match_all($szz2, $seach,$sarr2);//sarr2的1为图片
preg_match_all($szz3, $seach,$sarr3);//sarr2的3为剧集
preg_match_all($szz4, $seach,$sarr4);//sarr2的3为剧集
$one=$sarr[1];
$two=$sarr2[1];
$three=$sarr3[3];
$si=$sarr1[1];
$wu=$sarr4[1];
$liu=$sarr5[1];
echo '<div class="excerpts-wrapper">
<div class="excerpts">
<div class="zhan">
<ul>';
foreach ($one as $key=>$cs){
echo '<li><a href="./play.php?play='.$si[$key].'"><b></b><img src="'.$two[$key].'" /><span>'.$one[$key].'</span></a></li>';
}
echo '</ul>
</div></div>
</div>';
?>
<div style="clear: both;"></div>
<p id="more" style="text-align: center;height: 50px;background: #eee;line-height: 50px;font-size: 16px;cursor: pointer;"> 点击查看被隐藏的搜索结果>> </p><?php
$url = $aik["zhanwai"];
function getrealurl($url){
$header = get_headers($url,1);
if (strpos($header[0],'301') || strpos($header[0],'302')) {
if(is_array($header['Location'])) {
return $header['Location'][count($header['Location'])-1];
}else{
return $header['Location'];
}
}else {
return $url;
}
}
$link = getrealurl($url);
$a = $link . "/index.php/search?wd=" . rawurlencode($_GET["sousuo"]);
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $a);
curl_setopt($curl, CURLOPT_HEADER, 1);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($curl);
curl_close($curl);
$response = strstr($response, "<div class=\"video-list\">");
$response = strstr($response, "<div class=\"clr\"></div>", true);
$response = str_replace("/attachment", $link . "/attachment", $response);
$response = str_replace("/index.php/show/index/", "mplay.php?mso=", $response);
?></div></div>
<strong class="single-strong">站外搜索列表Ⅰ</strong>
<div class="excerpts-wrapper">
<div class="excerpts">
<div class="zhan"><?php echo $response;?></div></div>
</div>
<?php
$link0 = $aik["zhanwai1"];
$sourl = $link0 . "/index.php?m=vod-search";
$post_data = array("wd" => $_GET["sousuo"]);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $sourl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
$output = curl_exec($ch);
curl_close($ch);
$output = str_replace("/?m=vod-detail-id-", "vplay.php?vod=", $output);
$output = str_replace("?m", "?gourl", $output);
$output = str_replace(".html", "", $output);
$pattern = "#<span class=\"xing_vb4\"><a href=\"(.*?)\" target=\"_blank\">(.*?)</a></span>#";
preg_match_all($pattern, $output, $matches);
$szlen = count($matches[0]);
?><strong class="single-strong">站外搜索列表Ⅱ</strong><ul class="mvul"><?php
$xh = 0;
while ($xh < $szlen) {
?><li><?php echo $matches[0][$xh];?></li><?php
$xh = $xh + 1;
}
?></ul><div class="bdwp">
<strong class="single-strong">百度网盘搜索列表</strong>
<ul class="mvul">
<li><span class="xing_vb4"><a href="bdpan.php?sousuo=<?php echo $_GET["sousuo"];?>" target="_blank"><?php echo $_GET["sousuo"];?> 百度网盘搜索结果 点击查看</a></span></li>
</ul>
</div>
<div class="bdwp">
<strong class="single-strong">磁力搜索列表</strong>
<ul class="mvul">
<li><span class="xing_vb4"><a href="cili.php?sousuo=<?php echo $_GET["sousuo"];?>&qiehuan=1" target="_blank"><?php echo $_GET["sousuo"];?> 磁力搜索结果 点击查看</a></span></li>
</ul>
</div>
</div></div></div>
<div style="clear: both;"></div>
</section>
<script>
if(document.getElementById("js-longvideo-container")!=undefined){
var more = document.getElementById('js-longvideo-container');
var cimore = document.getElementById('more');
more.style.display = 'none';
function ckmore(){
more.style.display = 'block';
cimore.style.display = 'none';
}
}else{
var cimore = document.getElementById('more');
cimore.style.display = 'none';
}
</script><script type="text/javascript">
var hei = $('.a-engineso-body').height();
var ben = $('.excerpts').height();
if (hei<0 && ben<0) {
if (confirm("抱歉.搜索内容无结果,是否为您跳转到主页")) {
window.location.href='/';
}
else {
window.location.href='/';
}
}
</script><?php
include "footer.php";