示例#1
0
     $zone = $_POST['zone'];
     $pod = $_POST['pod'];
     $ez->updateChallenge($id, $date, $hour, $mins, $zone, $pod);
     break;
 case 'submitScore':
     $challenger = $_POST['challenger'];
     $challengee = $_POST['challengee'];
     $match_id = $_POST['id'];
     $ez->submitChallengeScore($match_id, $challenger, $challengee);
     break;
 case 'addResponse':
     $body = $_POST['body'];
     $id = $_POST['id'];
     $date = date('m/d/y h:ia', strtotime('now'));
     $response = "[<em>" . $date . "</em>] " . "<strong>" . $ez_username . "</strong> " . $body;
     $ez->updateChallengeResponse($id, $response, $ez_username);
     break;
     /*
      * TEAMS
      */
 /*
  * TEAMS
  */
 case 'createTeam':
     $team = $_POST['team'];
     $abbr = $_POST['abbr'];
     $game = $_POST['game'];
     $ez->createTeam($team, $abbr, $game, $ez_username);
     break;
 case 'teamSettings':
     $id = $_POST['id'];