summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-25 21:36:57 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-25 21:36:57 +0000
commit9e97e1a980069af52991f637993c75b3b7ddc8ff (patch)
treedba43a96ae033653a0933af316a5c53376ad9374 /server
parentb588a9475f7e37f80ada63d98448e933e19bf95a (diff)
downloadampache-9e97e1a980069af52991f637993c75b3b7ddc8ff.tar.gz
ampache-9e97e1a980069af52991f637993c75b3b7ddc8ff.tar.bz2
ampache-9e97e1a980069af52991f637993c75b3b7ddc8ff.zip
fixed some missing gettext, tweaked error reporting level on test.php and fixed timeout issues with API (Thx Beef Doughnut)
Diffstat (limited to 'server')
-rw-r--r--server/xml.server.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/xml.server.php b/server/xml.server.php
index 04475bca..3cb56e20 100644
--- a/server/xml.server.php
+++ b/server/xml.server.php
@@ -27,6 +27,9 @@
define('NO_SESSION','1');
require_once '../lib/init.php';
+// If we don't even have access control on then we can't use this!
+if (!Config::get('access_control')) { access_denied(); exit; }
+
/**
* Verify the existance of the Session they passed in we do allow them to
* login via this interface so we do have an exception for action=login
@@ -36,6 +39,11 @@ if (!Access::session_exists(array(),$_REQUEST['auth'],'api') AND $_REQUEST['acti
exit();
}
+// If it's not a handshake then we can allow it to take up lots of time
+if (!$_REQUEST['action'] != 'handshake') {
+ set_time_limit(0);
+}
+
/* Set the correct headers */
header("Content-type: text/xml; charset=" . Config::get('site_charset'));
header("Content-Disposition: attachment; filename=information.xml");