From a5cd1e1f1a745942b306349317db73d61a281c51 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 7 Nov 2024 12:13:05 -0500 Subject: [PATCH] Replaced old notification with new appNotify in all the Guest_ PHP Scripts --- guest_header.php | 8 +++----- guest_pay_invoice_stripe.php | 3 ++- guest_post.php | 10 ++++++---- guest_view_item.php | 2 +- guest_view_quote.php | 3 ++- 5 files changed, 14 insertions(+), 12 deletions(-) diff --git a/guest_header.php b/guest_header.php index ab0eff7d..8ce55023 100644 --- a/guest_header.php +++ b/guest_header.php @@ -1,15 +1,13 @@ diff --git a/guest_view_quote.php b/guest_view_quote.php index caeed0bc..2996c1bd 100644 --- a/guest_view_quote.php +++ b/guest_view_quote.php @@ -92,7 +92,8 @@ if ($quote_status == 'Sent') { mysqli_query($mysqli, "INSERT INTO history SET history_status = '$quote_status', history_description = 'Quote viewed - $ip - $os - $browser', history_quote_id = $quote_id"); if ($quote_status == "Draft" || $quote_status == "Sent" || $quote_status == "Viewed") { - mysqli_query($mysqli, "INSERT INTO notifications SET notification_type = 'Quote Viewed', notification = 'Quote $quote_prefix$quote_number has been viewed by $client_name_escaped - $ip - $os - $browser', notification_action = 'quote.php?quote_id=$quote_id', notification_client_id = $client_id, notification_entity_id = $quote_id"); + + appNotify("Quote Viewed", "Quote $quote_prefix$quote_number has been viewed by $client_name_escaped - $ip - $os - $browser", "quote.php?quote_id=$quote_id", $client_id); } ?>