diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/init.php | 2 | ||||
-rw-r--r-- | modules/lib.php | 15 |
2 files changed, 9 insertions, 8 deletions
diff --git a/modules/init.php b/modules/init.php index 69d3480c..adc87ac6 100644 --- a/modules/init.php +++ b/modules/init.php @@ -83,7 +83,7 @@ if (!$results['conf']['allow_stream_playback']) { } $results['conf']['web_path'] = $http_type . $_SERVER['HTTP_HOST'] . $results['conf']['web_path']; -$results['conf']['version'] = '3.3.2-Alpha4 (Build 002)'; +$results['conf']['version'] = '3.3.2-Alpha4 (Build 003)'; $results['conf']['catalog_file_pattern']= 'mp3|mpc|m4p|m4a|mp4|aac|ogg|rm|wma|asf|flac|spx'; $results['libglue']['local_table'] = 'session'; $results['libglue']['local_sid'] = 'id'; diff --git a/modules/lib.php b/modules/lib.php index 6a825255..162d60e3 100644 --- a/modules/lib.php +++ b/modules/lib.php @@ -125,21 +125,22 @@ function show_genre_pulldown ($genre, $complete, $lines= "'10' multiple='multipl } // show_genre_pulldown() -/* - * show_catalog_pulldown() - * - * Set complete=1 if you want the entire catalog list (including disabled) +/** + * show_catalog_pulldown + * This has been changed, first is the name of the + * dropdown select, the second is the style to be applied * */ -function show_catalog_pulldown ($catalog, $complete) { - global $settings; +function show_catalog_pulldown ($name='catalog',$style) { + + // find the genres we have in use $sql = "SELECT id,name FROM catalog ORDER BY name"; $db_result = mysql_query($sql, dbh()); - echo "\n<select name=\"catalog\">\n"; + echo "\n<select name=\"" . $name . "\" style=\"" . $style . "\">\n"; echo " <option value=\"-1\" selected=\"selected\">All</option>\n"; |