summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2012-06-06 00:36:38 +0200
committerMichael Tänzer <neo@nhng.de>2012-06-06 00:36:38 +0200
commit34df6b74fb581efd9c4a19d26f10a08501386492 (patch)
tree3659d5fbdfbd4ed7c7b2d39c411107cac3199cf2
parent52041cf90d4306d45767ffc5e5a39fce0b475cf0 (diff)
downloadcacert-devel-34df6b74fb581efd9c4a19d26f10a08501386492.tar.gz
cacert-devel-34df6b74fb581efd9c4a19d26f10a08501386492.tar.xz
cacert-devel-34df6b74fb581efd9c4a19d26f10a08501386492.zip
Bug 1003: send message to user if the flag is being reset as per Arbitration
ruling Signed-off-by: Michael Tänzer <neo@nhng.de>
-rwxr-xr-xscripts/resetpermissions.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/resetpermissions.php b/scripts/resetpermissions.php
index 055e36a..0bfdaa3 100755
--- a/scripts/resetpermissions.php
+++ b/scripts/resetpermissions.php
@@ -49,6 +49,20 @@ foreach ($flags as $flag) {
);
} else {
+
+ $message = <<<EOF
+Hi $row[fname],
+
+As per Arbitration a20110118.1 [1] the $flag permission has been removed
+from your account.
+
+[1] https://wiki.cacert.org/Arbitrations/a20110118.1
+
+Best Regards,
+CAcert Support
+EOF;
+ sendmail($row['email'], "Permissions have been reset", $message, 'support@cacert.org');
+
echo " reset.\n";
}
}