. // 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 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/text_transform.inc"); require_once("../project/project.inc"); check_get_args(array()); function show_nav() { $config = get_config(); $master_url = parse_config($config, ""); $no_computing = parse_config($config, ""); $no_web_account_creation = parse_bool($config, "no_web_account_creation"); $disable_acct = parse_bool($config, "disable_account_creation"); echo "

About ".PROJECT."

"; 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 "

XXX is based at [describe your institution, with link to web page]

  • [Link to page describing your research in detail]
  • [Link to page listing project personnel, and an email address]

Join ".PROJECT."

    "; if ($no_computing) { if (!$no_web_account_creation && !$disable_acct) { echo "
  • Create an account "; } else { echo "
  • This project is not currently accepting new accounts."; } } else { echo "
  • ".tra("Read our rules and policies")." "; if (!$disable_acct) { echo "
  • This project uses BOINC. If you're already running BOINC, select Add Project. If not, download BOINC.
  • When prompted, enter
    ".$master_url." "; if (!$no_web_account_creation) { echo "
  • If you're running a command-line version of BOINC, create an account first. "; } } else { echo "
  • This project is not currently accepting new accounts."; } echo "
  • If you have any problems, get help here. "; } echo "

Returning participants

".tra("Community")."

"; } $stopped = web_stopped(); $rssname = PROJECT . " RSS 2.0" ; $rsslink = URL_BASE . "rss_main.php"; header("Content-type: text/html; charset=utf-8"); echo ""; echo " ".PROJECT." "; include 'schedulers.txt'; echo "
".PROJECT."
"; if (!$stopped) { get_logged_in_user(false); show_login_info(); } echo " "; if (!$stopped && !DISABLE_PROFILES) { $profile = get_current_uotd(); if ($profile) { echo " \n"; } } echo "
"; if ($stopped) { echo " ".PROJECT." is temporarily shut down for maintenance. Please try again later. "; } else { db_init(); show_nav(); } echo "

\"Powered

".tra("User of the day")."

"; show_uotd($profile); echo "

News

"; include("motd.php"); show_news(0, 5); echo "

"; page_tail_main(); ?>