From: Art Cancro Date: Fri, 9 Sep 2005 22:06:12 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: v7.86~4673 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=bd760bd9791d37fd9df6c556111c566cb973f5c2;p=citadel.git *** empty log message *** --- diff --git a/webcit/autocompletion.c b/webcit/autocompletion.c new file mode 100644 index 000000000..5b71a9ebd --- /dev/null +++ b/webcit/autocompletion.c @@ -0,0 +1,46 @@ +/* + * $Id$ + * + * ajax-powered autocompletion... + */ + +#include "webcit.h" + + +/* + * Recipient autocompletion results + */ +void recp_autocomplete(void) { + char buf[1024]; + char name[128]; + + output_headers(0, 0, 0, 0, 0, 0, 0); + + wprintf("Content-type: text/html\r\n" + "Server: %s\r\n" + "Connection: close\r\n" + "Pragma: no-cache\r\n" + "Cache-Control: no-store\r\n", + SERVER); + begin_burst(); + + wprintf(""); + + wprintf("\r\n\r\n"); + wDumpContent(0); +} +