mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 11:19:22 +02:00
Update characterprofile.php
This commit is contained in:
parent
d890bba7a4
commit
da8e39e935
@ -48,12 +48,13 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
?></font></li>
|
?></font></li>
|
||||||
<tr><td>Achievement Points</td><td><?php
|
<li>Achievement Points: <?php
|
||||||
$achievementPoints = mysql_select_single("SELECT SUM(`value`) AS `sum` FROM `player_storage` WHERE `key` LIKE '30___' AND `player_id`='$user_id'");
|
$achievementPoints = mysql_select_single("SELECT SUM(`value`) AS `sum` FROM `player_storage` WHERE `key` LIKE '30___' AND `player_id`='$user_id'");
|
||||||
foreach ($achievementPoints as $achievement)
|
foreach ($achievementPoints as $achievement)
|
||||||
{
|
{
|
||||||
echo $achievement;
|
echo $achievement;
|
||||||
} ?></td></tr>
|
}
|
||||||
|
?></li>
|
||||||
<?php $houses = array();
|
<?php $houses = array();
|
||||||
$houses = mysql_select_multi("SELECT `id`, `owner`, `name`, `town_id` FROM `houses` WHERE `owner` = $user_id ;");
|
$houses = mysql_select_multi("SELECT `id`, `owner`, `name`, `town_id` FROM `houses` WHERE `owner` = $user_id ;");
|
||||||
if ($houses !== false) {
|
if ($houses !== false) {
|
||||||
@ -63,14 +64,13 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) {
|
|||||||
$playerlist[] = $h['owner'];
|
$playerlist[] = $h['owner'];
|
||||||
|
|
||||||
if ($profile_data['id'] = $h['owner']) { ?>
|
if ($profile_data['id'] = $h['owner']) { ?>
|
||||||
<tr><td>House:</td>
|
<li>House: <?php echo $h['name']; ?>, <?php
|
||||||
<td><?php echo $h['name']; ?>, <?php
|
|
||||||
foreach ($config['towns'] as $key=>$value) {
|
foreach ($config['towns'] as $key=>$value) {
|
||||||
if ($key == $h['town_id']) {
|
if ($key == $h['town_id']) {
|
||||||
echo $value;
|
echo $value;
|
||||||
}
|
}
|
||||||
} ?></td></tr>
|
} ?></li>
|
||||||
<li><font class="profile_font" name="profile_font_status">Status:</font> <?php
|
<li><font class="profile_font" name="profile_font_status">Status:</font> <?php }}
|
||||||
if ($config['TFSVersion'] == 'TFS_10') {
|
if ($config['TFSVersion'] == 'TFS_10') {
|
||||||
if ($profile_data['online']) {
|
if ($profile_data['online']) {
|
||||||
echo '<font class="profile_font" name="profile_font_online" color="green"><b>ONLINE</b></font>';
|
echo '<font class="profile_font" name="profile_font_online" color="green"><b>ONLINE</b></font>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user