Update characterprofile.php

This commit is contained in:
Atte 2014-09-05 01:32:10 +03:00
parent daf378342c
commit 910d7460fa

View File

@ -48,13 +48,14 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) {
}
?></font></li>
<?php if ($config['Ach'] == true) { ?>
<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'");
foreach ($achievementPoints as $achievement)
{
echo $achievement;
echo $achievement. '</li>';
}
?></li>
}?>
<?php $houses = array();
$houses = mysql_select_multi("SELECT `id`, `owner`, `name`, `town_id` FROM `houses` WHERE `owner` = $user_id ;");
if ($houses !== false) {
@ -88,6 +89,7 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) {
<li><font class="profile_font" name="profile_font_created">Created: <?php echo getClock($profile_znote_data['created'], true); ?></font></li>
<li><font class="profile_font" name="profile_font_comment">Comment:</font> <br><textarea name="profile_comment_textarea" cols="70" rows="10" readonly="readonly" class="span12"><?php echo $profile_znote_data['comment']; ?></textarea></li>
<?php if ($config['Ach'] == true) { ?>
<h3 class="header-ok">Achievements</h3>
<div id="accordion">
<h3>Show/hide player achievements</h3>
@ -122,6 +124,7 @@ margin-left:0px;
</table>
</div></div>
<br>
<?php } ?>
<!-- DEATH LIST -->
<li>