\n"; MemberPrintNews(); echo "\n"; $ret = ob_get_contents(); ob_end_clean(); return $ret; } /** * Print one news */ function MemberPrintNews() { foreach ($_GET as $k => $v) $$k = $v; foreach ($_POST as $k => $v) $$k = $v; if ( !strlen($ID) ) $ID = 0; $query = "SELECT `Date`, `Header`, `Text` FROM `News` WHERE `ID` = ". (int)$ID; $news_arr = db_arr( $query, 0); if ( !$news_arr ) return; $news_header = process_line_output( $news_arr['Header'] ); $news_text = process_text_withlinks_output( $news_arr['Text'] ); echo "
{$news_arr['Date']}  $news_header
$news_text
\n"; } ?>