summaryrefslogtreecommitdiffstats
path: root/play/index.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-24 01:28:07 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-24 01:28:07 +0000
commit34b92d2dd5da0298f9d27a230ca3ffa2da061d36 (patch)
treeba4a2bf5b17c093a8127317087272e2117fcff45 /play/index.php
parent3d8ff28ac56f30075bd9c485e2ee94f486717e6f (diff)
downloadampache-34b92d2dd5da0298f9d27a230ca3ffa2da061d36.tar.gz
ampache-34b92d2dd5da0298f9d27a230ca3ffa2da061d36.tar.bz2
ampache-34b92d2dd5da0298f9d27a230ca3ffa2da061d36.zip
fixed now playing for the API and lack of session extend when using the API
Diffstat (limited to 'play/index.php')
-rw-r--r--play/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/play/index.php b/play/index.php
index 0a378be0..e47c78ab 100644
--- a/play/index.php
+++ b/play/index.php
@@ -67,7 +67,7 @@ if (Config::get('xml_rpc')) {
// If require session is set then we need to make sure we're legit
if (Config::get('require_session')) {
- if(!Stream::session_exists($sid) && !Access::session_exists(array(),$sid,'api')) {
+ if(!Stream::session_exists($sid)) {
debug_event('session_expired',"Streaming Access Denied: " . $GLOBALS['user']->username . "'s session has expired",'3');
die(_("Session Expired: please log in again at") . " " . Config::get('web_path') . "/login.php");
}
@@ -82,7 +82,7 @@ if (Config::get('require_session')) {
$user->update_last_seen();
/* If we are in demo mode.. die here */
-if (Config::get('demo_mode') || (!$GLOBALS['user']->has_access('25') && !$xml_rpc) ) {
+if (Config::get('demo_mode') || (!Access::check('interface','25') && !$xml_rpc) ) {
debug_event('access_denied',"Streaming Access Denied:" .Config::get('demo_mode') . "is the value of demo_mode. Current user level is " . $GLOBALS['user']->access,'3');
access_denied();
exit;