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
|
|
@ -160,7 +160,7 @@ function net2ftp_module_printBody() {
|
|||
// -------------------------------------------------------------------------
|
||||
// For each sample
|
||||
// -------------------------------------------------------------------------
|
||||
while(list($sampleName, $sampleLines) = each($list_samples)) {
|
||||
foreach ($list_samples as $sampleName => $sampleLines) {
|
||||
$net2ftp_output["advanced_parsing"][] = "<span style=\"font-size: 120%; font-weight: bold;\">" . $sampleName . "</span><br />\n";
|
||||
// ------------------------------------
|
||||
// Input
|
||||
|
|
@ -179,9 +179,9 @@ function net2ftp_module_printBody() {
|
|||
|
||||
// Scan the sample
|
||||
$outputArray = ftp_scanline("", $sampleLines[$i]);
|
||||
while(list($fieldName, $fieldValue) = each($outputArray)) {
|
||||
foreach ($outputArray as $fieldName => $fieldValue) {
|
||||
$net2ftp_output["advanced_parsing"][] = "Line $i: " . $fieldName . ": " . htmlEncode2($fieldValue) . "<br />\n";
|
||||
} // end while
|
||||
} // end foreach
|
||||
$net2ftp_output["advanced_parsing"][] = "<br />\n";
|
||||
}
|
||||
$net2ftp_output["advanced_parsing"][] = "<br /><br />\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue