- 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
This commit is contained in:
David Anderson 2007-11-25 20:57:34 +00:00
parent 44caa5886e
commit 2a4ddf1c45
3 changed files with 12 additions and 3 deletions

View File

@ -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

View File

@ -21,7 +21,8 @@ if ($xml) {
$user = lookup_user_auth($account_key);
$show_email = ($user && is_team_founder($user, $team));
echo "<users>\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>":"";

View File

@ -13,7 +13,7 @@ function show_admin_page($user, $team) {
<li>
Member list:
<a href=team_email_list.php?teamid=$team->id>HTML</a>
| <a href=team_email_list.php?teamid=$team->id>text</a>
| <a href=team_email_list.php?teamid=$team->id&plain=1>text</a>
<br><span class=note> View member names and email addresses </span>
<li>View change history:
<a href=team_delta.php?teamid=$team->id>HTML</a>