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 171c114b0f
commit 76bfab1303
89 changed files with 11 additions and 144 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -114,5 +114,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

@@ -103,5 +103,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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -117,5 +117,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

@@ -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

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