From c49ac5eb804149875507063944562f3f90077ff5 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 22 Aug 2023 13:22:56 -0400 Subject: [PATCH] oops fix, added company name to guest share --- client_edit_modal.php | 2 +- guest_view_item.php | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/client_edit_modal.php b/client_edit_modal.php index 4b1212e4..ba04a503 100644 --- a/client_edit_modal.php +++ b/client_edit_modal.php @@ -138,7 +138,7 @@ - + diff --git a/guest_view_item.php b/guest_view_item.php index 9d01c364..68fa1c38 100644 --- a/guest_view_item.php +++ b/guest_view_item.php @@ -12,10 +12,28 @@ $purifier_config = HTMLPurifier_Config::createDefault(); $purifier_config->set('URI.AllowedSchemes', ['data' => true, 'src' => true, 'http' => true, 'https' => true]); $purifier = new HTMLPurifier($purifier_config); +$sql = mysqli_query($mysqli, "SELECT * FROM companies, settings WHERE companies.company_id = settings.company_id AND companies.company_id = 1"); +$row = mysqli_fetch_array($sql); + +$company_name = nullable_htmlentities($row['company_name']); +$company_address = nullable_htmlentities($row['company_address']); +$company_city = nullable_htmlentities($row['company_city']); +$company_state = nullable_htmlentities($row['company_state']); +$company_zip = nullable_htmlentities($row['company_zip']); +$company_phone = formatPhoneNumber($row['company_phone']); +$company_email = nullable_htmlentities($row['company_email']); +$company_website = nullable_htmlentities($row['company_website']); +$company_logo = nullable_htmlentities($row['company_logo']); +$company_locale = nullable_htmlentities($row['company_locale']); +$config_invoice_footer = nullable_htmlentities($row['config_invoice_footer']); + +//Set Currency Format +$currency_format = numfmt_create($company_locale, NumberFormatter::CURRENCY); + ?>
-

Guest sharing

+

Guest sharing