From 1ad524caf072cbc03c1402b4f76551c658f5332d Mon Sep 17 00:00:00 2001 From: Craig Knudsen Date: Mon, 4 Dec 2023 14:36:22 -0500 Subject: [PATCH] PHP session changes; Docker compose updates - Updates the PHP session to use a name distinct to the install directory. This should allow for multiple webcalendar installs on the same server without causing login session conflicts. - Updates to the docker-compose yaml files to show how to use environment variables instead of settings.php. --- admin.php | 1 - adminhome.php | 1 - css_cacher.php | 1 + docker/docker-compose-php8-dev.yml | 16 ++++++++++++++++ docker/docker-compose-php8.yml | 16 ++++++++++++++++ includes/classes/WebCalendar.php | 5 +++++ includes/config.php | 9 +++++++++ install/index.php | 5 +++-- login.php | 26 +++++++++++++------------- pref.php | 1 - 10 files changed, 63 insertions(+), 18 deletions(-) diff --git a/admin.php b/admin.php index 2bdc4050e..c01e35937 100644 --- a/admin.php +++ b/admin.php @@ -107,7 +107,6 @@ function save_pref ( $prefs, $src ) { $select = translate ( 'Select' ) . '...'; // Allow css_cache of webcal_config values. - @session_start(); $_SESSION['webcal_tmp_login'] = 'blahblahblah'; $editStr = '