Exemple #1
0
     $Cache->delete_value('staff_pm_new_' . $UserID);
     $Cache->delete_value('inbox_new_' . $UserID);
     $Cache->delete_value('notifications_new_' . $UserID);
     $Cache->delete_value('collage_subs_user_new_' . $UserID);
     include SERVER_ROOT . '/sections/user/user.php';
     break;
     // Provide public methods for Last.fm data gets.
 // Provide public methods for Last.fm data gets.
 case 'lastfm_compare':
     if (isset($_GET['username'])) {
         echo LastFM::compare_user_with($_GET['username']);
     }
     break;
 case 'lastfm_last_played_track':
     if (isset($_GET['username'])) {
         echo LastFM::get_last_played_track($_GET['username']);
     }
     break;
 case 'lastfm_top_artists':
     if (isset($_GET['username'])) {
         echo LastFM::get_top_artists($_GET['username']);
     }
     break;
 case 'lastfm_top_albums':
     if (isset($_GET['username'])) {
         echo LastFM::get_top_albums($_GET['username']);
     }
     break;
 case 'lastfm_top_tracks':
     if (isset($_GET['username'])) {
         echo LastFM::get_top_tracks($_GET['username']);