Update characterprofile.php

Fetch houses taken from layout from otland made by @peonso
This commit is contained in:
Atte 2014-09-05 01:13:56 +03:00
parent b2dcf010c2
commit d890bba7a4

View File

@ -48,6 +48,28 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) {
}
?></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
if ($config['TFSVersion'] == 'TFS_10') {
if ($profile_data['online']) {