summaryrefslogtreecommitdiffstats
path: root/image.php
diff options
context:
space:
mode:
authordipsol <dipsol@ampache>2008-12-11 15:21:07 +0000
committerdipsol <dipsol@ampache>2008-12-11 15:21:07 +0000
commite415574302f507405c85daf96e050e07ce54d5cc (patch)
treecca1097a9497a4da505766b8fba23784b326b878 /image.php
parentefa0fda4ff3133e15c79489e49258247182e3c50 (diff)
downloadampache-e415574302f507405c85daf96e050e07ce54d5cc.tar.gz
ampache-e415574302f507405c85daf96e050e07ce54d5cc.tar.bz2
ampache-e415574302f507405c85daf96e050e07ce54d5cc.zip
When updating an remote catalog it will try to grab the images from the remote machine to the local database.
Diffstat (limited to 'image.php')
-rw-r--r--image.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/image.php b/image.php
index 077133b8..53ff786d 100644
--- a/image.php
+++ b/image.php
@@ -31,7 +31,11 @@ define('NO_SESSION','1');
require 'lib/init.php';
// Check to see if they've got an interface session or a valid API session, if not GTFO
-if (!vauth::session_exists('interface',$_COOKIE[Config::get('session_name')]) AND !vauth::session_exists('api',$_REQUEST['auth'])) {
+if ( !vauth::session_exists('interface',$_COOKIE[Config::get('session_name')])
+ AND !vauth::session_exists('api',$_REQUEST['auth'])
+ AND !vauth::session_exists('xml-rpc',$_REQUEST['auth'])
+ )
+{
debug_event('DENIED','Image Access, Checked Cookie Session and Auth:' . $_REQUEST['auth'],'1');
exit;
}