53 lines
No EOL
1.4 KiB
PHP
53 lines
No EOL
1.4 KiB
PHP
<?php
|
||
/*
|
||
****************************************************************
|
||
| Copyright (c) 2007-2012 Clip-Bucket.com. All rights reserved.
|
||
| @ Author : ArslanHassan
|
||
| @ Software : ClipBucket , <20> PHPBucket.com
|
||
****************************************************************
|
||
*/
|
||
|
||
define("THIS_PAGE","view_group_videos");
|
||
define("PARENT_PAGE","videos");
|
||
|
||
require 'includes/config.inc.php';
|
||
$pages->page_redir();
|
||
|
||
$url = mysql_clean($_GET['url']);
|
||
|
||
|
||
$details = $cbgroup->group_details_url($url);
|
||
|
||
//Group links
|
||
$group_links = $cbgroup->group_links($details);
|
||
assign('group_links',$group_links);
|
||
assign('group',$details);
|
||
|
||
if($details)
|
||
{
|
||
$group_videos_limit = 18;
|
||
$group_videos_limit = apply_filters($group_videos_limit, 'group_videos_limit');
|
||
|
||
///Getting User Videos
|
||
$page = mysql_clean($_GET['page']);
|
||
$get_limit = create_query_limit($page,$group_videos_limit);
|
||
|
||
//Getting List of all videos
|
||
$videos = $cbgroup->get_group_videos($details['group_id'],"yes",$get_limit);
|
||
|
||
$total_rows = $details['total_videos'];
|
||
$total_pages = count_pages($total_rows,$group_videos_limit);
|
||
|
||
|
||
//Pagination
|
||
$pages->paginate($total_pages,$page);
|
||
|
||
assign('total_pages',$total_pages);
|
||
assign("videos",$videos);
|
||
assign("mode","view_videos");
|
||
subtitle($details['group_name']);
|
||
}
|
||
|
||
template_files('view_group.html');
|
||
display_it();
|
||
?>
|