// URL options: // xml=1 Show results as XML (other options are ignored) // dev=1 Show "development" versions // min_version=x show no versions earlier than x // max_version=x show no versions later than x // version=x show version x // platform=x show only versions for platform x (win/mac/linux/solaris) require_once "docutil.php"; require_once "versions.inc"; $xml = get_str2("xml"); $dev = get_str2("dev"); $pname = get_str2("platform"); $min_version = get_str2("min_version"); $max_version = get_str2("max_version"); $version = get_str2("version"); $type_name = get_str2("type"); $client_info = $_SERVER['HTTP_USER_AGENT']; // if not XML, dev defaults to 1 // if (!$xml) { if ($dev === null) { $dev = 1; } } function dl_item($x, $y) { echo "<tr><td valign=top align=right width=\"30%\">{$x}</td>\n <td>{$y}</td></tr>\n "; } function version_url($file) { global $url_base;
echo "Linux users: BOINC is available as a package for many Linux distributions. It is available for Linux/ARM as a package for Debian and Ubuntu for ARM, and Raspbian (for Raspberry Pi)."; } if ($pname != 'android') { echo "\n <p>\n After downloading BOINC you must <b>install</b> it:\n typically this means double-clicking on the file icon\n when the download is finished.\n "; } echo "\n <p>\n <center>\n <a href=\"wiki/System_requirements\"><span class=nobr>" . tra("System requirements") . "</span></a>\n · <a href=\"wiki/Release_Notes\"><span class=nobr>" . tra("Release notes") . "</span></a>\n · <a href=\"wiki/BOINC_Help\"><span class=nobr>" . tra("Help") . "</span></a>\n · <a href=download_all.php><span class=nobr>" . tra("All versions") . "</span></a>\n · <a href=\"trac/wiki/VersionHistory\">" . tra("Version history") . "</a>\n · <a href=http://boinc.berkeley.edu/wiki/GPU_computing>" . tra("GPU computing") . "</a>\n </center>\n </td>\n <td valign=top>\n "; show_pictures(); echo "\n </td>\n </tr></table>\n "; } if (get_str2('xml')) { $args = strstr($_SERVER['REQUEST_URI'], '?'); Header("Location: download_all.php{$args}"); exit; } page_head(tra("BOINC: compute for science")); if (get_str2('all_platforms')) { show_download(null); } else { if (strstr($client_info, 'Windows')) { if (strstr($client_info, 'Win64') || strstr($client_info, 'WOW64')) { show_download('winx64'); } else { show_download('win'); } } else { if (strstr($client_info, 'Mac')) { if (strstr($client_info, 'PPC Mac OS X')) { show_download('macppc'); } else { show_download('mac'); }
list_end(); echo "\n </form>\n "; } function email_contact($vol) { echo "\n <p>\n <h2>Contact {$vol->name} by email</h2>\n <form action=help_vol.php>\n <input type=hidden name=volid value=\"{$vol->id}\">\n "; list_start(); list_item("Your email address", input("email_addr", "")); list_item("Subject<br><span class=note>Include 'BOINC' in the subject so {$vol->name} will know it's not spam</span>", input("subject", "")); list_item("Message<br><span class=note>\n \n Please include a detailed description of the problem\n you're experiencing.\n If possible, include the contents of BOINC's message log.\n </span>", textarea("message", "")); list_item("", "<input type=submit name=send_email value=OK>"); list_end(); echo "</form>\n "; } $send_email = get_str2('send_email'); $rate = get_str2('rate'); session_set_cookie_params(86400 * 365); session_start(); $uid = session_id(); if ($send_email) { $volid = $_GET['volid']; $subject = stripslashes($_GET['subject']); $vol = vol_lookup($volid); if (!$vol || $vol->hide) { boinc_error_page("No such volunteer {$volid}"); } $msg = stripslashes($_GET['message']); if (!$msg) { boinc_error_page("You must supply a message"); } $body = "The following message was sent by a BOINC Help user.\n";