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
|
|
|
|
2003-03-19 21:01:32 +00:00
|
|
|
db_init();
|
|
|
|
$user = get_logged_in_user();
|
|
|
|
|
2003-03-21 04:38:55 +00:00
|
|
|
$teamid = $_GET["teamid"];
|
2002-11-11 19:40:22 +00:00
|
|
|
|
2003-03-21 04:38:55 +00:00
|
|
|
$result = mysql_query("select * from team where id = $teamid");
|
2002-11-11 19:40:22 +00:00
|
|
|
if ($result) {
|
|
|
|
$team = mysql_fetch_object($result);
|
|
|
|
mysql_free_result($result);
|
|
|
|
}
|
2002-12-16 21:41:41 +00:00
|
|
|
require_founder_login($user, $team);
|
2003-03-21 04:38:55 +00:00
|
|
|
page_head("Disband $team->name");
|
|
|
|
echo "<h2>Disband $team->name</h2>
|
|
|
|
<b>Please note:</b>
|
|
|
|
Only teams with no members may be disbanded.
|
|
|
|
You may email the members of the team to ask them to quit.
|
|
|
|
<form method=post action=team_disband_action.php>
|
|
|
|
<input type=hidden name=id value=$team->id>
|
|
|
|
<input type=submit value='Disband team'>
|
|
|
|
</form>
|
|
|
|
";
|
2002-11-11 19:40:22 +00:00
|
|
|
page_tail();
|
2002-08-07 18:56:55 +00:00
|
|
|
|
|
|
|
?>
|