tiles@home

Credits


The following people have been uploading tiles to the program:

Counting began 10pm, 6th March 2007 - no records are available for earlier uploads. Blank tiles not included in count.

0){ # Start the HTML table print ""; # Header $Columns = "Name, Activity, Last upload, Version, Samples"; print "\n"; ##------------------------------------------------------- ## For each user... ##------------------------------------------------------- while($Data = mysql_fetch_assoc($Result)){ $Row = array(); # Username array_push($Row, sprintf("%s",htmlentities($Data["name"]))); # Upload details array_push($Row, sprintf("%s tiles in %s uploads", number_format($Data["tiles"], 0, ".", ","), number_format($Data["uploads"], 0, ".", ","))); # Time last seen array_push($Row, ageOf($Data["unixtime"])); # Version ID array_push($Row, htmlentities(versionName($Data["version"]))); # Version ID array_push($Row, sprintf("...", $Data["id"])); # Convert all the data into a row of HTML table print "\n"; } ##------------------------------------------------------- print "
" . str_replace(", ", "", $Columns) . "
" . implode("", $Row) . "
\n"; } } function ageOf($Timestamp){ if($Timestamp == 0) return("never"); $Age = time() - $Timestamp; if($Age < 0) return("future"); if($Age < 120) return(sprintf("%d seconds ago", $Age)); $Age /= 60; if($Age < 120) return(sprintf("%d minutes ago", $Age)); $Age /= 60; if($Age < 24) return(sprintf("%d hours ago", $Age)); $Age /= 24; if($Age < 7) return(sprintf("%d days ago", $Age)); $Age /= 7; if($Age < 40) return(sprintf("%d weeks ago", $Age)); $Age /= 30; if($Age < 12) return(sprintf("%d months ago", $Age)); return("ages ago..."); } ?>