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>");
|
2007-01-03 16:18:43 +00:00
|
|
|
echo "<div id=\"mainnav\">
|
2007-03-22 02:07:08 +00:00
|
|
|
<h2>About ".PROJECT."</h2>
|
|
|
|
XXX is a research project that uses Internet-connected
|
|
|
|
computers to do research in XXX.
|
|
|
|
You can participate by downloading and running a free program
|
|
|
|
on your computer.
|
2003-12-10 00:54:17 +00:00
|
|
|
<p>
|
2007-05-26 21:15:58 +00:00
|
|
|
XXX is based at
|
|
|
|
[describe your institution, with link to web page]
|
2007-03-22 02:07:08 +00:00
|
|
|
<ul>
|
2007-05-26 21:15:58 +00:00
|
|
|
<li> [Link to page describing your research in detail]
|
|
|
|
<li> [Link to page listing project personnel, and an email address]
|
2007-03-22 02:07:08 +00:00
|
|
|
</ul>
|
|
|
|
<h2>Join ".PROJECT."</h2>
|
|
|
|
<ul>
|
2007-11-02 14:43:02 +00:00
|
|
|
<li><a href=\"info.php\">".tra("Read our rules and policies")."</a>
|
2007-03-22 02:07:08 +00:00
|
|
|
<li> This project uses BOINC.
|
|
|
|
If you're already running BOINC, select Attach to Project.
|
|
|
|
If not, <a target=\"_new\" href=\"http://boinc.berkeley.edu/download.php\">download BOINC</a>.
|
|
|
|
<li> When prompted, enter <br><b>".$master_url."</b>
|
|
|
|
<li> If you're running a command-line or pre-5.0 version of BOINC,
|
2007-07-18 19:57:52 +00:00
|
|
|
<a href=\"create_account_form.php\">create an account</a> first.
|
2007-03-22 02:07:08 +00:00
|
|
|
<li> If you have any problems,
|
2007-07-18 19:57:52 +00:00
|
|
|
<a target=\"_new\" href=\"http://boinc.berkeley.edu/help.php\">get help here</a>.
|
2007-03-22 02:07:08 +00:00
|
|
|
</ul>
|
2002-12-11 00:12:42 +00:00
|
|
|
|
2007-01-03 16:18:43 +00:00
|
|
|
<h2>Returning participants</h2>
|
2003-12-10 00:54:17 +00:00
|
|
|
<ul>
|
2007-01-03 16:18:43 +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
|
|
|
|
<li><a href=\"cert1.php\">Certificate</a>
|
2007-11-02 14:43:02 +00:00
|
|
|
<li> <a href=\"apps.php\">".tra("Applications")."</a>
|
2003-12-10 00:54:17 +00:00
|
|
|
</ul>
|
2007-01-03 16:18:43 +00:00
|
|
|
<h2>Community</h2>
|
2003-12-10 00:54:17 +00:00
|
|
|
<ul>
|
2007-11-07 17:23:29 +00:00
|
|
|
<li><a href=\"profile_menu.php\">Profiles</a>
|
|
|
|
<li><a href=\"user_search.php\">User search</a>
|
2007-01-03 16:18:43 +00:00
|
|
|
<li><a href=\"forum_index.php\">Message boards</a>
|
|
|
|
<li><a href=\"forum_help_desk.php\">Questions and answers</a>
|
2007-03-22 02:07:08 +00:00
|
|
|
<li><a href=\"stats.php\">Statistics</a>
|
2004-06-11 18:50:15 +00:00
|
|
|
</ul>
|
2007-01-03 16:18:43 +00:00
|
|
|
</div>
|
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
|
|
|
|
2006-12-07 23:39:23 +00:00
|
|
|
$stopped = web_stopped();
|
2004-10-20 05:45:43 +00:00
|
|
|
$rssname = PROJECT . " RSS 2.0" ;
|
2007-11-18 22:42:47 +00:00
|
|
|
$rsslink = URL_BASE . "rss_main.php";
|
2004-06-11 18:50:15 +00:00
|
|
|
|
2007-01-03 16:18:43 +00:00
|
|
|
if (defined("CHARSET")) {
|
|
|
|
header("Content-type: text/html; charset=".tr(CHARSET));
|
|
|
|
}
|
|
|
|
|
|
|
|
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd\">";
|
|
|
|
echo "<html>
|
2005-02-26 06:23:32 +00:00
|
|
|
<head>
|
2007-01-03 16:18:43 +00:00
|
|
|
<title>".PROJECT."</title>
|
|
|
|
<link rel=\"stylesheet\" type=\"text/css\" href=\"white.css\">
|
2007-01-19 18:50:29 +00:00
|
|
|
<link rel=\"alternate\" type=\"application/rss+xml\" title=\"".$rssname."\" href=\"".$rsslink."\">
|
2005-02-26 06:23:32 +00:00
|
|
|
</head><body>
|
2007-01-03 16:18:43 +00:00
|
|
|
<h1>".PROJECT."</h1>
|
|
|
|
<table cellpadding=\"8\" cellspacing=\"4\">
|
|
|
|
<tr><td rowspan=\"2\" valign=\"top\" width=\"40%\">
|
|
|
|
";
|
2004-06-11 18:50:15 +00:00
|
|
|
|
|
|
|
if ($stopped) {
|
|
|
|
echo "
|
|
|
|
<b>".PROJECT." is temporarily shut down for maintenance.
|
2007-01-03 16:18:43 +00:00
|
|
|
Please try again later</b>.
|
2004-06-11 18:50:15 +00:00
|
|
|
";
|
|
|
|
} else {
|
|
|
|
db_init();
|
|
|
|
show_nav();
|
|
|
|
}
|
|
|
|
|
2007-01-03 16:18:43 +00:00
|
|
|
echo "
|
2004-06-11 18:50:15 +00:00
|
|
|
<p>
|
2008-05-09 16:47:42 +00:00
|
|
|
<a href=\"http://boinc.berkeley.edu/\"><img align=\"middle\" border=\"0\" src=\"img/pb_boinc.gif\" alt=\"Powered by BOINC\"></a>
|
2007-11-17 15:02:19 +00:00
|
|
|
</p>
|
2004-06-11 18:50:15 +00:00
|
|
|
</td>
|
|
|
|
";
|
|
|
|
|
|
|
|
if (!$stopped) {
|
|
|
|
$profile = get_current_uotd();
|
|
|
|
if ($profile) {
|
2004-03-20 01:35:37 +00:00
|
|
|
echo "
|
2007-01-03 16:18:43 +00:00
|
|
|
<td id=\"uotd\">
|
|
|
|
<h2>User of the day</h2>
|
2004-03-20 01:35:37 +00:00
|
|
|
";
|
2007-11-23 21:05:52 +00:00
|
|
|
show_uotd($profile);
|
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 "
|
2007-01-03 16:18:43 +00:00
|
|
|
<tr><td id=\"news\">
|
|
|
|
<h2>News</h2>
|
2004-06-11 18:50:15 +00:00
|
|
|
<p>
|
2003-11-28 23:11:22 +00:00
|
|
|
";
|
2004-05-31 17:37:22 +00:00
|
|
|
show_news($project_news, 5);
|
2007-01-03 16:18:43 +00:00
|
|
|
if (count($project_news) > 5) {
|
|
|
|
echo "<a href=\"old_news.php\">...more</a>";
|
2004-05-31 17:37:22 +00:00
|
|
|
}
|
2003-11-28 23:11:22 +00:00
|
|
|
echo "
|
2007-01-03 16:18:43 +00:00
|
|
|
<p class=\"smalltext\">
|
|
|
|
News is available as an
|
2008-01-04 22:59:21 +00:00
|
|
|
<a href=\"rss_main.php\">RSS feed</a> <img src=\"img/rss_icon.gif\" alt=\"RSS\">.</p>
|
2004-06-11 18:50:15 +00:00
|
|
|
</td>
|
|
|
|
</tr></table>
|
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
|
|
|
|
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
|
|
|
|
|
|
|
?>
|