<?php

/* Game page template                     */
/* Usage: games.php/gamename/gamepage.php */
/* Created (12/08/2003) by badman         */
/* Last modified (12/11/2003) by badman   */


// Include the absolute path to ritualistic's dir

include("path.php");


// Grab some variables, so we know which page to get

list(,$id,$id2,$id3) = explode("/",$_SERVER["PATH_INFO"]);


// We're in the games section now

$section = "games";


// Figure out which game title to use
// New game titles must be added manually using
// an additional case statement.

switch($id)

{

	case "sineps":

		$title = "SiN Episodes";
		
		$pic = "sin";

		break;

	case "bhdts":

		$title = "Black Hawk Down: Team Sabre";
		
		//$pic = "05";

		break;

	case "ef2":

		$title = "Star Trek Elite Force II";
		
		$pic = "ef2";

		break;

	case "csx":

		$title = "Counter-Strike Xbox";
		
		$pic = "cz";

		break;

	case "cz":

		$title = "Counter-Strike: Condition Zero";
		
		$pic = "cz";

		break;

	case "uber":

		$title = "UberTools for Quake III";

		break;

	case "fakk2":

		$title = "Heavy Metal FAKK2";
		
		$pic = "fakk2";

		break;

	case "sin";

		$title = "Sin";
		
		$pic = "sin";

		break;

	case "soa":

		$title = "Quake Mission Pack #1: Scourge of Armagon";

		break;

	case "bw3":

		$title = "Blair Witch Volume III: The Elly Kedward Tale";
  
		break;

	default:

		include("".$path."/templates/header.php");

		include("".$path."/games/index.inc.php");
	
		include("".$path."/templates/footer.php");
	
		exit;

}

// Include game menu

$menu = "/games/$id/menu.inc.php";


// Include header content

$header_content = "/games/$id/header.inc.php";


// There be header content here!

include("".$path."/includes/function_top_content.php");


// Build the page


// include the header template

include("".$path."/templates/header.php");
  

// if a specific file was selected, include it
  
if($id3)

{
  
	include("".$path."/games/".$id."/".$id2."/".$id3."");

}

elseif($id2)

{

	include("".$path."/games/".$id."/".$id2."");

}


// otherwise include that directory's index file

else

{

	include("".$path."/games/".$id."/index.inc.php");
  
}


// include the footer template

include("".$path."/templates/footer.php");

?>
