-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideoDetail.php
274 lines (247 loc) · 13.7 KB
/
videoDetail.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
<?php
include "phpdata/datapage/com.php";
$AddOneOnlineInfo="SELECT * FROM Video WHERE id=".$_GET['id'];
$query=mysql_query($AddOneOnlineInfo) or die("获取失败:".mysql_error());
mysql_query("UPDATE Video SET view = view+1 WHERE id = '".$_GET['id']."' ");
$openUrl='http://jqaaa.com/jx.php?url=';
if($query){
while ($row=mysql_fetch_array($query)) {
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo $row['title']?> - 极限数据网,给您最全是体育视频,让您重温球场经典!</title>
<meta name="keywords" content="极限数据网,NBA视频,NBA比赛录像,nba视频集锦,nba视频直播吧,nba视频直播热火,nba 视频,nba视频直播湖人,nba十佳球" />
<meta name="description" content="极限视频,给用户提供精彩的,有价值的比赛视频,我们高效,快速的为您推送精彩NBA,足球,篮球,世界杯比赛视频地址,给你方便快捷舒适的感受!" />
<link href="css/reg.css" type="text/css" rel="stylesheet" />
<link href="css/reset.css" type="text/css" rel="stylesheet" />
<link rel="bookmark" type="image/x-icon" href="favicon.ico"/>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" type="text/css" href="css/online.css">
<script src="js/jquery.min.js"></script>
<script src="js/com.js"></script>
<script src="js/contact.js"></script>
</head>
<body targetId="<?php echo $row['id']?>">
<div class="h30"></div>
<div class="h30"></div>
<header>
<nav class="nav-main clearfix">
<ul class="fl nav">
<li class="logo"><a href="index.html">I LOVE NBA</a></li>
<li class=""><a href="index.html" class="">首页</a></li>
<li><a href="nba.html">篮球专区</a></li>
<li><a href="news.html">体育新闻</a></li>
<li><a href="video.html" class="active">极限视频</a></li>
<li><a href="Injuries.html">NBA伤病</a></li>
<li><a href="online.html">极限直播</a></li>
<li><a href="recommendarticles.html">推荐文章</a></li>
</ul>
<ul class="login">
<li><a href="register.html">注册</a></li>
<li><a href="login">登录</a></li>
</ul>
<div class="search-box fr">
</div>
</nav>
</header>
<div class="center clearfix">
<div class="mainAdwidth">
<!-- <a href="http://aff.weide8aff.com/processing/clickthrgh.asp?btag=a_2994b_4" target="_blank"><img src="img/b2.gif" /></a>
<br/>
<br/> -->
</div>
<div class="videoLeft fl">
<div class="VideoDetail">
<div class="Videohead">
<h1><?php echo $row['title'] ; ?></h1>
<p><?php echo $row['updatetime'];?> 已有<?php echo $row['view'];?>人观看 <a href="javascript:;" id="collectionVideo"></a></p>
</div>
<div class="VideoContent">
<?php
$infoArr=explode("\n",$row['videoUrl']);
if(count($infoArr)>1){
?>
<div class="MoreList"><ul>
<?php
foreach($infoArr as $u){
$strarr = explode("|||",$u);
?>
<li>
<a href="javascript:;" targetUrl="<?php echo $strarr[0];?>" class="img newopen"><img src="<?php echo substr($row['thumPic'],3)?>"></a>
<a href="javascript:;" targetUrl="<?php echo $strarr[0];?>" class="t newopen"><?php echo $strarr[1];?></a>
<a href="javascript:;" targetUrl="<?php echo $strarr[0];?>" class="play fr newopen"></a>
</li>
<?php
}
?>
</ul> </div>
<?php
echo 111;
}else{
$ListArr=explode("|||",$infoArr[0]);
//var_dump($ListArr[0]);
//来源 QQ
if($row['sourceSite']=='qq'){
$VidIndex=strpos($ListArr[0],'?');
if($VidIndex==false){//没找到?
$VidIndexLast=strripos($ListArr[0],'/');
$dotIndex=strripos($ListArr[0],'.h');
$Vid=substr($ListArr[0],$VidIndexLast+1,($dotIndex-$VidIndexLast-1));
//echo $VidIndexLast;
//$Vid=substr($ListArr[0],$VidIndexLast+1,-5);
//http://v.qq.com/page/a/k/s/a0189ai0wks.html
?>
<!-- QQ新版 -->
<div class="onlyOne">
<div class="clickEle">
<iframe width="750" height="510" border='none' src="<?php echo $openUrl.$ListArr[0]; ?>"></iframe>
</div>
<p><a href="javascript:;" class="newopen" id="showClick" targetUrl="<?php echo $ListArr[0];?>">[播放不了? PC窗口/PAD观看]</a></p>
</div>
<?php
}else{
//$VidIndexLast=strpos($ListArr[0],'=');
//$Vid=substr($ListArr[0],$VidIndexLast+1);
// var_dump($ListArr[0]);
?>
<!-- QQ新版 -->
<div class="onlyOne">
<div class="clickEle">
<iframe width="750" height="510" border='none' src="<?php echo $openUrl.$ListArr[0]; ?>"></iframe>
</div>
<p><a href="javascript:;" class="newopen" id="showClick" targetUrl="<?php echo $ListArr[0];?>">[播放不了? PC窗口/PAD观看]</a></p>
</div>
<?php
}
//判断其他来源 {}else if(){}
}else if($row['sourceSite']=='ls'){
$VidIndexLast=strripos($ListArr[0],'/');
$dotIndex=strripos($ListArr[0],'.h');
$Vid=substr($ListArr[0],$VidIndexLast+1,($dotIndex-$VidIndexLast-1));
?>
<div class="onlyOne">
<div class="clickEle">
<iframe width="750" height="510" border='none' src="$openUrl.$ListArr[0]"></iframe>
</div>
<p><a href="javascript:;" class="newopen" id="showClick" targetUrl="<?php echo $ListArr[0];?>">[播放不了? PC窗口/PAD观看]</a></p>
</div>
<?php
//echo $VidIndexLast.'-'.$dotIndex.'-'.$Vid;
}else if($row['sourceSite']=='h5'){
$VidIndexLast=strripos($ListArr[0],'/');
$dotIndex=strripos($ListArr[0],'.h');
$Vid=substr($ListArr[0],$VidIndexLast+1,($dotIndex-$VidIndexLast-1));
?>
<div class="onlyOne">
<div class="clickEle">
<video width="750" height="510" controls autobuffer autoplay>
<source src="<?php echo $ListArr[0];?>" type='video/mp4;'></source>
</video>
</div>
<p><a href="javascript:;" class="newopen" id="showClick" targetUrl="<?php echo $ListArr[0];?>">[播放不了? PC窗口/PAD观看]</a></p>
<p style="text-align: center; line-height: 40px; font-size: 12px;">温馨提示:由于视频高清,需要时间缓冲,大家可下载到本地观看!</p>
</div>
<?php
//echo $VidIndexLast.'-'.$dotIndex.'-'.$Vid;
}else{
?>
<!-- 站外播放 -->
<div class="onlyOne">
<div class="clickEles">
<a targetUrl="<?php echo $ListArr[0];?>" class="newopen" href="javascript:;">
<img src="<?php echo substr($row['thumPic'],3)?>" id="thumbVideo" />
<img src="img/play.png" id="playicon" />
</a>
</div>
<p><a href="javascript:;" class="newopen" id="showClick" targetUrl="<?php echo $ListArr[0];?>">[播放不了? PC窗口/PAD观看]</a></p>
</div>
<?php
}
};
?>
<div id="share">
<!-- JiaThis Button BEGIN -->
<div class="bdsharebuttonbox"><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间">QQ空间</a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博">新浪微博</a><a href="#" class="bds_tieba" data-cmd="tieba" title="分享到百度贴吧">百度贴吧</a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博">腾讯微博</a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信">微信</a><a href="#" class="bds_sqq" data-cmd="sqq" title="分享到QQ好友">QQ好友</a><a href="#" class="bds_douban" data-cmd="douban" title="分享到豆瓣网">豆瓣网</a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网">人人网</a><a href="#" class="bds_mshare" data-cmd="mshare" title="分享到一键分享">一键分享</a><a href="#" class="bds_isohu" data-cmd="isohu" title="分享到我的搜狐">我的搜狐</a><a href="#" class="bds_more" data-cmd="more">分享到:</a></div>
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{"bdSize":16},"image":{"viewList":["qzone","tsina","tieba","tqq","weixin","sqq","douban","renren","mshare","isohu","duitang"],"viewText":"分享到:","viewSize":"24"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tieba","tqq","weixin","sqq","douban","renren","mshare","isohu","duitang"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
<!-- JiaThis Button END -->
</div>
</div>
</div>
<div class="moreVideo">
<h2>相关视频</h2>
<div class="moreVideowrap">
<ul class="clearfix">
<?php
if($row['tag']){
$keywords=explode("|",$row['tag']);
$keyword=$keywords[0];
}else{
$keyword='NBA';
}
$videomore=mysql_query("SELECT * FROM video WHERE title like '%$keyword%' order by view desc limit 0,12");
$videoNum=mysql_num_rows($videomore);
if($videoNum==0){
echo '暂无数据;';
}else{
while (@$row=mysql_fetch_array($videomore)) {
//var_dump($row);
?>
<li><a href="videoDetail_<?php echo $row['id'];?>.html"><img src="<?php echo substr($row['thumPic'],0);?>" title="<?php echo $row['title'];?>"><span><?php echo $row['title'];?></span></a></li>
<?php
}
}
?>
</ul>
</div>
</div>
<?php
}
}else{
echo "获取失败";
};
?>
<div class="mainAdwidth">
<!-- <br/>
<br/>
<div class="sideAd">
<a href="http://www.well188.com/aff.php?vid=337016" target="_blank"><img src="img/a2.gif" /></a>
</div>
<div class="sideAd">
<a href="http://www.well188.com/aff.php?vid=345427 " target="_blank"><img src="img/a3.gif" /></a>
</div>
<div class="sideAd">
<a href="http://www.well188.com/aff.php?vid=45499 " target="_blank"><img src="img/a1.gif" /></a>
</div> -->
</div>
</div>
<div class="rightside1 fr">
<div id="siderAd">
<div class="sideAd">
<!-- <a href="http://www.well188.com/aff.php?vid=45499&url=promo.php" target="_blank"><img src="img/01.gif" /></a> -->
</div>
</div>
<!-- 热门视频 -->
<?php include 'hotvideo.php'; ?>
<div id="siderAd">
<!-- <div class="sideAd">
<a href="http://www.well188.com/aff.php?vid=45499&url=promo.php" target="_blank"><img src="img/01.gif" /></a>
</div>
<div class="sideAd">
<a href="http://www.well188.com/aff.php?vid=337016" target="_blank"><img src="img/02.gif" /></a>
</div>
<div class="sideAd">
<a href="http://www.well188.com/aff.php?vid=345427 " target="_blank"><img src="img/03.gif" /></a>
</div> -->
</div>
</div><!-- ad -->
</div>
<div class="" style="height:40px; width:100%;"></div>
<div class="foot-warp">
<?php include 'foot.php';?>
</div>
<script src="js/comjs.js"></script>
<script src="js/videoDetail.js"></script>
</body>
</html>