. 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() { $config = get_config(); $master_url = parse_config($config, ""); echo "

About ".PROJECT."

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.

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

Join ".PROJECT."

Returning participants

".tra("Community")."

"; } $caching = false; if ($caching) { start_cache(INDEX_PAGE_TTL); } $stopped = web_stopped(); $rssname = PROJECT . " RSS 2.0" ; $rsslink = URL_BASE . "rss_main.php"; $charset = tra("CHARSET"); if ($charset != "CHARSET") { header("Content-type: text/html; charset=$charset"); } echo ""; echo " ".PROJECT." "; include 'schedulers.txt'; echo " ".PROJECT." "; if (!$stopped) { $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

"; show_news($project_news, 5); if (count($project_news) > 5) { echo "...more"; } echo "

News is available as an RSS feed \"RSS\".

"; if ($caching) { page_tail_main(true); end_cache(INDEX_PAGE_TTL); } else { page_tail_main(); } ?>