Example #1
0
									</th>
									<th>
										Vocation:
									</th>
									<th>
										Last login:
									</th>
									<th>
										Status:
									</th>
								</tr>
								<?php 
                // Design and present the list
                foreach ($characters as $char) {
                    if ($char['name'] != $profile_data['name']) {
                        if (hide_char_to_name(user_character_hide($char['name'])) != 'hidden') {
                            echo '<tr>';
                            echo '<td><a href="characterprofile.php?name=' . $char['name'] . '">' . $char['name'] . '</a></td>';
                            echo '<td>' . $char['level'] . '</td>';
                            echo '<td>' . $char['vocation'] . '</td>';
                            echo '<td>' . $char['lastlogin'] . '</td>';
                            echo '<td>' . $char['online'] . '</td>';
                            echo '</tr>';
                        }
                    }
                }
                ?>
							</table>
							<?php 
            } else {
                echo '<b><font color="green">This player has never died.</font></b>';
Example #2
0
            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'];
        }
        ?>
			</table>
			<!-- FORMS TO EDIT CHARACTER-->
			<form action="" method="post">
				<table class="table">
					<tr>
						<td>
							<select id="selected_character" name="selected_character" class="form-control">
							<?php 
        for ($i = 0; $i < $char_count; $i++) {
            if (user_character_hide($characters[$i]) == 1) {
                echo '<option value="' . $characters[$i] . '">' . $characters[$i] . '</option>';
            } else {
                echo '<option value="' . $characters[$i] . '">' . $characters[$i] . '</option>';
            }
        }
        ?>
							</select>
						</td>
						<td>
							<select id="action" name="action" class="form-control" onChange="changedOption(this)">
								<option value="none" selected>Select action</option>
								<option value="toggle_hide">Toggle hide</option>
								<option value="change_comment">Change comment</option>
								<option value="change_gender">Change gender</option>
								<option value="change_name">Change name</option>