Exemplo n.º 1
0
" class="skill_sp" style="display: none;"><?php 
                echo $sp;
                ?>
</span>
			<div id="skilllist_<?php 
                echo $i;
                ?>
" class="skill_job scrollable" style="display: none;">
<?php 
            }
            $extra = '';
            if ($row['maxlevel'] == NULL) {
                $row['maxlevel'] = $potentialMaxLevel == NULL ? '-' : $potentialMaxLevel;
            }
            if ($row['skillid'] < 90000000 && $row['level'] >= 100) {
                $playername = GetCharacterName($row['level'], CURRENT_LOCALE);
                $row['level'] = '<a href="/player/' . $playername . '">' . $playername . '</a>';
            } elseif (strpos($name, 'Blessing of the Fairy') !== FALSE && strlen($character_info['blessingoffairy']) > 1) {
                // BOF
                $extra = ' - <a href="/player/' . $character_info['blessingoffairy'] . '">' . $character_info['blessingoffairy'] . '</a>';
            } elseif (strpos($name, 'Empress\'s Blessing') !== FALSE && strlen($character_info['blessingofempress']) > 1) {
                // Empress Blessing
                $extra = ' - <a href="/player/' . $character_info['blessingofempress'] . '">' . $character_info['blessingofempress'] . '</a>';
            }
            // GetSystemTimeFromFileTime($row['expires']);
            if (!$first_skill) {
                ?>
				<div class="skill_line"></div>
<?php 
            }
            $first_skill = false;
Exemplo n.º 2
0
}
?>
			<form class="form-horizontal" method="post">
<script type="text/javascript">
function DeleteCharacter(id) {
	if (confirm("Are you sure you want to delete this character?")) {
		document.location.href = '?deletecharacter=' + id;
	}
}
</script>

<?php 
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
    if (isset($_GET['deletecharacter'])) {
        $id = intval($_GET['deletecharacter']);
        $name = GetCharacterName($id, CURRENT_LOCALE);
        $character_account_id = GetCharacterAccountId($id, CURRENT_LOCALE);
        echo $name;
        echo $character_account_id;
        $cerror = '';
        if ($_loginaccount->GetID() !== $character_account_id) {
            DisplayError(6);
            $cerror = 'nope';
        }
        echo $cerror;
        if ($id != NULL && ($cerror = NULL)) {
            Logging('characterdeletion', $name, $_loginaccount->GetID(), NULL);
            ?>
<p class="alert-info alert fademeout">Successfully requested deletion of <?php 
            echo $name;
            ?>
Exemplo n.º 3
0
function GetCharacterStatus($id, $locale, $account = NULL)
{
    global $__database;
    $accountLoaded = $account !== NULL;
    if (!$accountLoaded) {
        $account = Account::Load(intval(GetCharacterAccountId($id, $locale)));
    }
    $name = GetCharacterName($id, $locale);
    $value = $account->GetCharacterDisplayValue($name);
    if (!$accountLoaded) {
        // Clear data
        unset($account);
    }
    return $value;
}