- web: added BOINCstats to list of team stats sites

svn path=/trunk/boinc/; revision=17155
This commit is contained in:
David Anderson 2009-02-05 20:25:30 +00:00
parent af86d4326f
commit 20c2566ada
3 changed files with 21 additions and 2 deletions

View File

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

View File

@ -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"
),
);

View File

@ -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 .= "<a href=$url".$team_name.">$site_name</a><br>\n";
$encoding = $t[2];
if ($encoding == "hash") {
$key = md5(strtolower($team->name));
} else {
$key = urlencode($team->name);
}
$x .= "<a href=$url".$key.">$site_name</a><br>\n";
}
row2(tra('Cross-project credit'), $x);
}