Location: PHPKode > projects > Lifebox > lifebox-1.0.5/html/_videos.php
<?php
/*
   +----------------------------------------------------------------------+
   | Videos Page                                                          |
   | Author: Adam Goldberg                                                |
   +----------------------------------------------------------------------+
   | Copyright (c) 2008-2009 Adam J Goldberg                              |
   | This file is part of Lifebox.                                        |
   |                                                                      |
   | Lifebox is free software: you can redistribute it and/or modify      |
   | it under the terms of the GNU General Public License as published by |
   | the Free Software Foundation, either version 3 of the License, or    |
   | (at your option) any later version.                                  |
   |                                                                      |
   | Lifebox is distributed in the hope that it will be useful,           |
   | but WITHOUT ANY WARRANTY; without even the implied warranty of       |
   | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        |
   | GNU General Public License for more details.                         |
   |                                                                      |
   | You should have received a copy of the GNU General Public License    |
   | along with Lifebox.  If not, see <http://www.gnu.org/licenses/>.     |
   +----------------------------------------------------------------------+
   | Display a list of the latest and most popular videos                 |
   +----------------------------------------------------------------------+
*/

require_once 'config/global.inc.php';
require_once 'Album.inc.php';
require_once 'Photo.inc.php';
require_once 'Comment.inc.php';

#Get 21 Latest Hot Videos
$popular_video_list = Photo::getPopularPhotos(2,21);
$smarty->assign('popular_video_list',$popular_video_list);

$smarty->assign('ERROR',$ERROR);
$smarty->display($CONFIG['smarty_templates'].'/videos.tpl');

?>
Return current item: Lifebox