summaryrefslogtreecommitdiffstats
path: root/lib/init.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-08-31 00:50:26 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-08-31 00:50:26 +0000
commit0aebfb24e5b26adf1101f0cd3703660764ced57f (patch)
treed0110b05c9b72aa255558153e240d99f4c70e315 /lib/init.php
parent67847b12ddf89863898fc7f561532cfaf7980028 (diff)
downloadampache-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.php5
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'];