Example #1
0
                }
            }
        }
        if ($firstrun == 0) {
            echo '</table></li>';
        }
        ?>
<!-- END QUEST PROGRESSION -->
				<!-- CHARACTER LIST -->
				<?php 
        if (user_character_hide($profile_data['name']) != 1 && user_character_list_count(user_character_account_id($name)) > 1) {
            ?>
					<li>
						<b>Other visible characters on this account:</b><br>
						<?php 
            $characters = user_character_list(user_character_account_id($profile_data['name']));
            // characters: [0] = name, [1] = level, [2] = vocation, [3] = town_id, [4] = lastlogin, [5] = online
            if ($characters && count($characters) > 1) {
                ?>
							<table id="characterprofileTable" class="table table-striped table-hover">
								<tr class="yellow">
									<th>
										Name:
									</th>
									<th>
										Level:
									</th>
									<th>
										Vocation:
									</th>
									<th>
Example #2
0
		<h1>My account</h1>
		<p>Welcome to your account page, <?php 
    echo $user_data['name'];
    ?>
<br>
			You have <?php 
    echo $user_data['premdays'];
    ?>
 days remaining premium account.</p>
		<h2>Character List: <?php 
    echo $char_count;
    ?>
 characters.</h2>
		<?php 
    // Echo character list!
    $char_array = user_character_list($user_data['id']);
    // Design and present the list
    if ($char_array) {
        ?>
			<table id="myaccountTable" class="table table-striped table-hover">
				<tr class="yellow">
					<th>NAME</th><th>LEVEL</th><th>VOCATION</th><th>TOWN</th><th>LAST LOGIN</th><th>STATUS</th><th>HIDE</th>
				</tr>
				<?php 
        $characters = array();
        foreach ($char_array as $value) {
            // characters: [0] = name, [1] = level, [2] = vocation, [3] = town_id, [4] = lastlogin, [5] = online
            echo '<tr>';
            echo '<td><a href="characterprofile.php?name=' . $value['name'] . '">' . $value['name'] . '</a></td><td>' . $value['level'] . '</td><td>' . $value['vocation'] . '</td><td>' . $value['town_id'] . '</td><td>' . $value['lastlogin'] . '</td><td>' . $value['online'] . '</td><td>' . hide_char_to_name(user_character_hide($value['name'])) . '</td>';
            echo '</tr>';
            $characters[] = $value['name'];