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 GitHub
parent 996ae625c9
commit 8d10082179
98 changed files with 14 additions and 157 deletions

View File

@@ -1,7 +1,7 @@
<?php
/**
* Account confirm mail
* Keept for compability
* Keept for compatibility
*
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
@@ -13,4 +13,3 @@ defined('MYAAC') or die('Direct access not allowed!');
if($action == 'confirm_email') {
require_once PAGES . 'account/confirm_email.php';
}
?>

View File

@@ -159,4 +159,3 @@ if(isset($_POST['emailchangecancel']) && $_POST['emailchangecancel'] == 1) {
'custom_buttons' => $custom_buttons
));
}
?>

View File

@@ -82,5 +82,3 @@ else
));
}
}
?>

View File

@@ -84,5 +84,3 @@ else
));
}
}
?>

View File

@@ -80,4 +80,3 @@ if($show_form) {
}
$twig->display('account.delete_character.html.twig');
}
?>

View File

@@ -202,4 +202,3 @@ function getPlayerNameByAccount($id)
return '';
}
?>

View File

@@ -339,4 +339,3 @@ $showed = $post = $reply = false;
{
echo '<br><br><a href="?subtopic=bugtracker&control=true">[ADMIN PANEL]</a>';
}
?>

View File

@@ -66,4 +66,3 @@ echo '<div style="text-align:center"><h3>Experience stages</h3></div>
</tbody></table>
</td></tr>
</tbody></table>';
?>

View File

@@ -185,4 +185,3 @@ class FAQ
return !count($errors);
}
}
?>

View File

@@ -112,5 +112,3 @@ if(Forum::canPost($account_logged))
}
else
echo "<br/>Your account is banned, deleted or you don't have any player with level " . $config['forum_level_required'] . " on your account. You can't post.";
?>

View File

@@ -101,5 +101,3 @@ if(Forum::canPost($account_logged))
}
else
echo 'Your account is banned, deleted or you don\'t have any player with level '.$config['forum_level_required'].' on your account. You can\'t post.';
?>

View File

@@ -311,4 +311,3 @@ class Gallery
return !count($errors);
}
}
?>

View File

@@ -119,5 +119,3 @@ else {
));
}
}
?>

View File

@@ -70,5 +70,3 @@ if(!empty($errors)) {
'action' => '?subtopic=guilds'
));
}
?>

View File

@@ -73,5 +73,3 @@ if(!empty($errors)) {
'action' => '?subtopic=guilds'
));
}
?>

View File

@@ -66,4 +66,3 @@ else
echo "0 players found.";
$twig->display('guilds.back_button.html.twig');
?>

View File

@@ -64,5 +64,3 @@ if(!empty($errors)) {
'action' => '?subtopic=guilds'
));
}
?>

View File

@@ -123,5 +123,3 @@ if(!empty($guild_errors)) {
'action' => '?subtopic=guilds'
));
}
?>

View File

@@ -112,5 +112,3 @@ else
));
}
}
?>

View File

@@ -115,5 +115,3 @@ if(!empty($guild_errors)) {
echo '<br/><div style="text-align:center"><form action="?subtopic=guilds" method="post">' . $twig->render('buttons.back.html.twig') . '</form></div>';
}
?>

View File

@@ -547,4 +547,3 @@ elseif($action == 'setnewpassword')
' . $twig->render('buttons.submit.html.twig') . '</div>
</TD></TR></FORM></TABLE></TABLE>';
}
?>

View File

@@ -10,4 +10,3 @@
*/
$_GET['archive'] = true;
require 'news.php';
?>

View File

@@ -369,4 +369,3 @@ function getColorByPercent($percent)
echo 'This poll doesn\'t exist.<br>';
echo '<div class=\'hr1\'></div><a href="?subtopic='.$link.'"><span style="font-size: 13px"><b>Go to list of polls</b></span></a>';
}
?>

View File

@@ -108,6 +108,3 @@ $twig->display('serverinfo.html.twig', array(
'finalBanishmentLength' => isset($config['lua']['final_banishment_length']) ? eval('return (' . $config['lua']['final_banishment_length'] . ') / (24 * 60 * 60);') : null,
'ipBanishmentLength' => isset($config['lua']['ip_banishment_length']) ? eval('return (' . $config['lua']['ip_banishment_length'] . ') / (24 * 60 * 60);') : null,
));
?>

View File

@@ -73,4 +73,3 @@ foreach($groupList as $id => $group)
$twig->display('team.html.twig', array(
'groupmember' => $groupMember
));
?>