"; show_totals(); echo '
'.tra("Top 100 volunteers").' '.tra("Statistics").'
';
echo "";
include("piecharts/$i.html");
}
);
}
function show_totals() {
$fn = "boinc_state.xml";
if (!file_exists($fn) || filemtime($fn) < time()-86400) {
$uid = time();
$x = file_get_contents("https://boincstats.com/en/xml/boincState?uid=$uid");
if ($x) {
$f = fopen($fn, "w");
fwrite($f, $x);
} else return;
}
$x = file_get_contents($fn);
$users = parse_element($x, " ".tra("Database not available; please try again later.");
}
}
);
}
function show_participate() {
panel(
// "Volunteer" is used as a verb
tra("Volunteer"),
function () {
echo tra("Use the idle time on your computer (Windows, Mac, Linux, or Android) to cure diseases, study global warming, discover pulsars, and do many other types of scientific research. It's safe, secure, and easy:");
echo '
';
}
);
}
function show_science() {
panel(
tra("High-throughput computing with BOINC"),
function() {
echo
tra("%1Scientists%2: use BOINC to create a %3volunteer computing project%4, giving you the power of thousands of CPUs and GPUs.",
"", "", "", ""
)
.'
".tra("Active:")." $users ".tra("volunteers,")." $hosts ".tra("computers.
")."
";
}
function show_news_items() {
panel(
tra("News"),
function() {
if (!file_exists("stop_web")) {
show_news(0, 5);
} else {
echo "
";
}
header("Content-type: text/html; charset=utf-8");
//html_tag();
$rh_col_width = 390;
echo '
BOINC is supported by the
National Science Foundation
through awards SCI-0221529, SCI-0438443, SCI-0506411,
PHY/0555655, and OCI-0721124.
Any opinions, findings, and conclusions or recommendations expressed in
this material are those of the author(s)
and do not necessarily reflect the views of the National Science Foundation.