Загрузка плейлистов.
[mpd-web.git] / ajax / trackname.php
1 <?php
2
3 include('mpd.php');
4
5 $cur_track = $mpd->current_track_id;
6 $playlist = $mpd->playlist;
7
8 $playlist_count = $mpd->playlist_count;
9
10 if($cur_track !=-1) {
11
12     $trackno=$cur_track+1;
13
14     if ($playlist[$cur_track]['name']==$playlist[$cur_track]['title']) {
15         echo htmlentities(cut_file($playlist[$cur_track]['name']));
16     } else {
17         echo htmlentities($playlist[$cur_track]['title']);
18     }
19     
20 } else {
21     echo "Трек не выбран";
22 }
23
24 ?>