吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 8073|回复: 53
收起左侧

[其他转载] 【分享】 关于论坛里爱客3.5搜索代码修复文件,专门开一贴。

[复制链接]
js01 发表于 2018-8-26 12:54
【分享】 关于论坛里爱客3.5搜索代码修复文件,已做优化。
[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";


或者下载 seacher.php.txt (7.16 KB, 下载次数: 95) ,并改名seacher.php

免费评分

参与人数 4吾爱币 +6 热心值 +3 收起 理由
axinpei + 1 + 1 谢谢@Thanks!
2012-HACK + 1 新版的综艺的简介和连接没有怎么弄呢
凌乱的思绪 + 3 + 1 楼主很热心,感谢了
歆风 + 1 + 1 谢谢分享

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

水如鱼 发表于 2018-8-27 22:17
楼主大大,昨晚用了你3.5爱客,目前有几个大的问题,1)就是搜索出来404!也是按照你的代码来修改
404
We couldn't find that page.
Please check to make sure you've typed the URL correctly.
This webserver is CaSe SenSiTiVe so ensure capital letters in the URL match the files uploaded.

2)电影尝鲜,我这只能显示首页那个,前面显示的尝鲜电影能播放,但点查看更多会出来这样的
Parse error: syntax error, unexpected '$a' (T_VARIABLE) in /www/wwwroot/v.aixiua.com/cxlist.php on line 81

3)电影类,还有别的类目,只能显示一个页面。
楼主大大,看到群友用你的源码没碰到我这么多问题,我的怎么会这样。我的站http://v.aixiua.com/
麻烦楼主给分析下问题所在,在此先谢谢了
CharlesOWen 发表于 2018-8-29 17:04
js01 发表于 2018-8-28 21:04
http://host805154618.s779.pppf.com.cn/
这是我修改后的建的,不过不大好用啊。品优比爱客差多了,只支 ...

貌似就 电视剧有这个问题 其他的 动漫之类的 都没有 电视剧的剧集点击了之后 视频接口跳转 跳转不到 专门的爱奇艺视频地址上 javas啥的那个
歆风 发表于 2018-8-26 19:22
 楼主| js01 发表于 2018-8-26 19:44
歆风 发表于 2018-8-26 19:22
楼主,品优的全网搜能修复吗?

我没有用品优影视,freekan影视搜索修复要吗?
87720108 发表于 2018-8-26 19:49
这么666,
歆风 发表于 2018-8-26 20:01
js01 发表于 2018-8-26 19:44
我没有用品优影视,freekan影视搜索修复要吗?

那个我也找到了,参考了一下,没在品优里找到对应的文件。。
 楼主| js01 发表于 2018-8-26 21:41
歆风 发表于 2018-8-26 20:01
那个我也找到了,参考了一下,没在品优里找到对应的文件。。

你文件里5.6.7三行代码改成我这边的53.54.55三行代码试一试。
tf30 发表于 2018-8-27 08:59
js01 发表于 2018-8-26 21:41
你文件里5.6.7三行代码改成我这边的53.54.55三行代码试一试。

爱客好像只显示图片和标题吧,品优是显示评分,和简介的 ,哎到现在还没解决这个bug,图片倒是显示了
歆风 发表于 2018-8-27 19:40
tf30 发表于 2018-8-27 08:59
爱客好像只显示图片和标题吧,品优是显示评分,和简介的 ,哎到现在还没解决这个bug,图片倒是显示了{:30 ...

你品优能搜出来??能把seacher.php发给我一份吗?
我按楼主的方法试了还是什么也搜不到
 楼主| js01 发表于 2018-8-27 22:26
本帖最后由 js01 于 2018-8-28 18:38 编辑
歆风 发表于 2018-8-26 19:22
楼主,品优的全网搜能修复吗?

品优的全网搜索修复文件 seacher.php.txt (11.13 KB, 下载次数: 10) 改名为seacher.php
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止灌水或回复与主题无关内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-4-25 04:10

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表