current_track_id; $playlist = $mpd->playlist; $playlist_count = $mpd->playlist_count; if($cur_track !=-1) { $trackno=$cur_track+1; if ($playlist[$cur_track]['name']==$playlist[$cur_track]['title']) { echo htmlentities(cut_file($playlist[$cur_track]['name'])); } else { echo htmlentities($playlist[$cur_track]['title']); } } else { echo "Трек не выбран"; } ?>