Add sensitive information toggle.

This commit is contained in:
William P
2023-07-23 22:43:08 +01:00
parent 6b4a63449a
commit 28ab15669d

View File

@@ -2,8 +2,8 @@
///////////////////////// Provided For Free By /////////////////////////
// //
// PrimeNodes - Premium Infrastructure Provider //
// William Phillips - MetallicGloss.com //
// Zare - Affordable DDoS Protected Servers //
// William P - MetallicGloss.com //
// //
////////////////////////////////////////////////////////////////////////
@@ -38,6 +38,11 @@ $GLOBALS['discordGroupID'] = "";
$GLOBALS['discordWebHookAvatar'] = "";
// (OPTIONAL SETTING) Your desired Webhook Avatar. Please make sure you enter a direct link to the image (E.G. https://example.com/iownpaypal.png ).
// Sensitive Information Display
$GLOBALS['sensitiveInformation'] = False; // False/True
// Note: Disabled by default; if enabled, customer emails will be included in some notifications.
// WARNING: Sharing/storing personally identifable information on Discord will require the update of your privacy policy (if applicable) to allow you to remain in compliance with GDPR.
///////////////////////////////////////////////////////////////////////
////////////////////////// Notification Area //////////////////////////
@@ -101,7 +106,7 @@ if($invoicePaid === true):
'fields' => array(
array(
'name' => 'User Email',
'value' => $client['email'],
'value' => ($GLOBALS['sensitiveInformation'] ? $client['email'] : "-- Redacted --"),
'inline' => true
),
array(
@@ -294,7 +299,7 @@ if($orderPaid === true):
'fields' => array(
array(
'name' => 'User Email',
'value' => $client['email'],
'value' => ($GLOBALS['sensitiveInformation'] ? $client['email'] : "-- Redacted --"),
'inline' => true
),
array(