Fix PHP 8.3 htmlentities null safety, remove unused themes, rename OGP_LANG_ to LANG_

Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/9909a053-0a66-4453-a844-d3b80d727b27

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-05-04 17:31:16 +00:00 committed by GitHub
parent 53e0b68f4f
commit 7377f955fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
796 changed files with 38947 additions and 43914 deletions

View file

@ -243,7 +243,7 @@ function create_home_selector($module, $subpage, $server_homes) {
$selected = 'selected="selected"';
else
$selected = '';
echo "<option value='". $server_home['home_id'] . "' $selected >" . htmlentities($server_home['home_name']) . "</option>\n";
echo "<option value='". $server_home['home_id'] . "' $selected >" . htmlentities($server_home['home_name'] ?? '', ENT_QUOTES, 'UTF-8') . "</option>\n";
}
echo "</select>\n";
echo "</form>";
@ -299,7 +299,7 @@ function create_home_selector_address($module, $subpage, $server_homes, $extra_i
echo "<option value='". $server_home['home_id'] .
"-" . $server_home['mod_id'] . "-" . $server_home['ip'] .
"-" . $server_home['port'] . "' $selected >" .
htmlentities($server_home['home_name']) . " - " . $display_ip .
htmlentities($server_home['home_name'] ?? '', ENT_QUOTES, 'UTF-8') . " - " . $display_ip .
":" . $server_home['port'] . "</option>\n";
}
echo "</select>\n";