1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
|
<?php
require_once("../inc/db.inc");
require_once("../inc/util.inc");
require_once("../inc/news.inc");
require_once("../inc/cache.inc");
require_once("../inc/uotd.inc");
require_once("../inc/sanitize_html.inc");
require_once("../inc/translation.inc");
require_once("../inc/text_transform.inc");
require_once("../project/project.inc");
require_once("../project/project_news.inc");
function show_nav() {
echo "
<h3>Join ".PROJECT." </h3>
<p>
<ul>
<li><a href=info.php>".tr(RULES_TITLE)."</a>
<li><a href=http://boinc.berkeley.edu/intro_user.php>Getting started</a>
<li><a href=create_account_form.php>".tr(CREATE_AC_CREATE)."</a>
<li><a href=apps.php>".tr(APPS_TITLE)."</a>
</ul>
<h3>Returning participants</h3>
<ul>
<li><a href=home.php>Your account</a> - view stats, modify preferences
<li><a href=team.php>Teams</a> - create or join a team
<li><a href=http://boinc.berkeley.edu/download.php>Download BOINC</a>
<li><a href=download_network.php>Add-ons</a>
</ul>
<h3>Community</h3>
<ul>
<li><a href=".URL_BASE."profile_menu.php>Participant profiles</a>
<li><a href=forum_index.php>Message boards</a>
<li><a href=forum_help_desk.php>Questions and answers</a>
</ul>
<h3>Project totals and leader boards</h3>
<ul>
<li><a href=top_users.php>Top participants</a>
<li><a href=top_hosts.php>Top computers</a>
<li><a href=top_teams.php>Top teams</a>
<li><a href=stats.php>Other statistics</a></h3>
</ul>
";
}
$caching = false;
if ($caching) {
start_cache(INDEX_PAGE_TTL);
}
$stopped = project_is_stopped();
$rssname = PROJECT . " RSS 2.0" ;
$rsslink = URL_BASE . "rss_main.php";
echo "
<head>
<title>".PROJECT."</title>
<link rel=stylesheet type=text/css href=white.css>
<link rel=alternate type=text/xml title=\"$rssname\" href=\"$rsslink\" />
</head><body>
<h1>".PROJECT."</h1>
<table cellpadding=8 cellspacing=4>
<tr><td rowspan=2 valign=top width=40%>
";
if ($stopped) {
echo "
<b>".PROJECT." is temporarily shut down for maintenance.
Please try again later.
";
} else {
db_init();
show_nav();
}
echo"
<p>
Powered by <a href=http://boinc.berkeley.edu><img align=middle border=0 src=http://boinc.berkeley.edu/boinc_logo_trans.gif></a>
</td>
";
if (!$stopped) {
$profile = get_current_uotd();
if ($profile) {
echo "
<td valign=top bgcolor=f4eeff>
<b>User of the day</b><br><br>
";
$user = lookup_user_id($profile->userid);
echo uotd_thumbnail($profile, $user);
echo user_links($user)."<br>";
echo sub_sentence(output_transform(strip_tags($profile->response1)), ' ', 150, true);
echo "</td></tr>\n";
}
}
echo "
<tr><td valign=top bgcolor=dddddd>
<b>News</b>
<p>
";
show_news($project_news, 5);
if (count($project_news > 5)) {
echo "<a href=old_news.php>...more</a>\n";
}
echo "
<p>
<font size=-2>News is available as an
<a href=rss_main.php>RSS feed</a> <img src=xml.gif>.</font>
</td>
</tr></table>
<font color=ffffff>
";
include 'schedulers.txt';
echo "</font>\n";
if ($caching) {
page_tail_main(true);
end_cache(INDEX_PAGE_TTL);
} else {
page_tail_main();
}
?>
|