mirror of
https://github.com/metallicgloss/WHMCS-Discord-Notifications.git
synced 2025-12-19 14:59:18 +00:00
Add sensitive information toggle.
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
///////////////////////// Provided For Free By /////////////////////////
|
///////////////////////// Provided For Free By /////////////////////////
|
||||||
// //
|
// //
|
||||||
// PrimeNodes - Premium Infrastructure Provider //
|
// Zare - Affordable DDoS Protected Servers //
|
||||||
// William Phillips - MetallicGloss.com //
|
// William P - MetallicGloss.com //
|
||||||
// //
|
// //
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
@@ -38,6 +38,11 @@ $GLOBALS['discordGroupID'] = "";
|
|||||||
$GLOBALS['discordWebHookAvatar'] = "";
|
$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 ).
|
// (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 //////////////////////////
|
////////////////////////// Notification Area //////////////////////////
|
||||||
@@ -101,7 +106,7 @@ if($invoicePaid === true):
|
|||||||
'fields' => array(
|
'fields' => array(
|
||||||
array(
|
array(
|
||||||
'name' => 'User Email',
|
'name' => 'User Email',
|
||||||
'value' => $client['email'],
|
'value' => ($GLOBALS['sensitiveInformation'] ? $client['email'] : "-- Redacted --"),
|
||||||
'inline' => true
|
'inline' => true
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
@@ -294,7 +299,7 @@ if($orderPaid === true):
|
|||||||
'fields' => array(
|
'fields' => array(
|
||||||
array(
|
array(
|
||||||
'name' => 'User Email',
|
'name' => 'User Email',
|
||||||
'value' => $client['email'],
|
'value' => ($GLOBALS['sensitiveInformation'] ? $client['email'] : "-- Redacted --"),
|
||||||
'inline' => true
|
'inline' => true
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
|||||||
Reference in New Issue
Block a user