From 2823f5a0523c766bee46f5fb4e81f7cc4a40d027 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Fri, 5 Jan 2007 16:35:00 +0000 Subject: [PATCH] fixed minor ajax issue --- docs/CHANGELOG | 5 +++++ index.php | 1 - lib/init.php | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/CHANGELOG b/docs/CHANGELOG index 042e46ac..8d3c8604 100755 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -2,6 +2,11 @@ --------- Ampache -- CHANGELOG --------- -------------------------------------------------------------------------- +-------------------------------------------------------------------------- + v.3.3.3 + - Fixed an issue that caused AJAX not to work if you were working + in a sub-directory. + -------------------------------------------------------------------------- v.3.3.3-Beta3 01/04/2007 - Fixed a few more unhandled mis-configurations of Localplay which diff --git a/index.php b/index.php index 5db87f4c..c14e28b1 100644 --- a/index.php +++ b/index.php @@ -26,7 +26,6 @@ */ require_once('lib/init.php'); - show_template('header'); $action = scrub_in($_REQUEST['action']); diff --git a/lib/init.php b/lib/init.php index ba0c06d9..58454ec2 100644 --- a/lib/init.php +++ b/lib/init.php @@ -67,7 +67,7 @@ if (!$results = read_config($configfile,0)) { } /** This is the version.... fluf nothing more... **/ -$results['version'] = '3.3.3-Beta3'; +$results['version'] = '3.3.3 Build (001)'; $results['raw_web_path'] = $results['web_path']; $results['web_path'] = $http_type . $_SERVER['HTTP_HOST'] . $results['web_path']; @@ -298,11 +298,11 @@ elseif (!conf('use_auth')) { } else { if (isset($_REQUEST['sessid'])) { - $results = vauth_get_session($_REQUEST['sessid']); + $sess_results = vauth_get_session($_REQUEST['sessid']); session_id(scrub_in($_REQUEST['sessid'])); session_start(); } - $user = new user($results['username']); + $user = new user($sess_results['username']); init_preferences(); }