Unable to open remote file.\n”;
exit;
}
$ln=0;
$intr = false;
$print = true;
while (!feof ($file)) {
$line = fgets ($file, 1024);
$ind = strpos($line, ‘href=”/’);
if ($ind) $line = substr_replace($line, ‘https://my.acbl.org’, $ind+6, 0);
$pr = htmlentities($line);
if (!$intr) {
if (strpos($line, “
$intr = true;
$trlines = $line;
$print = true;
} else {
echo “$line\n”;
}
} else {
$trlines = “$trlines\n$line”;
if (strpos($line, “#”)) $print = false;
if (strpos($line, “
“)) {
if ($print) echo “$trlines\n”;
$intr = false;
}
}
$ln++;
}
fclose($file);
?>