예제 #1
0
    // displays the same error as not found to not tell if exists or not.
    ?>
<center>
	<img src="//<?php 
    echo $locale_domain;
    ?>
/inc/img/no-character.gif" />
	<p>Character not found! The character may have been removed or hidden.</p>
</center>
<?php 
    require_once __DIR__ . '/../inc/footer.php';
    die;
} else {
    $account = Account::Load($character_info['account_id']);
    $internal_id = $character_info['internal_id'];
    $stat_addition = GetCorrectStat($internal_id, CURRENT_LOCALE);
    $__is_viewing_self = $friend_status == 'FOREVER_ALONE';
    $channelid = $character_info['channel_id'];
    if ($channelid == -1) {
        $channelid = 'Unknown';
    } else {
        $channelid++;
    }
    // 1 = 0
    $__hidden_objects = array();
    function IsHiddenObject($optionName, $no_override = false)
    {
        global $__char_db, $internal_id, $__hidden_objects, $_loggedin, $_loginaccount;
        if ($_loggedin && !$no_override && $_loginaccount->IsRankOrHigher(RANK_MODERATOR)) {
            return false;
        }
예제 #2
0
if (!isset($_GET['NO_CACHING'])) {
    ShowCachedImage($internal_id, 'stats', $row['last_update'], false, '2 MINUTE');
}
$id = uniqid() . rand(0, 999);
AddCacheImage($internal_id, 'stats', $row['last_update'], $id);
$row['guildname'] = '-';
$q2 = $__char_db->query("\nSELECT\n\tg.name\nFROM\n\tcharacters c\nLEFT JOIN\n\tguild_members gm\n\tON\n\t\tgm.character_id = c.id\nLEFT JOIN\n\tguilds g\n\tON\n\t\tg.id = gm.guild_id\nWHERE\n\tc.internal_id = " . $row['internal_id']);
if ($q2->num_rows == 1) {
    // Try to fetch guildname
    $row2 = $q2->fetch_row();
    if ($row2[0] !== null) {
        $row['guildname'] = $row2[0];
    }
}
$q2->free();
$stat_addition = GetCorrectStat($row['internal_id'], CURRENT_LOCALE);
$potential_stat_addition = GetItemPotentialBuffs($row['internal_id'], CURRENT_LOCALE);
$skill_stat_addition = GetSkillBuffs($row['internal_id'], CURRENT_LOCALE);
$before = array('str' => $row['str'], 'dex' => $row['dex'], 'int' => $row['int'], 'luk' => $row['luk'], 'mhp' => $row['mhp'], 'mmp' => $row['mmp']);
$level = $row['level'];
if (isset($stat_addition['str'])) {
    $row['str'] += $stat_addition['str'];
}
if (isset($stat_addition['dex'])) {
    $row['dex'] += $stat_addition['dex'];
}
if (isset($stat_addition['int'])) {
    $row['int'] += $stat_addition['int'];
}
if (isset($stat_addition['luk'])) {
    $row['luk'] += $stat_addition['luk'];