diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-08-31 00:50:26 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-08-31 00:50:26 +0000 |
commit | 0aebfb24e5b26adf1101f0cd3703660764ced57f (patch) | |
tree | d0110b05c9b72aa255558153e240d99f4c70e315 /lib/init.php | |
parent | 67847b12ddf89863898fc7f561532cfaf7980028 (diff) | |
download | ampache-0aebfb24e5b26adf1101f0cd3703660764ced57f.tar.gz ampache-0aebfb24e5b26adf1101f0cd3703660764ced57f.tar.bz2 ampache-0aebfb24e5b26adf1101f0cd3703660764ced57f.zip |
fixed use_auth=false not correctly building a new session when you had just switched from use_auth=true
Diffstat (limited to 'lib/init.php')
-rw-r--r-- | lib/init.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/init.php b/lib/init.php index b2f7ffc7..1ee9e4f9 100644 --- a/lib/init.php +++ b/lib/init.php @@ -85,7 +85,7 @@ if (!count($results)) { } /** This is the version.... fluf nothing more... **/ -$results['version'] = '3.5-Alpha1 (Build 002)'; +$results['version'] = '3.5-Alpha1 (Build 003)'; $results['int_config_version'] = '7'; $results['raw_web_path'] = $results['web_path']; @@ -206,10 +206,11 @@ elseif (!Config::get('use_auth')) { $auth['id'] = -1; $auth['access'] = '100'; $auth['offset_limit'] = 50; - if (!vauth::check_session()) { + if (!vauth::session_exists('interface',$_COOKIE[Config::get('session_name')])) { vauth::create_cookie(); vauth::session_create($auth); } + vauth::check_session(); $GLOBALS['user'] = new User(-1); $GLOBALS['user']->fullname = 'Ampache User'; $GLOBALS['user']->offset_limit = $auth['offset_limit']; |