Fix all PHP 8 deprecated/removed function usage across the repository
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/209fe796-9a38-47c1-a6b7-992ce11d038b Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
73319ffeed
commit
c0bd0a0bb5
30 changed files with 198 additions and 471 deletions
|
|
@ -119,13 +119,13 @@ function printLanguageSelect($fieldname, $onchange, $style, $class) {
|
|||
|
||||
echo "<select name=\"$fieldname\" id=\"$fieldname\" $onchange_full $style_full $class_full>\n";
|
||||
|
||||
while (list($key,$value) = each($languageArray)) {
|
||||
foreach ($languageArray as $key => $value) {
|
||||
// $key loops over "en", "fr", "nl", ...
|
||||
// $value will be an array like $value["name"] = "English" and $value["file"] = "en.inc.php"
|
||||
if ($key == $currentlanguage) { $selected = "selected=\"selected\""; }
|
||||
else { $selected = ""; }
|
||||
echo "<option value=\"" . $key . "\" $selected>" . $value["name"] . "</option>\n";
|
||||
} // end while
|
||||
} // end foreach
|
||||
|
||||
echo "</select>\n";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue