From f283e4040e0dea301c94278470515ca6472af8c2 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Mon, 23 Oct 2006 08:00:34 +0000 Subject: few more tweaks and some work on the tv pages --- lib/class/tmp_playlist.class.php | 14 ++++++++++++ lib/preferences.php | 3 ++- lib/ui.lib.php | 48 ++-------------------------------------- 3 files changed, 18 insertions(+), 47 deletions(-) (limited to 'lib') diff --git a/lib/class/tmp_playlist.class.php b/lib/class/tmp_playlist.class.php index 2bf4cd4a..8829c41e 100644 --- a/lib/class/tmp_playlist.class.php +++ b/lib/class/tmp_playlist.class.php @@ -190,6 +190,20 @@ class tmpPlaylist { } // has_vote + /** + * vote_active + * This checks to see if this playlist is a voting playlist + * and if it is active + */ + function vote_active() { + + /* Going to do a little more here later */ + if ($this->type == 'vote') { return true; } + + return false; + + } // vote_active + /** * delete_track * This deletes a track and any assoicated votes, we only check for diff --git a/lib/preferences.php b/lib/preferences.php index bf995e4c..8bd01020 100644 --- a/lib/preferences.php +++ b/lib/preferences.php @@ -264,6 +264,7 @@ function create_preference_input($name,$value) { case 'play_type': if ($value == 'downsample') { $is_down = 'selected="selected"'; } elseif ($value == 'localplay') { $is_local = 'selected="selected"'; } + elseif ($value == 'democratic') { $is_vote = 'selected="selected"'; } else { $is_stream = "selected=\"selected\""; } echo "