2009-08-25 12:16:42 +00:00
|
|
|
|
<?php
|
|
|
|
|
/*
|
|
|
|
|
****************************************************************************************************
|
2009-09-28 05:23:50 +00:00
|
|
|
|
| Copyright (c) 2007-2009 Clip-Bucket.com. All rights reserved. |
|
2009-08-25 12:16:42 +00:00
|
|
|
|
| @ Author : ArslanHassan |
|
|
|
|
|
| @ Software : ClipBucket , <EFBFBD> PHPBucket.com |
|
|
|
|
|
****************************************************************************************************
|
|
|
|
|
*/
|
2009-09-28 05:23:50 +00:00
|
|
|
|
define('THIS_PAGE','index');
|
2009-08-25 12:16:42 +00:00
|
|
|
|
require 'includes/config.inc.php';
|
|
|
|
|
$pages->page_redir();
|
|
|
|
|
|
2009-11-05 21:50:39 +00:00
|
|
|
|
//Get Videos Beign Watched
|
|
|
|
|
$being_watched = array
|
|
|
|
|
('limit' => 6,
|
|
|
|
|
'order' => 'last_viewed DESC',
|
|
|
|
|
);
|
2009-11-04 10:27:40 +00:00
|
|
|
|
|
2009-11-05 21:50:39 +00:00
|
|
|
|
assign('being_watched',$cbvid->get_videos($being_watched));
|
|
|
|
|
|
|
|
|
|
//GettinG list Of Featured Videos
|
|
|
|
|
$featured = array
|
|
|
|
|
('limit' => 4,
|
|
|
|
|
'featured' => 'yes',
|
|
|
|
|
'order' => ' featured_date DESC ',
|
|
|
|
|
);
|
|
|
|
|
assign('featured_videos',$cbvid->get_videos($featured));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//GettinG list Of recently added Videos
|
|
|
|
|
$recently_added = array
|
|
|
|
|
('limit' => 12,
|
|
|
|
|
'order' => ' date_added DESC ',
|
|
|
|
|
);
|
|
|
|
|
assign('recently_added',$cbvid->get_videos($recently_added));
|
2009-08-25 12:16:42 +00:00
|
|
|
|
|
2009-11-16 11:55:31 +00:00
|
|
|
|
//Get Categories
|
|
|
|
|
$cats = $db->select("video_categories",'*',NULL,'6');
|
|
|
|
|
assign('cat',$cats);
|
|
|
|
|
|
|
|
|
|
//Top users
|
|
|
|
|
$users = $db->select("users",'*',NULL,'10',"total_videos DESC");
|
|
|
|
|
assign('topusers',$users);
|
|
|
|
|
|
|
|
|
|
//Getting Video List
|
|
|
|
|
$videos = $db->select("video",'*',NULL,'15',"date_added DESC");
|
|
|
|
|
Assign('videos', $videos);
|
|
|
|
|
|
2009-08-25 12:16:42 +00:00
|
|
|
|
|
2009-09-28 05:23:50 +00:00
|
|
|
|
//Displaying The Template
|
|
|
|
|
template_files('index.html');
|
|
|
|
|
display_it();
|
2009-08-25 12:16:42 +00:00
|
|
|
|
?>
|