<?php
/*
   +----------------------------------------------------------------------+
   | Statistics 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 photo and video statistics if this page is enabled		  |
   +----------------------------------------------------------------------+
*/

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

#Get Favorite Photos
$favorite_photos = Photo::getPhotoList('favorites');
$smarty->assign('favorite_photos',$favorite_photos);

$smarty->display($CONFIG['smarty_templates'].'/statistics.tpl');
?>
