]> code.citadel.org Git - citadel.git/blobdiff - ctdlphp/ctdlprotocol.php
* Identify our message format preference (HTML followed by plain text)
[citadel.git] / ctdlphp / ctdlprotocol.php
index 7341f2d1965804894d4fa2c71ee406d5749d10b2..b3ebe337998a89de63eaf8adea68cbcfa45d40bc 100644 (file)
@@ -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();
 }