\n";
while (!feof ($fd)) {
$buf = fgets($fd, 4096);
$t = explode("\t", $buf);
$ac = ($ac == "" ? " bgcolor=\"$bg_alt_color\"" : "");
$field_num = 0;
if($buf>"") {
echo "
\n";
foreach($t as $the_item) {
++$field_num;
if(!($first_time && $col_1_2_urls && $field_num==2)) { // false only once per table: on 2nd column of 1st row, if $col_1_2_urls=true
$pre_s = "\t| " : ">");
$post_s = " " . ($first_time ? "" : "") . " | \n";
if($col_1_2_urls && !$first_time) { // this block is for the column 1+2 URL magic
if($field_num == 1) {
$pre_s .= "";
}
if($field_num == 2) {
$pre_s = "";
$post_s = "" . $post_s;
}
}
echo $pre_s . trim($the_item) . $post_s;
}
}
echo "
\n";
}
$first_time = false;
}
echo "";
if($dl_link) {
echo "\n";
}
fclose ($fd);
} else {
echo "\nTDDDS error: the file \"$the_file\" could not be opened.
";
}
}
?>