. // 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. // by customizing the header/footer functions in html/project/project.inc // and picking a Bootstrap theme // // If you add text, put it in tra() to make it translatable. 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"); require_once("../inc/bootstrap.inc"); $config = get_config(); $no_computing = parse_config($config, ""); $no_web_account_creation = parse_bool($config, "no_web_account_creation"); $stopped = web_stopped(); $user = get_logged_in_user(false); // The panel at the top of the page // function panel_contents() { } function top() { global $stopped, $master_url, $user; if ($stopped) { echo '

' .tra("%1 is temporarily shut down for maintenance.", PROJECT) .'

'; } //panel(null, 'panel_contents'); } function left(){ global $user, $no_computing, $no_web_account_creation, $master_url; panel( tra("What is %1?", PROJECT), function() use($user) { global $no_computing, $no_web_account_creation, $master_url; if ($no_computing) { echo " XXX is a research project that uses volunteers to do research in XXX. "; } else { echo "

XXX is a research project, based at YYY, that uses Internet-connected computers to do research in XXX. You can contribute to our research by running a free program on your computer.

"; } echo " "; echo ""; if (!$user) { if ($no_computing) { echo " Create an account "; } else { echo '
'.tra('Join %1', PROJECT).'
'; } } } ); global $stopped; if (!$stopped) { $profile = get_current_uotd(); if ($profile) { panel('User of the Day', function() use ($profile) { show_uotd($profile); } ); } } } function right() { panel(tra('News'), function() { include("motd.php"); if (!web_stopped()) { show_news(0, 5); } } ); } page_head(null, null, true); grid('top', 'left', 'right'); page_tail(false, "", true); ?>