page_redir(); $c = mysql_clean((int)$_GET['cid']); $type = mysql_clean($_GET['type']); $page = mysql_clean($_GET['page']); $get_limit = create_query_limit($page,COLLIP); $order = tbl("collection_items").".ci_id DESC"; if($cbcollection->is_viewable($c)) { $param = array("type"=>$type,"cid"=>$c); $cdetails = $cbcollection->get_collection($c,"AND ".tbl($cbcollection->section_tbl).".type = '$type' "); if($cdetails) { 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": { if (isSectionEnabled('photos')) { $items = $cbphoto->collection->get_collection_items_with_details($c,$order,$get_limit); $count = $cbphoto->collection->get_collection_items_with_details($c,NULL,NULL,TRUE); } else { $Cbucket->show_page = false; } } break; } // Calling nesscary function for view collection call_view_collection_functions($cdetails); $total_pages = count_pages($count,COLLIP); //Pagination //$pages->paginate($total_pages,$page); $link==NULL; $extra_params=NULL; $tag='