$Log$
+ Revision 608.14 2003/07/30 03:54:34 ajc
+ * Fixed a small client bug in the purge hour setting
+
Revision 608.13 2003/07/30 03:47:53 ajc
* Eliminated the EXPI command
* Completed the configuration item of "purge hour"
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
void do_system_configuration(CtdlIPC *ipc)
{
char buf[SIZ];
- char sc[31][SIZ];
+ char sc[32][SIZ];
char *resp = NULL;
struct ExpirePolicy *expirepolicy = NULL;
int a;
while (strlen(resp)) {
extract_token(buf, resp, 0, '\n');
remove_token(resp, 0, '\n');
- if (a < 31) {
+ if (a < 32) {
strcpy(&sc[a][0], buf);
}
++a;
strprompt("Keep messages for how many days?", buf, 10);
expirepolicy->expire_value = atol(buf);
}
- strprompt("Hour to run purges (0-23)", &sc[31][0], 4);
+ strprompt("Hour to run purges (0-23)", &sc[31][0], 2);
/* Save it */
scr_printf("Save this configuration? ");
if (yesno()) {
r = 1;
- for (a = 0; a < 31; a++)
+ for (a = 0; a < 32; a++)
r += 1 + strlen(sc[a]);
resp = (char *)calloc(1, r);
if (!resp) {
err_printf("Can't save config - out of memory!\n");
logoff(ipc, 1);
}
- for (a = 0; a < 31; a++) {
+ for (a = 0; a < 32; a++) {
strcat(resp, sc[a]);
strcat(resp, "\n");
}