From 93cb97f630c6a869ecfa3b9aaf6486ddf9a424b1 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Thu, 29 Dec 2022 21:41:53 +0000 Subject: [PATCH] Add deprecated notice to companies module and associated functionality (#532) --- companies.php | 4 ++++ post.php | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/companies.php b/companies.php index ee6b370f..f6bb7d5e 100644 --- a/companies.php +++ b/companies.php @@ -26,6 +26,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
+ +
diff --git a/post.php b/post.php index 17958489..4acc8851 100644 --- a/post.php +++ b/post.php @@ -25,7 +25,8 @@ if(isset($_GET['switch_company'])){ mysqli_query($mysqli,"UPDATE user_settings SET user_default_company = $company_id WHERE user_id = $session_user_id"); - $_SESSION['alert_message'] = "Switched Companies!"; + $_SESSION['alert_type'] = "error"; + $_SESSION['alert_message'] = "Switched Companies. Deprecated!"; //Logging mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Company', log_action = 'Switch', log_description = '$session_name switched to company $company_name', log_ip = '$session_ip', log_user_agent = '$session_user_agent', log_user_id = $session_user_id, company_id = $session_company_id");