<html>
<head>
<title>WA6CGR/WB6ZSU 900 MHz Driver Amplifier</title>
</head>
<body bgcolor=#ffffff>
<center>
<h1>WA6CGR/WB6ZSU 900 MHz Driver Amplifier</h1>
<table>
<colgroup width=155>
<thead>
<tr height=155>
<?php
   $wide = 5;
   $i = -1;
   $dir1 = scandir(".");

   foreach($dir1 as $file) {
	if (is_dir("$file") && "$file" != "." && "$file" != "..") {
	    echo "<td width=155 align=center><a href=";
	    echo '"';
	    echo rawurlencode($file);
	    echo '"';
	    echo "><img src=/icons/dir.png border=0></a>\n";
	    echo "<p>$file</p></td>\n";
	    ++$i;
	    if (($i % $wide) == ($wide - 1)) echo "</tr><tr height=155>\n";
	    
	} elseif (preg_match("/(.*)\.jpe?g$/i", "$file", $matches) ||
	          preg_match("/(.*)\.png$/i", "$file", $matches) ||
	          preg_match("/(.*)\.gif$/i", "$file", $matches)) {
	    echo "<td width=155 align=center><a href=";
	    echo '"';
	    echo rawurlencode($file);
	    echo '"';
	    echo "><img src=\"thumbnail.php?";
	    echo rawurlencode($file);
	    echo "\" border=0></a>\n";
	    if (file_exists("$matches[1].txt")) {
		echo "<p>";
		print file_get_contents("$matches[1].txt");
		echo "</p>\n";
	    }
	    echo "</td>\n";
	    ++$i;
	    if (($i % $wide) == ($wide - 1)) echo "</tr><tr height=155>\n";
	}
   }

?>
</tr>
</table>
</center>
</body>
</html>
