mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 03:09:22 +02:00
Showing flags in highscores.php is optional in config.php
This commit is contained in:
parent
857814b447
commit
b4b3843abc
@ -87,11 +87,14 @@ if ($scores) {
|
|||||||
for ($i = 0; $i < count($scores[$type]); $i++) {
|
for ($i = 0; $i < count($scores[$type]); $i++) {
|
||||||
if (pageCheck($i, $page, $rowsPerPage)) {
|
if (pageCheck($i, $page, $rowsPerPage)) {
|
||||||
$profile_data = user_character_data($scores[$type][$i]['id'], 'account_id');
|
$profile_data = user_character_data($scores[$type][$i]['id'], 'account_id');
|
||||||
|
|
||||||
$account_data = user_znote_account_data($profile_data['account_id'], 'flag');
|
$account_data = user_znote_account_data($profile_data['account_id'], 'flag');
|
||||||
|
if ($config['country_flags'] === true && count($account_data['flag']) > 1) $flag = '<img src="\flags\\' . $account_data['flag'] . '.png"> ';
|
||||||
|
else $flag = '';
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo $i+1; ?></td>
|
<td><?php echo $i+1; ?></td>
|
||||||
<td><?php echo '<img src="\flags\\' . $account_data['flag'] . '.png"> '; ?><a href="characterprofile.php?name=<?php echo $scores[$type][$i]['name']; ?>"><?php echo $scores[$type][$i]['name']; ?></a></td>
|
<td><?php echo $flag; ?><a href="characterprofile.php?name=<?php echo $scores[$type][$i]['name']; ?>"><?php echo $scores[$type][$i]['name']; ?></a></td>
|
||||||
<td><?php echo vocation_id_to_name($scores[$type][$i]['vocation']); ?></td>
|
<td><?php echo vocation_id_to_name($scores[$type][$i]['vocation']); ?></td>
|
||||||
<td><?php echo $scores[$type][$i]['value']; ?></td>
|
<td><?php echo $scores[$type][$i]['value']; ?></td>
|
||||||
<?php if ($type === 7) echo "<td>". $scores[$type][$i]['experience'] ."</td>"; ?>
|
<?php if ($type === 7) echo "<td>". $scores[$type][$i]['experience'] ."</td>"; ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user