2002-08-12 20:16:55 +00:00
|
|
|
<?php
|
2008-08-05 22:43:14 +00:00
|
|
|
// This file is part of BOINC.
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2008 University of California
|
|
|
|
//
|
|
|
|
// BOINC is free software; you can redistribute it and/or modify it
|
|
|
|
// under the terms of the GNU Lesser General Public License
|
|
|
|
// as published by the Free Software Foundation,
|
|
|
|
// either version 3 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
2002-08-14 00:27:18 +00:00
|
|
|
|
2011-05-27 19:38:18 +00:00
|
|
|
// This is a template for your web site's front page.
|
|
|
|
// You are encouraged to customize this file,
|
|
|
|
// and to create a graphical identity for your web site
|
|
|
|
// my developing your own stylesheet
|
|
|
|
// and customizing the header/footer functions in html/project/project.inc
|
|
|
|
|
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");
|
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");
|
2002-08-12 20:16:55 +00:00
|
|
|
|
2011-02-09 22:11:34 +00:00
|
|
|
check_get_args(array());
|
|
|
|
|
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>");
|
2011-05-27 19:38:18 +00:00
|
|
|
$no_computing = parse_config($config, "<no_computing>");
|
2011-09-13 04:53:13 +00:00
|
|
|
$no_web_account_creation = parse_bool($config, "no_web_account_creation");
|
2011-02-10 22:45:39 +00:00
|
|
|
echo "<div class=\"mainnav\">
|
|
|
|
<h2 class=headline>About ".PROJECT."</h2>
|
2011-05-27 19:38:18 +00:00
|
|
|
";
|
|
|
|
if ($no_computing) {
|
|
|
|
echo "
|
|
|
|
XXX is a research project that uses volunteers
|
|
|
|
to do research in XXX.
|
|
|
|
";
|
|
|
|
} else {
|
|
|
|
echo "
|
|
|
|
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.
|
|
|
|
";
|
|
|
|
}
|
|
|
|
echo "
|
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>
|
2011-02-10 22:45:39 +00:00
|
|
|
<h2 class=headline>Join ".PROJECT."</h2>
|
2007-03-22 02:07:08 +00:00
|
|
|
<ul>
|
2011-05-27 19:38:18 +00:00
|
|
|
";
|
|
|
|
if ($no_computing) {
|
|
|
|
echo "
|
|
|
|
<li> <a href=\"create_account_form.php\">Create an account</a>
|
|
|
|
";
|
|
|
|
} else {
|
|
|
|
echo "
|
|
|
|
<li><a href=\"info.php\">".tra("Read our rules and policies")."</a>
|
|
|
|
<li> This project uses BOINC.
|
|
|
|
If you're already running BOINC, select Add 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>
|
2011-09-13 04:53:13 +00:00
|
|
|
";
|
|
|
|
if (!$no_web_account_creation) {
|
|
|
|
echo "
|
|
|
|
<li> If you're running a command-line version of BOINC,
|
|
|
|
<a href=\"create_account_form.php\">create an account</a> first.
|
|
|
|
";
|
|
|
|
}
|
|
|
|
echo "
|
2011-05-27 19:38:18 +00:00
|
|
|
<li> If you have any problems,
|
|
|
|
<a target=\"_new\" href=\"http://boinc.berkeley.edu/wiki/BOINC_Help\">get help here</a>.
|
|
|
|
";
|
|
|
|
}
|
|
|
|
echo "
|
2007-03-22 02:07:08 +00:00
|
|
|
</ul>
|
2002-12-11 00:12:42 +00:00
|
|
|
|
2011-02-10 22:45:39 +00:00
|
|
|
<h2 class=headline>Returning participants</h2>
|
2003-12-10 00:54:17 +00:00
|
|
|
<ul>
|
2011-05-27 19:38:18 +00:00
|
|
|
";
|
|
|
|
if ($no_computing) {
|
|
|
|
echo "
|
|
|
|
<li><a href=\"bossa_apps.php\">Do work</a>
|
|
|
|
<li><a href=\"home.php\">Your account</a> - view stats, modify preferences
|
|
|
|
<li><a href=\"team.php\">Teams</a> - create or join a team
|
|
|
|
";
|
|
|
|
} else {
|
|
|
|
echo "
|
|
|
|
<li><a href=\"home.php\">Your account</a> - view stats, modify preferences
|
|
|
|
<li><a href=server_status.php>Server status</a>
|
|
|
|
<li><a href=\"team.php\">Teams</a> - create or join a team
|
|
|
|
<li><a href=\"cert1.php\">Certificate</a>
|
|
|
|
<li><a href=\"apps.php\">".tra("Applications")."</a>
|
|
|
|
";
|
|
|
|
}
|
|
|
|
echo "
|
2003-12-10 00:54:17 +00:00
|
|
|
</ul>
|
2011-02-10 22:45:39 +00:00
|
|
|
<h2 class=headline>".tra("Community")."</h2>
|
2003-12-10 00:54:17 +00:00
|
|
|
<ul>
|
2008-10-14 21:40:14 +00:00
|
|
|
<li><a href=\"profile_menu.php\">".tra("Profiles")."</a>
|
2007-11-07 17:23:29 +00:00
|
|
|
<li><a href=\"user_search.php\">User search</a>
|
2008-10-14 21:40:14 +00:00
|
|
|
<li><a href=\"forum_index.php\">".tra("Message boards")."</a>
|
|
|
|
<li><a href=\"forum_help_desk.php\">".tra("Questions and Answers")."</a>
|
2007-03-22 02:07:08 +00:00
|
|
|
<li><a href=\"stats.php\">Statistics</a>
|
2008-08-15 16:26:55 +00:00
|
|
|
<li><a href=language_select.php>Languages</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
|
|
|
}
|
|
|
|
|
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
|
|
|
|
2010-01-27 04:04:17 +00:00
|
|
|
header("Content-type: text/html; charset=utf-8");
|
2007-01-03 16:18:43 +00:00
|
|
|
|
2008-08-20 18:32:32 +00:00
|
|
|
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">";
|
2008-08-15 16:26:55 +00:00
|
|
|
|
2007-01-03 16:18:43 +00:00
|
|
|
echo "<html>
|
2005-02-26 06:23:32 +00:00
|
|
|
<head>
|
2007-01-03 16:18:43 +00:00
|
|
|
<title>".PROJECT."</title>
|
2010-11-04 18:20:57 +00:00
|
|
|
<link rel=\"stylesheet\" type=\"text/css\" href=\"main.css\" media=\"all\" />
|
2008-07-18 20:59:59 +00:00
|
|
|
<link rel=\"stylesheet\" type=\"text/css\" href=\"".STYLESHEET."\">
|
2007-01-19 18:50:29 +00:00
|
|
|
<link rel=\"alternate\" type=\"application/rss+xml\" title=\"".$rssname."\" href=\"".$rsslink."\">
|
2008-08-15 16:26:55 +00:00
|
|
|
";
|
|
|
|
include 'schedulers.txt';
|
|
|
|
echo "
|
2005-02-26 06:23:32 +00:00
|
|
|
</head><body>
|
2011-02-14 20:50:59 +00:00
|
|
|
<div class=page_title>".PROJECT."</div>
|
2011-04-20 14:50:50 +00:00
|
|
|
";
|
|
|
|
|
|
|
|
if (!$stopped) {
|
|
|
|
get_logged_in_user(false);
|
|
|
|
show_login_info();
|
|
|
|
}
|
|
|
|
|
|
|
|
echo "
|
2011-02-10 22:45:39 +00:00
|
|
|
<table cellpadding=\"8\" cellspacing=\"4\" class=bordered>
|
2007-01-03 16:18:43 +00:00
|
|
|
<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 "
|
2011-02-10 22:45:39 +00:00
|
|
|
<td class=uotd>
|
|
|
|
<h2 class=headline>".tra("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 "
|
2011-02-10 22:45:39 +00:00
|
|
|
<tr><td class=news>
|
|
|
|
<h2 class=headline>News</h2>
|
2004-06-11 18:50:15 +00:00
|
|
|
<p>
|
2003-11-28 23:11:22 +00:00
|
|
|
";
|
2009-12-16 22:35:08 +00:00
|
|
|
include("motd.php");
|
|
|
|
show_news(0, 5);
|
2003-11-28 23:11:22 +00:00
|
|
|
echo "
|
2004-06-11 18:50:15 +00:00
|
|
|
</td>
|
|
|
|
</tr></table>
|
2003-02-12 23:06:49 +00:00
|
|
|
";
|
|
|
|
|
2011-02-11 00:37:01 +00:00
|
|
|
page_tail_main();
|
2003-02-12 23:06:49 +00:00
|
|
|
|
|
|
|
?>
|