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:
parent
651c935fa7
commit
176f532737
686 changed files with 92221 additions and 8198 deletions
11
Website/_compat_include.php
Normal file
11
Website/_compat_include.php
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue