-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmovie.php
131 lines (131 loc) · 4.94 KB
/
movie.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?php
include ('./inc/aik.config.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>看电影-2017最新好看的最新电影-<?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/movie.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="看电影-2017最新好看的最新电影">
<meta name="description" content="<?php echo $aik['title'];?>-看电影-2017最新好看的最新电影">
<!--[if lt IE 9]><script src="js/html5.js"></script><![endif]-->
</head>
<body class="page-template page-template-pages page-template-posts-film page-template-pagesposts-film-php page page-id-9">
<?php include 'header.php';?>
<section class="container"><div class="fenlei">
<div class="b-listfilter" style="padding: 0px;">
<style>
#noall{
background-color: #aik651;
color: #fff;
}
</style>
<dl class="b-listfilter-item js-listfilter" style="padding-left: 0px;height:auto;padding-right:0px;">
<dd class="item g-clear js-listfilter-content" style="margin: 0;">
<a href='?m=http://www.360kan.com/dianying/list.php?cat=all%26pageno=1' target='_self'>全部</a>
<?php
include 'list.php';
$page=$_GET['page'];
$page1=$_GET['page']+=1;
$aaa='1';
$page2='%26pageno='.$page1;
foreach ($mcat as $kcat=>$vcat){
$flname= $mname[$kcat];
$flid="?m=http://www.360kan.com/dianying/list.php?cat=".$vcat.'%26pageno=1';
echo "<a href='$flid' target='_self'>$flname</a>";
}
$fenge=$_GET['m'];
//echo $fenge;
?>
</dd>
</dl>
</div>
</div>
<div class="m-g">
<div class="b-listtab-main">
<div>
<div>
<div class="s-tab-main">
<ul class="list g-clear">
<?php
$flid1=$_GET['m'];
$rurl=file_get_contents($flid1);
$vname='#<span class="s1">(.*?)</span>#';//取出电影的名字
$fname='#<span class="s2">(.*?)</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>#';//取电影播放地址
$jishu='#<span class="hint">(.*?)</span> #';
$fufei='#<span class="pay">(.*?)</span>#';
$yuming='http://www.360kan.com';
preg_match_all($vname, $rurl,$xarr);
preg_match_all($fname, $rurl,$xarrf);
preg_match_all($vlist, $rurl,$xarr1);
preg_match_all($vstar, $rurl,$xarr2);
preg_match_all($vimg, $rurl,$xarr3);
preg_match_all($bflist, $rurl,$xarr4);
preg_match_all($jishu, $rurl,$xarr5);
preg_match_all($fufei, $rurl,$xarrff);
$xname=$xarr[1];//名字
$lname=$xarrf[1];//名字
$xlist=$xarr1[1];//360看的地址
$xstar=$xarr2[1];//主演
$ximg=$xarr3[1];//封面图
$xbflist=$xarr4[1];//暂时不用
$xjishu=$xarr5[1];//剧集
$xfufei=$xarrff[1];
foreach ($xname as $key=>$xvau){
$do=$yuming.$xlist[$key];
$do1=base64_encode($do);
$cc="./play.php?play=";
$ccb=$cc.$do1;
echo "<li class='item'>
<a class='js-tongjic' href='$ccb' title='$xvau' target='_blank'>
<div class='cover g-playicon'>
<img src='$ximg[$key]' alt='$xvau'/>
</div>
<div class='detail'>
<p class='title g-clear'>
<span class='s1'>$xvau</span>
<span class='s2'>$lname[$key]</span></p>
<p class='star'>$xstar[$key]</p>
</div>
</a>
</li>";
}
//print_r($rurl);
?>
</ul>
</div>
</div>
</div>
<div class="paging"> <a href="<?php $feng=$_GET['m']; $newstr = substr($feng,0,strlen($feng)-1); $newstr1=str_replace("&","%26","$newstr"); $hello = explode('=',$feng); $hello1=$hello[2]-1;$boss="?m=".$newstr1.$hello1;echo $boss;?>" target="_self">上一页</a>
<a href="<?php $feng=$_GET['m']; $newstr = substr($feng,0,strlen($feng)-1); $newstr1=str_replace("&","%26","$newstr"); $hello = explode('=',$feng); $hello1=$hello[2]+1;$boss="?m=".$newstr1.$hello1;echo $boss;?>" target="_self">下一页</a>
<a href="javascript:void(0);">当前第<?php echo $hello[2];?>页</a>
</div>
</div></div>
<div class="asst asst-list-footer"><?php echo $aik['movie_ad'];?></div></section>
<?php include 'footer.php';?>
</body></html><?php
/**$feng=$_GET['m'];
$newstr = substr($feng,0,strlen($feng)-1);
$newstr1=str_replace("&","%26","$newstr");
//echo $newstr1;
$hello = explode('=',$feng);
$hello1=$hello[2]+1;
$boss="http://localhost/jiexi/demo.php?u=".$newstr1.$hello1;
echo $boss;**/
?>