
Added : Send photo PM ajax. Temporarily will be moved once ajax structure is up Fixed : Move avatar from photo to a function called upload_new_avatar() in functions_users.php Fixed : & in collection links Updated : Updated the function createTextfield. It was missing some important fields Updated : Photo & Watermark resizing by new resizer.class.php Added : LEFT JOIN for collection in get_photo function Added : function join_collection_table in function_photos.php Registered : Two photo function at cb_head ANCHOR called load_tagging & load_photo_actions in common.php Registered : photo_action_links filter to add 'Send in private message' link Added : Photo PM Handlers using attach_photo_pm_handlers Fixed : CB Tagger CSS and CB Tagger JS Updated : Some Template files just for testing purpose Added : Some Template files, again just for testing purpose
90 lines
No EOL
1.8 KiB
PHP
90 lines
No EOL
1.8 KiB
PHP
<?php
|
|
|
|
/*
|
|
********************************************************************
|
|
| Copyright (c) 2007-2009 Clip-Bucket.com. All rights reserved.
|
|
| @ Author : ArslanHassan
|
|
| @ Software : ClipBucket , © PHPBucket.com
|
|
********************************************************************
|
|
*/
|
|
define("THIS_PAGE",'collections');
|
|
define("PARENT_PAGE",'collections');
|
|
require 'includes/config.inc.php';
|
|
$pages->page_redir();
|
|
|
|
$sort = $_GET['sort'];
|
|
$cond = array("category"=>mysql_clean($_GET['cat']),"date_span"=>$_GET['time']);
|
|
$content = mysql_clean($_GET['content']);
|
|
|
|
switch($sort)
|
|
{
|
|
case "most_recent":
|
|
default:
|
|
{
|
|
$cond['order'] = " date_added DESC";
|
|
}
|
|
break;
|
|
|
|
case "featured":
|
|
{
|
|
$cond['featured'] = "yes";
|
|
}
|
|
break;
|
|
|
|
case "most_viewed":
|
|
{
|
|
$cond['order'] = " views DESC";
|
|
}
|
|
break;
|
|
|
|
case "most_commented":
|
|
{
|
|
$cond['order'] = " total_comments DESC";
|
|
}
|
|
break;
|
|
|
|
case "most_items":
|
|
{
|
|
$cond['order'] = " total_objects DESC";
|
|
}
|
|
break;
|
|
}
|
|
|
|
switch($content)
|
|
{
|
|
case "videos":
|
|
{
|
|
$cond['type'] = "videos";
|
|
}
|
|
break;
|
|
|
|
case "photos":
|
|
{
|
|
$cond['type'] = "photos";
|
|
}
|
|
}
|
|
|
|
$cond['has_items'] = true;
|
|
|
|
//Getting Collection List
|
|
$page = mysql_clean($_GET['page']);
|
|
$get_limit = create_query_limit($page,COLLPP);
|
|
$clist = $cond;
|
|
$clist['limit'] = $get_limit;
|
|
$collections = $cbcollection->get_collections($clist);
|
|
Assign('collections', $collections);
|
|
|
|
//Collecting Data for Pagination
|
|
$ccount = $cond;
|
|
$ccount['count_only'] = true;
|
|
$total_rows = $cbcollection->get_collections($ccount);
|
|
$total_pages = count_pages($total_rows,COLLPP);
|
|
|
|
//Pagination
|
|
$pages->paginate($total_pages,$page);
|
|
|
|
subtitle(lang('collections'));
|
|
//Displaying The Template
|
|
template_files('collections.html');
|
|
display_it();
|
|
?>
|