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
|
|
@ -20,28 +20,28 @@
|
|||
<input type="hidden" name="url" value="<?php echo htmlEncode2($url); ?>" />
|
||||
|
||||
<?php if (is_array($searchoptions) == true) { ?>
|
||||
<?php while (list($key, $value) = each($searchoptions)) { ?>
|
||||
<?php foreach ($searchoptions as $key => $value) { ?>
|
||||
<input type="hidden" name="searchoptions[<?php echo htmlEncode2($key); ?>]" value="<?php echo htmlEncode2($value); ?>" />
|
||||
<?php } // end while ?>
|
||||
<?php } // end foreach ?>
|
||||
<?php } // end if ?>
|
||||
|
||||
<?php if (is_array($text_splitted) == true) { ?>
|
||||
<?php while (list($key, $value) = each($text_splitted)) { ?>
|
||||
<?php foreach ($text_splitted as $key => $value) { ?>
|
||||
<input type="hidden" name="text_splitted[<?php echo htmlEncode2($key); ?>]" value="<?php echo htmlEncode2($value); ?>" />
|
||||
<?php } // end while ?>
|
||||
<?php } // end foreach ?>
|
||||
<?php } // end if ?>
|
||||
|
||||
<?php if (is_array($zipactions) == true) { ?>
|
||||
<?php while (list($key, $value) = each($zipactions)) { ?>
|
||||
<?php foreach ($zipactions as $key => $value) { ?>
|
||||
<input type="hidden" name="zipactions[<?php echo htmlEncode2($key); ?>]" value="<?php echo htmlEncode2($value); ?>" />
|
||||
<?php } // end while ?>
|
||||
<?php } // end foreach ?>
|
||||
<?php } // end if ?>
|
||||
|
||||
<?php if (is_array($zipactions) == true) { ?>
|
||||
<?php for ($i=1; $i<=sizeof($list["all"]); $i++) { ?>
|
||||
<?php while (list($key, $value) = each($list["all"][$i])) { ?>
|
||||
<?php foreach ($list["all"][$i] as $key => $value) { ?>
|
||||
<input type="hidden" name="list[<?php echo $i; ?>][<?php echo htmlEncode2($key); ?>]" value="<?php echo htmlEncode2($value); ?>" />
|
||||
<?php } // end while ?>
|
||||
<?php } // end foreach ?>
|
||||
<?php } // end for ?>
|
||||
<?php } // end if ?>
|
||||
|
||||
|
|
|
|||
|
|
@ -189,13 +189,13 @@ function printSkinSelect($fieldname, $onchange, $style, $class) {
|
|||
|
||||
echo "<select name=\"$fieldname\" id=\"$fieldname\" $onchange_full $style_full $class_full>\n";
|
||||
|
||||
while (list($key,$value) = each($skinArray)) {
|
||||
foreach ($skinArray as $key => $value) {
|
||||
// $key loops over "blue", "pastel", ...
|
||||
// $value will be an array like $value["name"] = "Blue"
|
||||
if ($key == $currentskin) { $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