diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-20 01:56:42 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-20 01:56:42 +0000 |
commit | 649c44446a2368ac004ffa5778704f7213cf54ad (patch) | |
tree | ba7ff7c8cdfd75f78ada744d51b7cc04ac452900 /stats.php | |
parent | c796c8be3803cf7e49b39a2d3fbb9f85f7e7667c (diff) | |
download | ampache-649c44446a2368ac004ffa5778704f7213cf54ad.tar.gz ampache-649c44446a2368ac004ffa5778704f7213cf54ad.tar.bz2 ampache-649c44446a2368ac004ffa5778704f7213cf54ad.zip |
more sorting fixes, and move catalog stats to statistics
Diffstat (limited to 'stats.php')
-rw-r--r-- | stats.php | 32 |
1 files changed, 4 insertions, 28 deletions
@@ -45,35 +45,11 @@ switch ($_REQUEST['action']) { require_once Config::get('prefix') . '/templates/show_user_stats.inc.php'; break; - /* Show their stats */ + // Show stats default: - /* Here's looking at you kid! */ - $working_user = $GLOBALS['user']; - - /* Pull favs */ - $favorite_artists = $working_user->get_favorites('artist'); - $favorite_albums = $working_user->get_favorites('album'); - $favorite_songs = $working_user->get_favorites('song'); -break; - require_once Config::get('prefix') . '/templates/show_user_stats.inc.php'; - - // Onlu do this is ratings are on - if (Config::get('ratings')) { - /* Build Recommendations from Ratings */ - $recommended_artists = $working_user->get_recommendations('artist'); - $recommended_albums = $working_user->get_recommendations('albums'); - $recommended_songs = $working_user->get_recommendations('song'); - - require_once Config::get('prefix') . '/templates/show_user_recommendations.inc.php'; - } // if ratings on - - show_box_top(); - /* Show Most Popular artist/album/songs */ - show_all_popular(); - - /* Show Recent Additions */ - show_all_recent(); - show_box_bottom(); + // Global stuff first + $stats = Catalog::get_stats(); + require_once Config::get('prefix') . '/templates/show_local_catalog_info.inc.php'; break; } // end switch on action |