Ejemplo n.º 1
0
function show_version($pname, $i, $v)
{
    if (!$v) {
        return;
    }
    $num = $v["num"];
    $file = $v["file"];
    $status = $v["status"];
    if (is_dev($v)) {
        $status = $status . "\n            <br><span class=dev>\n            (MAY BE UNSTABLE - USE ONLY FOR TESTING)\n            </span>\n        ";
    }
    $path = "dl/{$file}";
    $s = number_format(filesize($path) / 1000000, 2);
    $date = $v["date"];
    $type = $v["type"];
    $type_text = type_text($type);
    $url = version_url($v['file']);
    $link = "<a href=\"{$url}\"><b>Download</b></a> ({$s} MB)";
    if (array_key_exists('vbox_file', $v)) {
        $vbox_file = $v['vbox_file'];
        $vbox_version = $v['vbox_version'];
        $vbox_url = version_url($vbox_file);
        $vbox_path = "dl/{$vbox_file}";
        $vbox_size = number_format(filesize($vbox_path) / 1000000, 2);
        $link .= "<br><a href=\"{$vbox_url}\"><b>Download BOINC + VirtualBox {$vbox_version}</b></a> ({$vbox_size} MB)";
    }
    echo "<tr>\n       <td class=rowlineleft>{$num}</td>\n        <td class=rowline>{$status}</td>\n        <td class=rowline>{$link}</td>\n        <td class=rowlineright>{$date}</td>\n        </tr>\n    ";
}
Ejemplo n.º 2
0
function show_version($pname, $i, $v)
{
    $num = $v["num"];
    $file = $v["file"];
    $status = $v["status"];
    if (is_dev($v)) {
        $status = $status . "\n            <br><span class=dev>\n            (MAY BE UNSTABLE - USE ONLY FOR TESTING)\n            </span>\n        ";
    }
    $path = "dl/{$file}";
    $s = number_format(filesize($path) / 1000000, 2);
    $date = $v["date"];
    $type = $v["type"];
    $type_text = type_text($type);
    $url = version_url($v);
    echo "<tr>\n       <td class=rowlineleft>{$num}</td>\n        <td class=rowline>{$status}</td>\n        <td class=rowline><a href=\"{$url}\"><b>Download</b></a> ({$s} MB)</td>\n        <td class=rowlineright>{$date}</td>\n        </tr>\n    ";
}