X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fsiteconfig.c;h=b82b0d2ab4440618aef0df10f6fe829ad7e0819a;hb=50511759c152f4ca2e22fb39a9bf31fc9f9d916d;hp=90f274f853f93278634604f3b2aa72aa5be0aecb;hpb=211f2ada2a5578a1877059d5a4d2f9e28bc7896e;p=citadel.git diff --git a/webcit/siteconfig.c b/webcit/siteconfig.c index 90f274f85..b82b0d2ab 100644 --- a/webcit/siteconfig.c +++ b/webcit/siteconfig.c @@ -1,751 +1,527 @@ /* - * $Id$ + * Administrative screen for site-wide configuration + * + * Copyright (c) 1996-2021 by the citadel.org team + * + * This program is open source software. You can redistribute it and/or + * modify it under the terms of the GNU General Public License, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. */ -/** - * \defgroup AdminConfig Administrative screen for site-wide configuration - * \ingroup CitadelConfig - */ -/*@{*/ #include "webcit.h" #include "webserver.h" -/** - * \brief display all configuration items +/* + * Expiry policy for the autopurger */ -void display_siteconfig(void) -{ - char buf[SIZ]; - int i, j; +#define EXPIRE_NEXTLEVEL 0 /* Inherit expiration policy */ +#define EXPIRE_MANUAL 1 /* Don't expire messages at all */ +#define EXPIRE_NUMMSGS 2 /* Keep only latest n messages */ +#define EXPIRE_AGE 3 /* Expire messages after n days */ - char general[65536]; - char access[SIZ]; - char network[SIZ]; - char tuning[SIZ]; - char directory[SIZ]; - char purger[SIZ]; - char idxjnl[SIZ]; - char funambol[SIZ]; - /** expire policy settings */ - int sitepolicy = 0; - int sitevalue = 0; - int mboxpolicy = 0; - int mboxvalue = 0; - - output_headers(1, 1, 2, 0, 0, 0); - wprintf("
\n"); - wprintf(" | \n"); - wprintf("