summaryrefslogtreecommitdiffstats
path: root/lib/init.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-29 21:32:03 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-29 21:32:03 +0000
commitec19be3ef82d41cfae99d555ce3eef7e162d74c9 (patch)
tree310499ac46d6de1a46a7aa3cecbea536299832bf /lib/init.php
parentddc3149e63c7a6da9b0feba9ec2663f1e4c96df4 (diff)
downloadampache-ec19be3ef82d41cfae99d555ce3eef7e162d74c9.tar.gz
ampache-ec19be3ef82d41cfae99d555ce3eef7e162d74c9.tar.bz2
ampache-ec19be3ef82d41cfae99d555ce3eef7e162d74c9.zip
fixed auto-transcoding logic, requires a third variable now if not transcoding to mp3
Diffstat (limited to 'lib/init.php')
-rw-r--r--lib/init.php10
1 files changed, 5 insertions, 5 deletions
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'] = '&amp;user_id=' . $user->id . '&amp;sessid=' . session_id();