Location: PHPKode > projects > Blackbeard's Revenge > main.php
<?php
session_start(); 
header("Cache-control: private");
require_once "common.php";
require_once "headers.php";

switch($_GET["module"])
{
	case 0:			
			echo "Welcome to main";
			break;
	case 1:
			include("battle.php");
			break;
	case 2:
			include("character.php");
			break;
	case 3:
			include("inn.php");
			break;
	case 4:			
			include("shipyard.php");
			break;
	case 5:			
			include("shipmaster.php");
			break;
	case 6:			
			echo "Module not implemented yet";
			break;
	case 7:			
			include("listplayers.php");
			break;	
	default:
			SavePlayerShip();		
			session_unset();
			echo "<script>if (top.location != location) {top.location.href = document.location.href;}</script>";
			echo "<META HTTP-EQUIV=\"refresh\" content=\"1;URL=index.html\" target=_top\">";
			break;
}
?>
Return current item: Blackbeard's Revenge