2002-08-12 20:16:55 +00:00
|
|
|
<?php
|
2002-08-14 00:27:18 +00:00
|
|
|
|
2004-06-11 18:50:15 +00:00
|
|
|
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");
|
2005-11-30 22:52:23 +00:00
|
|
|
require_once("../inc/translation.inc");
|
2006-01-09 08:37:44 +00:00
|
|
|
require_once("../inc/text_transform.inc");
|
2004-06-11 18:50:15 +00:00
|
|
|
require_once("../project/project.inc");
|
|
|
|
require_once("../project/project_news.inc");
|
2003-11-07 20:28:23 +00:00
|
|
|
|
2002-08-12 20:16:55 +00:00
|
|
|
|
2004-06-11 18:50:15 +00:00
|
|
|
function show_nav() {
|
2006-05-09 18:25:15 +00:00
|
|
|
$config = get_config();
|
|
|
|
$master_url = parse_config($config, "<master_url>");
|
2003-12-10 00:54:17 +00:00
|
|
|
echo "
|
|
|
|
<h3>Join ".PROJECT." </h3>
|
|
|
|
<p>
|
2006-05-09 18:25:15 +00:00
|
|
|
<ol>
|
2005-10-29 05:30:57 +00:00
|
|
|
<li><a href=info.php>".tr(RULES_TITLE)."</a>
|
2006-05-09 18:25:15 +00:00
|
|
|
<li><a target = _new href=http://boinc.berkeley.edu/download.php>Download BOINC</a>
|
|
|
|
<li> When prompted, enter <b>$master_url</b>
|
|
|
|
</ol>
|
2002-12-11 00:12:42 +00:00
|
|
|
|
2003-12-10 00:54:17 +00:00
|
|
|
<h3>Returning participants</h3>
|
|
|
|
<ul>
|
2004-06-11 18:50:15 +00:00
|
|
|
<li><a href=home.php>Your account</a> - view stats, modify preferences
|
|
|
|
<li><a href=team.php>Teams</a> - create or join a team
|
2006-05-09 18:25:15 +00:00
|
|
|
<li><a href=apps.php>".tr(APPS_TITLE)."</a>
|
2003-12-10 00:54:17 +00:00
|
|
|
</ul>
|
|
|
|
<h3>Community</h3>
|
|
|
|
<ul>
|
2004-05-12 17:54:23 +00:00
|
|
|
<li><a href=".URL_BASE."profile_menu.php>Participant profiles</a>
|
2004-07-21 21:42:30 +00:00
|
|
|
<li><a href=forum_index.php>Message boards</a>
|
2005-02-23 00:42:14 +00:00
|
|
|
<li><a href=forum_help_desk.php>Questions and answers</a>
|
2003-12-10 00:54:17 +00:00
|
|
|
</ul>
|
2004-04-14 20:55:37 +00:00
|
|
|
<h3>Project totals and leader boards</h3>
|
2004-06-11 18:50:15 +00:00
|
|
|
<ul>
|
|
|
|
<li><a href=top_users.php>Top participants</a>
|
|
|
|
<li><a href=top_hosts.php>Top computers</a>
|
2005-01-04 18:31:15 +00:00
|
|
|
<li><a href=top_teams.php>Top teams</a>
|
2004-06-11 18:50:15 +00:00
|
|
|
<li><a href=stats.php>Other statistics</a></h3>
|
|
|
|
</ul>
|
2004-03-20 01:35:37 +00:00
|
|
|
";
|
2004-06-11 18:50:15 +00:00
|
|
|
}
|
|
|
|
|
2004-11-18 20:01:12 +00:00
|
|
|
$caching = false;
|
|
|
|
|
|
|
|
if ($caching) {
|
|
|
|
start_cache(INDEX_PAGE_TTL);
|
|
|
|
}
|
2004-06-11 18:50:15 +00:00
|
|
|
|
|
|
|
$stopped = project_is_stopped();
|
2004-10-20 05:45:43 +00:00
|
|
|
$rssname = PROJECT . " RSS 2.0" ;
|
|
|
|
$rsslink = URL_BASE . "rss_main.php";
|
2004-06-11 18:50:15 +00:00
|
|
|
|
|
|
|
echo "
|
2005-02-26 06:23:32 +00:00
|
|
|
<head>
|
2004-06-24 20:08:49 +00:00
|
|
|
<title>".PROJECT."</title>
|
2004-06-11 18:50:15 +00:00
|
|
|
<link rel=stylesheet type=text/css href=white.css>
|
2004-10-20 05:45:43 +00:00
|
|
|
<link rel=alternate type=text/xml title=\"$rssname\" href=\"$rsslink\" />
|
2005-02-26 06:23:32 +00:00
|
|
|
</head><body>
|
2004-06-24 20:08:49 +00:00
|
|
|
<h1>".PROJECT."</h1>
|
2004-06-11 18:50:15 +00:00
|
|
|
<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) {
|
2004-03-20 01:35:37 +00:00
|
|
|
echo "
|
2004-06-11 18:50:15 +00:00
|
|
|
<td valign=top bgcolor=f4eeff>
|
|
|
|
<b>User of the day</b><br><br>
|
2004-03-20 01:35:37 +00:00
|
|
|
";
|
2004-06-11 18:50:15 +00:00
|
|
|
$user = lookup_user_id($profile->userid);
|
|
|
|
echo uotd_thumbnail($profile, $user);
|
|
|
|
echo user_links($user)."<br>";
|
2006-01-09 08:37:44 +00:00
|
|
|
echo sub_sentence(output_transform(strip_tags($profile->response1)), ' ', 150, true);
|
2004-06-11 18:50:15 +00:00
|
|
|
echo "</td></tr>\n";
|
2004-03-20 01:35:37 +00:00
|
|
|
}
|
2003-12-10 00:54:17 +00:00
|
|
|
}
|
2004-06-11 18:50:15 +00:00
|
|
|
|
2003-12-10 00:54:17 +00:00
|
|
|
echo "
|
2004-06-11 18:50:15 +00:00
|
|
|
<tr><td valign=top bgcolor=dddddd>
|
|
|
|
<b>News</b>
|
|
|
|
<p>
|
2003-11-28 23:11:22 +00:00
|
|
|
";
|
2004-05-31 17:37:22 +00:00
|
|
|
show_news($project_news, 5);
|
|
|
|
if (count($project_news > 5)) {
|
|
|
|
echo "<a href=old_news.php>...more</a>\n";
|
|
|
|
}
|
2003-11-28 23:11:22 +00:00
|
|
|
echo "
|
2004-06-11 18:50:15 +00:00
|
|
|
<p>
|
|
|
|
<font size=-2>News is available as an
|
2006-05-09 18:25:15 +00:00
|
|
|
<a href=rss_main.php>RSS feed</a> <img src=img/xml.gif>.</font>
|
2004-06-11 18:50:15 +00:00
|
|
|
</td>
|
|
|
|
</tr></table>
|
2005-04-06 19:41:31 +00:00
|
|
|
<font color=ffffff>
|
2006-04-28 18:31:32 +00:00
|
|
|
<!--
|
2003-02-12 23:06:49 +00:00
|
|
|
";
|
|
|
|
|
2002-12-16 21:41:41 +00:00
|
|
|
include 'schedulers.txt';
|
2002-11-26 21:49:53 +00:00
|
|
|
|
2006-04-28 18:31:32 +00:00
|
|
|
echo "
|
|
|
|
-->
|
|
|
|
</font>
|
|
|
|
";
|
2002-11-26 21:49:53 +00:00
|
|
|
|
2004-11-18 20:01:12 +00:00
|
|
|
if ($caching) {
|
|
|
|
page_tail_main(true);
|
|
|
|
end_cache(INDEX_PAGE_TTL);
|
|
|
|
} else {
|
|
|
|
page_tail_main();
|
|
|
|
}
|
2003-02-12 23:06:49 +00:00
|
|
|
|
|
|
|
?>
|