Dragon-Scourge/index.php
Jamin Blount e1b9948505 Beta 2 Build 12
12.10.2005 - Build 12 (Eggs):
- Members can now leave the Guild without requiring an officer to demote
them to zero.
- Rank 5 members can now edit/update Guild settings.
- # of Members is now set to 1 when a Guild is created, and updated
correctly when an application is approved.
- The Guild founder is now notified via the Post Office when someone
applies to join.
- Members can now arbitrarily deposit money to the Guild bank.
- You can no longer send guild money to yourself. Checks and balances,
man!
- Fixed image format selection so that it actually works.
- Removed Language selection from account registration/settings.
2017-02-05 11:51:02 -06:00

81 lines
3.2 KiB
PHP

<?php // index.php :: Case switching to decide what function we need to be running.
include("lib.php");
include("globals.php");
if(isset($_GET["do"])) {
$do = explode(":",$_GET["do"]);
switch ($do[0]) {
// Exploring.
case "explore": include("explore.php"); move(); break;
case "travel": include("explore.php"); travel($do[1]); break;
case "humanity": include("explore.php"); botkillah(); break;
// Towns.
case "inn": include("town.php"); inn(); break;
case "maps": include("town.php"); map(); break;
case "duel": include("town.php"); duel(); break;
case "challenge": include("town.php"); duelchallenge(); break;
case "buy": include("town.php"); buy(); break;
case "gamble": include("town.php"); gamble(); break;
case "bank": include("town.php"); bank(); break;
case "top10": include("town.php"); halloffame(); break;
// Mailbox.
case "mailbox": include("mailbox.php"); mailbox(); break;
case "mailview": include("mailbox.php"); letter(); break;
case "maildelete": include("mailbox.php"); maildelete(); break;
case "mailnew": include("mailbox.php"); mailnew(); break;
case "mailreply": include("mailbox.php"); mailreply(); break;
case "mailsent": include("mailbox.php"); outbox(); break;
case "mailviewsent": include("mailbox.php"); letterout(); break;
// Fights.
// Guilds.
case "guilds": include("guilds.php"); guildmain(); break;
case "guildhome": include("guilds.php"); guildhome(); break;
case "guildcreate": include("guilds.php"); guildcreate(); break;
case "guildapp": include("guilds.php"); guildapp(); break;
case "guildmembers": include("guilds.php"); guildmembers(); break;
case "guildbank": include("guilds.php"); guildbank(); break;
case "guildpromote": include("guilds.php"); guildpromote(); break;
case "guildremove": include("guilds.php"); guildremove(); break;
case "guildapprove": include("guilds.php"); guildapprove(); break;
case "guildnews": include("guilds.php"); guildnews(); break;
case "guilddisband": include("guilds.php"); guilddisband(); break;
case "guildedit": include("guilds.php"); guildedit(); break;
case "guildleave": include("guilds.php"); guildleave(); break;
// Misc.
case "babblebox": include("misc.php"); babblebox2(); break;
case "showmap": include("misc.php"); showmap(); break;
case "version": include("misc.php"); version(); break;
case "iddqd": include("misc.php"); iddqd(); break;
default: donothing();
}
} else {
donothing();
}
function donothing() {
global $userrow;
if ($userrow["currentpvp"] != 0) {
die(header("Location: pvp.php"));
}
if ($userrow["currentaction"] == "In Town") {
include("town.php");
dotown();
}
if ($userrow["currentaction"] == "Exploring") {
include("explore.php");
doexplore();
}
if ($userrow["currentaction"] == "Fighting") {
die(header("Location: fight.php"));
}
if ($userrow["currentaction"] == "PVP") {
die(header("Location: pvp.php"));
}
}
?>