class UserChanceData { function UserChanceData() { $this->user_id = 0; $this->user_value = 0; $this->percentage_chance = 0; $this->add_order = 0; } } $total_value = 0; $user_chances = array(); $result = array(); query_getGlobalInformation($mysqli, $global_info); $current_pot_id = $global_info["current_pot_id"]; query_getPot($mysqli, $current_pot, $current_pot_id); class Items { public $item; public $item_information; } $itemsList = array(); $result["pot_id"] = $current_pot_id; if ($current_pot["pot_winner_id"] == 0) { query_getAllPotItems($mysqli, $pot_items, $current_pot_id); if ($pot_items) { $incrementor = 0; foreach ($pot_items as $pot_item) { $newItem = new Items(); query_getItemByItemID($mysqli, $item, $pot_item["item_id"]); query_getItemInformationByInfoID($mysqli, $item_info, $item["item_information_id"]);
<?php } ?> </div> </div> <div id="game"> <div class="tab_log"> <div class="body_medium_information">This shows the last 20 games you have played in with at least one other player.</div> <?php $game_count = 0; foreach ((array) $pot_history_for_user as $history_info) { if ($game_count == 20) { break; } query_getPot($mysqli, $pot, $history_info["pot_id"]); query_getPotHistoryByPotID($mysqli, $pot_user_history, $history_info["pot_id"]); if (count($pot_user_history) > 1) { $game_count++; ?> <div class="history_log"> <div class="text_left tab_edge tab_colour tab_medium_size">ID: <?php echo $pot["pot_id"]; ?> </div> <div class="text_center tab_middle tab_colour"> Local Time: <script> <?php echo "var etime = " . ($pot["pot_timer_start"] + $pot["pot_timer_length"] * 1000) . ";"; ?>
query_getUserByUserID($mysqli, $user, $_SESSION["user_id"]); $_SESSION["steam_name"] = $user_name; $_SESSION["steam_avatar"] = $avatar_url; $_SESSION["trade_token"] = $user['trade_token']; } header("Location: " . $redirect_page); } if (!empty($_SESSION["user_id"])) { query_updateUserLastActivity($mysqli, $_SESSION["user_id"], time()); } query_getGlobalInformation($mysqli, $global_info); ?> <script> <?php query_getPot($mysqli, $current_pot, $global_info["current_pot_id"]); ?> var php_pot_timer_length = <?php echo $current_pot["pot_timer_length"]; ?> ; var php_pot_timer_end = <?php echo $current_pot["pot_timer_start"] + $current_pot["pot_timer_length"] * 1000; ?> ; var php_server_time = <?php echo round(microtime(true) * 1000); ?> ; //console.log(php_pot_timer_end); <?php