Fix #429 Various warnings

Rewrote other characters on this account list in characterprofile
Added hash_equal() backport for low PHP versions
Fixed some warnings
This commit is contained in:
Znote
2020-07-08 00:35:45 +02:00
parent 5d9b0f3d00
commit 4b0db861d5
4 changed files with 211 additions and 175 deletions

View File

@@ -124,28 +124,32 @@
return $string;
}
if (!empty($guilds) || $guilds !== false) {
?>
<table id="onlinelistTable" class="table table-striped table-hover">
<tr class="yellow">
<b><tr><h3><center>Top 10 guilds with most frags</center></h3></tr></b>
<th>#</th>
<th>Name:</th>
<th>Frags:</th>
</tr>
<?php foreach ($guilds as $guild) {
$url = url("guilds.php?name=". $guild['name']);
echo '<tr class="special" onclick="javascript:window.location.href=\'' . $url . '\'">'; ?>
<td><?php echo convert_number_to_words($count);
$count++; ?></td>
<td><a href="" onclick="return false"><?php echo $guild['name']; ?></a></td>
<td><?php echo $guild['frags']; ?></td>
</tr>
<?php } ?>
</table>
<?php
} else echo '<h1>No frags yet.</h1>';
if (!empty($guilds) && $guilds !== false) {
?>
<h3><center>Top 10 guilds with most frags</center></h3>
<table id="onlinelistTable" class="table table-striped table-hover">
<tr class="yellow">
<th>#</th>
<th>Name:</th>
<th>Frags:</th>
</tr>
<?php
foreach ($guilds as $guild):
$url = url("guilds.php?name=". $guild['name']);
?>
<tr class="special" onclick="javascript:window.location.href='<?php echo $url; ?>'">
<td><?php
echo convert_number_to_words($count);
$count++;
?></td>
<td><a href="" onclick="return false"><?php echo $guild['name']; ?></a></td>
<td><?php echo $guild['frags']; ?></td>
</tr>
<?php
endforeach; ?>
</table>
<?php
} else {
echo '<h1>No frags yet.</h1>';
}
include 'layout/overall/footer.php'; ?>