summaryrefslogtreecommitdiffstats
path: root/lib/ui.lib.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-31 07:22:18 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-31 07:22:18 +0000
commitf8c98952aa5a8a30a50160db864217d6bf942a8f (patch)
tree96e537df58a24cc024a975f8414e3e06aa8fae1d /lib/ui.lib.php
parent2148ecc8ac957beb53ac1be3b6d7aafba491b7aa (diff)
downloadampache-f8c98952aa5a8a30a50160db864217d6bf942a8f.tar.gz
ampache-f8c98952aa5a8a30a50160db864217d6bf942a8f.tar.bz2
ampache-f8c98952aa5a8a30a50160db864217d6bf942a8f.zip
fixed now playing, hopefully once and for all, added title text to the now playing username that displays the agent they are using to play said song, added distinct sessions and session lengths for each stream instance
Diffstat (limited to 'lib/ui.lib.php')
-rw-r--r--lib/ui.lib.php37
1 files changed, 0 insertions, 37 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php
index 5c0ec15a..7e164e45 100644
--- a/lib/ui.lib.php
+++ b/lib/ui.lib.php
@@ -222,18 +222,6 @@ function show_footer() {
} // show_footer
/**
- * show_now_playing
- * shows the now playing template
- */
-function show_now_playing() {
-
- $web_path = Config::get('web_path');
- $results = get_now_playing();
- require Config::get('prefix') . '/templates/show_now_playing.inc.php';
-
-} // show_now_playing
-
-/**
* show_user_registration
* this function is called for a new user
* registration
@@ -257,31 +245,6 @@ function show_play_selected() {
} // show_play_selected
-/**
- * get_now_playing
- * gets the now playing information
- * @package Web Interface
- * @catagory Get
- */
-function get_now_playing($filter='') {
-
- $sql = "SELECT `song_id`,`user` FROM `now_playing` ORDER BY `id` DESC";
- $db_results = Dba::query($sql);
-
- $results = array();
-
- /* While we've got stuff playing */
- while ($r = Dba::fetch_assoc($db_results)) {
- $song = new Song($r['song_id']);
- $song->format();
- $np_user = new User($r['user']);
- $results[] = array('song'=>$song,'user'=>$np_user);
- } // end while
-
- return $results;
-
-} // get_now_playing
-
/*
* Artist Ratings - Implemented by SoundOfEmotion
*