2009-05-12 22:44:04 +00:00
< ? php
2009-05-03 12:22:48 +00:00
2007-11-17 16:35:02 +00:00
$host = $_SERVER [ " SERVER_NAME " ];
if ( $host == " bossa.berkeley.edu " ) {
Header ( " Location: http://boinc.berkeley.edu/trac/wiki/BossaIntro " );
exit ();
}
if ( $host == " bolt.berkeley.edu " ) {
Header ( " Location: http://boinc.berkeley.edu/trac/wiki/BoltIntro " );
exit ();
}
2005-03-23 06:26:19 +00:00
require_once ( " docutil.php " );
2009-01-26 23:52:27 +00:00
require_once ( " ../html/inc/translation.inc " );
2013-10-29 07:09:27 +00:00
require_once ( " ../html/inc/language_names.inc " );
2006-12-29 21:42:14 +00:00
2006-07-17 16:38:53 +00:00
function show_participant () {
$i = rand ( 0 , 99 );
$j = $i + 1 ;
2012-05-23 00:25:19 +00:00
echo " <table cellpadding=8 cellspacing=0 width=100%>
2008-10-06 20:24:58 +00:00
< tr >< td class = heading_right >
2006-08-16 19:45:43 +00:00
< center >
2009-07-24 04:49:12 +00:00
< span class = section_title > " .tra( " Computing power " ). " </ span >
2006-07-17 16:38:53 +00:00
< br >
2009-07-24 04:49:12 +00:00
< a class = heading href = chart_list . php >< b > " .tra( " Top 100 volunteers " ). " </ b ></ a >
& middot ; < a class = heading href = \ " links.php#stats \" ><b> " . tra ( " Statistics " ) . " </b></a>
2006-07-17 16:38:53 +00:00
</ center >
</ td ></ tr >
2008-02-26 22:44:33 +00:00
< tr >< td >
2006-07-17 16:38:53 +00:00
" ;
2008-03-14 21:40:18 +00:00
show_totals ();
2008-02-26 22:44:33 +00:00
include ( " piecharts/ $i .html " );
echo " </td></tr></table> " ;
2006-07-17 16:38:53 +00:00
}
2008-03-14 21:40:18 +00:00
function show_totals () {
$fn = " boinc_state.xml " ;
if ( ! file_exists ( $fn ) || filemtime ( $fn ) < time () - 86400 ) {
2012-11-07 08:08:18 +00:00
$uid = time ();
$x = file_get_contents ( " http://boincstats.com/en/xml/boincState?uid= $uid " );
2008-03-14 21:40:18 +00:00
if ( $x ) {
$f = fopen ( $fn , " w " );
fwrite ( $f , $x );
} else return ;
}
$x = file_get_contents ( $fn );
$users = parse_element ( $x , " <participants_active> " );
$hosts = parse_element ( $x , " <hosts_active> " );
$credit_day = parse_element ( $x , " <credit_day> " );
$users = number_format ( $users );
$hosts = number_format ( $hosts );
2011-09-14 22:45:26 +00:00
$petaflops = number_format ( $credit_day / 200000000 , 3 );
2009-07-24 04:49:12 +00:00
echo tra ( " Active: " ) . " $users " . tra ( " volunteers, " ) . " $hosts " . tra ( " computers.
2011-09-14 22:45:26 +00:00
" ). " < br > " .tra( " 24 - hour average : " ). " $petaflops " .tra( " PetaFLOPS . " ). "
2008-08-15 16:26:55 +00:00
< hr size = 1 width = \ " 80% \" >
2008-03-14 21:40:18 +00:00
" ;
}
2006-07-17 16:38:53 +00:00
function show_news_items () {
require_once ( " ../html/inc/news.inc " );
2009-12-18 04:32:30 +00:00
require_once ( " ../html/inc/forum.inc " );
2006-07-17 16:38:53 +00:00
echo "
2008-02-26 22:44:33 +00:00
< table border = 0 cellpadding = 8 >
2008-10-06 20:24:58 +00:00
< tr >< td class = heading_right >
2008-02-26 22:44:33 +00:00
< center >
2009-07-24 04:49:12 +00:00
< span class = section_title > " .tra( " News " ). " </ span >
2008-02-26 22:44:33 +00:00
</ center >
2006-07-17 16:38:53 +00:00
" ;
2009-12-18 04:32:30 +00:00
show_news ( 0 , 5 );
echo "
2006-07-17 16:38:53 +00:00
</ td ></ tr ></ table >
" ;
}
function show_participate () {
echo "
2008-10-06 20:24:58 +00:00
< tr >< td class = heading_left >
2011-11-19 00:29:55 +00:00
< a href = http :// www . facebook . com / pages / BOINC / 32672338584 >< img width = 36 src = images / facebook_logo . jpg align = left title = 'BOINC on Facebook' ></ a >
< a href = https :// plus . google . com / 117150698502685192946 / posts >< img width = 36 src = images / google_plus_logo . jpg align = left title = 'BOINC on Google+' ></ a >
2008-02-26 22:44:33 +00:00
< center >
2009-01-26 23:52:27 +00:00
< span class = section_title > " .tra( " Volunteer " ). " </ span >
2008-02-26 22:44:33 +00:00
< br >
2009-01-26 23:52:27 +00:00
< a class = heading href = download . php >< b > " .tra( " Download " ). " </ b ></ a >
2009-05-03 12:22:48 +00:00
& middot ; < a class = heading href = \ " /wiki/BOINC_Help \" ><b> " . tra ( " Help " ) . " </b></a>
& middot ; < a class = heading href = \ " wiki/User_manual \" ><b><span class=nobr> " . tra ( " Documentation " ) . " </span></b></a>
2012-09-08 05:39:44 +00:00
& middot ; < a class = heading href = addons . php >< b >< span class = nobr > " .tra( " Add - ons " ). " </ span ></ b ></ a >
& middot ; < a class = heading href = links . php >< b >< span class = nobr > " .tra( " Links " ). " </ span ></ b ></ a >
2008-02-26 22:44:33 +00:00
</ center >
2006-07-17 16:38:53 +00:00
</ td ></ tr >
< tr >< td >
< p >
2013-10-29 07:09:27 +00:00
" .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 : " ). "
< ol >
< li > < a href = projects . php > " .tra( " Choose projects " ). " </ a >
< li > < a href = download . php > " .tra( " Download BOINC software " ). " </ a >
< li > " .tra( " Enter an email address and password . " ). "
2006-07-17 16:38:53 +00:00
</ ol >
2006-08-29 20:39:44 +00:00
< p >
2009-01-26 23:52:27 +00:00
" .sprintf(
tra ( " Or, if you run several projects, try an %saccount manager%s such as %sGridRepublic%s or %sBAM!%s. " ),
2009-01-29 20:42:45 +00:00
" <a href= \" wiki/Account_managers \" > " ,
2009-01-26 23:52:27 +00:00
" </a> " ,
" <a href= \" http://www.gridrepublic.org \" > " ,
" </a> " ,
" <a href= \" http://bam.boincstats.com/ \" > " ,
" </a> "
) . "
2014-05-19 02:18:35 +00:00
< p >
2014-06-21 00:15:04 +00:00
For Android devices , download the BOINC or
< a href = http :// www . htc . com / www / go / power - to - give - faqs /> HTC Power To Give </ a > app from the Google Play Store .
< a href = http :// www . htc . com / www / go / power - to - give - faqs />
2014-05-19 02:18:35 +00:00
< img align = right valign = top height = 50 src = images / htc - power - to - give . jpg >
2014-06-21 00:15:04 +00:00
</ a >
2006-07-17 16:38:53 +00:00
</ td ></ tr >
" ;
}
function show_create () {
echo "
2008-10-06 20:24:58 +00:00
< tr >< td class = heading_left >
2008-02-26 22:44:33 +00:00
< center >
2009-07-24 04:49:12 +00:00
< span class = section_title > " .tra( " Compute with BOINC " ). " </ span >
2008-02-26 22:44:33 +00:00
< br >
2009-12-19 18:14:04 +00:00
< b >< a class = heading href = \ " trac/wiki/ProjectMain \" > " . tra ( " Documentation " ) . " </a></b>
& middot ; < b >< a class = heading href = \ " trac/wiki/ServerUpdates \" > " . tra ( " Software updates " ) . " </a></b>
2008-02-26 22:44:33 +00:00
</ center >
</ td ></ tr >
2006-07-17 16:38:53 +00:00
< tr >< td >
2008-10-06 20:24:58 +00:00
< ul >
2010-01-20 06:35:57 +00:00
< li >
" ,
tra ( " %1Scientists%2: use BOINC to create a %3volunteer computing project%4 giving you the computing power of thousands of CPUs. " ,
" <b> " , " </b> " , " <a href=volunteer.php> " , " </a> "
),
" <li> " ,
tra ( " %1Universities%2: use BOINC to create a %3Virtual Campus Supercomputing Center%4. " ,
" <b> " , " </b> " ,
" <a href= \" trac/wiki/VirtualCampusSupercomputerCenter \" > " , " </a> "
),
" <li> " ,
tra ( " %1Companies%2: use BOINC for %3desktop Grid computing%4. " ,
" <b> " , " </b> " , " <a href=dg.php> " , " </a> "
),
" </ul>
2006-07-17 16:38:53 +00:00
</ td ></ tr >
" ;
}
function show_other () {
echo "
2008-10-06 20:24:58 +00:00
< tr >< td class = heading_left >
2008-02-26 22:44:33 +00:00
< center >
2009-07-24 04:49:12 +00:00
< span class = section_title > " .tra( " The BOINC project " ). " </ span >
2008-02-26 22:44:33 +00:00
</ center >
</ td ></ tr >
2006-07-17 16:38:53 +00:00
< tr >< td >
2010-01-15 23:08:55 +00:00
< table width = 100 %>< tr >< td width = 50 % valign = top >
< ul >
< li > < a href = \ " dev/ \" > " . tra ( " Message boards " ) . " </a>
< li > < a href = email_lists . php > " .tra( " Email lists " ). " </ a >
< li > < a href = \ " trac/wiki/ProjectPeople \" > " . tra ( " Personnel and contributors " ) . " </a>
< li > < a href = \ " trac/wiki/BoincEvents \" > " . tra ( " Events " ) . " </a>
< li > < a href = \ " trac/wiki/BoincPapers \" > " . tra ( " Papers and talks " ) . " </a>
< li > < a href = \ " trac/wiki/ResearchProjects \" > " . tra ( " Research projects " ) . " </a>
< li > < a href = logo . php > " .tra( " Logos and graphics " ). " </ a >
2010-01-22 04:05:34 +00:00
< li > < a href = \ " http://bolt.berkeley.edu/ \" >Bolt</a> " , tra ( " and " ), " <a href= \" http://bossa.berkeley.edu/ \" >Bossa</a>
2010-01-15 23:08:55 +00:00
</ ul >
</ td >< td valign = top >
2006-07-17 16:38:53 +00:00
< ul >
2015-01-15 00:14:10 +00:00
< li > < a href = trac / wiki / SourceCodeGit > " .tra( " Source code " ). " </ a >
2010-01-15 23:08:55 +00:00
< li > " .tra( " Help wanted " ). "
2008-10-06 20:24:58 +00:00
< ul >
2009-07-24 04:49:12 +00:00
< li > < a href = \ " trac/wiki/DevProjects \" > " . tra ( " Programming " ) . " </a>
< li > < a href = \ " trac/wiki/TranslateIntro \" > " . tra ( " Translation " ) . " </a>
< li > < a href = \ " trac/wiki/AlphaInstructions \" > " . tra ( " Testing " ) . " </a>
< li > < a href = \ " trac/wiki/WikiMeta \" > " . tra ( " Documentation " ) . " </a>
2010-01-09 16:41:17 +00:00
< li > < a href = \ " http://boinc.berkeley.edu/wiki/Publicizing_BOINC \" > " . tra ( " Publicity " ) . " </a>
2008-10-06 20:24:58 +00:00
</ ul >
2009-07-24 04:49:12 +00:00
< li > < a href = \ " trac/wiki/SoftwareDevelopment \" > " . tra ( " Software development " ) . " </a>
< li > < a href = \ " trac/wiki/SoftwareAddon \" > " . tra ( " APIs for add-on software " ) . " </a>
2006-07-17 16:38:53 +00:00
</ ul >
2010-01-15 23:08:55 +00:00
</ td ></ tr ></ table >
2006-07-17 16:38:53 +00:00
< br >
</ td ></ tr >
" ;
}
2006-05-15 00:27:15 +00:00
2006-07-17 16:38:53 +00:00
function show_nsf () {
echo "
< tr >< td >
2008-08-15 16:26:55 +00:00
< img align = left hspace = 8 src = nsf . gif alt = \ " NSF logo \" >
2006-07-17 16:38:53 +00:00
BOINC is supported by the
2008-08-15 16:26:55 +00:00
< a href = \ " http://nsf.gov \" >National Science Foundation</a>
2007-10-05 16:47:07 +00:00
through awards SCI - 022152 9 , SCI - 043 8443 , SCI - 0506411 ,
PHY / 0555655 , and OCI - 0721124.
< span class = note >
2006-07-17 16:38:53 +00:00
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 .
2007-10-05 16:47:07 +00:00
</ span >
2006-07-17 16:38:53 +00:00
</ td ></ tr >
" ;
}
2006-03-06 05:43:12 +00:00
2009-12-21 17:49:28 +00:00
header ( " Content-type: text/html; charset=utf-8 " );
2007-06-22 03:46:42 +00:00
2008-08-15 16:26:55 +00:00
html_tag ();
2004-05-31 18:13:01 +00:00
echo "
2009-12-21 17:49:28 +00:00
< head >
< link rel = \ " shortcut icon \" href= \" logo/favicon.gif \" >
< link rel = \ " stylesheet \" type= \" text/css \" href= \" white.css \" >
2011-11-19 00:29:55 +00:00
< link href = \ " https://plus.google.com/117150698502685192946 \" rel= \" publisher \" />
2009-12-21 17:49:28 +00:00
< title > BOINC </ title >
< meta name = description content = \ " BOINC is an open-source software platform for computing using volunteered resources \" >
< meta name = keywords content = \ " distributed scientific computing supercomputing grid SETI@home public computing volunteer computing \" >
</ head >
< body >
< table width = \ " 100% \" border=0><tr><td valign=top>
< img hspace = 20 vspace = 6 align = left src = \ " logo/www_logo.gif \" alt= \" BOINC logo \" >
</ td >< td align = center >
< span class = \ " subtitle \" >
" .sprintf(tra( " Open - source software for % svolunteer computing % s and % sgrid computing % s . " ), '<a href=volunteer.php><span class=nobr>', '</span></a>', '<a href=dg.php><span class=nobr>', '</span></a>'). "
2010-01-09 16:41:17 +00:00
</ span >< br >< br >
2009-12-21 17:49:28 +00:00
< table >< tr >< td >
2007-04-27 16:27:12 +00:00
" ;
2007-07-10 17:49:51 +00:00
language_form ();
2008-02-26 22:44:33 +00:00
echo " </td><td> " ;
2007-07-10 17:49:51 +00:00
search_form ();
2007-04-27 16:27:12 +00:00
echo "
2009-12-21 17:49:28 +00:00
</ td ></ tr ></ table >
2010-01-09 16:41:17 +00:00
</ td >
< td >
< center >
< a href = http :// www . berkeley . edu >
< img src = images / uc_logo . jpg width = 107 height = 105 title = \ " " . tra ( " BOINC is based at The University of California, Berkeley " ) . " \" alt= \" The University of California logo \" >
</ a >
</ span >
</ center >
</ td >
</ tr ></ table >
2009-12-21 17:49:28 +00:00
< table width = \ " 100% \" border=0 cellspacing=0 cellpadding=4>
< tr >
< td valign = top >
< table width = \ " 100% \" border=0 cellspacing=0 cellpadding=8>
2006-03-06 05:43:12 +00:00
" ;
2006-07-17 16:38:53 +00:00
show_participate ();
show_create ();
show_other ();
2006-11-14 17:30:59 +00:00
show_nsf ();
2006-03-06 05:43:12 +00:00
echo "
2009-12-21 17:49:28 +00:00
</ table >
</ td >
2005-11-04 19:36:50 +00:00
" ;
2006-07-17 16:38:53 +00:00
echo " <td valign=top width=390>
2005-11-04 19:36:50 +00:00
" ;
2006-07-17 16:38:53 +00:00
2008-02-26 22:44:33 +00:00
show_participant ();
2006-07-17 16:38:53 +00:00
show_news_items ();
2004-05-31 18:13:01 +00:00
echo "
2009-12-21 17:49:28 +00:00
</ td ></ tr >
</ table >
2004-05-31 18:13:01 +00:00
" ;
2007-02-16 05:04:08 +00:00
page_tail ( true , true );
2004-05-31 18:13:01 +00:00
?>