🚚 Move game function in a game folder
This commit is contained in:
parent
6b38f280c3
commit
ec5372573b
5 changed files with 15 additions and 15 deletions
30
index.php
30
index.php
|
@ -26,28 +26,28 @@ if (isset($_GET["do"])) {
|
||||||
$do = explode(":",$_GET["do"]);
|
$do = explode(":",$_GET["do"]);
|
||||||
|
|
||||||
// Town functions.
|
// Town functions.
|
||||||
if ($do[0] == "inn") { include('towns.php'); inn(); }
|
if ($do[0] == "inn") { include('game/towns.php'); inn(); }
|
||||||
elseif ($do[0] == "buy") { include('towns.php'); buy(); }
|
elseif ($do[0] == "buy") { include('game/towns.php'); buy(); }
|
||||||
elseif ($do[0] == "buy2") { include('towns.php'); buy2($do[1]); }
|
elseif ($do[0] == "buy2") { include('game/towns.php'); buy2($do[1]); }
|
||||||
elseif ($do[0] == "buy3") { include('towns.php'); buy3($do[1]); }
|
elseif ($do[0] == "buy3") { include('game/towns.php'); buy3($do[1]); }
|
||||||
elseif ($do[0] == "sell") { include('towns.php'); sell(); }
|
elseif ($do[0] == "sell") { include('game/towns.php'); sell(); }
|
||||||
elseif ($do[0] == "maps") { include('towns.php'); maps(); }
|
elseif ($do[0] == "maps") { include('game/towns.php'); maps(); }
|
||||||
elseif ($do[0] == "maps2") { include('towns.php'); maps2($do[1]); }
|
elseif ($do[0] == "maps2") { include('game/towns.php'); maps2($do[1]); }
|
||||||
elseif ($do[0] == "maps3") { include('towns.php'); maps3($do[1]); }
|
elseif ($do[0] == "maps3") { include('game/towns.php'); maps3($do[1]); }
|
||||||
elseif ($do[0] == "gotown") { include('towns.php'); travelto($do[1]); }
|
elseif ($do[0] == "gotown") { include('game/towns.php'); travelto($do[1]); }
|
||||||
|
|
||||||
// Exploring functions.
|
// Exploring functions.
|
||||||
elseif ($do[0] == "move") { include('explore.php'); move(); }
|
elseif ($do[0] == "move") { include('game/explore.php'); move(); }
|
||||||
|
|
||||||
// Fighting functions.
|
// Fighting functions.
|
||||||
elseif ($do[0] == "fight") { include('fight.php'); fight(); }
|
elseif ($do[0] == "fight") { include('game/fight.php'); fight(); }
|
||||||
elseif ($do[0] == "victory") { include('fight.php'); victory(); }
|
elseif ($do[0] == "victory") { include('game/fight.php'); victory(); }
|
||||||
elseif ($do[0] == "drop") { include('fight.php'); drop(); }
|
elseif ($do[0] == "drop") { include('game/fight.php'); drop(); }
|
||||||
elseif ($do[0] == "dead") { include('fight.php'); dead(); }
|
elseif ($do[0] == "dead") { include('game/fight.php'); dead(); }
|
||||||
|
|
||||||
// Misc functions.
|
// Misc functions.
|
||||||
elseif ($do[0] == "verify") { header("Location: users.php?do=verify"); die(); }
|
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] == "showchar") { showchar(); }
|
||||||
elseif ($do[0] == "onlinechar") { onlinechar($do[1]); }
|
elseif ($do[0] == "onlinechar") { onlinechar($do[1]); }
|
||||||
elseif ($do[0] == "showmap") { showmap(); }
|
elseif ($do[0] == "showmap") { showmap(); }
|
||||||
|
|
Loading…
Add table
Reference in a new issue