diff --git a/explore.php b/game/explore.php similarity index 100% rename from explore.php rename to game/explore.php diff --git a/fight.php b/game/fight.php similarity index 100% rename from fight.php rename to game/fight.php diff --git a/heal.php b/game/heal.php similarity index 100% rename from heal.php rename to game/heal.php diff --git a/towns.php b/game/towns.php similarity index 100% rename from towns.php rename to game/towns.php diff --git a/index.php b/index.php index 26b8a31..8f081ba 100644 --- a/index.php +++ b/index.php @@ -26,28 +26,28 @@ if (isset($_GET["do"])) { $do = explode(":",$_GET["do"]); // Town functions. - if ($do[0] == "inn") { include('towns.php'); inn(); } - elseif ($do[0] == "buy") { include('towns.php'); buy(); } - elseif ($do[0] == "buy2") { include('towns.php'); buy2($do[1]); } - elseif ($do[0] == "buy3") { include('towns.php'); buy3($do[1]); } - elseif ($do[0] == "sell") { include('towns.php'); sell(); } - elseif ($do[0] == "maps") { include('towns.php'); maps(); } - elseif ($do[0] == "maps2") { include('towns.php'); maps2($do[1]); } - elseif ($do[0] == "maps3") { include('towns.php'); maps3($do[1]); } - elseif ($do[0] == "gotown") { include('towns.php'); travelto($do[1]); } + if ($do[0] == "inn") { include('game/towns.php'); inn(); } + elseif ($do[0] == "buy") { include('game/towns.php'); buy(); } + elseif ($do[0] == "buy2") { include('game/towns.php'); buy2($do[1]); } + elseif ($do[0] == "buy3") { include('game/towns.php'); buy3($do[1]); } + elseif ($do[0] == "sell") { include('game/towns.php'); sell(); } + elseif ($do[0] == "maps") { include('game/towns.php'); maps(); } + elseif ($do[0] == "maps2") { include('game/towns.php'); maps2($do[1]); } + elseif ($do[0] == "maps3") { include('game/towns.php'); maps3($do[1]); } + elseif ($do[0] == "gotown") { include('game/towns.php'); travelto($do[1]); } // Exploring functions. - elseif ($do[0] == "move") { include('explore.php'); move(); } + elseif ($do[0] == "move") { include('game/explore.php'); move(); } // Fighting functions. - elseif ($do[0] == "fight") { include('fight.php'); fight(); } - elseif ($do[0] == "victory") { include('fight.php'); victory(); } - elseif ($do[0] == "drop") { include('fight.php'); drop(); } - elseif ($do[0] == "dead") { include('fight.php'); dead(); } + elseif ($do[0] == "fight") { include('game/fight.php'); fight(); } + elseif ($do[0] == "victory") { include('game/fight.php'); victory(); } + elseif ($do[0] == "drop") { include('game/fight.php'); drop(); } + elseif ($do[0] == "dead") { include('game/fight.php'); dead(); } // Misc functions. elseif ($do[0] == "verify") { header("Location: users.php?do=verify"); die(); } - elseif ($do[0] == "spell") { include('heal.php'); healspells($do[1]); } + elseif ($do[0] == "spell") { include('game/heal.php'); healspells($do[1]); } elseif ($do[0] == "showchar") { showchar(); } elseif ($do[0] == "onlinechar") { onlinechar($do[1]); } elseif ($do[0] == "showmap") { showmap(); }