}
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";
}
$min_core_client_version = parse_config($config, "<min_core_client_version>");
if ($min_core_client_version) {
    echo "<min_client_version>{$min_core_client_version}</min_client_version>\n";
}
show_platforms();
$tou_file = "../../terms_of_use.txt";
if (file_exists($tou_file)) {
    $terms_of_use = trim(file_get_contents($tou_file));
    if ($terms_of_use) {
        echo "<terms_of_use>\n{$terms_of_use}\n</terms_of_use>\n";
    }
}
echo "\n</project_config>\n";
Example #2
0
function show_form()
{
    echo "\r\n\t\t<form method=get action=job_times.php>\r\n\t\tApp ID: <input name=appid>\r\n\t\t<br>platform ID (0 for all): <input name=platformid value=0>\r\n\t\t<br>FLOP quantum: <input name=quantum value=1e12>\r\n\t\t<br># of results: <input name=nresults value=1000>\r\n\t\t<br><input type=submit name=submit value=OK>\r\n\t\t</form>\r\n\t";
    show_platforms();
    show_apps();
}