Source of ibob_reader/ibob_inc.txt

<?php 

$iboblink = "http://search.bikelist.org/query.asp?SearchString=&FMMod=-1d&FMModDate=&SortBy=MsgDate%5Bd%5D&Scope=internet-bob&RecordsPerPage=50"; 

$ibobsrc = "http://search.bikelist.org/index.asp?SearchString=&FMMod=-1d&FMModDate=&SortBy=MsgDate%5Bd%5D&Scope=internet-bob&RecordsPerPage=75";


?>

<H4 class=section>ibob list 
<!--[<A HREF="<?php echo($iboblink); ?>">link</A>]-->
</h4>


<?php

$show_ot = $_REQUEST["show_ot"];
$revsort = $_REQUEST["revsort"];

//$show_ot = 1;

$fhandle = fopen ($ibobsrc, "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('/getmsg/', 'ibob_read.php?url=http://search.bikelist.org/getmsg', $data);

//preg_match_all('/<b class=\"RecordTitle\">(.*?)<\/b>/', $data, $out);
preg_match_all('/<b class=\"RecordTitle\">(.*?)<\/b><\/td>\s*<td valign=top class=\"RecordTitle\">(.*?)<\/td>/', $data, $out);

$matches = $out[1];
$names = $out[2];
$i = 0;

// optionally sort so posts are listed oldest to newest from top
if ($revsort) {
	$matches = array_reverse($matches);
	$names = array_reverse($names);
}

foreach ($matches as $m) {
  
	$subject = preg_replace('/<.*?>/', '', $m);

	
	if (!$show_ot && preg_match("/OT(:|;)?/", $subject)) {
		$i++; // keep names[] in sync
		continue;
	}

  	$m = preg_replace('/href/', 'onClick="hilite2(this)" href', $m);

	if (!preg_match("/^re:/i", $subject)) {
		$subject = "RE:" . $subject;
  	}

// filter certain msgs
if (preg_match("/Xxx Xxxxxx/i", $names[$i])) {
$i++;
continue;
}


  	echo("<TABLE BORDER=0 WIDTH=100% CELLPADDING=1 CELLSPACING=1>");
  	echo("<TR>");
  	echo("<TD width=100%>$m ($names[$i])</TD><TD><A class=reply onClick=\"hilite(this)\" target=rply HREF=\"ibob_reply.php?subject=". urlencode($subject). '">[reply]</A></TD>');
  	echo("</TR></TABLE>\n");

	$i = $i+1;

}


?> 

<div class=section>
[<A HREF="<?php echo($ibobsrc) ?>">raw source</A>]
</div>