%Text%
%Author%
EOS; /** * get a quote from the database * returns HTML text that represents quote - text and author */ function quote_get ( ) { global $quote_table; global $quote_html; $arr = db_arr("SELECT `Text`, `Author` FROM $quote_table ORDER BY RAND() LIMIT 1"); $ret = $quote_html; $ret = str_replace('%Text%', process_text_output($arr['Text']), $ret); $ret = str_replace('%Author%', process_line_output($arr['Author']), $ret); return $ret; } ?>