mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-08 13:39:58 +00:00
Add download page and distribution files.
This commit is contained in:
parent
7037fa1d31
commit
4b20893f32
100
www/software.php
100
www/software.php
@ -1,7 +1,8 @@
|
||||
<?php
|
||||
//
|
||||
// "$Id: software.php,v 1.1 2004/05/17 20:28:52 mike Exp $"
|
||||
// "$Id: software.php,v 1.2 2004/05/19 12:15:20 mike Exp $"
|
||||
//
|
||||
// Software download page.
|
||||
//
|
||||
|
||||
//
|
||||
@ -10,11 +11,104 @@
|
||||
|
||||
include_once "phplib/html.php";
|
||||
|
||||
html_header("Title");
|
||||
|
||||
// Get the list of software files...
|
||||
$dir = opendir("swfiles");
|
||||
$files = array();
|
||||
|
||||
while ($file = readdir($dir))
|
||||
{
|
||||
if (fnmatch("*.tar.gz", $file) ||
|
||||
fnmatch("*.tar.bz2", $file))
|
||||
{
|
||||
// Add source file...
|
||||
$files[$file] = substr($file, 5, strpos($file, ".tar") - 5);
|
||||
}
|
||||
else if (fnmatch("*.rpm", $file) ||
|
||||
fnmatch("*.deb", $file) ||
|
||||
fnmatch("*.tgz", $file))
|
||||
{
|
||||
// Add binary file...
|
||||
$data = explode("-", $file);
|
||||
|
||||
$files[$file] = $data[1];
|
||||
}
|
||||
}
|
||||
|
||||
arsort($files);
|
||||
|
||||
closedir($dir);
|
||||
|
||||
// Read MD5 sums for each file...
|
||||
$fp = fopen("swfiles/mxml.md5", "r");
|
||||
$md5 = array();
|
||||
|
||||
while ($line = fgets($fp))
|
||||
{
|
||||
$data = explode(" ", trim($line));
|
||||
$md5[$data[2]] = $data[0];
|
||||
}
|
||||
|
||||
//print("<pre>md5 =\n");
|
||||
//print_r($md5);
|
||||
//print("</pre>\n");
|
||||
|
||||
fclose($fp);
|
||||
|
||||
// Show files...
|
||||
html_header("Download");
|
||||
|
||||
print("<h1>Download</h1>");
|
||||
|
||||
html_start_table(array("Version", "Filename", "Size", "MD5 Sum"));
|
||||
$curversion = "";
|
||||
$firstversion = current($files);
|
||||
reset($files);
|
||||
while (list($file, $version) = each($files))
|
||||
{
|
||||
html_start_row();
|
||||
|
||||
if ($version == $firstversion)
|
||||
{
|
||||
$cs = "<th>";
|
||||
$ce = "</th>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$cs = "<td align='center'>";
|
||||
$ce = "</td>";
|
||||
}
|
||||
|
||||
if ($version != $curversion)
|
||||
{
|
||||
if ($curversion != "")
|
||||
{
|
||||
print("<td colspan='4'></td>");
|
||||
html_end_row();
|
||||
html_start_row();
|
||||
}
|
||||
|
||||
$curversion = $version;
|
||||
print("$cs<a name='$version'>$version</a>$ce");
|
||||
}
|
||||
else
|
||||
print("$cs$ce");
|
||||
|
||||
$kbytes = (int)((filesize("swfiles/$file") + 1023) / 1024);
|
||||
$filemd5 = $md5["$file"];
|
||||
|
||||
print("$cs<a href='swfiles/$file'><tt>$file</tt></a>$ce"
|
||||
."$cs${kbytes}k$ce"
|
||||
."$cs<tt>$filemd5</tt>$ce");
|
||||
|
||||
html_end_row();
|
||||
}
|
||||
|
||||
html_end_table();
|
||||
|
||||
html_footer();
|
||||
|
||||
//
|
||||
// End of "$Id: software.php,v 1.1 2004/05/17 20:28:52 mike Exp $".
|
||||
// End of "$Id: software.php,v 1.2 2004/05/19 12:15:20 mike Exp $".
|
||||
//
|
||||
?>
|
||||
|
BIN
www/swfiles/mxml-0.9.tar.gz
Normal file
BIN
www/swfiles/mxml-0.9.tar.gz
Normal file
Binary file not shown.
BIN
www/swfiles/mxml-0.91.tar.gz
Normal file
BIN
www/swfiles/mxml-0.91.tar.gz
Normal file
Binary file not shown.
BIN
www/swfiles/mxml-0.92.tar.gz
Normal file
BIN
www/swfiles/mxml-0.92.tar.gz
Normal file
Binary file not shown.
BIN
www/swfiles/mxml-0.93.tar.gz
Normal file
BIN
www/swfiles/mxml-0.93.tar.gz
Normal file
Binary file not shown.
BIN
www/swfiles/mxml-1.0-1.i386.rpm
Normal file
BIN
www/swfiles/mxml-1.0-1.i386.rpm
Normal file
Binary file not shown.
BIN
www/swfiles/mxml-1.0.tar.gz
Normal file
BIN
www/swfiles/mxml-1.0.tar.gz
Normal file
Binary file not shown.
BIN
www/swfiles/mxml-1.1-1.i386.rpm
Normal file
BIN
www/swfiles/mxml-1.1-1.i386.rpm
Normal file
Binary file not shown.
BIN
www/swfiles/mxml-1.1.1-1.i386.rpm
Normal file
BIN
www/swfiles/mxml-1.1.1-1.i386.rpm
Normal file
Binary file not shown.
BIN
www/swfiles/mxml-1.1.1.tar.gz
Normal file
BIN
www/swfiles/mxml-1.1.1.tar.gz
Normal file
Binary file not shown.
BIN
www/swfiles/mxml-1.1.2-1.i386.rpm
Normal file
BIN
www/swfiles/mxml-1.1.2-1.i386.rpm
Normal file
Binary file not shown.
BIN
www/swfiles/mxml-1.1.2.tar.gz
Normal file
BIN
www/swfiles/mxml-1.1.2.tar.gz
Normal file
Binary file not shown.
BIN
www/swfiles/mxml-1.1.tar.gz
Normal file
BIN
www/swfiles/mxml-1.1.tar.gz
Normal file
Binary file not shown.
BIN
www/swfiles/mxml-1.2-1.i386.rpm
Normal file
BIN
www/swfiles/mxml-1.2-1.i386.rpm
Normal file
Binary file not shown.
BIN
www/swfiles/mxml-1.2.tar.gz
Normal file
BIN
www/swfiles/mxml-1.2.tar.gz
Normal file
Binary file not shown.
BIN
www/swfiles/mxml-1.3-1.i386.rpm
Normal file
BIN
www/swfiles/mxml-1.3-1.i386.rpm
Normal file
Binary file not shown.
BIN
www/swfiles/mxml-1.3.tar.gz
Normal file
BIN
www/swfiles/mxml-1.3.tar.gz
Normal file
Binary file not shown.
16
www/swfiles/mxml.md5
Normal file
16
www/swfiles/mxml.md5
Normal file
@ -0,0 +1,16 @@
|
||||
2b55de728aa5e8c3d254bc192395b6b5 mxml-0.91.tar.gz
|
||||
24a043c32316c23da079fcc0e5a9ee5d mxml-0.92.tar.gz
|
||||
e52545d20d4713ed96054980efdfad9e mxml-0.93.tar.gz
|
||||
f5fe73468b143a0ba0a52cc3fb70d50d mxml-0.9.tar.gz
|
||||
fa81e0552c2296a9a96acab45ca40b97 mxml-1.0-1.i386.rpm
|
||||
84dcb43388c621d0622b07d773e9330d mxml-1.0.tar.gz
|
||||
707ccead0ba2e26828197760957a54b3 mxml-1.1.1-1.i386.rpm
|
||||
56743f9515038682101506b7d5147968 mxml-1.1-1.i386.rpm
|
||||
3529f8e70b1aa5e2f5de114cd58d63b8 mxml-1.1.1.tar.gz
|
||||
9e5d8f70186a5ad84034721582945e24 mxml-1.1.2-1.i386.rpm
|
||||
f77726908d86a167d3d63076b272dfcd mxml-1.1.2.tar.gz
|
||||
8e2376171e14c59394b0c2c06ec2b1bd mxml-1.1.tar.gz
|
||||
099d05a62278020189c258968aae7533 mxml-1.2-1.i386.rpm
|
||||
57720317e7e5ad4c91fb076cb52105ad mxml-1.2.tar.gz
|
||||
9dfb974bd31d60c97bfa394b7f6ca63e mxml-1.3-1.i386.rpm
|
||||
9b116daa370bf647447d6ffe70e73534 mxml-1.3.tar.gz
|
Loading…
Reference in New Issue
Block a user