id != $team->userid) { page_head("Permission denied"); echo "Only a team's founder may disband a team."; } else { $query_team_table = sprintf( "delete from team where id = %d", $team->id ); if ($team->nusers == 0) { $result_team_table = mysql_query($query_team_table); } if ($result_team_table) { $team_name = $team->name; page_head("$team_name disbanded"); echo "

Disband Complete

"; echo "You have disbanded $team_name."; } else { page_head("Error"); echo "Couldn't disband team - please try later.\n"; } } page_tail(); ?>