summaryrefslogtreecommitdiffstats
path: root/stats.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-24 11:06:38 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-24 11:06:38 +0000
commit9344fd377da5c65a0aabf0ad9838e60dd08ff7f9 (patch)
tree7a6f8fbd03f2aa744879742cb232ecc15da2406f /stats.php
parent8f78e6885bbbb977af00ce54c74fa2006e384e9a (diff)
downloadampache-9344fd377da5c65a0aabf0ad9838e60dd08ff7f9.tar.gz
ampache-9344fd377da5c65a0aabf0ad9838e60dd08ff7f9.tar.bz2
ampache-9344fd377da5c65a0aabf0ad9838e60dd08ff7f9.zip
added most popular back to the statistics page, formating needs to be tweaked, will do later
Diffstat (limited to 'stats.php')
-rw-r--r--stats.php21
1 files changed, 20 insertions, 1 deletions
diff --git a/stats.php b/stats.php
index c69ecc8a..b5a9632e 100644
--- a/stats.php
+++ b/stats.php
@@ -50,7 +50,26 @@ 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();
+
+
break;
} // end switch on action