<?php $private = false; $alive = false; $page_title = "Staff"; $quickstat = false; //include SERVER_ROOT."interface/header.php"; $header = render_html_for_header('Ninjawars Staff', 'ninjawars-staff'); $footer = render_footer(); $parts = get_certain_vars(get_defined_vars()); echo render_template('staff.tpl', $parts);
$players_clan = $player->vo->clan_long_name; // TODO: not ready yet: $players_energy = $player_data['energy']; // Also migrate the player_score to a true player object. // Also migrate the rank_id to a true player object. $players_status = $player->getStatus(); assert('isset($players_id)'); if ($alive) { // *** That page requires the player to be alive to view it. if (!$players_health) { $error = render_viewable_error('dead'); } else { if ($status_array['Frozen']) { $error = render_viewable_error('frozen'); } } } } if (!$section_only) { // make a dash separated css class from the page titles. $css_body_class = strtolower(preg_replace('/\\s/', '-', $page_title)); echo render_html_for_header($page_title, $css_body_class); // ***** Display the html header } if ($error) { // If there's an error, display that then end. echo $error; echo render_footer($quickstat); // Display the bottom of the page. die; // Skip displaying anything more. }
// Login was attempted, but failed, so display an error. $login_error = true; } else { header("Location: index.php"); exit; // Login redirect to prevent the refresh postback problem. } } $is_not_logged_in = !$is_logged_in; $username = get_username(); $user_id = get_user_id(); // Player counts. $stats = membership_and_combat_stats($sql); $player_count = $stats['player_count']; $players_online = $stats['players_online']; $header = render_html_for_header('Live By the Sword', 'main-body', $is_index = true); // render_html_for_header Writes out the html,head,meta,title,css,js. $version = 'NW Version 1.7.1 2009.11.22'; // Display main iframe page unless logged in. $main_src = 'main.php'; if ($is_logged_in) { $level = getLevel($username); $main_src = 'list_all_players.php'; if ($level == 1) { $main_src = 'tutorial.php'; } elseif ($level < 6) { $main_src = 'attack_player.php'; } } $parts = get_certain_vars(get_defined_vars(), array('vicious_killer')); if (!$is_logged_in) {
<?php $alive = false; $private = false; $quickstat = false; $page_title = "Main"; require_once LIB_ROOT . "specific/lib_player_list.php"; $header = render_html_for_header('Welcome to Ninjawars', 'main-intro'); $footer = render_footer($quickstat); $progression = render_template('progression.tpl', array('WEB_ROOT' => WEB_ROOT, 'IMAGE_ROOT' => IMAGE_ROOT)); $parts = get_certain_vars(get_defined_vars()); echo render_template('main.tpl', $parts);