<html>
<head><title>Arcade</title></head>
<body>
<?php
// Get the game passed from the Javascript link
if(isset($_GET['gamename']))
$game = $_GET['gamename'];
else
$game = "";
// Display the game we want depending on the name passed.
if($game == "realinvaders") {
include("http://www.teamxl.biz/arcade/ri/ri.html");
}
else if($game == "jbreakout") {
include("http://www.teamxl.biz/arcade/jbreakout/JBreakout.html");
}
else if($game == "xraye") {
include("http://www.teamxl.biz/arcade/xr/xr.html");
}
else if($game == "spaceescape") {
include("http://www.teamxl.biz/arcade/se/spaceescape.html");
}
else if($game == "gyroball") {
include("http://www.teamxl.biz/arcade/gb/gyroball.html");
}
else if($game == "crimsonviper") {
include("http://www.teamxl.biz/arcade/cv/crimsonviper.html");
}
else if($game == "raidenx") {
include("http://www.teamxl.biz/arcade/rx/raidenx.html");
}
else if($game == "flashtrek2") {
include("http://www.teamxl.biz/arcade/ft2/flashtrek2.html");
}
else if($game == "commando3") {
include("http://www.teamxl.biz/arcade/c3/commando3.html");
}
else if($game == "territorywar") {
include("http://www.teamxl.biz/arcade/tw/territorywar.html");
}
// To prevent direct linking
else if($game == "") {
print "You a damn loser.";
}
else if($game == " ") {
print "You a damn loser.";
}
// Finish the rest of the games in your arcade using the same format
else {
echo "Sorry, that game wasn't found.";
}
?>
<br>
<center>
<?php
// Display the ad code.
include("http://staff.x10hosting.com/adCode.php?ad=advanced");
?>
</center>
</body>
</html>