Exemple #1
0
    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']);
        }
        break;
    case 'lastfm_clear_cache':
        if (isset($_GET['username']) && isset($_GET['uid'])) {
            echo LastFM::clear_cache($_GET['username'], $_GET['uid']);
        }
        break;
    case 'take_donate':
        break;
    case 'take_update_rank':
        break;
    default:
        if (isset($_REQUEST['id'])) {
            include SERVER_ROOT . '/sections/user/user.php';
        } else {
            header('Location: index.php');
        }
}