-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtv.php
123 lines (123 loc) · 4.83 KB
/
tv.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
<?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>追热剧-最新电视剧-好看电视剧-最新电视剧排行-<?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/tv.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="追热剧-最新电视剧-好看电视剧-最新电视剧排行">
<meta name="description" content="<?php echo $aik['title'];?>-追热剧-最新电视剧-好看电视剧-最新电视剧排行">
<!--[if lt IE 9]><script src="js/html5.js"></script><![endif]-->
</head>
<body class="page-template page-template-pages page-template-posts-tvshow page-template-pagesposts-tvshow-php page page-id-10">
<?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 class="js-tongjip" href="?u=http://www.360kan.com/dianshi/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 ($cat as $kcat=>$vcat){
$flname= $name[$kcat];
$flid="?u=http://www.360kan.com/dianshi/list.php?cat=".$vcat.'%26pageno=1';
echo "<a class='js-tongjip' href='$flid' target='_self' title='$flname'>$flname</a>";
}
$fenge=$_GET['u'];
//echo $fenge;
?>
</dd>
</dl>
</div>
</div>
<div class="m-g">
<div class="b-listtab-main">
<div class="s-tab-main"><ul class="list g-clear">
<?php
$flid1=$_GET['u'];
$rurl=file_get_contents($flid1);
$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>#';//取电影播放地址
$jishu='#<span class="hint">(.*?)</span> #';
$yuming='http://www.360kan.com';
preg_match_all($vname, $rurl,$xarr);
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);
$xname=$xarr[1];//名字
$xlist=$xarr1[1];//360看的地址
$xstar=$xarr2[1];//主演
$ximg=$xarr3[1];//封面图
$xbflist=$xarr4[1];//暂时不用
$xjishu=$xarr5[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'/>
<span class='hint'>$xjishu[$key]</span> </div>
<div class='detail'>
<p class='title g-clear'>
<span class='s1'>$xvau</span>
<span class='s2'></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['u']; $newstr = substr($feng,0,strlen($feng)-1); $newstr1=str_replace("&","%26","$newstr"); $hello = explode('=',$feng); $hello1=$hello[2]-1;$boss="?u=".$newstr1.$hello1;echo $boss;?>" target="_self">上一页</a>
<a href="<?php $feng=$_GET['u']; $newstr = substr($feng,0,strlen($feng)-1); $newstr1=str_replace("&","%26","$newstr"); $hello = explode('=',$feng); $hello1=$hello[2]+1;$boss="?u=".$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['tv_ad'];?></div></section>
<?php include 'footer.php';?>
</body>
</html>
<?php
/**$feng=$_GET['u'];
$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;**/
?>