Commit graph

400 commits

Author SHA1 Message Date
c5d64420dd
Update dayz_epoch_mod_win32.xml 2026-05-02 08:25:25 -07:00
6465632097
Merge pull request #99 from GameServerPanel/copilot/remove-legacy-install-methods
Remove rsync/manual install methods; standardize SteamCMD pipeline; fix Update button
2026-05-02 08:12:35 -07:00
copilot-swe-agent[bot]
61f6e517ec
fix: improve script-only install messaging and add error logging for exec() calls
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/9c87b62e-17b2-4f36-9b49-82238d73dda2

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-02 15:09:43 +00:00
copilot-swe-agent[bot]
75e63475ae
feat: remove legacy rsync/manual install methods, standardize SteamCMD pipeline, fix Update button
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/9c87b62e-17b2-4f36-9b49-82238d73dda2

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-02 15:08:38 +00:00
43877bbd9e
Merge pull request #98 from GameServerPanel/copilot/update-module-wording-fix-billing-redesign
Update module rebranding (GitHub Stable/Unstable) + billing matrix redesign
2026-05-02 07:56:46 -07:00
copilot-swe-agent[bot]
7f6fe9a39a
fix: address code review - prepared stmt, first-radio auto-select, remove unused var, clarify comment
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/4a9c8aab-3782-44a8-a5e4-01b50a813cc0

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-02 14:52:30 +00:00
copilot-swe-agent[bot]
b3d677035b
feat: update wording (GitHub Stable/Unstable) + billing matrix redesign
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/4a9c8aab-3782-44a8-a5e4-01b50a813cc0

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-02 14:50:25 +00:00
bedffde371
Merge pull request #97 from GameServerPanel/copilot/fix-billing-admin-errors 2026-05-02 07:19:56 -07:00
copilot-swe-agent[bot]
f4f222953f
fix: address code review feedback on billing admin fixes
- menu.php: remove unnecessary @ suppression from mysqli_thread_id()
  (instanceof check already guarantees a mysqli object)
- adminserverlist.php: split ternary flash message into separate if/else
  for readability; replace dynamic SQL fragment with explicit if/else
  query branches

Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/988997ed-7568-48bf-96ef-889fb5d91fec

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-02 13:41:13 +00:00
copilot-swe-agent[bot]
bb77620796
fix: resolve 3 billing admin errors and normalize remote_servers query
- admin_config.php: guard session_start() — was firing Notice because
  admin_auth.php → session_bridge.php already started the session
- includes/menu.php: check mysqli_thread_id() before reusing $db so a
  closed handle does not cause 'mysqli object is already closed' fatal
- admin_invoices.php / admin_payments.php: set $db = null after
  mysqli_close() so menu.php's reuse-check correctly falls through to
  opening a fresh connection
- adminserverlist.php: use col_exists() to detect missing 'enabled'
  column in gsp_remote_servers; fall back to constant 1 and display a
  schema-notice banner; guard UPDATE accordingly; also add missing
  price_daily / price_year columns to the services SELECT; remove
  duplicate 'Update Enabled Servers' button
- add_remote_server_enabled_column.sql: idempotent migration to add the
  'enabled' INT column to gsp_remote_servers on older installs

Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/988997ed-7568-48bf-96ef-889fb5d91fec

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-02 13:40:10 +00:00
59a7eef4bd
Merge pull request #96 from GameServerPanel/copilot/fix-harden-billing-module 2026-05-02 06:17:40 -07:00
copilot-swe-agent[bot]
fcc54cb2da
style: clean up string concatenation in config_loader.php
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/a3e1e4bb-8eb1-4e6e-b1f8-7f3952301231

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-02 13:16:40 +00:00
copilot-swe-agent[bot]
1247e5e7ca
fix: harden billing module for standalone portability
- config_loader.php: prefer local billing config FIRST (root cause fix)
  - was: panel config loaded first, overriding local config with wrong db name
  - now: local modules/billing/includes/config.inc.php always wins when present
- config.inc.php: add $db_port="3306"
- config.example.php: new example config with all variables documented
- menu.php: add $db_port to mysqli_connect
- admin_auth.php: add $db_port; remove hardcoded /_website path detection
- bootstrap.php billing_get_db(): add $db_port
- login.php: fix /_website path detection
- adminserverlist.php: add $db_port; fix hardcoded /modules/billing/ URL
- All other mysqli_connect calls: add isset($db_port) port parameter
  (my_servers, forgot_password, serverlist, server_status, order, register,
   reset_password, payment_success, my_account, admin_invoices, admin_payments,
   diag_remote, admin_coupons, test_db_connection, tools/check_db_user,
   renew_server)
- timestamp.txt: updated

Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/a3e1e4bb-8eb1-4e6e-b1f8-7f3952301231

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-02 13:15:50 +00:00
834d56a506
Merge pull request #95 from GameServerPanel/copilot/import-open-game-panel-modules-themes 2026-05-02 06:07:00 -07:00
copilot-swe-agent[bot]
b17ead27a6
feat: import 9 missing OGP themes (Evolution, Soft, mobile, Uprise, Silver, Katiuska, expand-soft, DarkNature, Metro)
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/491e883b-1dc5-4ca0-83bf-39faa9060c34

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-02 13:05:52 +00:00
3e9dca1bc1
Merge pull request #94 from GameServerPanel/copilot/add-cleanup-and-pr-review-tasks
chore: remove 22 stray backup/duplicate files; review and document Copilot PRs #66–#93
2026-05-02 05:57:32 -07:00
copilot-swe-agent[bot]
d4332808e6
chore: remove 22 stray backup files (.bak/.BAK/.orig/.backup); update CHANGELOG and timestamp
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/fe14a5ef-8993-48c4-a867-17971b58ac92

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-02 12:51:18 +00:00
02fd03539e
Merge pull request #93 from GameServerPanel/copilot/refactor-billing-system 2026-05-02 05:29:32 -07:00
copilot-swe-agent[bot]
3066d9c75c
fix(billing): address code review issues - ALTER TABLE syntax, null period handling, type detection
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/e8da2cb7-dbf1-4296-b25d-766f8e099581

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-02 12:23:23 +00:00
copilot-swe-agent[bot]
4a1b5bc725
fix(billing): address code review feedback
- Use DECIMAL instead of FLOAT for monetary columns in ALTER TABLE
- Simplify bind_param type string from concatenated to single literal
- Validate payment_status against ENUM values before CSS class injection
- Add provisioning failure logging when panel bootstrap fails
- Add comment explaining total_due/amount legacy fallback

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-02 12:19:32 +00:00
copilot-swe-agent[bot]
986a4e53b4
refactor(billing): clean architecture with payment gateway abstraction
- Add PaymentGatewayInterface contract for all payment providers
- Add PayPalGateway (reads credentials from config, not hardcoded)
- Add ManualGateway for admin-triggered payments
- Add StripeGateway stub for future implementation
- Add GatewayFactory for gateway instantiation by name
- Add BillingRepository: parameterized-SQL data layer
- Add BillingService: pricing, invoice creation, payment processing
- Add gsp_billing_transactions table (DB version 2) for audit trail
- Add new columns to gsp_billing_invoices (home_id, rate_type, players, period_start/end, subtotal, total_due, payment_status)
- Add gsp_billing_service_remote_servers mapping table
- Move PayPal credentials from api files into config.inc.php
- Fix double session_start() bug in capture_order.php
- Replace raw SQL with prepared statements throughout
- Refactor admin_invoices.php to use billing_invoices + BillingRepository
- Refactor admin_payments.php to read from gsp_billing_transactions
- Update admin.php with links to Transaction Log and Manage Invoices

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-02 12:17:36 +00:00
b0e00c9370
Merge pull request #92 from GameServerPanel/copilot/fix-database-connection-error 2026-05-01 17:45:03 -07:00
copilot-swe-agent[bot]
2fc3a1f8a7
Fix uncaught mysqli_sql_exception in PHP 8.1+ during install backup
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/e16b79db-af25-4a5f-828d-355ab71d8962

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-02 00:38:38 +00:00
0427f577c6
Merge pull request #91 from GameServerPanel/copilot/update-installer-dependencies-check 2026-05-01 17:32:23 -07:00
copilot-swe-agent[bot]
6ddc84700f
fix: correct dead ternary in check.php filesystem status logic
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/73ed1a44-9f9b-44d6-995a-706993bdef21

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-02 00:31:23 +00:00
copilot-swe-agent[bot]
2303175e56
fix: handle fopen failure gracefully and improve dep check severity
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/73ed1a44-9f9b-44d6-995a-706993bdef21

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-02 00:30:52 +00:00
d852a44a63
Merge pull request #90 from GameServerPanel/copilot/fix-deprecation-errors-unzip 2026-05-01 16:08:38 -07:00
copilot-swe-agent[bot]
b4cadbe30f
fix: replace deprecated zip_* functions and string interpolation in unzip.php (PHP 8.3)
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/cc7d8d98-a257-470e-aa29-dff276024b1f

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-01 23:06:56 +00:00
1d5a090b01
Merge pull request #89 from GameServerPanel/copilot/update-billing-status-system 2026-05-01 15:24:33 -07:00
copilot-swe-agent[bot]
79d78f074b
fix: address code review comments (grace_days in Step B, simplified rate_map, spelling, comments)
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/5dbd58e1-7aa0-41e2-8dd3-c56b69ede05e

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-01 22:19:17 +00:00
copilot-swe-agent[bot]
b03d9b2171
feat: simplify billing status to Active/Invoiced/Expired with new SQL migration and cron rewrite
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/5dbd58e1-7aa0-41e2-8dd3-c56b69ede05e

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-01 22:17:22 +00:00
b99cd45db9
Merge pull request #88 from GameServerPanel/copilot/move-update-ui-to-update-module 2026-05-01 14:37:09 -07:00
copilot-swe-agent[bot]
1a7502952c
feat: move panel update UI to Update module, add backup-only button & DB logging, fix password input exposure
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/a08c8b94-1b12-4eec-86c6-770cb435bb06

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-01 21:34:49 +00:00
98264975c0
Merge pull request #87 from GameServerPanel/copilot/fix-panel-update-backup-system 2026-05-01 12:22:48 -07:00
copilot-swe-agent[bot]
480d3872d7
fix: rewrite panel backup system — tar gzip, proper mysqldump, backup.log, and full metadata
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/7f8dfeb1-bb3a-4dfc-a2fa-524a5ac201bf

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-01 19:21:08 +00:00
3279337629
Merge pull request #86 from GameServerPanel/copilot/fix-backup-folder-location 2026-05-01 12:06:20 -07:00
copilot-swe-agent[bot]
6edfa36235
fix: store backups inside panel directory; revert dev testing heading
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/33417aee-aecb-44de-9008-5b1008b4e3dc

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-01 19:02:36 +00:00
db42a078e7
Merge pull request #85 from GameServerPanel/copilot/fix-panel-update-version-display 2026-05-01 11:52:16 -07:00
copilot-swe-agent[bot]
c0e63b45bc
fix: improve panel update system with version.json, git-first updates, and footer version display
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/cce5f75b-a5b6-4b28-8f92-1f8197231a0a

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-01 18:50:42 +00:00
ba3780931b
Update index.php 2026-05-01 11:39:43 -07:00
415f12e97c
Update index.php 2026-05-01 11:36:29 -07:00
25808016eb
Merge pull request #84 from GameServerPanel/copilot/fix-undefined-array-key-user-id 2026-05-01 11:24:18 -07:00
copilot-swe-agent[bot]
e87eefaebc
Fix undefined array key warning for $_SESSION['user_id'] in index.php
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/a301a563-c83f-44f7-affb-422b2efccfe1

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-01 18:23:16 +00:00
f9f888ef41
Merge pull request #83 from GameServerPanel/copilot/update-github-actions-workflows 2026-05-01 11:04:02 -07:00
copilot-swe-agent[bot]
677d685e8a
Update workflows to use Panel-stable and Panel-unstable branch names
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/e419b138-7289-46d7-b7be-6c9e455f47af

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-01 18:02:06 +00:00
e2a5d3d1c4
Merge pull request #82 from GameServerPanel/copilot/promote-unstable-to-stable 2026-05-01 10:43:27 -07:00
copilot-swe-agent[bot]
01dd8f0c56
Add promote-unstable-to-stable GitHub Actions workflow
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/2b392fc9-f726-4e04-8192-a0812f7c00b6

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-01 17:41:56 +00:00
83b1728441
Merge pull request #81 from GameServerPanel/copilot/add-safe-panel-update-system 2026-05-01 07:32:25 -07:00
copilot-swe-agent[bot]
ed0b9298c0
fix: explicit SSL verification, refactor CSRF token generation to helper
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/63f4e381-38d6-4fcf-b084-409cb4d2138c

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-01 14:23:41 +00:00
copilot-swe-agent[bot]
aeb1399024
fix: address code review issues (SSL verification, credential exposure, random_bytes safety)
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/63f4e381-38d6-4fcf-b084-409cb4d2138c

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-01 14:21:59 +00:00