From 0d0f8c23f44af61211c40087cfeda80dbf254e71 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sat, 15 Nov 2008 20:49:08 +0000 Subject: more cleanup, added numeric values of ratings to the song xml return --- lib/class/access.class.php | 2 +- lib/class/xmldata.class.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/class') diff --git a/lib/class/access.class.php b/lib/class/access.class.php index 0182a45d..006bfb2c 100644 --- a/lib/class/access.class.php +++ b/lib/class/access.class.php @@ -165,7 +165,7 @@ class Access { * and then returns true or false if they have access to this * the IP is passed as a dotted quad */ - public static function check_network($type,$ip='',$user,$level,$key='') { + public static function check_network($type,$user,$level,$ip='',$key='') { if (!Config::get('access_control')) { switch ($type) { diff --git a/lib/class/xmldata.class.php b/lib/class/xmldata.class.php index caeee032..807a9a5d 100644 --- a/lib/class/xmldata.class.php +++ b/lib/class/xmldata.class.php @@ -274,6 +274,8 @@ class xmlData { $song = new Song($song_id); $song->format(); + $rating = new Rating($song_id,'song'); + $art_url = Config::get('web_path') . '/image.php?id=' . $song->album . '&auth=' . scrub_out($_REQUEST['auth']); $string .= "id\">\n" . @@ -286,6 +288,8 @@ class xmlData { "\tget_url($_REQUEST['auth']) . "]]>\n" . "\t$song->size\n" . "\t\n" . + "\t" . $rating->preciserating . "\n" . + "\t" . $rating->rating . "\n" . "\n"; } // end foreach -- cgit