修复爱客影院系统不显示影视分类

最近发现本站旗下影视网站出现功能错误,继续上篇文章,这篇文章继续修复爱客影院系统不显示影视分类,修复前的网站视频页面如下:

影视分类顶部栏里只有一个全部,并不显示分类,所以就找到了如下方法进行修复:

找到源码里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\=(.*?)" rel="external nofollow" rel="external nofollow" target="_self">(.*?)</a>#";
$lzzmv = "#<a class="js-tongjip" href="http://www.360kan.com/dianying/list.php\?year=all\&area=all\&act=all\&cat=(.*?)" rel="external nofollow" rel="external nofollow" target="_self">(.*?)</a>#";
$lzzdm = "#<a class="js-tongjip" href="http://www.360kan.com/dongman/list.php\?year=all\&area=all\&cat=(.*?)" rel="external nofollow" rel="external nofollow" target="_self">(.*?)</a>#";
$lzzzy = "#<a class="js-tongjip" href="http://www.360kan.com/zongyi/list.php\?act=all\&area=all\&cat=(.*?)" rel="external nofollow" rel="external nofollow" target="_self">(.*?)</a>#";
$lzz1 = "# <a class="js-tongjip" href="http://www.360kan.com/dianshi/list\?cat\=all\&area=all\&act\=all\&year\=(.*?)" rel="external nofollow" rel="external nofollow" target="_self">(.*?)</a>#";
$lzz2 = "#<a class="js-tongjip" href="http://www.360kan.com/dianshi/list\?cat\=all\&year\=all\&act\=all\&area\=(.*?)" rel="external nofollow" rel="external nofollow" 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\=(.*?)" rel="external nofollow" rel="external nofollow" target="_self">(.*?)</a>#is";
$lzzmv = "#<a class="js-tongjip" href="http://www.360kan.com/dianying/list.php\?year=all\&area=all\&act=all\&cat=(.*?)" rel="external nofollow" rel="external nofollow" target="_self">(.*?)</a>#is";
$lzzdm = "#<a class="js-tongjip" href="http://www.360kan.com/dongman/list.php\?year=all\&area=all\&cat=(.*?)" rel="external nofollow" rel="external nofollow" target="_self">(.*?)</a>#is";
$lzzzy = "#<a class="js-tongjip" href="http://www.360kan.com/zongyi/list.php\?act=all\&area=all\&cat=(.*?)" rel="external nofollow" rel="external nofollow" target="_self">(.*?)</a>#is";
$lzz1 = "# <a class="js-tongjip" href="http://www.360kan.com/dianshi/list\?cat\=all\&area=all\&act\=all\&year\=(.*?)" rel="external nofollow" rel="external nofollow" target="_self">(.*?)</a>#is";
$lzz2 = "#<a class="js-tongjip" href="http://www.360kan.com/dianshi/list\?cat\=all\&year\=all\&act\=all\&area\=(.*?)" rel="external nofollow" rel="external nofollow" target="_self">(.*?)</a>#is";
即可完美显示影视分类,演示地址:https://www.wzxiu.com/zxvideo/dongman.php

古风网版权互动须知

请遵循相关法律法规,如有侵权、后门、不妥请联系本站删除!

原文地址:https://www.wzxiu.com/623.html 修复爱客影院系统不显示影视分类

发表评论