Source of ibob_reader/ibob_read_php.txt
<?php
$url = $_REQUEST['url'];
$fhandle = fopen ($url, "r");
if (!$fhandle) {
echo "<p>Unable to open remote file.\n";
exit;
}
while ( ($line = fgets($fhandle)) != false ) {
$line = trim($line);
$data .= $line;
}
fclose($fhandle);
$data = preg_replace("/<(http\S+?)>/i", "\\1", $data);
$data = preg_replace( "`((http)+(s)?:(//)|(www\.))((\w|\.|\-|_)+)(/)?(\S+)?`i", "<a target=\"rply\" href=\"http\\3://\\5\\6\\8\\9\">http\\3://\\5\\6\\8\\9</a>", $data);
$data = preg_replace('/query.asp/', 'http://search.bikelist.org/query.asp', $data);
$data = preg_replace('/"getmsg.asp/', '"http://search.bikelist.org/getmsg.asp', $data);
$data = preg_replace('/_top/', 'rply', $data);
echo($data);
preg_match('/(\[BOB\].*?)<\/a>/', $data, $out1);
$subject = $out1[1];
preg_match('/From: (.+?)\r/', $data, $out2);
$author = htmlspecialchars($out2[1]);
preg_match('/Subject: .+?\r\r+(.*)\r+__________/', $data, $out3);
$message = htmlspecialchars(">>" . $out3[1] . "<<");
//print_r($out3);
$message = "$author wrote:\n" . $message;
?>
<FORM TARGET="rply" ACTION="ibob_reply.php" METHOD="POST">
<INPUT TYPE="hidden" NAME="subject" VALUE="<?php echo(htmlentities($subject)) ?>">
<INPUT TYPE="hidden" NAME="message" VALUE="<?php echo($message) ?>">
<DIV ALIGN=CENTER><INPUT TYPE="submit" NAME="reply" value="quote & reply"></DIV>
</FORM>