function phpblock_feeds( ){ global $_CONF, $_TABLES; $retval = ""; $result = DB_query("SELECT * FROM {$_TABLES['syndication']} WHERE is_enabled = 1 ORDER BY format, title",1); $rows = DB_numRows($result); for ($i=0; $i< $rows; $i++) { $row = DB_fetchArray($result) ; $flogo = $row['feedlogo']; if ( $flogo == "" ) { $flogo = "/images/feed.png"; } $ftitle = htmlspecialchars( $row['title'] ); $fdesc = ( $row['description'] ); if ( $fdesc == "" ) { $fdesc = $ftitle; } $fspec = $_CONF['site_url'] . '/backend/' . $row['filename']; $retval .= ' <img src="'. $_CONF['site_url'] . $flogo .'" alt="'. $fdesc .'"> <a href="'. $fspec .'" type="application/rss+xml" title="Click to Subscribe">'. $ftitle .'</a><br>'; } return $retval; }