From 92409fdb823f89c81d0304b9e7e871b95365fd90 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 16 Jan 2006 06:04:16 +0000 Subject: [PATCH] team lookup XML svn path=/trunk/boinc/; revision=9242 --- checkin_notes | 8 ++++++++ html/user/team_lookup.php | 13 +++++++++++++ 2 files changed, 21 insertions(+) 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);