]> code.citadel.org Git - citadel.git/blobdiff - ctdlphp/ctdlprotocol.php
* Identify ourselves to Citadel using IDEN
[citadel.git] / ctdlphp / ctdlprotocol.php
index 32d0030450e1504604ed78e55d5a955c94ae3927..e197952cdf304a64191ebe850effbf5849d56a8a 100644 (file)
@@ -30,6 +30,20 @@ function serv_puts($buf) {
        fwrite($clientsocket, $buf . "\n", (strlen($buf)+1) );
 }
 
+
+
+//
+// Identify this client, and the hostname where the user is, to Citadel.
+//
+function ctdl_iden() {
+       global $clientsocket;
+
+       serv_puts("IDEN 0|8|001|PHP web client|" . $_SERVER['REMOTE_ADDR'] );
+       $buf = serv_gets();
+}
+
+
+
 //
 // login_existing_user() -- attempt to login using a supplied username/password
 // Returns an array with two variables: