Example #1
0
             show_result_short($res);
             break;
         case "host":
             show_host_short($res);
             break;
         case "app_version":
             show_app_version_short($res);
             break;
         case "workunit":
             show_workunit_short($res);
             break;
     }
 } else {
     switch ($table) {
         case "platform":
             show_platform($res);
             break;
         case "app":
             show_app($res);
             break;
         case "app_version":
             show_app_version($res);
             break;
         case "host":
             show_host($res);
             break;
         case "workunit":
             show_workunit($res);
             break;
         case "result":
             show_result($res);
Example #2
0
    boinc_error_page("version not found\n");
}
if ($xml) {
    header('Content-type: text/xml');
    echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n<versions>\n";
    if (FALSE === strpos($client_info, '6.8.')) {
        foreach ($platforms as $short_name => $p) {
            show_platform_xml($short_name, $p, $dev);
        }
    }
    echo "\n</versions>\n";
} else {
    if ($pname) {
        $p = $platforms[$pname];
        $name = $p['name'];
        page_head("Download BOINC client software for {$name}");
        echo "<table width=\"100%\" cellpadding=4 >";
        show_platform($pname, $p, $dev);
        list_end();
    } else {
        page_head("Download BOINC client software");
        echo "\n            <table width=\"100%\" cellpadding=4 >\n        ";
        foreach ($platforms as $short_name => $p) {
            show_platform($short_name, $p, $dev);
        }
        list_end();
        echo "\n            <h3>Other platforms</h3>\n            If your computer is not of one of these types, you can\n            <ul>\n            <li> <a href=\"wiki/Anonymous_platform\">make your own client software</a> or\n            <li> <a href=\"trac/wiki/DownloadOther\">download executables from a third-party site</a>\n                (available for Solaris/Opteron, Linux/Opteron, Linux/PPC, HP-UX, and FreeBSD, and others).\n            </ul>\n        ";
    }
    echo "\n        <hr size=1>\n        The information on this page can be\n        <a href=\"trac/wiki/DownloadInfo\">\n        restricted by platform and/or version number,\n        or presented  in XML format</a>.\n    ";
    page_tail();
}