diff --git a/checkin_notes b/checkin_notes index ae5d271010..8bc1670e84 100755 --- a/checkin_notes +++ b/checkin_notes @@ -476,3 +476,11 @@ David 15 Jan 2006 eah_server_status.php (removed) sample_server_status.php (removed) server_status.php (removed) + +David 15 Jan 2006 + - user web: add optional team_id argument to team_lookup.php + (returns XML description of a particular team) + + html/ + user/ + team_lookup.php diff --git a/html/user/team_lookup.php b/html/user/team_lookup.php index 1a834515b1..d0addd3f6d 100644 --- a/html/user/team_lookup.php +++ b/html/user/team_lookup.php @@ -11,7 +11,20 @@ $team_name = $_GET["team_name"]; $name_lc = strtolower($team_name); $name_lc = escape_pattern($name_lc); $format = get_str("format", true); +$team_id = get_int("team_id", true); +if ($team_id) { + $team = lookup_team($team_id); + require_once ('../inc/xml.inc'); + xml_header(); + if ($team) { + show_team_xml($team); + } else { + echo "\nno such team\n\n"; + } + exit(); +} + $query = "select * from team where name like '%$name_lc%'"; $result_list = mysql_query($query);