md5 =\n");
//print_r($md5);
//print("\n");
fclose($fp);
// Show files...
html_header("Download");
print("
Download
");
html_start_table(array("Version", "Filename", "Size", "MD5 Sum"));
$curversion = "";
reset($files);
if ($argc >= 1)
$firstversion = $argv[0];
else
$firstversion = current($files);
while (list($file, $version) = each($files))
{
html_start_row();
if ($version == $firstversion)
{
$cs = "";
$ce = " | ";
}
else
{
$cs = "";
$ce = " | ";
}
if ($version != $curversion)
{
if ($curversion != "")
{
print(" | ");
html_end_row();
html_start_row();
}
$curversion = $version;
print("$cs$version$ce");
}
else
print("$cs$ce");
$kbytes = (int)((filesize("swfiles/$file") + 1023) / 1024);
$filemd5 = $md5["$file"];
print("$cs$file$ce"
."$cs${kbytes}k$ce"
."$cs$filemd5$ce");
html_end_row();
}
html_end_table();
html_footer();
//
// End of "$Id: software.php,v 1.3 2004/05/19 14:02:38 mike Exp $".
//
?>