Panel/modules/user_games
copilot-swe-agent[bot] 5b2162fb28
fix: standardize billing order status values and apply full-day expiry grace rule
- home_handling_functions.php: display expiration as Y-m-d only (not Y-m-d H:i);
  apply full-day grace by comparing date-only (midnight) in PHP so a server
  expiring on today's date remains Active the entire day
- cron-shop.php Step B & C: change server_expiration_date comparisons from
  < DATE_SUB(NOW(), ...) to DATE(server_expiration_date) < DATE_SUB(CURDATE(), ...)
  ensuring the full expiration day is honoured
- user_games/check_expire.php: change all three expiration queries from
  <= time() to < strtotime(date('Y-m-d')) (today-midnight) for full-day grace
- billing/test_integration.php: replace status='paid' (old order status) with
  status IN ('Active','paid') for backward compat during migration
- user_games/billing_integration.php: clarify comment that billing_invoices.status
  uses the payment lifecycle ('paid'/'unpaid'/'due'), separate from billing_orders.status
- Add modules/billing/sql/normalize_billing_order_status.sql migration script
  to convert installed->Active, paid->Active, suspended->Expired in existing rows
- Update CHANGELOG.md

Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/439845e0-926e-4b49-9cd0-810457b73c12

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-05 17:24:41 +00:00
..
add_home.php feat: admin billing integration + migrate system (replaces clone) 2026-04-30 20:54:08 +00:00
add_home.php.org No changes 2025-09-11 13:29:15 -04:00
admin_billing_migration.sql fix: PHP 8 compatibility warnings and fatal errors 2026-05-01 12:56:23 +00:00
assign_home.php Apply automated PHP8 safety transforms 2026-04-23 14:01:37 +00:00
billing_integration.php fix: standardize billing order status values and apply full-day expiry grace rule 2026-05-05 17:24:41 +00:00
browser.css No changes 2025-09-11 13:29:15 -04:00
browser.php Apply automated PHP8 safety transforms 2026-04-23 14:01:37 +00:00
check_expire.php fix: standardize billing order status values and apply full-day expiry grace rule 2026-05-05 17:24:41 +00:00
clone.css No changes 2025-09-11 13:29:15 -04:00
clone_home.php Apply automated PHP8 safety transforms 2026-04-23 14:01:37 +00:00
custom_fields.php Apply automated PHP8 safety transforms 2026-04-23 14:01:37 +00:00
del_home.php Apply automated PHP8 safety transforms 2026-04-23 14:01:37 +00:00
edit.css No changes 2025-09-11 13:29:15 -04:00
edit_home.php feat: move panel update UI to Update module, add backup-only button & DB logging, fix password input exposure 2026-05-01 21:34:49 +00:00
get_size.php Apply automated PHP8 safety transforms 2026-04-23 14:01:37 +00:00
home_mods.php Apply automated PHP8 safety transforms 2026-04-23 14:01:37 +00:00
install_cmds.php Apply automated PHP8 safety transforms 2026-04-23 14:01:37 +00:00
migrate_home.php feat: admin billing integration + migrate system (replaces clone) 2026-04-30 20:54:08 +00:00
module.php feat: GSP 1.0 baseline – module versions, FAQ refresh, XML editor validation, Obsidian theme 2026-05-03 23:31:07 +00:00
monitor_buttons.php No changes 2025-09-11 13:29:15 -04:00
navigation.xml feat: admin billing integration + migrate system (replaces clone) 2026-04-30 20:54:08 +00:00
show_homes.php feat: admin billing integration + migrate system (replaces clone) 2026-04-30 20:54:08 +00:00