the control panel
- 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> |
||
|---|---|---|
| .github | ||
| .vscode | ||
| .well-known/pki-validation | ||
| Crypt | ||
| css | ||
| docs | ||
| documentation | ||
| favicon | ||
| ftp | ||
| images | ||
| includes | ||
| js | ||
| lang | ||
| modules | ||
| obsidian-upstream@471c3829b9 | ||
| protocol | ||
| scripts | ||
| sql | ||
| status | ||
| themes | ||
| tools | ||
| .gitignore | ||
| all_hostable_games_union.csv | ||
| APACHE_SETUP.md | ||
| api_authorized.hosts | ||
| backup.sh | ||
| biedi.php | ||
| browserconfig.xml | ||
| CHANGELOG.md | ||
| check.php | ||
| COPYING | ||
| deploy_gsp.sh | ||
| exim SMTP.txt | ||
| favicon.ico | ||
| fileserver.conf | ||
| game_titles.txt | ||
| gsp | ||
| home.php | ||
| IMPLEMENTATION_COMPLETE.md | ||
| IMPLEMENTATION_NOTES.md | ||
| IMPLEMENTATION_SUMMARY.md | ||
| index.orig.php | ||
| index.php | ||
| INSTALL.BAT | ||
| install.php | ||
| INSTALL_README.md | ||
| LICENSE | ||
| manifest.json | ||
| ogp_api.php | ||
| panel.conf | ||
| panel.sql | ||
| php_aggregator.php | ||
| phpinfo.php | ||
| push_to_github.sh | ||
| README.md | ||
| README.txt | ||
| server_status.php | ||
| serverbot.php | ||
| status_api.php | ||
| status_api_local.php.example | ||
| TASK_COMPLETION_SUMMARY.md | ||
| tos.php | ||
| tz.php | ||
GSP Windows Agent
Cygwin-based agent that lets the GameServer Panel manage Windows Server 2019/2022 hosts. It mirrors the Linux agent feature set: signed RPC transport, GNU Screen session management, and SteamCMD-aware installers.
Highlights
- One-click installer (
Install/onceinstall_agent.bat) that bootstraps Cygwin, required packages, and thegameserverservice account. - Task Scheduler entry that keeps the agent running after reboots.
- Helper scripts (
agent_conf.sh,rebase_post_ins.bat, etc.) for maintaining the environment. - Markdown documentation under
documentation/agent-guide.md.
Quick start
- Clone or download the repository to
C:\\gsp-agent. - Right-click
Install\\onceinstall_agent.bat→ “Run as administrator”. - Open the bundled Cygwin terminal and configure the agent:
cd /OGP bash agent_conf.sh -p "gameserverPassword" - Edit
C:\\OGP\\Cfg\\Config.pm(match the settings you entered in the GSP web panel) and start the “OGP agent start on boot” scheduled task.
Related repositories
- GSP – PHP panel that issues commands to the agents.
- GSP-Agent-Linux – Linux counterpart with systemd service files.
Contributing
Send pull requests through GitHub. Test installer changes on a clean Windows Server VM, keep batch files in ASCII, and update documentation/agent-guide.md whenever you modify the workflow.