summaryrefslogtreecommitdiffstats
path: root/stats.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-10 06:03:47 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-10 06:03:47 +0000
commit46ffeca144b7ef44572a5805061da246c8be5f3c (patch)
tree2b338376bb6e4a77839607131c22f20e6a59cb8d /stats.php
parent0d2c89e90d7c64eba058ae375760a350d336578b (diff)
downloadampache-46ffeca144b7ef44572a5805061da246c8be5f3c.tar.gz
ampache-46ffeca144b7ef44572a5805061da246c8be5f3c.tar.bz2
ampache-46ffeca144b7ef44572a5805061da246c8be5f3c.zip
database update, cleaned up some stuff
Diffstat (limited to 'stats.php')
-rw-r--r--stats.php22
1 files changed, 2 insertions, 20 deletions
diff --git a/stats.php b/stats.php
index b5a9632e..69e9c6a7 100644
--- a/stats.php
+++ b/stats.php
@@ -50,26 +50,8 @@ switch ($_REQUEST['action']) {
// Global stuff first
$stats = Catalog::get_stats();
require_once Config::get('prefix') . '/templates/show_local_catalog_info.inc.php';
-
- $objects = Stats::get_top('album');
- $headers = array('f_link'=>_('Most Popular Albums'));
- show_box_top('','info-box box_popular_albums');
- require Config::get('prefix') . '/templates/show_objects.inc.php';
- show_box_bottom();
-
- $objects = Stats::get_top('artist');
- $headers = array('f_name_link'=>_('Most Popular Artists'));
- show_box_top('','info-box box_popular_artists');
- require Config::get('prefix') . '/templates/show_objects.inc.php';
- show_box_bottom();
-
- $objects = Stats::get_top('genre');
- $headers = array('f_link'=>_('Most Popular Genres'));
- show_box_top('','info-box box_popular_genres');
- require Config::get('prefix') . '/templates/show_objects.inc.php';
- show_box_bottom();
-
-
+ require_once Config::get('prefix') . '/templates/show_stats_popular.inc.php';
+ require_once Config::get('prefix') . '/templates/show_stats_newest.inc.php';
break;
} // end switch on action