- server: if "terms_of_use.txt" exists in project dir,

send it in get_project_config.php;
    6.4 clients will display a dialog to accept terms of use during attach.

svn path=/trunk/boinc/; revision=16563
This commit is contained in:
David Anderson 2008-11-26 03:28:48 +00:00
parent a08f50c6f1
commit 149b2c6794
4 changed files with 16 additions and 3 deletions

View File

@ -9641,3 +9641,11 @@ Rom 25 Nov 2008
clientgui/
TermsOfUsePage.cpp,
David 25 Nov 2008
- server: if "terms_of_use.txt" exists in project dir,
send it in get_project_config.php;
6.4 clients will display a dialog to accept terms of use during attach.
html/user/
get_project_config.php

View File

@ -9,10 +9,10 @@ $cachefile = "cache/poll_results_$language_in_use.html";
$cache_time = 3600*24;
if (file_exists($cachefile)) {
$age = time() - filemtime($cachefile);
if ($age < $cache_time) {
//if ($age < $cache_time) {
readfile($cachefile);
exit();
}
//}
}
set_time_limit(0);
ini_set("memory_limit", "2048M");

View File

@ -165,7 +165,7 @@ function control_bar($features, $inst) {
$str2 = "a";
}
echo "
<div style=\"position:fixed; top:0px; left:0px; padding-top: 10px; padding-left: 20px; width:100%; background-color:white\">
<div style=\"position:absolute; top:0px; left:0px; padding-top: 10px; padding-left: 20px; width:100%; background-color:white\">
<input type=hidden name=bji value=\"$inst->id\">
If you see $str2 feature:
";

View File

@ -92,6 +92,11 @@ if (sched_stopped()) {
show_platforms();
$terms_of_use = trim(file_get_contents("../../terms_of_use.txt"));
if ($terms_of_use) {
echo "<terms_of_use>\n$terms_of_use\n</terms_of_use>\n";
}
echo "
</project_config>
";