} //get the list of attendees of an event if (isset($_REQUEST['action']) && $_REQUEST['action'] == "attendeelist") { $result = array(); $result = getAttendieslist($pdo); if ($result != null) { $reply['status'] = "success"; $reply['attendees'] = $result; } else { $reply['status'] = "fail"; } } //Leader Board if (isset($_REQUEST['action']) && $_REQUEST['action'] == "leaderboard") { $result = array(); $result = getLeaderBoard($pdo); if ($result != null) { $reply['status'] = "success"; $reply['leaderboard'] = $result; } else { $reply['status'] = "fail"; } } //Get the travel and info help list if (isset($_REQUEST['action']) && $_REQUEST['action'] == "travelinfo") { $result = array(); $result = getTravelInfo($pdo); if ($result != null) { $reply['status'] = "success"; $reply['travel'] = $result; } else {
$invalidArg = 'against'; } } if ($invalidArg === false) { $description = arg('description'); if ($description === false) { $invalidArg = 'description'; } } if ($invalidArg === false) { startDispute($playerId, $gameId, $against, $description); } break; case 'getLeaderboard': if ($invalidArg === false) { getLeaderBoard(); } break; case 'getPlayerStats': if ($invalidArg === false) { getPlayerStats($playerId); } break; case 'reportError': if ($invalidArg === false) { $error = arg('error'); if ($error === false) { $invalidArg = 'error'; } } if ($invalidArg === false) {