WIP - Removing unneccessary closing tags to prevent potential issues. (#223)

* Part 1

Removing closing tags when no HTML or other output comes after the last PHP codeblock.

* Further removals

* nothing

---------

Co-authored-by: slawkens <slawkens@gmail.com>
This commit is contained in:
SRNT-GG
2023-06-15 20:53:55 +02:00
committed by slawkens
parent 7d2fc48437
commit 9d664d3577
89 changed files with 11 additions and 144 deletions

View File

@@ -112,5 +112,3 @@ function error_($desc) {
));
exit();
}
?>

View File

@@ -12,7 +12,7 @@
$vocation = 'Unknown vocation';
if(isset($config['vocations'][$player->getVocation()]))
$vocation = $config['vocations'][$player->getVocation()];
imagettftext($image , $fontsize, 0, 20, 52, $color, $font, 'Level:');
imagettftext($image , $fontsize, 0, 70, 52, $color, $font, $player->getLevel() . ' ' . $vocation);
@@ -26,4 +26,3 @@
imagettftext($image , $fontsize, 0, 100, 95, $color, $font, (($player->getLastLogin() > 0) ? date("j F Y, g:i a", $player->getLastLogin()) : 'Never logged in.'));
imagepng($image, SIGNATURES_CACHE . $player->getID() . '.png');
imagedestroy($image);
?>

View File

@@ -168,4 +168,3 @@
}
$MadGD->save($player->getID());
?>