<?php

function getRoundInfo($RID)
{
	include('./queries/getRoundInfo.php'); // imports the correct sql statement
	$result = mysqli_query($GLOBALS["___mysqli_ston"], $query) or die('Query failed: ' . mysqli_error($GLOBALS["___mysqli_ston"]));
	$data = array();

	$idx = 0;
	while ($row = mysqli_fetch_assoc($result)) {
		$data[$idx] = $row;
		$idx++;
	}
	((mysqli_free_result($result) || (is_object($result) && (get_class($result) == "mysqli_result"))) ? true : false);
	return $data;
}

function getPRoundInfo($RID,$RCUR,$RNEXT,$RPORT)
{
if (($RNEXT == '') or ($RNEXT < 100)) {$RNEXT = time();}
	include('./queries/getPRoundInfo.php'); // imports the correct sql statement
	$result = mysqli_query($GLOBALS["___mysqli_ston"], $query) or die('Query failed: ' . mysqli_error($GLOBALS["___mysqli_ston"]));
	$data = array();

	$idx = 0;
	while ($row = mysqli_fetch_assoc($result)) {
		$data[$idx] = $row;
		$idx++;
	}
	((mysqli_free_result($result) || (is_object($result) && (get_class($result) == "mysqli_result"))) ? true : false);
	return $data;
}

function armyname($team) {

	switch($team) {
		case "0":
		return "United States Marine Corps";
      	break;
		
		case "1":
		return "Middle Eastern Coalition";
      	break;

		case "2":
		return "People's Liberation Army";
      	break;

		case "3":
		return "Seals";
      	break;

		case "4":
		return "SAS";
      	break;

		case "5":
		return "Spetsnaz";
      	break;
		
		case "6":
		return "MECSF";
      	break;
		
		case "7":
		return "Rebels";
      	break;
		
		case "8":
		return "Insurgents";
      	break;

		case "9":
		return "European Union";
      	break;
	}

}

?>