5 // Translates Citadel protocol data to insertable HTML snippets. You can
6 // use these directly, or you can bypass them completely.
8 // Copyright (c) 2003 by Art Cancro <ajc@uncensored.citadel.org>
9 // This program is released under the terms of the GNU General Public License.
13 // Fetch and display a message.
15 function display_message($msgnum) {
17 echo '<TABLE border=0 width=100% bgcolor="#DDDDDD"><TR><TD>' ;
18 // Fetch the message from the server
19 list($ok, $response, $fields) = ctdl_fetch_message($msgnum);
21 // Bail out gracefully if the message isn't there.
23 echo "Error: " . htmlspecialchars($response) . "<BR>" ;
24 echo '</TD></TR></TABLE>' ;
30 strftime("%b %d %Y %I:%M%p ", $fields["time"]) .
31 " from " . htmlspecialchars($fields["from"]) .
35 echo $fields["text"] . "<BR>";
37 echo '</TD></TR></TABLE><BR>' ;