Fix up inactivity warnings and include login link on inactivity email

This commit is contained in:
Tony Lambregts
2006-03-24 03:20:34 +00:00
committed by WineHQ
parent cb48d1821c
commit d38adfedac
2 changed files with 5 additions and 4 deletions

View File

@@ -103,7 +103,7 @@ function deleteUser($iUserId)
function warnUserDeleted($sEmail)
{
$sSubject = "Warning: account removed";
$sMsg = "You didn't log in in the past seven month to the AppDB.\r\n";
$sMsg = "You didn't log in in the past seven months to the AppDB.\r\n";
$sMsg .= "As you don't have any data associated to your account we have removed it.\r\n";
$sMsg .= "Please feel free to recreate an account anytime.\r\n";

View File

@@ -656,15 +656,16 @@ class User {
if($this->isMaintainer())
{
$sSubject = "Warning: inactivity detected";
$sMsg = "You didn't log in in the past six month to the AppDB.\r\n";
$sMsg = "You didn't log in in the past six months to the AppDB.\r\n";
$sMsg .= "As a maintainer we would be pleased to see you once in a while.\r\n";
$sMsg .= "Please log in or you will lose your maintainer's abilities in one month.\r\n";
} else
{
$sSubject = "Warning: inactivity detected";
$sMsg = "You didn't log in in the past six month to the AppDB.\r\n";
$sMsg = "You didn't log in in the past six months to the AppDB.\r\n";
$sMsg .= "Please log in or your account will automatically be deleted in one month.\r\n";
}
$sMsg .= APPDB_ROOT."account.php?cmd=login\r\n";
mail_appdb($this->sEmail, $sSubject, $sMsg);