mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 03:09:22 +02:00
Update characterprofile.php
Fetch houses taken from layout from otland made by @peonso
This commit is contained in:
parent
b2dcf010c2
commit
d890bba7a4
@ -48,6 +48,28 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
?></font></li>
|
?></font></li>
|
||||||
|
<tr><td>Achievement Points</td><td><?php
|
||||||
|
$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)
|
||||||
|
{
|
||||||
|
echo $achievement;
|
||||||
|
} ?></td></tr>
|
||||||
|
<?php $houses = array();
|
||||||
|
$houses = mysql_select_multi("SELECT `id`, `owner`, `name`, `town_id` FROM `houses` WHERE `owner` = $user_id ;");
|
||||||
|
if ($houses !== false) {
|
||||||
|
$playerlist = array();
|
||||||
|
foreach ($houses as $h)
|
||||||
|
if ($h['owner'] > 0)
|
||||||
|
$playerlist[] = $h['owner'];
|
||||||
|
|
||||||
|
if ($profile_data['id'] = $h['owner']) { ?>
|
||||||
|
<tr><td>House:</td>
|
||||||
|
<td><?php echo $h['name']; ?>, <?php
|
||||||
|
foreach ($config['towns'] as $key=>$value) {
|
||||||
|
if ($key == $h['town_id']) {
|
||||||
|
echo $value;
|
||||||
|
}
|
||||||
|
} ?></td></tr>
|
||||||
<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']) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user