- 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>