// This program is released under the terms of the GNU General Public License. // // Fetch and display a message. // function display_message($msgnum) { echo '
' ; // Fetch the message from the server list($ok, $response, $fields) = ctdl_fetch_message($msgnum); // Bail out gracefully if the message isn't there. if (!$ok) { echo "Error: " . htmlspecialchars($response) . "
" ; echo '
' ; return; } // Begin header echo "" . strftime("%b %d %Y %I:%M%p ", $fields["time"]) . " from " . htmlspecialchars($fields["from"]) . "
\n" ; // Do message text echo $fields["text"] . "
"; echo '
' ; } ?>