summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-01-10 09:14:18 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-01-10 09:14:18 +0000
commitd709751a3f5cf3fdf5b4036ef1486b14df6a646d (patch)
tree1e9d80ddc0f9d23c2e13181cb4fc6ed11d1afedb /server
parente0c75b5684693605d38c437b0d3857a87127ff04 (diff)
downloadampache-d709751a3f5cf3fdf5b4036ef1486b14df6a646d.tar.gz
ampache-d709751a3f5cf3fdf5b4036ef1486b14df6a646d.tar.bz2
ampache-d709751a3f5cf3fdf5b4036ef1486b14df6a646d.zip
fixed registration, show edit song title issue and added limit to xml api
Diffstat (limited to 'server')
-rw-r--r--server/xml.server.php27
1 files changed, 26 insertions, 1 deletions
diff --git a/server/xml.server.php b/server/xml.server.php
index 18bf91df..5ea8f3af 100644
--- a/server/xml.server.php
+++ b/server/xml.server.php
@@ -1,7 +1,7 @@
<?php
/*
- Copyright (c) 2001 - 2007 Ampache.org
+ Copyright (c) 2001 - 2008 Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or
@@ -85,6 +85,7 @@ switch ($_REQUEST['action']) {
// Set the offset
xmlData::set_offset($_REQUEST['offset']);
+ xmlData::set_limit($_REQUEST['limit']);
$artists = Browse::get_objects();
// echo out the resulting xml document
@@ -98,6 +99,7 @@ switch ($_REQUEST['action']) {
// Set the offset
xmlData::set_offset($_REQUEST['offset']);
+ xmlData::set_limit($_REQUEST['limit']);
ob_end_clean();
echo xmlData::albums($albums);
break;
@@ -107,6 +109,7 @@ switch ($_REQUEST['action']) {
// Set the offset
xmlData::set_offset($_REQUEST['offset']);
+ xmlData::set_limit($_REQUEST['limit']);
ob_end_clean();
echo xmlData::songs($songs);
break;
@@ -122,6 +125,7 @@ switch ($_REQUEST['action']) {
// Set the offset
xmlData::set_offset($_REQUEST['offset']);
+ xmlData::set_limit($_REQUEST['limit']);
ob_end_clean();
echo xmlData::albums($albums);
break;
@@ -131,6 +135,8 @@ switch ($_REQUEST['action']) {
// Set the offset
xmlData::set_offset($_REQUEST['offset']);
+ xmlData::set_limit($_REQUEST['limit']);
+
ob_end_clean();
echo xmlData::songs($songs);
break;
@@ -146,24 +152,38 @@ switch ($_REQUEST['action']) {
// Set the offset
xmlData::set_offset($_REQUEST['offset']);
+ xmlData::set_limit($_REQUEST['limit']);
+
ob_end_clean();
echo xmlData::genres($genres);
break;
case 'genre_artists':
$genre = new Genre($_REQUEST['filter']);
$artists = $genre->get_artists();
+
+ xmlData::set_offset($_REQUEST['offset']);
+ xmlData::set_limit($_REQUEST['limit']);
+
ob_end_clean();
echo xmlData::artists($artists);
break;
case 'genre_albums':
$genre = new Genre($_REQUEST['filter']);
$albums = $genre->get_albums();
+
+ xmlData::set_offset($_REQUEST['offset']);
+ xmlData::set_limit($_REQUEST['limit']);
+
ob_end_clean();
echo xmlData::albums($albums);
break;
case 'genre_songs':
$genre = new Genre($_REQUEST['filter']);
$songs = $genre->get_songs();
+
+ xmlData::set_offset($_REQUEST['offset']);
+ xmlData::set_limit($_REQUEST['limit']);
+
ob_end_clean();
echo xmlData::songs($songs);
break;
@@ -179,6 +199,8 @@ switch ($_REQUEST['action']) {
// Set the offset
xmlData::set_offset($_REQUEST['offset']);
+ xmlData::set_limit($_REQUEST['limit']);
+
ob_end_clean();
echo xmlData::songs($songs);
break;
@@ -194,6 +216,8 @@ switch ($_REQUEST['action']) {
$playlist_ids = Browse::get_objects();
xmlData::set_offset($_REQUEST['offset']);
+ xmlData::set_limit($_REQUEST['limit']);
+
ob_end_clean();
echo xmlData::playlists($playlist_ids);
break;
@@ -208,6 +232,7 @@ switch ($_REQUEST['action']) {
} // end foreach
xmlData::set_offset($_REQUEST['offset']);
+ xmlData::set_limit($_REQUEST['limit']);
ob_end_clean();
echo xmlData::songs($songs);
break;