var mpd_state = "'. "stop" .'" '; foreach($results as $item) { $song = $item['song']; $np_user = $item['user']; if (is_object($song)) { $artist = $song->f_artist; $album = $song->get_album_name(); $text = "$song->f_title"; if (!$np_user->fullname) { $np_user->fullname = "Unknown User"; } if ($user->username == $np_user->username) { $sql = "SELECT start_time FROM now_playing WHERE user ='".$user->username."'"; $db_results = mysql_query($sql, dbh()); while ($r = mysql_fetch_assoc($db_results)) { echo ''; echo ''; echo ''; } // end while echo "\n"; } else { echo "\n"; } if (conf('use_auth')) { echo "\t\n"; } echo "\t\n"; echo "\t"; if (conf('play_album_art')) { echo "\t\n"; echo "\n"; } // if album art on now playing else { echo "\n"; } } // if it's a song } // while we're getting songs ?>
$np_user->fullnametitle) . "\" href=\"$web_path/song.php?action=m3u&song=$song->id\">$textf_artist) . "\" href=\"$web_path/artists.php?action=show&artist=$song->artist\">$song->f_artist / "; echo "\talbum\">$song->f_album"; $aa_url = conf('web_path') . "/albumart.php?id=" . $song->album . "&type=popup"; echo ""; echo "\"Album"; echo "\n"; echo "\t