} } $config = get_config(); $long_name = parse_config($config, "<long_name>"); $min_passwd_length = parse_config($config, "<min_passwd_length>"); if (!$min_passwd_length) { $min_passwd_length = 6; } $disable_account_creation = parse_bool($config, "disable_account_creation"); $master_url = parse_config($config, "<master_url>"); echo "<project_config>\n <name>{$long_name}</name>\n <master_url>{$master_url}</master_url>\n"; $local_revision = trim(file_get_contents("../../local.revision")); if ($local_revision) { echo "<local_revision>{$local_revision}</local_revision>\n"; } if (web_stopped()) { echo "\n <error_num>-183</error_num>\n <web_stopped>1</web_stopped>\n "; } else { echo "<web_stopped>0</web_stopped>\n"; } if ($disable_account_creation || defined('INVITE_CODES')) { echo " <account_creation_disabled/>\n"; } if (defined('INVITE_CODES')) { echo " <invite_code_required/>\n"; } echo "\n <min_passwd_length>{$min_passwd_length}</min_passwd_length>\n"; if (sched_stopped()) { echo "<sched_stopped>1</sched_stopped>\n"; } else { echo "<sched_stopped>0</sched_stopped>\n";
echo "\n <h2>" . tra("Extra Links") . "</h2>\n <ul>\n <li><a href=\"trdl.php\">" . tra("Trigger Search/Upload/Download Page") . "</a>\n <li><a href=\"ramp.php\">" . tra("View RAMP Signups") . "</a>\n <li><a href=\"" . BASEURL . "/sensor/todo\">" . tra("To-Do List") . "</a></ul>"; //if ($user->id == 15) { // check for db replication timestamp #$kewfile = BASEPATH . "/boinc/sensor/html/user/max.txt"; #if (file_exists($kewfile) && ($handle = fopen($kewfile, 'r'))) { # $output = fgets($handle); // skip first line # $output = fgets($handle); fclose($handle); # echo " <li>Kew Sync Diff (seconds): " . $output . "<BR>(should be a small number else server is down) <BR>"; # } else { # echo " <li>No Replication Sync File on Kew - Better Check!"; # } } qcn_show_map(); echo " </div>"; } $stopped = web_stopped(); $rssname = PROJECT . " RSS 2.0"; $rsslink = URL_BASE . "rss_main.php"; page_head(PROJECT); /* header("Content-type: text/html; charset=utf-8"); echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">"; echo "<html> <head> <title>".PROJECT."</title> <link rel=\"stylesheet\" type=\"text/css\" href=\"main.css\" media=\"all\" /> <link rel=\"stylesheet\" type=\"text/css\" href=\"".STYLESHEET."\">