Skip to content

Commit

Permalink
only show downloads for crawls labelled "All" in the archive field
Browse files Browse the repository at this point in the history
git-svn-id: http://httparchive.googlecode.com/svn/trunk@1120 fc7d47d3-c008-acd5-f51f-d19787b8a02f
  • Loading branch information
stevesoudersorg@gmail.com committed Feb 7, 2013
1 parent 6af10b3 commit 2639d55
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions downloads.php
Expand Up @@ -25,10 +25,14 @@ function listFiles($hFiles) {
$aKeys = array_keys($hFiles);
sort($aKeys, SORT_NUMERIC);
foreach( array_reverse($aKeys) as $epoch ) {
$sHtml .= " <li> " . date("M j, Y", $epoch) . ": " .
( array_key_exists('IE', $hFiles[$epoch]) ? "<br>&nbsp;&nbsp;" . $hFiles[$epoch]['IE'] : "" ) .
( array_key_exists('iPhone', $hFiles[$epoch]) ? "<br>&nbsp;&nbsp;" . $hFiles[$epoch]['iPhone'] : "" ) .
"\n";
$label = date("M j Y", $epoch);
$crawl = getCrawl($label);
if ( "All" === $crawl['archive'] ) {
$sHtml .= " <li> $label: " .
( array_key_exists('IE', $hFiles[$epoch]) ? "<br>&nbsp;&nbsp;" . $hFiles[$epoch]['IE'] : "" ) .
( array_key_exists('iPhone', $hFiles[$epoch]) ? "<br>&nbsp;&nbsp;" . $hFiles[$epoch]['iPhone'] : "" ) .
"\n";
}
}

return $sHtml;
Expand Down

0 comments on commit 2639d55

Please sign in to comment.