Commit graph

584 commits

Author SHA1 Message Date
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
copilot-swe-agent[bot]
feebfea702
feat: add safe panel update system to administration page
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:19:40 +00:00
147f63083a
Merge pull request #80 from GameServerPanel/copilot/fix-billing-integration-error 2026-05-01 06:54:34 -07:00
copilot-swe-agent[bot]
2d2fc496d5
fix: remove created_by_admin from billing INSERT and schema
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/2ce89b8b-fa50-40b9-aa38-4ebbc44a9770

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-01 13:52:38 +00:00
dc67968d74
Merge pull request #79 from GameServerPanel/copilot/create-release-workflow 2026-05-01 06:49:48 -07:00
copilot-swe-agent[bot]
3b1e05d3b7
Add .github/workflows/create-release.yml
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/5387c645-fd9e-4b63-a470-0bd4af8a7c27

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-01 13:36:55 +00:00
19fb2da54b
Merge pull request #78 from GameServerPanel/copilot/fix-deprecated-properties-and-db-error 2026-05-01 06:34:43 -07:00
copilot-swe-agent[bot]
facd1f0269
fix: declare FormTable::$i property and consolidate created_by_admin into INSERT
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/f945ff87-7135-4e6f-bbdb-f3ec276ac89b

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-01 13:28:02 +00:00
674fd1ce21
Merge pull request #77 from GameServerPanel/copilot/fix-new-batch-errors 2026-05-01 06:17:20 -07:00
copilot-swe-agent[bot]
8a6823186a
fix: null handling in realEscapeSingle, init $map, add billing upgrade for created_by_admin
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/77c3c429-fc35-4f66-9d78-900be575b81a

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-01 13:16:04 +00:00
21b8dab91b
Merge pull request #76 from GameServerPanel/copilot/fix-preg-match-deprecation-and-database-error 2026-05-01 06:05:36 -07:00
copilot-swe-agent[bot]
7551567354
fix: cast mod_name to string in preg_match; add created_by_admin to billing_orders schema
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/15c9652a-a4a6-4f02-bcc2-15f8fed708b1

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-01 13:04:31 +00:00
443d33ca3f
Merge pull request #75 from GameServerPanel/copilot/fix-php8-compatibility-issues
Fix PHP 8 compatibility warnings and fatal DB error in billing/dashboard/cron
2026-05-01 05:57:43 -07:00
copilot-swe-agent[bot]
7a16fb299f
fix: PHP 8 compatibility warnings and fatal errors
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/5ac91d14-7688-4ab2-9065-10d4a361750f

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-01 12:56:23 +00:00
4571837eeb
Merge pull request #74 from GameServerPanel/copilot/add-admin-server-billing-flow 2026-05-01 05:38:00 -07:00
copilot-swe-agent[bot]
9d1999f374
feat: admin billing integration + migrate system (replaces clone)
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/8940e39d-4aaa-4154-874b-74ab24d74da3

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-04-30 20:54:08 +00:00
4db784a84a
Merge pull request #73 from GameServerPanel/copilot/rewrite-steam-workshop-module 2026-04-30 12:41:17 -07:00