mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=4471
This commit is contained in:
parent
e8cb263ff7
commit
a326d68c33
|
@ -19003,3 +19003,19 @@ David 1 Nov 2004
|
||||||
top_users.php
|
top_users.php
|
||||||
lib/
|
lib/
|
||||||
util.C
|
util.C
|
||||||
|
|
||||||
|
David 1 Nov 2004
|
||||||
|
- PHP caching: call clearstatcache() prior to filemtime(),
|
||||||
|
just in case the file doesn't exist anymore.
|
||||||
|
NOTE: this doesn't seem to work.
|
||||||
|
Sometimes it thinks a cached copy is there, but it's not.
|
||||||
|
- row4(): don't left/right align
|
||||||
|
- core client download page:
|
||||||
|
don't check for user login (this page is cached!!)
|
||||||
|
|
||||||
|
html/
|
||||||
|
inc/
|
||||||
|
cache.inc
|
||||||
|
util.C
|
||||||
|
user/
|
||||||
|
download.inc
|
||||||
|
|
|
@ -91,6 +91,7 @@ function start_cache($max_age, $params=""){
|
||||||
if ($max_age) {
|
if ($max_age) {
|
||||||
$request = getallheaders();
|
$request = getallheaders();
|
||||||
|
|
||||||
|
clearstatcache();
|
||||||
$lastmodified = @filemtime($path);
|
$lastmodified = @filemtime($path);
|
||||||
if ($lastmodified) {
|
if ($lastmodified) {
|
||||||
|
|
||||||
|
@ -141,7 +142,9 @@ function start_cache($max_age, $params=""){
|
||||||
Header("Last-Modified: " . gmdate("D, d M Y H:i:s",$lastmodified) . " GMT");
|
Header("Last-Modified: " . gmdate("D, d M Y H:i:s",$lastmodified) . " GMT");
|
||||||
Header("Expires: " . gmdate("D, d M Y H:i:s",$lastmodified+$max_age) . " GMT");
|
Header("Expires: " . gmdate("D, d M Y H:i:s",$lastmodified+$max_age) . " GMT");
|
||||||
Header("Cache-Control: public, max-age=" . $max_age );
|
Header("Cache-Control: public, max-age=" . $max_age );
|
||||||
readfile($path);
|
if (!@readfile($path)) {
|
||||||
|
echo "can't read $path; lastmod $lastmodified\n";
|
||||||
|
}
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -228,8 +228,8 @@ function row3($x, $y, $z) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function row4($xx, $xy, $yx, $yy) {
|
function row4($xx, $xy, $yx, $yy) {
|
||||||
echo "<tr><td width=25% valign=top align=right>$xx</td><td width=25%>$xy</td>"
|
echo "<tr><td width=25% valign=top>$xx</td><td width=25%>$xy</td>"
|
||||||
. "<td width=25% align=right>$yx</td><td width=%25>$yy</td></tr>\n";
|
. "<td width=25% >$yx</td><td width=%25>$yy</td></tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
function rowify($string) {
|
function rowify($string) {
|
||||||
|
|
|
@ -9,24 +9,16 @@ require_once("../inc/db.inc");
|
||||||
require_once("../inc/download.inc");
|
require_once("../inc/download.inc");
|
||||||
|
|
||||||
|
|
||||||
init_session();
|
|
||||||
db_init();
|
db_init();
|
||||||
|
|
||||||
page_head("Download BOINC software");
|
page_head("Download BOINC software");
|
||||||
if (!get_logged_in_user(false)) {
|
|
||||||
echo "
|
|
||||||
<font color=ff0000>
|
|
||||||
<b>First-time ".PROJECT." participants</b>:
|
|
||||||
<br>Don't download BOINC software now.
|
|
||||||
<a href=create_account_form.php>Create an account</a>
|
|
||||||
before you download.
|
|
||||||
</font>
|
|
||||||
<p>
|
|
||||||
If you're a returning ".PROJECT." user:
|
|
||||||
";
|
|
||||||
}
|
|
||||||
echo "
|
echo "
|
||||||
Select your computer type:<p>\n
|
<font color=ff0000>
|
||||||
|
<b>First-time ".PROJECT." participants</b>:
|
||||||
|
<br>Don't download BOINC software now.
|
||||||
|
<a href=create_account_form.php>Create an account</a> first.
|
||||||
|
</font>
|
||||||
|
<p>
|
||||||
";
|
";
|
||||||
print_download_links();
|
print_download_links();
|
||||||
echo "
|
echo "
|
||||||
|
|
Loading…
Reference in New Issue