UTRS/utrs — pull request #4 by martijnhoekstra (2012-04-13 21:16:29+00:00)
Title: Utrs 99

script to close UTRS 99.

Prerequisites:
* Needs a user named SYSTEM in the users database

Actions to actually close UTRS 99:
* run clean_requests.php periodically. Probably easiest from a daily cronjob

Quite some changes:

Add script (clean_requests.php) to send reminders when an appeal is AWAITING USER for 5 days or more, and to send close notification and close appeal 5 days after the reminder is sent.

Under the hood:
* moved part of email functionality to appeals object.
* Made some changes here and there to be able to set the user of log messages, backwards compatible through default values.
* Change query for 5 last closed requests to be more forgiving, and always fetch 5 last closed requests, even if the lastComment of an appeal doesn't have the exact content 'closed'
* fix one require_once path in unblocklib

Because the changes are largish, good beta testing is prefered on this patch