From f9edeb39b058a10a078a0e8526226033b01ccc0a Mon Sep 17 00:00:00 2001 From: Brian Lycett Date: Mon, 4 May 2020 13:49:48 +0100 Subject: [PATCH] Add missing log prefix to session debug logs. --- www/includes/web_functions.inc.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/www/includes/web_functions.inc.php b/www/includes/web_functions.inc.php index fda3009..8691bde 100644 --- a/www/includes/web_functions.inc.php +++ b/www/includes/web_functions.inc.php @@ -40,7 +40,7 @@ function set_passkey_cookie($user_id,$is_admin) { # Create a random value, store it locally and set it in a cookie. - global $LOGIN_TIMEOUT_MINS, $VALIDATED, $USER_ID, $IS_ADMIN, $SESSION_DEBUG; + global $LOGIN_TIMEOUT_MINS, $VALIDATED, $USER_ID, $IS_ADMIN, $log_prefix, $SESSION_DEBUG; $passkey = generate_passkey(); @@ -64,7 +64,7 @@ function set_passkey_cookie($user_id,$is_admin) { function validate_passkey_cookie() { - global $LOGIN_TIMEOUT_MINS, $IS_ADMIN, $USER_ID, $VALIDATED, $SESSION_DEBUG; + global $LOGIN_TIMEOUT_MINS, $IS_ADMIN, $USER_ID, $VALIDATED, $log_prefix, $SESSION_DEBUG; if (isset($_COOKIE['orf_cookie'])) { @@ -110,7 +110,7 @@ function set_setup_cookie() { # Create a random value, store it locally and set it in a cookie. - global $LOGIN_TIMEOUT_MINS, $IS_SETUP_ADMIN, $SESSION_DEBUG; + global $LOGIN_TIMEOUT_MINS, $IS_SETUP_ADMIN, $log_prefix, $SESSION_DEBUG; $passkey = generate_passkey(); $this_time=time(); @@ -128,7 +128,7 @@ function set_setup_cookie() { function validate_setup_cookie() { - global $LOGIN_TIMEOUT_MINS, $IS_SETUP_ADMIN, $SESSION_DEBUG; + global $LOGIN_TIMEOUT_MINS, $IS_SETUP_ADMIN, $log_prefix, $SESSION_DEBUG; if (isset($_COOKIE['setup_cookie'])) { @@ -278,7 +278,7 @@ function render_footer() { function set_page_access($level) { - global $IS_ADMIN, $IS_SETUP_ADMIN, $VALIDATED, $SESSION_DEBUG; + global $IS_ADMIN, $IS_SETUP_ADMIN, $VALIDATED, $log_prefix, $SESSION_DEBUG; #Set the security level needed to view a page. #This should be one of the first pieces of code