2002-08-07 18:56:55 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once("util.inc");
|
|
|
|
require_once("team.inc");
|
2002-11-12 17:01:16 +00:00
|
|
|
|
2002-12-04 19:14:00 +00:00
|
|
|
$authenticator = init_session();
|
2002-08-07 18:56:55 +00:00
|
|
|
db_init();
|
2002-12-16 21:41:41 +00:00
|
|
|
$user = get_user_from_auth($authenticator);
|
2002-11-11 19:40:22 +00:00
|
|
|
$id = $HTTP_GET_VARS["id"];
|
|
|
|
|
|
|
|
$query = sprintf(
|
|
|
|
"select * from team where id = %d",
|
|
|
|
$id
|
|
|
|
);
|
|
|
|
$result = mysql_query($query);
|
|
|
|
if ($result) {
|
|
|
|
$team = mysql_fetch_object($result);
|
|
|
|
mysql_free_result($result);
|
|
|
|
}
|
2002-12-16 21:41:41 +00:00
|
|
|
require_founder_login($user, $team);
|
2002-11-11 19:40:22 +00:00
|
|
|
$team_name = $team->name;
|
|
|
|
$team_id = $team->id;
|
|
|
|
page_head("Disband $team_name");
|
|
|
|
echo "<h2>Disband $team_name</h2>";
|
|
|
|
echo "<table width=780>";
|
|
|
|
echo "<tr><td>";
|
|
|
|
echo "<p><b>Please note:</b>";
|
|
|
|
echo "<ul>";
|
|
|
|
echo "<li>Only the found may disband a team.";
|
|
|
|
echo "<li>Only teams with no members may be disbanded. The founder of a team ";
|
|
|
|
echo "may email the members of a team to inform them of the disbanding of the team.";
|
|
|
|
echo "<li>After a team is disbanded, all members will no longer belong to a team, ";
|
|
|
|
echo "though they may join another team if desired.";
|
|
|
|
echo "<li>Disbanding a team is permanent, make sure you know what you're doing!";
|
|
|
|
echo "</ul>";
|
|
|
|
echo "</p>";
|
|
|
|
echo "Press "Disband Team" when you're ready.";
|
|
|
|
echo "<hr>";
|
|
|
|
echo "<form method=post action=team_disband_action.php>";
|
|
|
|
echo "<input type=hidden name=id value=$team_id>";
|
|
|
|
echo "<input type=submit value=\"Disband Team\">";
|
|
|
|
echo "</form>";
|
|
|
|
echo "</tr></td></table>";
|
|
|
|
page_tail();
|
2002-08-07 18:56:55 +00:00
|
|
|
|
|
|
|
?>
|