-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfenlei.php
60 lines (60 loc) · 2.11 KB
/
fenlei.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
error_reporting(0);
header('Content-type:text/html;charset=utf-8');
include './inc/config.php';
$page=$_GET['page'];
$page1=$_GET['page']+=1;
$page2=$_GET['page']-1;
$pageurl = $host.'/?page='.$page1;
$pageurl1 = $host.'/?page='.$page2;
$jjj=$_GET['listid'];
$iu=base64_decode($jjj);//解密
$info=file_get_contents($iu);
print_r($info);
define('360', 'www.360kan.com');//域名
$yuming="http://www.360kan.com";
$vname='#<span class="s1">(.*?)</span>#';//取出电影的名字
$vlist='#<a class="js-tongjic" href="(.*?)">#';//取出电影的详情列表
$vstar='# <p class="star">(.*?)</p>#';//取出电影的主演
$vimg='#<div class="cover g-playicon"><img src="(.*?)">#';//取出电影的封面
$bflist='#<a data-daochu(.*?) href="(.*?)" class="js-site-btn btn btn-play"></a>#';//取电影播放地址
$array = array();
//电影的信息加入数组 开始
preg_match_all($vname, $info,$namearr);
preg_match_all($vlist, $info,$listarr);
preg_match_all($vstar, $info,$stararr);
preg_match_all($vimg, $info,$imgarr);
//print_r($stararr);
foreach ($namearr[1] as $key => $value)
{
//echo $value . '<br/>';
$gul=$yuming.$listarr[1][$key];//取出播放链接
$cd=$host.'/alist.php?id='.$gul;
$guq=$listarr[1][$key];
$_GET['id']=$gul;
//echo $guq;
$zimg=$imgarr[1][$key];//取出图片链接
$zname=$namearr[1][$key];//取出影片名字
$zstar=$stararr[1][$key];
$jiami=base64_encode($gul);
//echo $zname;
//echo $gul;//取出播放链接
$chuandi=$host.'/inc/b.php?id='.$jiami;
echo " <li class='item'>
<a class='js-tongjic' href='$chuandi'>
<div class='cover g-playicon'>
<img src='$zimg'>
<span class='pay'>超清</span><span class='hint'>2016</span> </div>
<div class='detail'>
<p class='title g-clear'>
<span class='s1'>$zname</span>
<span class='s2'>4.9</span>
</p>
<p class='star'>$zstar</p>
</div>
</a>
</li> ";
//以上代码为PHP核心代码 如若不明 请勿修改
}
echo "<div monitor-desc='分页' id='js-ew-page' data-block='js-ew-page' class='ew-page'>
<a href='$pageurl' target='_self' class='btn'>下一页></a></div>";