Balfour Buzz

<?=$strTitle?>

 Stay up to date on everything Balfour

0?$intPage:1; $intTotal = count($aryFiles); $intStart = ($intPage-1)*PAGESIZE; $intEnd = $intStart+PAGESIZE-1 < $intTotal ? $intStart+PAGESIZE-1 : $intTotal-1; $objList = new clsList($intTotal); for ( $i=$intStart;$i<=$intEnd;$i++) { $strFile = $aryFiles[$i]; $strImagePath = str_replace(".html", ".jpg", $strFile); preg_match("/content\/story(\d+)\.html/",$strFile,$aryMatch); $id = $aryMatch[1]; $h = fopen($strFile, "r"); $strTitle = trim(fgets($h, 200)); $dtmTimestamp = trim(fgets($h, 50)); // -- timestamp is stored in second line of file $objDate = date_create($dtmTimestamp); $strTimestamp = $objDate->format("F d, Y, g:iA"); $strBody = fread($h, 4096); //str_replace("\n\r", "

", fread($h, 4096)); $CRLFPos = strpos($strBody, "\r\n\r\n") || strpos($strBody, "\n\n"); $PeriodPos = strpos($strBody, ".", 200); $Pos = $CRLFPos < $PeriodPos ? $CRLFPos : $PeriodPos; $strExcerpt = substr($strBody, 0, $Pos+1); ?> ".$objList->getPageLinks(PAGESIZE)."
"; } ?>