From 9707aa3f00ad74531e351777fea2b82ef887b8a7 Mon Sep 17 00:00:00 2001 From: Barry Luong Date: Thu, 11 Jul 2002 20:48:29 +0000 Subject: [PATCH] Changes for database names svn path=/trunk/boinc/; revision=181 --- html/user/db.inc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/html/user/db.inc b/html/user/db.inc index bc6696e6fc..d0f0fb49fe 100644 --- a/html/user/db.inc +++ b/html/user/db.inc @@ -5,7 +5,8 @@ function db_init() { if (!$retval) { exit(); } - mysql_select_db("boinc"); + //mysql_select_db("boinc_barry"); + mysql_select_db(getenv("BOINC_DB_NAME")); } function lookup_user_auth($auth) { @@ -150,4 +151,15 @@ function show_user($user) { echo "\n"; } +function show_team($team) { + start_table(); + row("ID", $team->id); + row("founder", $team->userid); + row("name", $team->name); + row("url", $team->url); + row("type", $team->type); + row("name_html", $team->name_html); + row("description", $team->description); +} + ?>