From 20c2566ada1cd68ecd6020995d3a2c0e135a8bd0 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 5 Feb 2009 20:25:30 +0000 Subject: [PATCH] - web: added BOINCstats to list of team stats sites svn path=/trunk/boinc/; revision=17155 --- checkin_notes | 8 ++++++++ html/inc/stats_sites.inc | 5 +++++ html/inc/team.inc | 10 ++++++++-- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index a43df87bf4..2802c75b4e 100644 --- a/checkin_notes +++ b/checkin_notes @@ -1216,3 +1216,11 @@ David 5 Feb 2009 cpu_sched.cpp cs_scheduler.cpp work_fetch.cpp + +David 5 Feb 2009 + - web: added BOINCstats to list of team stats sites + + html/ + inc/ + stats_sites.inc + team.inc diff --git a/html/inc/stats_sites.inc b/html/inc/stats_sites.inc index 5ab9bac2cd..c2d6731e5d 100644 --- a/html/inc/stats_sites.inc +++ b/html/inc/stats_sites.inc @@ -159,6 +159,11 @@ $sig_sites = array( $team_name_sites = array( array("http://stats.free-dc.org/stats.php?page=teambycpid&team=", "Free-DC", + "" + ), + array("http://boincstats.com/search/all_projects.php?teamid=", + "BOINCstats.com", + "hash" ), ); diff --git a/html/inc/team.inc b/html/inc/team.inc index 20a035a572..44a9647093 100644 --- a/html/inc/team.inc +++ b/html/inc/team.inc @@ -95,11 +95,17 @@ function display_team_page($team, $user) { row2(tra('Recent average credit'), format_credit_large($team->expavg_credit)); $x = ""; + shuffle($team_name_sites); foreach ($team_name_sites as $t) { $url = $t[0]; $site_name = $t[1]; - $team_name = urlencode($team->name); - $x .= "$site_name
\n"; + $encoding = $t[2]; + if ($encoding == "hash") { + $key = md5(strtolower($team->name)); + } else { + $key = urlencode($team->name); + } + $x .= "$site_name
\n"; } row2(tra('Cross-project credit'), $x); }