From 6b76d41adabe33889f38f9b0f5839b5d79cd86ca Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Fri, 14 Nov 2003 17:15:19 +0000 Subject: [PATCH] * Identify our message format preference (HTML followed by plain text) to the server upon connection, so MSG4 commands run properly. --- ctdlphp/ChangeLog | 5 +++++ ctdlphp/ctdlprotocol.php | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ctdlphp/ChangeLog b/ctdlphp/ChangeLog index 636b2861c..aa5d436fb 100644 --- a/ctdlphp/ChangeLog +++ b/ctdlphp/ChangeLog @@ -1,4 +1,8 @@ $Log$ + Revision 1.17 2003/11/14 17:15:19 ajc + * Identify our message format preference (HTML followed by plain text) + to the server upon connection, so MSG4 commands run properly. + Revision 1.16 2003/11/14 17:09:04 ajc * Added a basic read loop ... currently only fetches message numbers @@ -69,3 +73,4 @@ Revision 1.1 2003/10/31 03:47:13 ajc * Initial CVS import + diff --git a/ctdlphp/ctdlprotocol.php b/ctdlphp/ctdlprotocol.php index 7341f2d19..b3ebe3379 100644 --- a/ctdlphp/ctdlprotocol.php +++ b/ctdlphp/ctdlprotocol.php @@ -32,13 +32,18 @@ function serv_puts($buf) { // -// Identify this client, and the hostname where the user is, to Citadel. +// Identify ourselves to the Citadel server (do this once after connection) // function ctdl_iden() { global $clientsocket; + // Identify client and hostname serv_puts("IDEN 0|8|001|PHP web client|" . $_SERVER['REMOTE_ADDR'] ); $buf = serv_gets(); + + // Also express our message format preferences + serv_puts("MSGP text/html|text/plain"); + $buf = serv_gets(); } -- 2.30.2