<div id="controls"> <?php echo $Game->draw_action(); ?> <hr /> <?php echo $chat_html; ?> </div> <!-- #controls --> <div id="history"> <a href="history.php" data-fancybox-type="ajax" class="fancybox">Click for History</a> </div> <!-- #history --> <?php echo game_info($Game); ?> <script type="text/javascript"> $('#game_info').hide( ); </script> </div> <!-- #contents --> <?php echo game_map(); ?> <?php call($GLOBALS); echo get_footer();
exit; } // run the game review button clicks // actually... if this is hit, they've already been handled // just return stuff to display $players = $Review->get_players(); $colors = array(); foreach ($players as $key => $player) { $colors[$player['color']] = htmlentities($GLOBALS['_PLAYERS'][$key]) . ' [' . $key . ']'; } try { $board = strip_whitespace(board($Review)); call($board); $players = strip_whitespace($Review->draw_players()); call($players); $game_info = game_info($Review); // don't strip_whitespace, it breaks the JS included call($game_info); $move_info = nl2br(trim(trim($Review->get_move_info(), " -=+"))); // wrap the player name in a class of the players color foreach ($colors as $color => $player) { if (false !== strpos($move_info, $player)) { $move_info = str_replace($player, '<span class="' . substr($color, 0, 3) . '">' . $player . '</span>', $move_info); } } call($move_info); $dice = ''; $move = $Review->get_step(); if ('A' === $move[0]) { list($type, $action) = explode(' ', $move); $action = explode(':', $action);
} } ?> <div id="move_info"><?php echo $move_info; ?> </div> </div> <!-- #controls --> <div id="history"> <a href="review_history.php" data-fancybox-type="ajax" class="fancybox">Click for History</a> </div> <!-- #history --> <?php echo game_info($Review); ?> <script type="text/javascript"> $('#game_info').hide( ); </script> </div> <!-- #contents --> <?php echo game_map(); ?> <?php call($GLOBALS); echo get_footer();