e5cc464fbcca3dc978b942c4ae43deb4edfefaa6
[mpd-web.git] / ajax / trackinfo.php
1 <?php
2
3 include('mpd.php');
4
5 $cur_track= $mpd->current_track_id;
6 $playlist= $mpd->playlist;
7 if($cur_track !=-1)
8
9     if ($playlist[$cur_track]['name']==$playlist[$cur_track]['title']) {
10         echo htmlentities(cut_file($playlist[$cur_track]['name']));
11     } else {
12         echo htmlentities($playlist[$cur_track]['title']);
13     }
14 else 
15     echo "No Track selected";
16
17 ?>