mozdev.org

gesso

resources:
0) { $prop = substr($item, 0, strpos($item, ":")); $val = substr($item, strpos($item, ":") + 1); if (strcasecmp($prop, "name") == 0) { $downloads[$totals++][$prop] = $val; if (strncasecmp($val, "gesso-", 6) == 0) { $releases++; $latestrelease = $totals - 1; $downloads[$totals - 1]["version"] = substr($val, 6, strpos($val, "-", 6) - 6); } else { $nightlies++; $downloads[$totals - 1]["date"] = str_replace("-", "/", substr($val, 0, $dateEnd = strpos($val, "-", 6))); $downloads[$totals - 1]["version"] = substr($val, $dateEnd + 7, strpos($val, "-", $dateEnd + 7) - $dateEnd - 7); } } else if (strcasecmp($prop, "date") == 0) { $downloads[$totals - 1][$prop] = str_replace("-", "/", $val); } else { $downloads[$totals - 1][$prop][] = $val; } } } fclose($handle); function echoDetails($index, $showDate = true) { global $downloads; echo "Gesso "; echo $downloads[$index]["version"]; echo " ("; if ($showDate) { echo $downloads[$index]["date"]; echo "; "; } $c = count($downloads[$index]["id"]); for ($i = 0; $i < $c; ++$i) { if ($i > 0) { echo ", "; } if (strcasecmp($downloads[$index]["id"][$i], "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}") == 0) { echo "Firefox "; } else { echo $downloads[$index]["id"][$i]; echo " "; } echo $downloads[$index]["min"][$i]; if (strcasecmp($downloads[$index]["min"][$i], $downloads[$index]["max"][$i]) != 0) { echo "-"; echo $downloads[$index]["max"][$i]; } } echo ")"; } if ($releases > 0) { echo "

Latest Release: "; echoDetails($latestrelease); echo "

\n"; echo "

Releases:

\n"; } if ($nightlies > 0) { echo "

Nightly Builds:

\n"; } if ($releases + $nightlies <= 0) { echo "

No file found

"; } } else { echo "

Cannot retrieve list of files

"; } ?>

Note that versions for Firefox 2 are unstable, upgrading to Firefox 3 is strongly recommended to use Gesso

For questions or comments about gesso, please leave a note on the gesso home page.
For questions or comments not about a specific project, please read our feedback page.
Copyright © 2004. All rights reserved. Terms of Use.