summaryrefslogtreecommitdiffstats
path: root/image.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-21 07:07:34 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-21 07:07:34 +0000
commit068b2cbbb33afcab2e6ee41501fa90a85f52f367 (patch)
tree72df9028eb7e5bf37f09d76846238aa9853554c6 /image.php
parent8d914e47c9ecb0c99f63ba50936a09e2184eaf84 (diff)
downloadampache-068b2cbbb33afcab2e6ee41501fa90a85f52f367.tar.gz
ampache-068b2cbbb33afcab2e6ee41501fa90a85f52f367.tar.bz2
ampache-068b2cbbb33afcab2e6ee41501fa90a85f52f367.zip
tweak to make the image.php file work with API auth, and corrected URLs
Diffstat (limited to 'image.php')
-rw-r--r--image.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/image.php b/image.php
index 62230d38..415bcb76 100644
--- a/image.php
+++ b/image.php
@@ -24,6 +24,15 @@
* and dumps it to the browser as an image mime type.
*
*/
+
+// This file is a little weird it needs to allow API session
+// this needs to be done a little better, but for now... eah
+if ($_REQUEST['auth']) {
+ if (Access::session_exists(array(),$_REQUEST['auth'],'api')) {
+ define('NO_SESSION','1');
+ }
+} // extra layer of auth
+
require 'lib/init.php';
/* Decide what size this image is */