-
Notifications
You must be signed in to change notification settings - Fork 5
/
video_watch.php
62 lines (44 loc) · 1.26 KB
/
video_watch.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
<?php
/**
* Allomani Audio & Video (Songs) v3.0
*
* @package Allomani.Songs
* @version 3.0
* @copyright (c) 2006-2018 Allomani , All rights reserved.
* @author Ali Allomani <[email protected]>
* @link http://allomani.com
* @license GNU General Public License version 3.0 (GPLv3)
*
*/
require("global.php");
require(CWD . "/includes/framework_start.php");
//---------------------------------------------------------
$id= (int) $id;
$cat = iif($cat,intval($cat),1);
$qr=db_query("select * from songs_videos_data where id='$id'");
if(db_num($qr)){
if(video_download_permission($id)){
$data = db_fetch($qr);
print_videos_path_links($data['cat'],$data['name']);
if($data['url']){
db_query("update songs_videos_data set views=views+1 where id='$id'");
$data_song = db_qr_fetch("select * from songs_songs where video_id='$id'");
run_template('video_watch');
if($settings['prev_next_video']){
prev_next_video($id,$data['cat']);
}
}else{
open_table();
print "<center> $phrases[file_is_not_available]</center>";
close_table();
}
}else{
login_redirect();
}
}else{
open_table();
print "<center> $phrases[err_wrong_url]</center>";
close_table();
}
//---------------------------------------------
require(CWD . "/includes/framework_end.php");