From e74799a8b4a417df6e8a619bf983a19e6db6af03 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sun, 22 May 2005 16:20:09 +0000 Subject: [PATCH] * siteconfig.c: add checkbox for enabling full text index on server --- webcit/ChangeLog | 4 ++++ webcit/siteconfig.c | 11 +++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 1af6a2f8e..132b0255c 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,7 @@ $Log$ +Revision 610.5 2005/05/22 16:20:09 ajc +* siteconfig.c: add checkbox for enabling full text index on server + Revision 610.4 2005/05/11 03:00:03 ajc * webcit.c: fixed a string bug that caused the whole system to not work * messages.c: fullname only and brief date in summary view, so that it @@ -2517,3 +2520,4 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix + diff --git a/webcit/siteconfig.c b/webcit/siteconfig.c index 26462030a..f848658b1 100644 --- a/webcit/siteconfig.c +++ b/webcit/siteconfig.c @@ -474,7 +474,14 @@ void display_siteconfig(void) } break; case 31: - /* placeholder -- there is no option 31 */ + if (!strcasecmp(whichmenu, "general")) { + wprintf("Enable full text index (warning: resource intensive)"); + wprintf("", ((atoi(buf) != 0) ? "CHECKED" : "")); + wprintf("\n"); + } + else { + wprintf("", buf); + } break; case 32: if (!strcasecmp(whichmenu, "tuning")) { @@ -714,7 +721,7 @@ void siteconfig(void) serv_printf("%s", bstr("c_imap_port")); serv_printf("%s", bstr("c_net_freq")); serv_printf("%s", ((!strcasecmp(bstr("c_disable_newu"), "yes") ? "1" : "0"))); - serv_printf("1"); /* placeholder -- deprecated */ + serv_printf("%s", ((!strcasecmp(bstr("c_enable_fulltext"), "yes") ? "1" : "0"))); serv_printf("%s", bstr("c_purge_hour")); serv_printf("%s", bstr("c_ldap_host")); serv_printf("%s", bstr("c_ldap_port")); -- 2.39.2