summaryrefslogtreecommitdiffstats
path: root/image.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-01-28 16:57:34 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2013-01-28 16:57:34 -0500
commit58a3ab692ec3a61c270e5a7b0953b6bb4b48b39c (patch)
tree5d873a2b6cd93e520fe8ee3e937239a99f1d2709 /image.php
parentc570bb77947c29a78d9a2ac98e09832be0daac66 (diff)
downloadampache-58a3ab692ec3a61c270e5a7b0953b6bb4b48b39c.tar.gz
ampache-58a3ab692ec3a61c270e5a7b0953b6bb4b48b39c.tar.bz2
ampache-58a3ab692ec3a61c270e5a7b0953b6bb4b48b39c.zip
Move sessiony things from vauth into Session
Diffstat (limited to 'image.php')
-rw-r--r--image.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/image.php b/image.php
index 243fd269..a08fb8a1 100644
--- a/image.php
+++ b/image.php
@@ -33,8 +33,8 @@ define('NO_SESSION','1');
require_once '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']) AND !vauth::session_exists('xml-rpc',$_REQUEST['auth'])) {
- debug_event('DENIED','Image Access, Checked Cookie Session:' . $_COOKIE[Config::get('session_name')] . ' and Auth:' . $_REQUEST['auth'],'1');
+if (!Session::exists('interface', $_COOKIE[Config::get('session_name')]) AND !Session::exists('api', $_REQUEST['auth']) AND !Session::exists('xml-rpc', $_REQUEST['auth'])) {
+ debug_event('image','Access denied, checked cookie session:' . $_COOKIE[Config::get('session_name')] . ' and auth:' . $_REQUEST['auth'], 1);
exit;
}
@@ -77,7 +77,7 @@ switch ($_GET['type']) {
break;
// If we need to pull the data out of the session
case 'session':
- vauth::check_session();
+ Session::check();
$filename = scrub_in($_REQUEST['image_index']);
$image = Art::get_from_source($_SESSION['form']['images'][$filename], 'album');
$mime = $_SESSION['form']['images'][$filename]['mime'];