", $desc); $replace = preg_replace('/">.*$/', '">'.$title."", $parts[0]); if (strpos($parts[1], "Search:") !== false) $parts[1] = $parts[1]."\n"; for ($inx = 2; $inx < count($parts); $inx++) { if (strpos($parts[$inx], "Info: .*$/', '" target="_blank">Read More...', $parts[$inx]); } } $rtnValue = $replace; for ($inx = 1; $inx < count($parts); $inx++) $rtnValue .= $parts[$inx]; return $rtnValue; } /** * get rss links * * @return array */ function GetRSSLinks() { global $cfg, $db; $link_array = array(); $sql = "SELECT rid, url FROM tf_rss ORDER BY rid"; $link_array = $db->GetAssoc($sql); if ($db->ErrorNo() != 0) dbError($sql); $result = $db->execute($sql); //return $link_array; //Old Query// while($row = $result->FetchRow()){ $return[$row['rid']] = $row['url']; //var_dump($row); //Test// } return $return; } } ?>