Bug 1003: send message to user if the flag is being reset as per Arbitration
authorMichael Tänzer <neo@nhng.de>
Tue, 5 Jun 2012 22:36:38 +0000 (00:36 +0200)
committerMichael Tänzer <neo@nhng.de>
Tue, 5 Jun 2012 22:36:38 +0000 (00:36 +0200)
ruling

Signed-off-by: Michael Tänzer <neo@nhng.de>
scripts/resetpermissions.php

index 055e36a..0bfdaa3 100755 (executable)
@@ -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";
                }
        }