-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxem.php
More file actions
317 lines (295 loc) · 13 KB
/
xem.php
File metadata and controls
317 lines (295 loc) · 13 KB
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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<?php
include 'databases.php';
?>
<?php
$slug = $_GET['slug'];
$get_tap = $_GET['tap'];
$sql = mysqli_query($apizophim, "SELECT * FROM phim where `slug`='".$slug."'");
if (mysqli_num_rows($sql) < 1) {
echo '<script>location.href="/index.php";</script>';
}
$get_info = mysqli_fetch_array($sql);
$ten_phim = $get_info['ten_phim'];
$ten_goc = $get_info['ten_goc'];
$noi_dung = $get_info['noi_dung'];
$nam_chieu = $get_info['nam_chieu'];
$the_loai = $get_info['the_loai'];
$quoc_gia = $get_info['quoc_gia'];
$dien_vien = $get_info['dien_vien'];
$trang_thai = $get_info['trang_thai'];
$thoi_luong = $get_info['thoi_luong'];
$bole = $get_info['bole'];
$thumb = $get_info['thumb'];
if (strpos($thumb, 'imgur.com') == true) {
$thumb = str_replace('.jpg', 'l.jpg', get_info['thumb']);
} elseif (strpos($thumb, 'lh3.ggpht.com') == true) {
$thumb = str_replace('=s0', '=s400', get_info['thumb']);
}
$luotxem = $get_info['view'];
$luotxem1 = $luotxem + mt_rand(1,9);
$view_day = $get_info['view_day'];
$view_day1 = $view_day + 1;
$run = mysqli_query($apizophim, "UPDATE phim SET `view`='$luotxem1',`view_day`='$view_day1' where `slug`='".$slug."'");
?>
<!DOCTYPE html>
<html lang="vi" itemscope="itemscope" itemtype="http://schema.org/WebPage">
<head>
<title>Xem Phim <?php echo $ten_phim; ?> Tập <?php echo $get_tap; ?> Việt Sub, Thuyết Minh</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="index" />
<meta name="title" content="Xem Phim <?php echo $ten_phim; ?> Tập <?php echo $get_tap; ?> Việt Sub, Thuyết Minh" />
<meta name="description" content="<?php echo $noi_dung; ?>" />
<meta name="keywords" content="<?php echo $ten_phim; ?>, <?php echo $ten_goc; ?>, <?php echo $slug; ?>" />
<meta name="author" content="ZingTV.top" />
<meta name="revisit-after" content="1 days" />
<meta name="robots" content="index,follow" />
<meta http-equiv="content-language" content="vi" />
<meta name="googlebot" content="index,follow" />
<meta name="BingBOT" content="index,follow" />
<meta name="yahooBOT" content="index,follow" />
<meta name="slurp" content="index,follow" />
<meta name="msnbot" content="index,follow" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta property="fb:app_id" content=""/>
<meta property="fb:admins" content=""/>
<meta name="google-site-verification" content="" />
<meta name='dmca-site-verification' content='' />
<link rel="shortcut icon" href="<?php echo $favicon; ?>" />
<!-- google -->
<meta itemprop="name" content="<?php echo $noi_dung; ?>">
<meta itemprop="image" content="<?php echo $thumb; ?>">
<!-- facebook -->
<meta property="og:title" content="Xem Phim <?php echo $ten_phim; ?> Tập <?php echo $get_tap; ?> Việt Sub, Thuyết Minh">
<meta property="og:description" content="<?php echo $noi_dung; ?>" />
<meta property="og:url" content="/<?php echo $slug; ?>.html" />
<meta property="og:type" content="movie" />
<meta property="og:image" content="<?php echo $thumb; ?>" />
<!-- twitter -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Xem Phim <?php echo $ten_phim; ?> Tập <?php echo $get_tap; ?> Việt Sub, Thuyết Minh">
<meta name="twitter:description" content="<?php echo $noi_dung; ?>">
<meta name="twitter:image" content="<?php echo $thumb; ?>">
<!-- schema -->
<script type="application/ld+json">
{"@context": "http://schema.org","@graph": [{"@type": "VideoObject",
"name": "Phim <?php echo $ten_phim; ?> - <?php echo $ten_goc; ?> Việt Sub, Thuyết Minh, Lồng Tiếng",
"thumbnailUrl": "<?php echo $thumb; ?>",
"uploadDate": "<?php echo date("Y-m-d H:i:s"); ?>",
"contentURL": "<?php echo $domain.'/'.$slug; ?>.html",
"description": "<?php echo $noi_dung; ?>",
"aggregateRating": {"@type": "AggregateRating",
"ratingValue": "<?php echo mt_rand(7, 9); ?>",
"bestRating": 10,
"worstRating": 1,
"ratingCount": "<?php echo mt_rand(199, 99999); ?>"}
},{"@type": "BreadcrumbList","itemListElement": [{"@type": "ListItem","position": 1,"item": "https://ZingTV.top","name": "TV & Movies"}]}]}
</script> <!-- librarie -->
</head>
<body>
<?php
include 'includes/nav.php';
?>
<div id="main-content">
<div class="container" id="wrapper">
<ol class="breadcrumb" itemscope="" itemtype="http://schema.org/BreadcrumbList">
<li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
<a itemprop="item" title="XEM PHIM ONLINE" href="/">
<span itemprop="name">Trang Chủ</span>
</a>
<meta itemprop="position" content="1" />
</li>
<li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
<a itemprop="item" title="Phim <?php echo $quoc_gia; ?>" href='/z.php?QG=<?php echo str_replace(' ', '-', $quoc_gia); ?>'><span itemprop="name"><?php echo $quoc_gia; ?></a></span></a>
<meta itemprop="position" content="2" />
</li>
<li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
<a itemprop="item" title="<?php echo $ten_phim; ?>" href="/<?php echo $slug; ?>.html">
<span itemprop="name"><?php echo $ten_phim; ?></span>
</a>
<meta itemprop="position" content="3" />
</li>
<li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
<a itemprop="item" title="Tập <?php echo $get_tap; ?>" href="#">
<span class="epi" itemprop="name">Tập <?php echo $get_tap; ?></span>
</a>
<meta itemprop="position" content="4" />
</li>
</ol>
<?php
$cache_movie = './cache/movie/'.$slug.'.php';
$list = './list/'.$slug.'.php';
if (file_exists($cache_movie)) { $time_cache = filemtime($cache_movie);
if (time() > ($time_cache + 600)) { $cache = '0'; } }
if ((!file_exists($cache_movie)) or ($cache == '0')) {
$html = curl('https://api-zophim.blogspot.com/2023/01/'.$slug.'.html');
if (strpos($html, 'class="ALL"') == true) {
$list_all = explode('</td>', explode('<td style="vertical-align: top;" class="ALL">', $html)['1'])['0'];
$list_all = preg_replace('/\R+/', "\n", trim($list_all));
if ($list_all) {
$myfile = fopen($list, "w");
fwrite($myfile, '<?php $list_sv="
'.$list_all.';" ?>');
fclose($myfile);
}
file_put_contents($cache_movie, '');
}
}
if (file_exists($list)) {
include 'list/'.$slug.'.php';
$get_auto = explode('<br/>', explode("\n".$get_tap.'|', $list_sv)['1'])['0'];
$vs = explode('|', $get_auto)['0'];
$tm = explode('|', $get_auto)['1'];
if ($tm!='-'){
$auto = 'https://zophim.net/s/'.$tm.'.html'; $ahihi = 'zotm';
} elseif ($vs!='-'){
$auto = 'https://zophim.net/s/'.$vs.'.html'; $ahihi = 'zovs';
} else {
$auto = 'https://ssplay.net/loading.php';
}
} else {
$sql = mysqli_query($apizophim, "SELECT * FROM VIP where `slug`='".$slug."' and tap ='$get_tap'");
$mysql = mysqli_fetch_array($sql);
$vs = $mysql['vs'];
$tm = $mysql['tm'];
if ($tm){
$auto = 'https://zophim.net/s/'.$tm.'.html'; $ahihi = 'zotm';
} elseif ($vs){
if (strpos($vs, 'ssplay') == true) {
$auto = $vs; $ahihi = 'ssvs';
} else {
$auto = 'https://zophim.net/s/'.$vs.'.html'; $ahihi = 'zovs';
}
} else {
$auto = 'https://ssplay.net/loading.php';
}
} //End If 1;
?>
<div class="left-content">
<div class="block">
<div class="box-player" id="box-player">
<div style="text-align: center;height: 377px;width: 100%;position: relative;background:url() #1f1f1f center no-repeat;">
<iframe id="ZingTV" width="100%" height="100%" src="<?php if ($tvc=='1') { echo '/TVC.php?link='.$auto; } else { echo $auto; } ?>" frameborder="0" scrolling="0" allowfullscreen></iframe>
</div>
</div>
</div>
<div class="item video-nav">
<div class="mobius">
<div id="clicksv" class="server">
<?php if (($tm) and ($tm!='-')) { ?><button onclick="document.getElementById('ZingTV').src = 'https://zophim.net/s/<?php echo $tm; ?>.html'" class="btn btn-sm <?php if($ahihi == 'zotm') { echo 'redd'; } else { echo 'grayy'; } ?>">Z-TM</button><?php } ?>
<?php if (($tm) and ($tm!='-')) { ?><button onclick="document.getElementById('ZingTV').src = 'https://ssplay.net/v/<?php echo $tm; ?>.html'" class="btn btn-sm <?php if($ahihi == 'sstm') { echo 'redd'; } else { echo 'grayy'; } ?>">S-TM</button><?php } ?>
<?php if (($vs) and ($vs!='-')) { if (strpos($vs, 'ssplay') == false) { ?>
<button onclick="document.getElementById('ZingTV').src = 'https://zophim.net/s/<?php echo $vs; ?>.html'" class="btn btn-sm <?php if($ahihi == 'zovs') { echo 'redd'; } else { echo 'grayy'; } ?>">Z-VS</button>
<button onclick="document.getElementById('ZingTV').src = 'https://ssplay.net/v/<?php echo $vs; ?>.html'" class="btn btn-sm <?php if($ahihi == 'ssvs') { echo 'redd'; } else { echo 'grayy'; } ?>">S-VS</button>
<?php } else { ?>
<button onclick="document.getElementById('ZingTV').src = '<?php echo $vs; ?>'" class="btn btn-sm grayy">S-VS</button><?php } } ?>
</div>
<style>
.grayy{
color: white;
font-size: 12px;
background: #333;
padding: 1px 11px;
border-radius: 3px;
margin-left: 5px;
}
.redd {
color: white;
font-size: 12px;
background: #d9534f;
border-color: #d43f3a;
padding: 1px 11px;
border-radius: 3px;
margin-left: 5px;
}
</style>
<script type="text/javascript">
function go(loc) {
document.getElementById('ZingTV').src = loc;
}
var buttons = $('button').click(function(){
buttons.not(this).addClass('grayy');
buttons.not(this).removeClass('redd');
$(this).addClass('redd');
});
</script>
<div class="iconx">
<div class="icol download" style="border: 1px solid#aaa;">
<a href="<?php if (($get_tap > 1) and ($get_tap != 'Full')) { echo '/'.$slug.'/tap-'.($get_tap - 1).'.html'; } else { echo '#'; } ?>">⫷ Trước</a>
</div>
<div class="icol download" style="border: 1px solid#aaa;">
<a href="<?php if (($get_tap > 0 ) and ($get_tap != 'Full')) { echo '/'.$slug.'/tap-'.($get_tap + 1).'.html'; } else { echo '#'; } ?>">Sau ⫸</a>
</div>
</div>
</div>
</div><!--End video nav-->
<div class="clear" style="margin-bottom:10px"></div>
<div class="film-note">
<b><i class="fa fa-info-circle" aria-hidden="true"></i> Thông báo :</b>
<br />- Nếu không xem được phim, các bạn hãy tải lại trang hoặc bấm vào link dự phòng.
<br />- Nếu vẫn không được hãy báo lỗi tại <a href="https://t.me/zingtvtop" target="_blank"><b><u><font color="yellow">Telegram</font></u></b></a> để chúng tôi khắc phục.
</div>
<!-- xx -->
<div class="details">
<div class="control-box clear">
<div class="list-servers" data-target="#tab-click-server">
<div data-name="show-list-1" class="server active"><i class="playing"></i> <font color="yellow">Danh Sách</font></div>
</div>
<div class="clear"></div>
<div class="episodes info-desc">
<div id="tab-click-server">
<div class="list_episodes show-list-1">
<?php
if (file_exists($list)) {
$get_list = explode('<br/>', $list_sv);
foreach ($get_list as $get_list) {
if (strpos($get_list, '|') == true) {
$list_tap = explode("|", $get_list)['0'];
if ($get_tap == $list_tap) { $class = 'class="current"'; } else { $class = ''; }
echo '<span '.$class.'><a href="/'.$slug.'/tap-'.$list_tap.'.html">'.$list_tap.'</a></span>';
}}
} else {
$sql10 = mysqli_query($apizophim, "SELECT tap FROM VIP where `slug`='".$slug."' order by ABS(tap)");
while($qsql10 = mysqli_fetch_array($sql10)){
$list_tap = $qsql10['tap'];
if ($get_tap == $list_tap) { $class = 'class="current"'; } else { $class = ''; }
echo '<span '.$class.'><a href="/'.$slug.'/tap-'.$list_tap.'.html">'.$list_tap.'</a></span>';
}
}
?>
</div>
</div>
</div>
</div><!-- end-control-box -->
<div class="clear"></div>
</div><!-- end-details -->
<!-- xx -->
<div class="bottom-content">
<div class="block-film">
<p class="caption"><i class="fa fa-facebook-square" aria-hidden="true"></i>Góc Bình Luận</font></p>
<?php
include 'includes/zComment.php';
?>
</div>
</div>
<!-- xx -->
<div class="clear"></div>
<div class="block-film">
<h2 class="caption"><i class="fa fa-film" aria-hidden="true"></i><span>Có Thể Bạn Muốn Xem</span></h2>
<ul class="list-film">
<?php
include 'includes/000.php';
?>
</ul>
</div>
<div class="clear"></div>
</div><!-- end left-content -->
<div class="right-content">
<?php
include 'includes/BXH.php';
?>
</div><!--end Right-content-->
</div><!-- end container -->
</div>
<?php
include 'includes/fot.php';
?>