$handle=opendir('.');
while (($file = readdir($handle))!=false) {
if (($len=strpos($file,".mod"))>0) {
$callsign=substr($file,0,$len);
echo "| $callsign | Modifications to $callsign\n";
} elseif (($len=strpos($file,".9k6"))>0) {
$callsign=substr($file,0,$len);
echo " |
| $callsign | 9600bps G3RUH modifications to $callsign\n";
} elseif (($len=strpos($file,".arj"))>0) {
$callsign=substr($file,0,$len);
echo " |
| $callsign | Compressed archive about $callsign\n";
} elseif (($len=strpos($file,".gif"))>0 || ($len=strpos($file,".jpg"))>0) {
$callsign=substr($file,0,$len);
echo " |
| $callsign | Image about $callsign\n";
} elseif (strcmp($file,".") && strcmp($file,"..") && strcmp($file,"index.php")) { /* other file */
echo " |
| $file | Other informations ($file)\n";
}
}
closedir($handle);
?>
|