From ec19be3ef82d41cfae99d555ce3eef7e162d74c9 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Fri, 29 Dec 2006 21:32:03 +0000 Subject: fixed auto-transcoding logic, requires a third variable now if not transcoding to mp3 --- lib/init.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/init.php') diff --git a/lib/init.php b/lib/init.php index b7fbdac1..5e96e204 100644 --- a/lib/init.php +++ b/lib/init.php @@ -256,9 +256,13 @@ if (in_array("http",$results['auth_methods'])) { } // end if http auth +if ($no_session) { + define('NO_SESSION','1'); +} + // If we don't want a session -if (!isset($no_session) AND conf('use_auth')) { +if (NO_SESSION != '1' AND conf('use_auth')) { /* Verify Their session */ if (!vauth_check_session()) { logout(); exit; } @@ -302,10 +306,6 @@ else { init_preferences(); } -/* PHP5 Date problem solved.. ya'll GMT now! */ -$timezone = "TZ=" . conf('time_zone'); -putenv($timezone); - /* Add in some variables for ajax done here because we need the user */ $ajax_info['ajax_url'] = $results['web_path'] . '/server/ajax.server.php'; $ajax_info['ajax_info'] = '&user_id=' . $user->id . '&sessid=' . session_id(); -- cgit