示例#1
0
        //if ($temp_player == $player_token){ continue; }
        //elseif ($temp_total > $counter_player_players){ $allow_player_selector = false; }
        //}
        // Update the player key to the current counter
        $player_key = $key_counter;
        // Make a backup of the player selector
        $allow_player_selector_backup = $allow_player_selector;
        // Collect this player's field rewards and add them to the dropdown
        $player_field_rewards = !empty($player_rewards['player_fields']) ? $player_rewards['player_fields'] : array();
        // Collect this player's item rewards and add them to the dropdown
        $player_item_rewards = !empty($player_rewards['player_items']) ? $player_rewards['player_items'] : array();
        //if (!empty($player_field_rewards)){ sort($player_field_rewards); }
        // DEBUG
        //die(print_r($player_rewards, true));
        // Collect and print the editor markup for this player
        $temp_editor_markup = rpg_player::print_editor_markup($player_info);
        echo $temp_editor_markup;
        $key_counter++;
        // Return the backup of the player selector
        $allow_player_selector = $allow_player_selector_backup;
    }
    // Collect the contents of the buffer
    $edit_console_markup = ob_get_clean();
    $edit_console_markup = preg_replace('/\\s+/', ' ', trim($edit_console_markup));
}
// Generate the edit markup using the battles settings and rewards
$this_edit_markup = '';
if (true) {
    // Prepare the output buffer
    ob_start();
    // Determine the token for the very first player in the edit