mirror of https://github.com/BOINC/boinc.git
- web: added BOINCstats to list of team stats sites
svn path=/trunk/boinc/; revision=17155
This commit is contained in:
parent
af86d4326f
commit
20c2566ada
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
),
|
||||
);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue