feat: relocate billing runtime to module and harden updater panel pathing

Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/50299e05-4ee0-4b5b-80e4-bc5f872c106e

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-05-18 13:46:11 +00:00 committed by GitHub
parent 651c935fa7
commit 176f532737
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
686 changed files with 92221 additions and 8198 deletions

View file

@ -0,0 +1,11 @@
<?php
function website_billing_runtime_file(string $relative): string
{
$target = realpath(__DIR__ . '/../Panel/modules/billing/' . ltrim($relative, '/'));
if ($target === false || strpos($target, realpath(__DIR__ . '/../Panel/modules/billing')) !== 0) {
http_response_code(500);
echo 'Billing runtime file not found.';
exit;
}
return $target;
}