最近发现本站旗下影视网站出现功能错误,继续上篇文章,这篇文章继续修复爱客影院系统不显示影视分类,修复前的网站视频页面如下:
影视分类顶部栏里只有一个全部,并不显示分类,所以就找到了如下方法进行修复:
找到源码里list.php修改以下标红的代码如下:
<?php
error_reporting(0);
$list = file_get_contents(
"http://www.360kan.com/dianshi/list"
);
$list1 = file_get_contents(
"http://www.360kan.com/dianying/list.php"
);
$list2 = file_get_contents(
"http://www.360kan.com/dongman/list.php"
);
$list3 = file_get_contents(
"http://www.360kan.com/zongyi/list.php"
);
$list4 = file_get_contents(
"http://list.youku.com/category/video/c_94_d_1_s_1_p_1.html"
);
$lzz =
"#<a class="js-tongjip" href="http://www.360kan.com/dianshi/list\?year=all\&area\=all\&act\=all\&cat\=(.*?)" target="_self">(.*?)</a>#"
;
$lzzmv =
"#<a class="js-tongjip" href="http://www.360kan.com/dianying/list.php\?year=all\&area=all\&act=all\&cat=(.*?)" target="_self">(.*?)</a>#"
;
$lzzdm =
"#<a class="js-tongjip" href="http://www.360kan.com/dongman/list.php\?year=all\&area=all\&cat=(.*?)" target="_self">(.*?)</a>#"
;
$lzzzy =
"#<a class="js-tongjip" href="http://www.360kan.com/zongyi/list.php\?act=all\&area=all\&cat=(.*?)" target="_self">(.*?)</a>#"
;
$lzz1 =
"# <a class="js-tongjip" href="http://www.360kan.com/dianshi/list\?cat\=all\&area=all\&act\=all\&year\=(.*?)" target="_self">(.*?)</a>#"
;
$lzz2 =
"#<a class="js-tongjip" href="http://www.360kan.com/dianshi/list\?cat\=all\&year\=all\&act\=all\&area\=(.*?)" target="_self">(.*?)</a>#"
;
preg_match_all($lzz, $list, $larr);
preg_match_all($lzz1, $list, $larr1);
preg_match_all($lzz2, $list, $larr2);
preg_match_all($lzzmv, $list1, $larrmv);
preg_match_all($lzzdm, $list2, $larrdm);
preg_match_all($lzzzy, $list3, $larrzy);
$cat = $larr[1];
$mcat = $larrmv[1];
$dmcat = $larrdm[1];
$zycat = $larrzy[1];
$dmname = $larrdm[2];
$zyname = $larrzy[2];
$mname = $larrmv[2];
$cat1 = $larr1[1];
$cat2 = $larr2[1];
$
name
= $larr[2];
修改为:
$lzz =
"#<a class="js-tongjip" href="http://www.360kan.com/dianshi/list\?year=all\&area\=all\&act\=all\&cat\=(.*?)" target="_self">(.*?)</a>#is"
;
$lzzmv =
"#<a class="js-tongjip" href="http://www.360kan.com/dianying/list.php\?year=all\&area=all\&act=all\&cat=(.*?)" target="_self">(.*?)</a>#is"
;
$lzzdm =
"#<a class="js-tongjip" href="http://www.360kan.com/dongman/list.php\?year=all\&area=all\&cat=(.*?)" target="_self">(.*?)</a>#is"
;
$lzzzy =
"#<a class="js-tongjip" href="http://www.360kan.com/zongyi/list.php\?act=all\&area=all\&cat=(.*?)" target="_self">(.*?)</a>#is"
;
$lzz1 =
"# <a class="js-tongjip" href="http://www.360kan.com/dianshi/list\?cat\=all\&area=all\&act\=all\&year\=(.*?)" target="_self">(.*?)</a>#is"
;
$lzz2 =
"#<a class="js-tongjip" href="http://www.360kan.com/dianshi/list\?cat\=all\&year\=all\&act\=all\&area\=(.*?)" target="_self">(.*?)</a>#is"
;
即可完美显示影视分类,演示地址:https://www.wzxiu.com/zxvideo/dongman.php
版权声明:本文内容由来自互联网,该文观点不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,请联系我们举报,一经查实,本站将立刻删除。