Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.0.9.0
  8. * @ Author : DeZender
  9. * @ Release on : 08.08.2019
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. namespace WHMCS\Module\Notification\Discord;
  15.  
  16. global $zzV583kAMkjAfikdsjfkiss;
  17. $zzV583kAMkjAfikdsjfkiss = 'Alkjgfdksljiju8jklosavsdfagsadfweafawefVGDSvsdfer';
  18.  
  19. if (!function_exists('dpldiscord_functionExists')) {
  20. require_once __DIR__ . '/lib/instance.php';
  21. }
  22.  
  23. class Discord implements \WHMCS\Module\Contracts\NotificationModuleInterface
  24. {
  25. use \WHMCS\Module\Notification\DescriptionTrait;
  26.  
  27. public function settings()
  28. {
  29. return [
  30. 'api_username' => ['FriendlyName' => 'Default Webhook URL', 'Type' => 'text', 'Description' => 'Webhook URL to your default Discord channel. Can be overwritten per notification.'],
  31. 'discord_username' => ['FriendlyName' => 'Discord Username', 'Type' => 'text', 'Description' => 'The username is specified as sender. It does not have to be an existing user.'],
  32. 'discord_avatar' => ['FriendlyName' => 'Discord Avatar', 'Type' => 'text', 'Description' => 'URL to an image which should be used as avatar. Can be empty.'],
  33. 'licensekey' => ['FriendlyName' => 'License Key', 'Type' => 'text', 'Description' => 'Enter your license key from deploymentcode']
  34. ];
  35. }
  36.  
  37. public function notificationSettings()
  38. {
  39. return [
  40. 'discord_priority' => [
  41. 'FriendlyName' => 'Notification Priority',
  42. 'Type' => 'dynamic',
  43. 'Options' => ['Low', 'Medium', 'High'],
  44. 'Description' => 'Choose the notification priority for the alert.'
  45. ],
  46. 'discord_hookurl' => ['FriendlyName' => 'Custom Webhook URL', 'Type' => 'text', 'Description' => 'Leave empty to use the default channel'],
  47. 'discord_customiseMessage' => ['FriendlyName' => '<br />Customise Message', 'Type' => 'textarea', 'Description' => 'Allows you to customise the primary display message shown in the notification.']
  48. ];
  49. }
  50.  
  51. public function getDynamicField($fieldName, $settings)
  52. {
  53. if ($fieldName === 'discord_priority') {
  54. ......................................................
  55. .................................
  56. ..........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement