Exemplo n.º 1
0
     require AmpConfig::get('prefix') . '/templates/show_artist_row.inc.php';
     break;
 case 'refresh_playlist':
     $playlist = new Playlist($_REQUEST['id']);
     $playlist->format();
     $count = $playlist->get_song_count();
     require AmpConfig::get('prefix') . '/templates/show_playlist_row.inc.php';
     break;
 case 'refresh_smartplaylist':
     $playlist = new Search('song', $_REQUEST['id']);
     $playlist->format();
     require AmpConfig::get('prefix') . '/templates/show_smartplaylist_row.inc.php';
     break;
 case 'refresh_livestream':
     $radio = new Radio($_REQUEST['id']);
     $radio->format();
     require AmpConfig::get('prefix') . '/templates/show_live_stream_row.inc.php';
     break;
 case 'refresh_channel':
     $channel = new Channel($_REQUEST['id']);
     $channel->format();
     require AmpConfig::get('prefix') . '/templates/show_channel_row.inc.php';
     break;
 case 'refresh_broadcast':
     $broadcast = new Broadcast($_REQUEST['id']);
     $broadcast->format();
     require AmpConfig::get('prefix') . '/templates/show_broadcast_row.inc.php';
     break;
 case 'refresh_tag':
     $tag = new Tag($_REQUEST['id']);
     echo $tag->name;