*** empty log message ***

svn path=/trunk/boinc/; revision=4471
This commit is contained in:
David Anderson 2004-11-01 23:42:29 +00:00
parent e8cb263ff7
commit a326d68c33
4 changed files with 28 additions and 17 deletions

View File

@ -19003,3 +19003,19 @@ David 1 Nov 2004
top_users.php
lib/
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

View File

@ -91,6 +91,7 @@ function start_cache($max_age, $params=""){
if ($max_age) {
$request = getallheaders();
clearstatcache();
$lastmodified = @filemtime($path);
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("Expires: " . gmdate("D, d M Y H:i:s",$lastmodified+$max_age) . " GMT");
Header("Cache-Control: public, max-age=" . $max_age );
readfile($path);
if (!@readfile($path)) {
echo "can't read $path; lastmod $lastmodified\n";
}
exit;
}
}

View File

@ -228,8 +228,8 @@ function row3($x, $y, $z) {
}
function row4($xx, $xy, $yx, $yy) {
echo "<tr><td width=25% valign=top align=right>$xx</td><td width=25%>$xy</td>"
. "<td width=25% align=right>$yx</td><td width=%25>$yy</td></tr>\n";
echo "<tr><td width=25% valign=top>$xx</td><td width=25%>$xy</td>"
. "<td width=25% >$yx</td><td width=%25>$yy</td></tr>\n";
}
function rowify($string) {

View File

@ -9,24 +9,16 @@ require_once("../inc/db.inc");
require_once("../inc/download.inc");
init_session();
db_init();
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 "
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();
echo "