Example #1
0
                print "<p align=\"center\"><a href=\"./teams.php?eventId={$eventId}\">Click here to continue</a></p>\n\n";
                print "<META HTTP-EQUIV=Refresh CONTENT=\"1; URL=./teams.php?eventId={$eventId}\">\n\n";
            }
        }
        print_footer();
    } else {
        print_header("Admin", 0);
        show_error("Unknown command");
        print_footer();
    }
} elseif ($_GET["eventId"] != "" && isset($_COOKIE[lqc_scores_session])) {
    $eventId = $_GET["eventId"];
    print_header("Admin", "Teams");
    $event_title = return_event_title($eventId);
    verify_session();
    verify_event_pm($eventId);
    ?>
<table width="430" cellspacing="1" cellpadding="2" align="center" bgcolor="#aaaaaa">
  <tr bgcolor="#f6f6f6">
   <td height="30" colspan="16" align="center" class="large">Player Maintenance</td>
 </tr>
  <tr height="18" bgcolor="#f0f0f0">
   <td class="small">&nbsp; <b>Add Player</b></td>
   <td class="small">&nbsp; <b>Change Player Codename</b></td>
   <td class="small">&nbsp; <b>Change Player Center</b></td>
 </tr>
  <tr height="25" bgcolor="#ffffff">
   <td valign="top">
	<form method="post" action="./teams.php">
	<input type="hidden" name="do" value="add_player">
	<input type="hidden" name="eventId" value="<?php 
    if ($rank_scores == "true") {
        print "<p align=\"center\"><b>Scores Entered... Updating ranks</b></p>\n\n";
        print "<META HTTP-EQUIV=Refresh CONTENT=\"1; URL=./rank_game.php?getGame={$getGame}&getType={$getType}&getEvent={$getEvent}\">\n\n";
    } else {
        print "<p align=\"center\"><b>Scores Entered... Updating teams</b></p>\n\n";
        print "<META HTTP-EQUIV=Refresh CONTENT=\"1; URL=./rank_team_scores.php?game_type={$getType}&eventId={$getEvent}\">\n\n";
    }
    print "<p align=\"center\">Redirecting...</p>\n\n";
    print "<p align=\"center\"><a href=\"./score_entry.php?getEvent={$getEvent}&getGame={$getGame}&getType={$getType}&entryType={$entryType}\">Click here to return to game</a></p>\n\n";
    print_footer();
} elseif ($_GET["getEvent"] != "" && $_GET["getGame"] != "" && $_GET["getType"] != "") {
    $getEvent = $_GET["getEvent"];
    $getGame = $_GET["getGame"];
    $getType = $_GET["getType"];
    print_header("Admin", "Score Entry");
    verify_event_pm($getEvent);
    $gameInfo = fetch_game_info($getEvent, $getType);
    $hex_array = fetch_hex_array($gameInfo[game_pack_sets], $gameInfo[game_format]);
    $soft_hex_array = fetch_soft_hex_array($gameInfo[game_pack_sets], $gameInfo[game_format]);
    $rgm_array = fetch_rgm_array($gameInfo[game_pack_sets], $gameInfo[game_format]);
    /*
    $gameInfo[title]
    $gameInfo[game_pack_sets]
    $gameInfo[game_title]
    $gameInfo[game_format]
    $gameInfo[format_num]
    */
    $fetch_game = mysql_query("SELECT * FROM `web_games` WHERE event='{$getEvent}' AND id='{$getGame}' LIMIT 1");
    if (mysql_num_rows($fetch_game) == "0") {
        show_error("Failed to load game");
        print_footer();