From 2a4ddf1c45c71578883dcc6b28f8cfda15e3294a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 25 Nov 2007 20:57:34 +0000 Subject: [PATCH] - user web: use enum_fields() when enumerating team members; hopefully this will prevent running out of memory on large teams svn path=/trunk/boinc/; revision=14299 --- checkin_notes | 8 ++++++++ html/user/team_email_list.php | 5 +++-- html/user/team_manage.php | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/checkin_notes b/checkin_notes index 093c49fab7..1e2e83dd69 100644 --- a/checkin_notes +++ b/checkin_notes @@ -11637,3 +11637,11 @@ David 24 Nov 2007 forum_thread.php forum_forum.php forum_search_action.php + +David 25 Nov 2007 + - user web: use enum_fields() when enumerating team members; + hopefully this will prevent running out of memory on large teams + + html/user/ + team_email_list.php + team_manage.php diff --git a/html/user/team_email_list.php b/html/user/team_email_list.php index d46bd4f925..d132a3c62a 100644 --- a/html/user/team_email_list.php +++ b/html/user/team_email_list.php @@ -21,7 +21,8 @@ if ($xml) { $user = lookup_user_auth($account_key); $show_email = ($user && is_team_founder($user, $team)); echo "\n"; - $users = BoincUser::enum("teamid=$team->id"); + $users = BoincUser::enum_fields("id, email_addr, send_email, name, total_credit, expavg_credit, has_profile, donated, country, cross_project_id, create_time, url", "teamid=$team->id"); + //$users = BoincUser::enum("teamid=$team->id"); foreach($users as $user) { show_team_member($user, $show_email); } @@ -44,7 +45,7 @@ if ($plain) { table_header(array("Member list of ".$team->name, "colspan=\"6\"")); table_header("Name", "Email address", "Total credit", "Recent average credit", "Country"); } -$users = BoincUser::enum("teamid=$team->id"); +$users = BoincUser::enum_fields("id, email_addr, send_email, name, total_credit, expavg_credit, has_profile, donated, country, cross_project_id, create_time, url", "teamid=$team->id"); foreach($users as $user) { if ($plain) { $e = $user->send_email?"<$user->email_addr>":""; diff --git a/html/user/team_manage.php b/html/user/team_manage.php index a7975bcb65..bb00f51362 100644 --- a/html/user/team_manage.php +++ b/html/user/team_manage.php @@ -13,7 +13,7 @@ function show_admin_page($user, $team) {
  • Member list: id>HTML - | id>text + | id&plain=1>text
    View member names and email addresses
  • View change history: id>HTML