break; case "change_diplomacy": change_diplomacy(); show_diplomacy(); break; case "drop_pending": drop_pending(); show_diplomacy(); break; case "accept_pending": accept_pending(); show_diplomacy(); break; case "proc_delete_alliance": proc_delete_alliance(); break; case "broadcast": show_menu(); broadcast_msg(); break; case "proc_broadcast": proc_broadcast_msg(); show_menu(); show_alliance(); break; default: show_menu(); show_alliance(); } // ENDE include "../spaceregentsinc/footer.inc.php";
// Session Identification session_identification(); // Extra headers for TD.. $extra_headers = "<STYLE TYPE=\"text/css\" > " . " TH.red { background-color: red } " . " TH.orange { background-color: orange } " . " TH.white { background-color: white; color: black} " . "</STYLE>"; print_header($extra_headers); print_title("Alliances", "An alliance is a coorperation between 2 or more users. Create your own alliance and increase it's size by let other users join in on your alliance."); $cmd = input_check("create", 0, "show", "aid", 0, "partjoin", "!frmid", "aid", "uid", 0, "requestjoin", "!frmid", "rid", 0); if ($cmd == "create") { create_alliance(); } if ($cmd == "show") { show_alliance(user_ourself(), $aid); } if ($cmd == "partjoin") { partjoin_alliance($aid, $uid); show_alliance(user_ourself(), $aid); } if ($cmd == "requestjoin") { request_join_alliance($rid); } create_submenu(array("Show Alliances" => "alliance.php?cmd=" . encrypt_get_vars("show"), "Create New Alliance" => "alliance.php?cmd=" . encrypt_get_vars("create"))); print_footer(); exit; // ============================================================================ // Show_Alliance() // // Description: // Shows the alliance $alliance_id in the context of the user_id. // When alliance_id is empty, all alliances known to the user are shown. // // Parameters: