summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/lib.php32
1 files changed, 0 insertions, 32 deletions
diff --git a/modules/lib.php b/modules/lib.php
index 2d8adef8..2f89fbbe 100644
--- a/modules/lib.php
+++ b/modules/lib.php
@@ -104,38 +104,6 @@ function show_local_catalog_info() {
/*
- * get_popular_songs()
- *
- */
-
-function get_popular_songs( $threshold, $type, $user_id = '' ) {
-
- $dbh = dbh();
-
- if ( $type == 'your' ) {
- $sql = "SELECT object_id FROM object_count" .
- " WHERE object_type = 'song'" .
- " AND userid = '$user_id'" .
- " ORDER BY count DESC LIMIT $threshold";
- }
- else {
- $sql = "SELECT object_id FROM object_count" .
- " WHERE object_type = 'song'" .
- " ORDER BY count DESC LIMIT $threshold";
- }
-
- $db_result = mysql_query($sql, $dbh);
- $songs = array();
-
- while ( $id = mysql_fetch_array($db_result) ) {
- $songs[] = $id[0];
- }
-
- return $songs;
-} // get_popular_songs()
-
-
-/*
* show_random_play()
*
*/