*
* You might also see this module affectionately referred to as the DAP (the Dreaded Auto-Purger).
*
- * Copyright (c) 1988-2015 by citadel.org (Art Cancro, Wilifried Goesgens, and others)
+ * Copyright (c) 1988-2017 by citadel.org (Art Cancro, Wilifried Goesgens, and others)
*
* This program is open source software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
long vu_usernum;
};
-
struct ctdlroomref {
struct ctdlroomref *next;
long msgnum;
return;
}
-
/* If the room is set to expire by count, do that */
if (epbuf.expire_mode == EXPIRE_NUMMSGS) {
if (num_msgs > epbuf.expire_value) {
}
-
int PurgeRooms(void) {
struct PurgeList *pptr;
int num_rooms_purged = 0;
syslog(LOG_DEBUG, "PurgeRooms() called");
-
/* Load up a table full of valid user numbers so we can delete
* user-owned rooms for users who no longer exist */
ForEachUser(AddValidUser, NULL);
ValidUserList = vuptr;
}
-
transcript = malloc(SIZ);
strcpy(transcript, "The following rooms have been auto-purged:\n");
}
-
-
/*
* Back end function to check user accounts for expiration.
*/
}
-
int PurgeUsers(void) {
struct PurgeList *pptr;
int num_users_purged = 0;
return(purged);
}
+
/*
* Purge the use table of old entries.
*
}
cdb_free(cdbut);
- syslog(LOG_DEBUG, "UT: [%s] at %s", ut.ut_msgid, asctime(localtime(&ut.ut_timestamp))); // FIXME take this out ajc
-
if ( (time(NULL) - ut.ut_timestamp) > USETABLE_RETAIN )
{
uptr = (struct UPurgeList *) malloc(sizeof(struct UPurgeList));
}
-
/*
* Purge the EUID Index of old records.
*
}
-
/*
* Purge OpenID assocations for missing users (theoretically this will never delete anything)
*/
}
-
-
-
void purge_databases(void)
{
int retval;
}
-
CTDL_MODULE_INIT(expire)
{
if (!threading)