-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsinger_videos.php
More file actions
93 lines (64 loc) · 3.1 KB
/
singer_videos.php
File metadata and controls
93 lines (64 loc) · 3.1 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
<?php
/**
* Allomani Audio & Video (Songs) v3.0
*
* @package Allomani.Songs
* @version 3.0
* @copyright (c) 2006-2018 Allomani , All rights reserved.
* @author Ali Allomani <info@allomani.com>
* @link http://allomani.com
* @license GNU General Public License version 3.0 (GPLv3)
*
*/
require("global.php");
require(CWD . "/includes/framework_start.php");
//---------------------------------------------------------
//open_table($phrases['singer_videos']);
templates_cache(array('singer_info_table','browse_videos_header','browse_videos','browse_videos_footer'));
// $qra = db_query("select songs_videos_data.* from songs_videos_data,songs_videos_tags where songs_videos_data.id=songs_videos_tags.video_id and songs_videos_tags.singer_id='$id' order by songs_videos_data.id desc");
$qr=db_query("select * from songs_singers where id='$id'");
// if(db_num($qr)){
unset($data_singer);
$data = db_fetch($qr);
db_query("update songs_singers set views=views+1 where id='$id'");
$data_singer = $data;
$data_cat = db_qr_fetch("select * from songs_cats where id='$data[cat]'");
print "<span class='path'> <img src='images/arrw.gif' border=0> <a class=path_link href=\"".cat_url($data_cat['id'],$data_cat['page_name'],$data_cat['name'])."\" title=\"$data_cat[name]\">$data_cat[name]</a> $phrases[path_sep] <a class=path_link href=\"".singer_url($data['id'],$data['page_name'],$data['name'])."\" title=\"$data[name]\">$data[name]</a> $phrases[path_sep] $phrases[singer_videos]";
print"<br><br> </span>" ;
compile_hook('songs_after_path_links');
run_template('singer_info_table');
compile_hook('songs_after_singer_table');
//unset($data_singer);
//----------------------
$start = intval($start);
$perpage = $settings['videos_perpage'];
$page_string = str_replace(array("{id}","{name}"),array($data_singer['id'],singer_url_name($data_singer['page_name'],$data_singer['name'])),$links['singer_videos_w_pages']);
//---------------------
$qr = db_query("select songs_videos_data.* from songs_videos_data,songs_songs where songs_videos_data.id = songs_songs.video_id and songs_songs.album='$id' limit $start,$perpage ");
if(db_num($qr)){
$page_result = db_qr_fetch("select count(*) as count from songs_videos_data,songs_songs where songs_videos_data.id = songs_songs.video_id and songs_songs.album='$id' ");
open_table($phrases['singer_videos']);
run_template('browse_videos_header');
$c=0;
while($data = db_fetch($qr)){
if ($c==$settings['songs_cells']) {
run_template("browse_videos_sep");
$c = 0 ;
}
run_template('browse_videos');
$c++;
}
run_template('browse_videos_footer');
close_table();
//-------------------- pages system ------------------------
print_pages_links($start,$page_result['count'],$perpage,$page_string);
//-----------------------------
}else{
open_table();
print "<center> $phrases[err_no_videos] </center>";
close_table();
}
//close_table();
//---------------------------------------------
require(CWD . "/includes/framework_end.php");
?>