Exemplo n.º 1
0
function page_head($title, $extra = "")
{
    global $book;
    global $chap_num;
    if ($book) {
        echo "<br><h2>{$chap_num}. {$title}</h2>\n";
        return;
    }
    if (defined("CHARSET")) {
        header("Content-type: text/html; charset=" . tr(CHARSET));
    }
    html_tag();
    echo "\n        <head>\n        <link rel=\"stylesheet\" type=\"text/css\" href=\"white.css\">\n        <link rel=\"shortcut icon\" href=\"logo/favicon.gif\">\n        <title>{$title}</title>\n        {$extra}\n        </head>\n        <body bgcolor='ffffff'>\n        <table width='100%'>\n        <tr>\n        <td><center><h1>{$title}</h1></center>\n        <td align=right><a href=index.php><img src=\"logo/www_logo.gif\" alt=\"BOINC logo\"></a>\n        <br>\n";
    google_search_form();
    echo "\n        </td>\n        </tr></table>\n        <hr size=1>\n    ";
}
Exemplo n.º 2
0
    echo "\n        <tr><td class=heading_left>\n    <a href=https://www.facebook.com/BOINC-32672338584/><img width=36 src=images/facebook_logo.jpg align=left title='BOINC on Facebook'></a>\n    <a href=https://plus.google.com/+boinc><img width=36 src=images/google_plus_logo.jpg align=left title='BOINC on Google+'></a>\n        <center>\n        <span class=section_title>" . tra("Volunteer") . "</span>\n        <br>\n        <a class=heading href=download.php><b>" . tra("Download") . "</b></a>\n        &middot; <a class=heading href=\"/wiki/BOINC_Help\"><b>" . tra("Help") . "</b></a>\n        &middot; <a class=heading href=\"wiki/User_manual\"><b><span class=nobr>" . tra("Documentation") . "</span></b></a> \n        &middot; <a class=heading href=addons.php><b><span class=nobr>" . tra("Add-ons") . "</span></b></a> \n        &middot; <a class=heading href=links.php><b><span class=nobr>" . tra("Links") . "</span></b></a> \n        </center>\n        </td></tr>\n        <tr><td>\n        <p>\n        " . 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:") . "\n        <ol>\n        <li> <a href=projects.php>" . tra("Choose projects") . "</a>\n        <li> <a href=download.php>" . tra("Download BOINC software") . "</a>\n        <li> " . tra("Enter an email address and password.") . "\n        </ol>\n        <p>\n        " . sprintf(tra("Or, if you run several projects, try an %saccount manager%s such as %sGridRepublic%s or %sBAM!%s. "), "<a href=\"wiki/Account_managers\">", "</a>", "<a href=\"https://www.gridrepublic.org\">", "</a>", "<a href=\"https://bam.boincstats.com/\">", "</a>") . "\n        <p>\n        For Android devices, download the BOINC\n" . "\n        app from the Google Play Store or (for Kindle) the Amazon App Store.\n" . "\n        </td></tr>\n    ";
}
function show_create()
{
    echo "\n        <tr><td class=heading_left>\n        <center>\n        <span class=section_title>" . tra("Compute with BOINC") . "</span>\n        <br>\n        <b><a class=heading href=\"trac/wiki/ProjectMain\">" . tra("Documentation") . "</a></b>\n        &middot; <b><a class=heading href=\"trac/wiki/ServerUpdates\">" . tra("Software updates") . "</a></b>\n        </center>\n        </td></tr>\n        <tr><td>\n        <ul>\n        <li>\n    ", tra("%1Scientists%2: use BOINC to create a %3volunteer computing project%4, giving you the power of thousands of CPUs and GPUs.", "<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>\n        </td></tr>\n    ";
}
function show_other()
{
    echo "\n        <tr><td class=heading_left>\n        <center>\n        <span class=section_title>" . tra("About BOINC") . "</span>\n        </center>\n        </td></tr>\n        <tr><td>\n            <table width=100%>\n            <tr valign=top> <td>\n            <center><font size=+1>Project</font></center>\n                <ul>\n                <li> <a href=\"dev/\">" . tra("Message boards") . "</a>\n                <li> <a href=\"trac/wiki/EmailLists\">" . tra("Email lists") . "</a>\n                <li> <a href=\"trac/wiki/BoincEvents\">" . tra("Events") . "</a>\n                <li> <a href=logo.php>Logos and graphics</a>\n                <li> <a href=\"trac/wiki/ProjectGovernance\">Governance</a>\n                <li> <a href=\"trac/wiki/ProjectPeople\">Contact</a>\n                </ul>\n            </td><td>\n            <center><font size=+1>Software</font></center>\n                <ul>\n                <li> <a href=trac/wiki/SourceCodeGit>" . tra("Source code") . "</a>\n                <li> <a href=https://github.com/BOINC/boinc/issues>Report bugs</a>\n                <li> <a href=\"trac/wiki/SoftwareBuilding\">" . tra("Building BOINC") . "</a>\n                <li> <a href=\"trac/wiki/SoftwareDevelopment\">" . tra("Design documents") . "</a>\n                <li> <a href=\"trac/wiki/DevProcess\">" . tra("Development process") . "</a>\n                <li> <a href=\"trac/wiki/DevProjects\">" . tra("Volunteer") . "</a>\n                <li> <a href=\"trac/wiki/SoftwareAddon\">" . tra("APIs") . "</a>\n                <li> <a href=trac/wiki/BoincDocker>BOINC and Docker</a>\n                </ul>\n            </td><td valign=top>\n\n            <center><font size=+1>Contribute</font></center>\n                <ul>\n                <li> <a href=trac/wiki/ContributePage>Overview</a>\n                <li> <a href=\"trac/wiki/DevProjects\">" . tra("Programming") . "</a>\n                <li> <a href=\"trac/wiki/TranslateIntro\">" . tra("Translation") . "</a>\n                <li> <a href=\"trac/wiki/AlphaInstructions\">" . tra("Testing") . "</a>\n                <li> <a href=\"trac/wiki/WikiMeta\">" . tra("Documentation") . "</a>\n                <li> <a href=\"http://boinc.berkeley.edu/wiki/Publicizing_BOINC\">" . tra("Publicity") . "</a>\n                </ul>\n            </td></tr></table>\n        </td></tr>\n    ";
}
function show_nsf()
{
    echo "\n        <tr><td>\n        <img align=left hspace=8 src=nsf.gif alt=\"NSF logo\">\n        BOINC is supported by the\n        <a href=\"http://nsf.gov\">National Science Foundation</a>\n        through awards SCI-0221529, SCI-0438443, SCI-0506411,\n                PHY/0555655, and OCI-0721124.\n        <span class=note>\n        Any opinions, findings, and conclusions or recommendations expressed in\n        this material are those of the author(s)\n        and do not necessarily reflect the views of the National Science Foundation.\n        </span>\n        </td></tr>\n    ";
}
header("Content-type: text/html; charset=utf-8");
html_tag();
$rh_col_width = 390;
echo "\n    <head>\n    <link rel=\"shortcut icon\" href=\"logo/favicon.gif\">\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"white.css\">\n    <link href=\"https://plus.google.com/117150698502685192946\" rel=\"publisher\" />\n    <title>BOINC</title>\n    <meta name=description content=\"BOINC is an open-source software platform for computing using volunteered resources\">\n    <meta name=keywords content=\"distributed scientific computing supercomputing grid SETI@home public computing volunteer computing \">\n    </head>\n    <body>\n    <table width=\"100%\" border=0><tr>\n    <td valign=top>\n    <img hspace=20 vspace=6 align=left src=\"logo/www_logo.gif\" alt=\"BOINC logo\">\n    </td>\n    <td align=center>\n    <span class=\"title\">\n    " . sprintf(tra("Open-source software for volunteer computing")) . "\n    </span><br><br>\n    </td>\n    <td width={$rh_col_width} align=right>\n";
google_search_form("https:boinc.berkeley.edu");
language_form();
echo "\n    </td></tr>\n    </table>\n\n    <table width=\"100%\" border=0 cellspacing=0 cellpadding=4>\n    <tr>\n    <td valign=top>\n    <table width=\"100%\" border=0 cellspacing=0 cellpadding=8>\n";
show_participate();
show_create();
show_other();
//show_nsf();
echo "\n    </table>\n    </td>\n";
echo " <td valign=top width=390>\n";
show_participant();
show_news_items();
echo "\n    </td></tr>\n    </table>\n";
page_tail(true, true);
Exemplo n.º 3
0
$rssname = PROJECT . " RSS 2.0";
$rsslink = url_base() . "rss_main.php";
header("Content-type: text/html; charset=utf-8");
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">";
echo "<html>\n    <head>\n    <title>" . PROJECT . "</title>\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"main.css\" media=\"all\" />\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"" . STYLESHEET . "\">\n    <link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . $rssname . "\" href=\"" . $rsslink . "\">\n";
include 'schedulers.txt';
if (defined("SHORTCUT_ICON")) {
    echo '<link rel="icon" type="image/x-icon", href="' . SHORTCUT_ICON . '"/>';
}
echo "\n    </head><body>\n    <table width=\"100%\">\n    <tr>\n    <td>\n    <div class=page_title>" . PROJECT . "</div>\n    </td>\n    <td align=right valign=bottom>\n";
if (!$stopped) {
    get_logged_in_user(false);
    show_login_info();
    echo "<p>";
}
google_search_form(URL_BASE);
echo "\n    </td></tr></table>\n    <table cellpadding=\"8\" cellspacing=\"4\" class=\"table table-bordered\">\n    <tr><td rowspan=\"2\" valign=\"top\" width=\"40%\">\n";
if ($stopped) {
    echo "\n        <b>" . PROJECT . " is temporarily shut down for maintenance.\n        Please try again later</b>.\n    ";
} else {
    show_nav();
}
echo "\n    <p>\n    <a href=\"https://boinc.berkeley.edu/\"><img align=\"middle\" border=\"0\" src=\"img/pb_boinc.gif\" alt=\"Powered by BOINC\"></a>\n    </p>\n    </td>\n";
if (!$stopped && !DISABLE_PROFILES) {
    $profile = get_current_uotd();
    if ($profile) {
        echo "\n            <td class=uotd>\n            <h2 class=headline>" . tra("User of the day") . "</h2>\n        ";
        show_uotd($profile);
        echo "</td></tr>\n";
    }
}