clipbucket/upload/view_collection.php
Fawaz 828cd40cb4 Added : SEO Links for item
Added : CSS for collections and photos
Added : New Ajax Requests in ajax.php
Updated : collection.class.php
Added : ID parameter in radio and checkbox type input fields
Fixed : get_users count_only parameter
Added : photos.class.php in common.php
Added : function fetch() which will store all Template HTML in a variable. Is useful for JSON
Added : New functions in function.js
Fixed : PakPlayer autoPlay Feature
Added : A lot of new pages
2010-12-14 13:53:51 +00:00

67 lines
No EOL
1.7 KiB
PHP

<?php
/*
******************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved.
| @ Author : ArslanHassan
| @ Software : ClipBucket , © PHPBucket.com
******************************************************************
*/
define("THIS_PAGE",'view_collection');
define("PARENT_PAGE",'collections');
require 'includes/config.inc.php';
$pages->page_redir();
$c = mysql_clean($_GET['cid']);
$type = mysql_clean($_GET['type']);
$page = mysql_clean($_GET['page']);
$get_limit = create_query_limit($page,VLISTPP);
$order = tbl("collection_items").".ci_id DESC";
if($cbcollection->is_viewable($c))
{
$cdetails = $cbcollection->get_collection($c);
switch($type)
{
case "videos":
case "video":
case "v":
{
$items = $cbvideo->collection->get_collection_items_with_details($c,$order,$get_limit);
$count = $cbvideo->collection->get_collection_items_with_details($c,NULL,NULL,TRUE);
}
break;
case "photos":
case "photo":
case "p":
{
$items = $cbphoto->collection->get_collection_items_with_details($c,$order,$get_limit);
$count = $cbphoto->collection->get_collection_items_with_details($c,NULL,NULL,TRUE);
}
break;
}
// Calling nesscary function for view collection
call_view_collection_functions($cdetails);
$total_pages = count_pages($count,VLISTPP);
//Pagination
$pages->paginate($total_pages,$page);
assign('objects',$items);
assign("c",$cdetails);
assign("type",$type);
assign("cid",$c);
subtitle($cdetails['collection_name']);
} else {
$Cbucket->show_page = false;
}
template_files('view_collection.html');
display_it();
?>