diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-08-05 20:59:45 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-08-05 20:59:45 +0000 |
commit | ad3d2363c4c20d6b5049c8db92d08786650bd2ae (patch) | |
tree | b72355de5d27c9560d22947efd2d43c77c3e7b9e /lib/class/browse.class.php | |
parent | aef507d64420f2c82359d5219e83e3e0671522b7 (diff) | |
download | ampache-ad3d2363c4c20d6b5049c8db92d08786650bd2ae.tar.gz ampache-ad3d2363c4c20d6b5049c8db92d08786650bd2ae.tar.bz2 ampache-ad3d2363c4c20d6b5049c8db92d08786650bd2ae.zip |
year another bump on openstrands, removed redundent files, fixed bug with config gen and started work on playlists
Diffstat (limited to 'lib/class/browse.class.php')
-rw-r--r-- | lib/class/browse.class.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/class/browse.class.php b/lib/class/browse.class.php index a652dd71..7be9db02 100644 --- a/lib/class/browse.class.php +++ b/lib/class/browse.class.php @@ -88,6 +88,7 @@ class Browse { switch($type) { case 'user': + case 'playlist': case 'song': case 'album': case 'artist': @@ -200,6 +201,9 @@ class Browse { case 'live_stream': $sql = "SELECT `live_stream`.`id` FROM `live_stream` "; break; + case 'playlist': + $sql = "SELECT `playlist`.`id` FROM `playlist` "; + break; case 'song': default: $sql = "SELECT `song`.`id` FROM `song` "; @@ -296,6 +300,16 @@ class Browse { break; } // end filter } // end live_stream + elseif ($_SESSION['browse']['type'] == 'playlist') { + switch ($filter) { + case 'alpha_match': + $filter_sql = " `playlist`.`name` LIKE '" . Dba::escape($value) . "%' AND "; + break; + default; + // Rien a faire + break; + } // end filter + } // end playlist return $filter_sql; @@ -409,6 +423,11 @@ class Browse { require_once Config::get('prefix') . '/templates/show_live_streams.inc.php'; show_box_bottom(); break; + case 'playlist': + show_box_top(_('Playlists')); + require_once Config::get('prefix') . '/templates/show_playlists.inc.php'; + show_box_bottom(); + break; default: // Rien a faire break; |