Panel/includes
copilot-swe-agent[bot] 4babef08eb
fix: remove hardcoded Discord webhook URLs, centralize via discordmsg() helper
- Improve discordmsg() in includes/functions.php: add curl_init existence
  check, CURLOPT_TIMEOUT/CONNECTTIMEOUT, safe no-op when webhook is empty,
  correct false-return on curl_init failure
- index.php: replace hardcoded webhook URL + 15-line inline cURL block with
  discordmsg() using $settings['discord_webhook_admin']
- modules/user_admin/edit_user.php: same — role-change notification now
  uses discordmsg() + discord_webhook_admin setting
- modules/tickets/submitTicket.php: add global $settings; replace hardcoded
  webhook URL + inline cURL with discordmsg() using discord_webhook_main
- modules/billing/create_servers.php: replace $settings['webhookurl'] +
  inline cURL blocks (x2) with discordmsg() using discord_webhook_main

All modules now use the centralized discord_webhook_main / discord_webhook_admin
settings already managed in Admin > Settings. No DB migration needed.

Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/e4d38343-77ed-4c7a-afac-a2a815a059fd

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-05 20:21:59 +00:00
..
classes/recaptcha No changes 2025-09-11 13:29:15 -04:00
fonts No changes 2025-09-11 13:29:15 -04:00
PHPMailer Fix all PHP 8 deprecated/removed function usage across the repository 2026-04-30 13:47:38 +00:00
api_functions.php feat: remove legacy rsync/manual install methods, standardize SteamCMD pipeline, fix Update button 2026-05-02 15:08:38 +00:00
config.inc.php.example debugging help 2026-04-29 18:22:40 -04:00
database.php Apply automated PHP8 safety transforms 2026-04-23 14:01:37 +00:00
database_mysqli.php Fix: array offset on false in getNextAvailablePort, array-to-string in render_node attributes, missing columns in sync_billing_services INSERT 2026-05-02 20:42:46 +00:00
debug.php edit dayz xml and debug param 2026-04-29 19:03:43 -04:00
form_table_class.php Fix PHP 8.3 htmlentities null safety, remove unused themes, rename OGP_LANG_ to LANG_ 2026-05-04 17:31:16 +00:00
functions.php fix: remove hardcoded Discord webhook URLs, centralize via discordmsg() helper 2026-05-05 20:21:59 +00:00
helpers.php Fix PHP 8.3 htmlentities null safety, remove unused themes, rename OGP_LANG_ to LANG_ 2026-05-04 17:31:16 +00:00
html_functions.php feat: remove legacy rsync/manual install methods, standardize SteamCMD pipeline, fix Update button 2026-05-02 15:08:38 +00:00
ip_in_range.php Apply automated PHP8 safety transforms 2026-04-23 14:01:37 +00:00
lang.php Apply automated PHP8 safety transforms 2026-04-23 14:01:37 +00:00
lib_remote.php Fix PHP 8.3 htmlentities null safety, remove unused themes, rename OGP_LANG_ to LANG_ 2026-05-04 17:31:16 +00:00
navig.php No changes 2025-09-11 13:29:15 -04:00
refreshed.php No changes 2025-09-11 13:29:15 -04:00
view.php fix: improve panel update system with version.json, git-first updates, and footer version display 2026-05-01 18:50:42 +00:00