Commit Graph

19 Commits

Author SHA1 Message Date
Chris Morgan
4469e01e5b Be more specific with users we warned and ones that we wanted to warn but didn't because they have data associated with their account 2005-10-09 18:32:44 +00:00
Chris Morgan
eada9b9658 Remove debug printing from cleanup script now that the bug in user.php has been fixed 2005-10-09 18:17:43 +00:00
Chris Morgan
1de5d7923f Make sure $hUsersToWarn and $hUsersToDelete are valid before calling mysql_fetch_object() on them 2005-10-09 17:32:59 +00:00
Chris Morgan
d4740cf030 Add another line of debug output to the cleanup script to see how many rows we retrieved 2005-10-09 15:44:09 +00:00
Tony Lambregts
2a9c77c0b2 Fix bugs in cleanup script that were preventing debug emails from being sent. Add more debug emails 2005-10-08 22:42:51 +00:00
Chris Morgan
5522e80a9e Add more progress emails to the cleanup script, these are sent directly to me to avoid spamming people during debug 2005-10-05 00:42:35 +00:00
Chris Morgan
a66ae25f38 Move deletion of maintainer logic into the user class. If the cleanup script wants to delete a user and can't, if they are a maintainer we should remove their maintainer status even if we don't delete their account. Send email at the start of the cleanup script to aid in debug 2005-09-30 01:37:57 +00:00
Chris Morgan
b067e62789 Simplify the cleanup script a little bit. Report a summary of what the cleanup script did in the email that the script sends to the appdb admins 2005-09-29 01:45:39 +00:00
Chris Morgan
1a58863f78 Improve cleanup script to give users 1 month after warning before removing their account. Move user related logic into the user class. Add columns to the user_list table to track whether the user was warned about inactivity and the datetime of the warning. 2005-09-28 00:32:48 +00:00
Chris Morgan
374c6f550b Disable the cleanup script until the patch to fix it is reviewed carefully, otherwise we may email a bunch of people again 2005-09-23 02:52:19 +00:00
Chris Morgan
c44f818218 Send notification emails to admins when the cleanup cron job executes so there is some visibility into the maintenance tasks running on the appdb. Fix a minor bug in the user class where passing in (null,null) for iVendorId and iAppId results in a null query string being sent to mysql and triggering an error 2005-09-15 00:22:22 +00:00
Chris Morgan
342bd66485 Delete a users comments when the user is deleted. Return the correct
value in cron/cleanup.php when looking for user associated data.
2005-05-13 00:28:28 +00:00
Chris Morgan
c6d02eab88 Improve efficiency of hasDataAssociated() by counting rows of a single column
instead of selecting *
2005-02-15 19:19:36 +00:00
Jonathan Ernst
0f0737f047 - doesn't send e-mail from the cleanup script until we have less bad email users.
- use the user class to cleanly delete user
2005-02-14 18:21:27 +00:00
Jonathan Ernst
7b12f89abf - improve application and related classes
- use application/version/vendor class in scripts
- don't use a full table for queued appication but only one field in the application and version tables
- simplify the code in many places
2005-02-07 23:21:33 +00:00
Jonathan Ernst
2083bf521b - OO version of user class
- no more duplicated functions
- improved performances (much less duplicated mysql queries)
- less code and better error handling
2005-01-30 23:12:48 +00:00
Jonathan Ernst
0a839e359a - use mail_appdb() instead of mail() for better error handling and to avoid code duplication
- use \r\n as line separator in mail (RFC compliant)
2005-01-30 00:57:34 +00:00
Jonathan Ernst
e8ec89374b Remove unused tables 2005-01-29 17:19:19 +00:00
Jonathan Ernst
b3eee9c65f - cron job to delete inactive users
- improved statistics
2005-01-19 05:03:07 +00:00