diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-11-19 08:34:52 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-11-19 08:34:52 +0000 |
commit | b372d114dce875b9e69230fe903780ae50195584 (patch) | |
tree | f2dd58be35f5ec8c7ab4cee55decec3b2b931bae /server | |
parent | f4d94f034e6ca26d37244028d8ccb08ddbab0e8c (diff) | |
download | ampache-b372d114dce875b9e69230fe903780ae50195584.tar.gz ampache-b372d114dce875b9e69230fe903780ae50195584.tar.bz2 ampache-b372d114dce875b9e69230fe903780ae50195584.zip |
fixed an album art config parsing problem, Thanks Karl Hungus more work on xml class and api mojo, handshake logic in place
Diffstat (limited to 'server')
-rw-r--r-- | server/xml.server.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/server/xml.server.php b/server/xml.server.php index 484c874c..79082f43 100644 --- a/server/xml.server.php +++ b/server/xml.server.php @@ -37,13 +37,17 @@ if (!Access::session_exists(array(),$_REQUEST['auth'],'api') AND $_REQUEST['acti } /* Set the correct headers */ -header("Content-type: text/xml; charset=utf-8"); - +header("Content-type: text/xml; charset=" . Config::get('site_charset')); +header("Content-Disposition: attachment; filename=information.xml"); switch ($_REQUEST['action']) { case 'handshake': - // Send the data we were sent to the API class so it can be chewed on + $token = Api::handshake($_REQUEST['timestamp'],$_REQUEST['auth'],$_SERVER['REMOTE_ADDR'],$_REQUEST['user']); + + if (!$token) { + echo xmlData::error('Error Invalid Handshake, attempt logged'); + } break; default: |