if ($deleteAccount == 2) { SESSION::set('delete_attempts', 1); $error = 'Deleting of account failed, please email ' . SUPPORT_EMAIL; } else { $confirm_delete = true; } } } else { if ($changeprofile == 1) { // Limit the profile length. if ($newprofile != "") { $sql->Update("UPDATE players SET messages = '" . sql($newprofile) . "' WHERE uname = '" . sql($username) . "'"); $affected_rows = $sql->a_rows; $profile_changed = true; } else { $error = "Can not enter a blank profile."; } } } $level_and_cat = render_level_and_category($player['level']); $status_list = render_status_section(); $avatar_display = render_avatar_section($player['player_id']); // include and render from player.php $rank_display = get_rank($username, $sql); // rank display. $health_section = render_health_section($player['health']); $profile_editable = $player['messages']; $profile_display = out($profile_editable); $parts = get_certain_vars(get_defined_vars(), array('player')); echo render_template("stats.tpl", $parts); include SERVER_ROOT . "interface/footer.php";
$params = array('required_turns' => 0, 'ignores_stealth' => true); // 0 for unstealth. $AttackLegal = new AttackLegal($attacker, $target, $params); $attack_allowed = $AttackLegal->check(); $attack_error = $AttackLegal->getError(); // TODO: Add the "player since" date to the player profile/info. // Display the player info. if (!$player_info) { echo "<div class='error'>No such ninja</div>"; echo render_list_link(); include SERVER_ROOT . "interface/footer.php"; die; } else { $ranking_link_section = render_ranking_link($player_info, $linkbackpage, $sql); $class_section = render_class_section($player_info['class']); $level_and_category = render_level_and_category($player_info['level']); $status_section = render_status_section($player_info['uname']); $avatar_section = render_avatar_section($target_player_obj); if ($username && !$attack_error && !$self) { // They're not dead or otherwise unattackable. // Attack or Duel $skills_available = $skillsListObj->hasSkills(); $item_use_section = render_item_use_on_another($target, $sql); $skill_use_section = render_skills($target, $skillListObj, $skillsListObj); } // End of the there-was-no-attack-error section $player_activity_section = render_player_activity($player_info); $set_bounty_section = ''; $communication_section = ''; $clan_options_section = ''; $player_clan_section = '';