2005-05-20 17:42:06 +00:00
< ? php
2005-10-26 05:38:40 +00:00
function type_text ( $type ) {
2005-05-20 17:42:06 +00:00
global $xml ;
if ( $xml ) {
2005-10-26 05:38:40 +00:00
switch ( $type ) {
case " win_old " :
return " Single-mode Windows installer " ;
case " win_new " :
return " Windows installer " ;
case " bare_core " :
2013-10-08 21:40:09 +00:00
return " Command-line client (no GUI) " ;
2005-10-26 05:38:40 +00:00
case " sea " :
return " Self-extracting archive " ;
2013-02-14 04:02:26 +00:00
case " mac_advanced " :
return " Standard GUI " ;
case " apk " :
return " Android Installer " ;
2005-10-26 05:38:40 +00:00
}
2013-02-14 04:02:26 +00:00
} else {
2005-10-26 05:38:40 +00:00
switch ( $type ) {
case " win_old " :
return " <a href=client_windows.php>Single-mode Windows installer</a> " ;
case " win_new " :
return " <a href=win_install.php>Windows installer</a> " ;
case " bare_core " :
2013-10-08 21:40:09 +00:00
return " <a href=bare_core.php>Command-line client (no GUI)</a> " ;
2005-10-26 05:38:40 +00:00
case " sea " :
return " <a href=sea.php>Self-extracting archive</a> " ;
2013-02-14 04:02:26 +00:00
case " mac_advanced " :
return " <a href=mac_advanced.php>Standard GUI</a> " ;
case " apk " :
return " TBD " ;
}
2005-05-20 17:42:06 +00:00
}
}
2013-02-14 04:02:26 +00:00
function linux_info () {
return " Tested on the current Ubuntu distribution; may work on others.
< br > If available , we recommend that you install a
< a href = http :// boinc . berkeley . edu / wiki / Installing_BOINC #Linux>
distribution - specific package </ a >
instead . " ;
}
2013-05-16 21:53:19 +00:00
$w72dev = array (
2013-10-17 17:01:20 +00:00
" num " => " 7.2.23 " ,
2013-05-16 21:53:19 +00:00
" status " => " Development version " ,
2013-10-17 17:01:20 +00:00
" file " => " boinc_7.2.23_windows_intelx86.exe " ,
" vbox_file " => " boinc_7.2.23_windows_intelx86_vbox.exe " ,
" date " => " 17 Oct 2013 " ,
2013-05-16 21:53:19 +00:00
" type " => " win_new " ,
);
2013-04-23 18:32:30 +00:00
$w70 = array (
2013-04-17 16:05:59 +00:00
" num " => " 7.0.64 " ,
2013-04-23 18:32:30 +00:00
" status " => " Recommended version " ,
2013-04-17 16:05:59 +00:00
" file " => " boinc_7.0.64_windows_intelx86.exe " ,
" date " => " 17 Apr 2013 " ,
2012-05-21 16:01:12 +00:00
" type " => " win_new " ,
);
2013-04-23 18:32:30 +00:00
$w70old = array (
2012-06-29 20:57:56 +00:00
" num " => " 7.0.28 " ,
2013-04-23 18:32:30 +00:00
" status " => " Older version " ,
2012-06-29 20:57:56 +00:00
" file " => " boinc_7.0.28_windows_intelx86.exe " ,
" date " => " 21 May 2012 " ,
2011-07-07 14:53:23 +00:00
" type " => " win_new " ,
);
2009-12-09 21:28:17 +00:00
$w66 = array (
2009-10-28 18:28:23 +00:00
" num " => " 6.6.38 " ,
2009-11-02 16:55:48 +00:00
" status " => " Older version (also works on Windows 98, Windows ME) " ,
2009-10-28 18:28:23 +00:00
" file " => " boinc_6.6.38_windows_intelx86.exe " ,
" date " => " 28 Oct 2009 " ,
2009-04-09 20:54:55 +00:00
" type " => " win_new " ,
);
2010-03-05 18:38:49 +00:00
$w5816 = array (
" num " => " 5.8.16 " ,
" status " => " Older version (also works on Windows 95 and NT 4.0) " ,
" file " => " boinc_5.8.16_windows_intelx86.exe " ,
" date " => " 1 Mar 2007 " ,
" type " => " win_new " ,
2009-12-09 21:28:17 +00:00
);
2013-05-16 21:53:19 +00:00
$w72x64dev = array (
2013-10-17 17:01:20 +00:00
" num " => " 7.2.23 " ,
2013-05-16 21:53:19 +00:00
" status " => " Development version " ,
2013-10-17 17:01:20 +00:00
" file " => " boinc_7.2.23_windows_x86_64.exe " ,
" vbox_file " => " boinc_7.2.23_windows_x86_64_vbox.exe " ,
" date " => " 17 Oct 2013 " ,
2013-05-16 21:53:19 +00:00
" type " => " win_new " ,
);
2013-04-23 18:32:30 +00:00
$w70x64 = array (
2013-04-17 16:05:59 +00:00
" num " => " 7.0.64 " ,
2013-04-23 18:32:30 +00:00
" status " => " Recommended version " ,
2013-04-17 16:05:59 +00:00
" file " => " boinc_7.0.64_windows_x86_64.exe " ,
" date " => " 17 Apr 2013 " ,
2012-05-21 16:01:12 +00:00
" type " => " win_new " ,
);
2013-04-23 18:32:30 +00:00
$w70x64old = array (
2012-06-29 20:57:56 +00:00
" num " => " 7.0.28 " ,
2013-04-23 18:32:30 +00:00
" status " => " Older version " ,
2012-06-29 20:57:56 +00:00
" file " => " boinc_7.0.28_windows_x86_64.exe " ,
" date " => " 21 May 2012 " ,
2011-07-07 14:53:23 +00:00
" type " => " win_new " ,
);
2013-05-16 21:53:19 +00:00
$m72dev = array (
2013-10-17 17:01:20 +00:00
" num " => " 7.2.23 " ,
2013-05-16 21:53:19 +00:00
" status " => " Development version (standard GUI) " ,
2013-10-17 17:01:20 +00:00
" file " => " boinc_7.2.23_macOSX_i686.zip " ,
" date " => " 17 Oct 2013 " ,
2013-05-16 21:53:19 +00:00
" type " => " mac_advanced " ,
);
2013-04-23 18:32:30 +00:00
$m70 = array (
2013-04-17 16:05:59 +00:00
" num " => " 7.0.65 " ,
2013-04-23 18:32:30 +00:00
" status " => " Recommended version (standard GUI) " ,
2013-04-17 16:05:59 +00:00
" file " => " boinc_7.0.65_macOSX_i686.zip " ,
" date " => " 17 Apr 2013 " ,
2012-12-14 19:43:01 +00:00
" type " => " mac_advanced " ,
);
2013-04-23 18:32:30 +00:00
$m70old = array (
2012-07-07 05:22:02 +00:00
" num " => " 7.0.31 " ,
2013-04-23 18:32:30 +00:00
" status " => " Older version (standard GUI) " ,
2012-07-07 05:22:02 +00:00
" file " => " boinc_7.0.31_macOSX_i686.zip " ,
" date " => " 7 July 2012 " ,
2012-05-21 16:01:12 +00:00
" type " => " mac_advanced " ,
);
2012-04-12 22:24:51 +00:00
$m612_ppc = array (
" num " => " 6.12.35 " ,
" status " => " Recommended version (standard GUI) " ,
" file " => " boinc_6.12.35_macOSX_universal.zip " ,
" date " => " 11 Aug 2011 " ,
" type " => " mac_advanced " ,
);
2009-05-15 17:14:38 +00:00
$m66 = array (
2009-06-10 20:49:42 +00:00
" num " => " 6.6.36 " ,
2009-12-07 09:03:51 +00:00
" status " => " Older version (standard GUI) (works on OS 10.3.9 - OS 10.5.8) " ,
2009-06-10 20:49:42 +00:00
" file " => " boinc_6.6.36_macOSX_universal.zip " ,
" date " => " 10 June 2009 " ,
2009-04-09 20:54:55 +00:00
" type " => " mac_advanced " ,
);
2013-05-16 21:53:19 +00:00
$m72cdev = array (
2013-10-17 17:01:20 +00:00
" num " => " 7.2.23 " ,
2013-05-16 21:53:19 +00:00
" status " => " Development version (Unix command-line version) " ,
2013-10-17 17:01:20 +00:00
" file " => " boinc_7.2.23_i686-apple-darwin.zip " ,
" date " => " 17 Oct 2013 " ,
2013-05-16 21:53:19 +00:00
" type " => " bare_core " ,
);
2013-04-23 18:32:30 +00:00
$m70c = array (
2013-04-17 16:05:59 +00:00
" num " => " 7.0.65 " ,
2013-04-23 18:32:30 +00:00
" status " => " Recommended version (Unix command-line version) " ,
2013-04-17 16:05:59 +00:00
" file " => " boinc_7.0.65_i686-apple-darwin.zip " ,
" date " => " 17 Apr 2013 " ,
2012-12-14 19:43:01 +00:00
" type " => " bare_core " ,
);
2013-04-23 18:32:30 +00:00
$m70cold = array (
2012-07-07 05:22:02 +00:00
" num " => " 7.0.31 " ,
2013-04-23 18:32:30 +00:00
" status " => " Older version (Unix command-line version) " ,
2012-07-07 05:22:02 +00:00
" file " => " boinc_7.0.31_i686-apple-darwin.zip " ,
" date " => " 29 July 2012 " ,
2012-05-21 16:01:12 +00:00
" type " => " bare_core " ,
);
2012-04-12 22:24:51 +00:00
$m612c_ppc = array (
" num " => " 6.12.35 " ,
" status " => " Recommended version (Unix command-line version) " ,
" file " => " boinc_6.12.35_universal-apple-darwin.zip " ,
" date " => " 11 Aug 2011 " ,
" type " => " bare_core " ,
);
2009-05-15 17:14:38 +00:00
$m66c = array (
2009-06-10 20:49:42 +00:00
" num " => " 6.6.36 " ,
2009-12-07 09:03:51 +00:00
" status " => " Older version (Unix command-line version) (works on OS 10.3.9 - OS 10.5.8) " ,
2009-06-10 20:49:42 +00:00
" file " => " boinc_6.6.36_universal-apple-darwin.zip " ,
" date " => " 10 June 2009 " ,
2009-04-09 20:54:55 +00:00
" type " => " bare_core " ,
);
2011-04-06 18:43:03 +00:00
$l612 = array (
" num " => " 6.12.22 " ,
2011-05-17 17:08:07 +00:00
" status " => " Recommended version " ,
2011-04-06 18:43:03 +00:00
" file " => " boinc_compat_6.12.22_i686-pc-linux-gnu.sh " ,
" date " => " 6 Apr 2011 " ,
" type " => " sea " ,
);
2009-01-22 19:34:58 +00:00
$l66 = array (
2009-10-22 17:52:38 +00:00
" num " => " 6.6.41 " ,
2011-05-17 17:08:07 +00:00
" status " => " Older version " ,
2009-10-22 17:52:38 +00:00
" file " => " boinc_compat_6.6.41_i686-pc-linux-gnu.sh " ,
" date " => " 22 Oct 2009 " ,
2009-09-04 21:42:10 +00:00
" type " => " sea " ,
2011-04-06 18:43:03 +00:00
);
2008-12-22 18:58:45 +00:00
2013-05-16 21:53:19 +00:00
$l72ubuntudev = array (
2013-10-17 17:01:20 +00:00
" num " => " 7.2.23 " ,
2013-05-16 21:53:19 +00:00
" status " => " Development version " ,
2013-10-17 17:01:20 +00:00
" file " => " boinc_7.2.23_i686-pc-linux-gnu.sh " ,
" date " => " 17 Oct 2013 " ,
2013-05-16 21:53:19 +00:00
" type " => " sea " ,
);
2013-04-23 18:32:30 +00:00
$l70ubuntu = array (
2013-04-17 16:05:59 +00:00
" num " => " 7.0.65 " ,
2013-04-23 18:32:30 +00:00
" status " => " Recommended version " ,
2013-04-17 16:05:59 +00:00
" file " => " boinc_7.0.65_i686-pc-linux-gnu.sh " ,
" date " => " 17 Apr 2013 " ,
2012-05-21 16:01:12 +00:00
" type " => " sea " ,
);
2013-04-23 18:32:30 +00:00
$l70ubuntuold = array (
2012-06-29 20:57:56 +00:00
" num " => " 7.0.28 " ,
2013-04-23 18:32:30 +00:00
" status " => " Older version " ,
2012-06-29 20:57:56 +00:00
" file " => " boinc_7.0.28_i686-pc-linux-gnu.sh " ,
" date " => " 21 May 2012 " ,
2011-07-20 17:53:36 +00:00
" type " => " sea " ,
);
2013-05-16 21:53:19 +00:00
$l72ubuntux64dev = array (
2013-10-17 17:01:20 +00:00
" num " => " 7.2.23 " ,
2013-05-16 21:53:19 +00:00
" status " => " Development version " ,
2013-10-17 17:01:20 +00:00
" file " => " boinc_7.2.23_x86_64-pc-linux-gnu.sh " ,
" date " => " 17 Oct 2013 " ,
2013-05-16 21:53:19 +00:00
" type " => " sea " ,
);
2013-04-23 18:32:30 +00:00
$l70ubuntux64 = array (
2013-04-17 16:05:59 +00:00
" num " => " 7.0.65 " ,
2013-04-23 18:32:30 +00:00
" status " => " Recommended version " ,
2013-04-17 16:05:59 +00:00
" file " => " boinc_7.0.65_x86_64-pc-linux-gnu.sh " ,
" date " => " 17 Apr 2013 " ,
2012-05-21 16:01:12 +00:00
" type " => " sea " ,
);
2013-04-23 18:32:30 +00:00
$l70ubuntux64old = array (
2012-06-29 20:57:56 +00:00
" num " => " 7.0.28 " ,
2013-04-23 18:32:30 +00:00
" status " => " Older version " ,
2012-06-29 20:57:56 +00:00
" file " => " boinc_7.0.28_x86_64-pc-linux-gnu.sh " ,
" date " => " 21 May 2012 " ,
2011-07-20 17:53:36 +00:00
" type " => " sea " ,
);
2013-10-10 15:17:47 +00:00
$a72dev = array (
" num " => " 7.2.20 " ,
" status " => " Development Version " ,
" file " => " boinc_7.2.20_arm-android-linux-gnu.apk " ,
" date " => " 10 Oct 2013 " ,
" type " => " apk " ,
);
2013-07-22 17:00:09 +00:00
$a72 = array (
2013-10-10 15:17:47 +00:00
" num " => " 7.2.15 " ,
2013-07-22 17:00:09 +00:00
" status " => " Recommended Version " ,
2013-10-10 15:17:47 +00:00
" file " => " boinc_7.2.15_arm-android-linux-gnu.apk " ,
" date " => " 10 Oct 2013 " ,
2013-07-22 17:00:09 +00:00
" type " => " apk " ,
);
2009-10-14 18:07:49 +00:00
// platform descriptors. For each one, "versions"
// lists versions in reverse time order.
// i.e. the first non-dev version is the current one
2005-05-20 17:42:06 +00:00
$windows = array (
" name " => " Windows " ,
2013-06-14 19:45:44 +00:00
" description " => " 2000/XP/Vista/7/8 " ,
2005-11-10 06:06:11 +00:00
" dbname " => " windows_intelx86 " ,
2005-05-20 17:42:06 +00:00
" versions " => array (
2013-05-16 21:53:19 +00:00
$w72dev ,
2011-12-05 16:02:17 +00:00
$w70 ,
2013-04-23 18:32:30 +00:00
$w70old ,
2009-12-09 21:28:17 +00:00
$w66 ,
2007-03-01 16:38:42 +00:00
$w5816 ,
2005-05-20 17:42:06 +00:00
)
);
2007-04-20 18:47:55 +00:00
$windowsx64 = array (
2008-01-28 15:48:09 +00:00
" name " => " Windows 64-bit " ,
2013-06-14 19:45:44 +00:00
" description " => " XP/Vista/7/8 " ,
2007-04-20 18:47:55 +00:00
" dbname " => " windows_x86_64 " ,
" versions " => array (
2013-05-16 21:53:19 +00:00
$w72x64dev ,
2011-12-05 16:02:17 +00:00
$w70x64 ,
2013-04-23 18:32:30 +00:00
$w70x64old ,
2007-04-20 18:47:55 +00:00
)
);
2005-05-20 17:42:06 +00:00
$mac = array (
2012-04-12 22:24:51 +00:00
" name " => " Mac OS X (Intel only) " ,
2009-12-07 09:00:33 +00:00
" description " => " Version 10.4.0+ " ,
2012-04-12 22:41:35 +00:00
" dbname " => " x86_64-apple-darwin " ,
2005-05-20 17:42:06 +00:00
" versions " => array (
2013-05-16 21:53:19 +00:00
$m72dev ,
2011-12-05 16:02:17 +00:00
$m70 ,
2013-04-23 18:32:30 +00:00
$m70old ,
2013-06-13 19:19:51 +00:00
$m72cdev ,
2011-12-05 16:02:17 +00:00
$m70c ,
2013-04-23 18:32:30 +00:00
$m70cold ,
2012-04-12 22:24:51 +00:00
)
);
$macppc = array (
2012-06-05 20:13:19 +00:00
" name " => " Mac OS X (PowerPC and x86) " ,
2012-04-12 22:24:51 +00:00
" description " => " Version 10.4.0+ " ,
" dbname " => " powerpc-apple-darwin " ,
" versions " => array (
$m612_ppc ,
$m612c_ppc ,
2010-06-03 00:03:10 +00:00
$m66 ,
2009-01-12 03:50:30 +00:00
$m66c ,
2005-05-20 17:42:06 +00:00
)
);
2007-05-17 17:39:31 +00:00
2012-06-05 20:13:19 +00:00
$linux = array (
" name " => " Linux x86 " ,
" description " => linux_info (),
2008-01-15 18:43:00 +00:00
" dbname " => " i686-pc-linux-gnu " ,
" versions " => array (
2013-05-16 21:53:19 +00:00
$l72ubuntudev ,
2011-12-05 16:02:17 +00:00
$l70ubuntu ,
2013-04-23 18:32:30 +00:00
$l70ubuntuold ,
2008-01-15 18:43:00 +00:00
)
);
2007-05-17 17:39:31 +00:00
$linuxx64 = array (
2008-01-28 15:48:09 +00:00
" name " => " Linux x64 " ,
2012-06-05 20:13:19 +00:00
" description " => linux_info (),
" dbname " => " x86_64-pc-linux-gnu " ,
2007-05-17 17:39:31 +00:00
" versions " => array (
2013-05-16 21:53:19 +00:00
$l72ubuntux64dev ,
2011-12-05 16:02:17 +00:00
$l70ubuntux64 ,
2013-04-23 18:32:30 +00:00
$l70ubuntux64old ,
2007-05-17 17:39:31 +00:00
)
);
2013-02-14 04:02:26 +00:00
$linuxcompat = array (
" name " => " Older Linux x86 and x64 " ,
" description " => " For older Linux versions, both x86 and x64; command-line interface only " ,
" dbname " => " i686-pc-linux-gnu " ,
" versions " => array (
$l612 ,
$l66 ,
)
);
2013-07-22 17:00:09 +00:00
$android = array (
2013-07-22 20:10:00 +00:00
" name " => " Android/ARM " ,
" description " => " Android version 2.3 and later<br>We recommend that, rather than downloading BOINC from here,</br>you get it from the Google Play Store or the Amazon app store (for Kindle Fire) " ,
2013-07-22 17:00:09 +00:00
" dbname " => " arm-android-linux-gnu " ,
" versions " => array (
2013-10-10 15:17:47 +00:00
$a72dev ,
2013-07-22 17:00:09 +00:00
$a72 ,
)
);
2005-05-20 17:42:06 +00:00
$platforms = array (
" win " => $windows ,
2007-04-20 18:47:55 +00:00
" winx64 " => $windowsx64 ,
2005-05-20 17:42:06 +00:00
" mac " => $mac ,
2012-04-12 22:31:28 +00:00
" macppc " => $macppc ,
2005-05-20 17:42:06 +00:00
" linux " => $linux ,
2007-05-17 17:39:31 +00:00
" linuxx64 " => $linuxx64 ,
2013-02-14 04:02:26 +00:00
" linuxcompat " => $linuxcompat ,
2013-07-22 17:04:04 +00:00
" android " => $android ,
2005-05-20 17:42:06 +00:00
);
2006-08-01 21:22:25 +00:00
function is_dev ( $v ) {
return ( strstr ( $v [ " status " ], " Development " ) != null );
}
2009-08-12 16:01:46 +00:00
// note: rand() is inclusive
2010-05-24 19:26:59 +00:00
//switch(rand(0,3)) {
switch ( 0 ) {
case 0 : $url_base = " http://boinc.berkeley.edu/dl/ " ; break ;
2012-04-05 19:43:43 +00:00
//case 0: $url_base = "http://boincdl3.ssl.berkeley.edu/mirror/"; break;
//case 1: $url_base = "http://einstein.ligo.caltech.edu/download/boinc/dl/"; break;
//case 2: $url_base = "http://einstein.aei.mpg.de/download/boinc/dl/"; break;
2007-07-10 17:49:51 +00:00
//case 1: $url_base = "http://morel.mit.edu/download/boinc/dl/"; break;
2012-04-05 19:43:43 +00:00
//case 3: $url_base = "http://einstein-dl.phys.uwm.edu/download/boinc/dl/"; break;
2010-04-06 20:32:02 +00:00
//case 4: $url_base = "http://einstein.astro.gla.ac.uk/download/boinc/dl/"; break;
2007-07-10 17:49:51 +00:00
//case 4: $url_base = "http://albert.gravity.psu.edu/download/boinc/dl/"; break;
2010-03-10 06:00:37 +00:00
}
2006-08-01 21:22:25 +00:00
2005-05-20 17:42:06 +00:00
?>