diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-11-21 07:07:34 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-11-21 07:07:34 +0000 |
commit | 068b2cbbb33afcab2e6ee41501fa90a85f52f367 (patch) | |
tree | 72df9028eb7e5bf37f09d76846238aa9853554c6 /image.php | |
parent | 8d914e47c9ecb0c99f63ba50936a09e2184eaf84 (diff) | |
download | ampache-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.php | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 */ |