From 5296a8d351f94a04d19791e4c9d3b73c5cb82ac6 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sat, 19 Jan 2008 23:11:57 +0000 Subject: fixed issue with xmlapi when no limit provided, fixed now playing refresh, fixed single item update (Thx alex2008) added some more stuff for managing shoutbox stuff, started work on implementation of CoFs system added untested search method on xmlapi --- lib/class/browse.class.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/class/browse.class.php') diff --git a/lib/class/browse.class.php b/lib/class/browse.class.php index c9f43676..03ce742d 100644 --- a/lib/class/browse.class.php +++ b/lib/class/browse.class.php @@ -179,6 +179,7 @@ class Browse { case 'album': case 'artist': case 'genre': + case 'shoutbox': case 'live_stream': $_SESSION['browse']['type'] = $type; // Resets the simple browse @@ -217,6 +218,9 @@ class Browse { case 'playlist': $valid_array = array('name','user'); break; + case 'shoutbox': + $valud_array = array('date','user','sticky'); + break; case 'live_stream': $valid_array = array('name','call_sign','frequency'); break; @@ -385,6 +389,9 @@ class Browse { case 'flagged': $sql = "SELECT `flagged`.`id` FROM `flagged` "; break; + case 'shoutbox': + $sql - "SELECT `user_shout`.`id` FROM `user_shout` "; + break; case 'playlist_song': case 'song': default: @@ -713,6 +720,11 @@ class Browse { require_once Config::get('prefix') . '/templates/show_catalogs.inc.php'; show_box_bottom(); break; + case 'shoutbox': + show_box_top(_('Shoutbox Records'),$class); + require_once Config::get('prefix') . '/templates/show_manage_shoutbox.inc.php'; + show_box_bottom(); + break; case 'flagged': show_box_top(_('Flagged Records'),$class); require_once Config::get('prefix') . '/templates/show_flagged.inc.php'; -- cgit