matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 1 | <?php |
Marc Kupietz | a3f3fdb | 2023-03-04 18:13:26 +0100 | [diff] [blame] | 2 | $REGISTRATION_INFORMATION = " |
Marc Kupietz | 9009016 | 2023-03-10 13:54:22 +0100 | [diff] [blame] | 3 | <details> |
| 4 | <summary>Registration details</summary> |
Marc Kupietz | 0314662 | 2023-03-07 12:03:21 +0100 | [diff] [blame] | 5 | {{usertable}} |
Marc Kupietz | 9009016 | 2023-03-10 13:54:22 +0100 | [diff] [blame] | 6 | </details> |
Marc Kupietz | a3f3fdb | 2023-03-04 18:13:26 +0100 | [diff] [blame] | 7 | "; |
| 8 | |
Marc Kupietz | 7437633 | 2023-03-06 07:06:45 +0100 | [diff] [blame] | 9 | $WELCOME_TEMPLATE = (object)[ |
| 10 | "subject" => "[" . $SERVICE_ACRONYM . "] Thank you for your " . $SERVICE_ACRONYM . " registration", |
Marc Kupietz | 145f5b9 | 2023-03-09 20:39:31 +0100 | [diff] [blame] | 11 | "text" => "Thank for registering for " . $SERVICE_ACRONYM . " .", |
Marc Kupietz | 7437633 | 2023-03-06 07:06:45 +0100 | [diff] [blame] | 12 | "html" => "<html><body> |
| 13 | <p>Dear {{full_name}},</p> |
Marc Kupietz | 145f5b9 | 2023-03-09 20:39:31 +0100 | [diff] [blame] | 14 | <p>Thank for registering for " . $SERVICE_ACRONYM . " .</p>" |
Marc Kupietz | 7437633 | 2023-03-06 07:06:45 +0100 | [diff] [blame] | 15 | . $REGISTRATION_INFORMATION . " |
| 16 | <p> |
| 17 | <p>Best regards,</p> |
Marc Kupietz | fd5ec04 | 2023-03-10 13:54:22 +0100 | [diff] [blame^] | 18 | <p>Your " . $SERVICE_ACRONYM . " team</p> |
Marc Kupietz | 7437633 | 2023-03-06 07:06:45 +0100 | [diff] [blame] | 19 | </body></html>" |
| 20 | ]; |
| 21 | |
matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 22 | $MAIL_TEMPLATE = (object)[ |
Marc Kupietz | 97afde4 | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 23 | "subject" => "[" . $SERVICE_ACRONYM . "] Confirm your email address", |
matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 24 | "text" => "To complete your registration please paste this to your browser: {{url}}", |
Marc Kupietz | 9ab8c8f | 2023-02-23 12:14:33 +0100 | [diff] [blame] | 25 | "html" => "<html><body> |
Marc Kupietz | a3f3fdb | 2023-03-04 18:13:26 +0100 | [diff] [blame] | 26 | <p>Dear {{full_name}},</p> |
Marc Kupietz | 9009016 | 2023-03-10 13:54:22 +0100 | [diff] [blame] | 27 | <p>Please check the registration details below and click on the confirm button to complete your " . $SERVICE_ACRONYM . " registration:</p>" |
Marc Kupietz | a3f3fdb | 2023-03-04 18:13:26 +0100 | [diff] [blame] | 28 | . $REGISTRATION_INFORMATION . " |
| 29 | <p> |
| 30 | If you did not request this registration, please ignore this email. |
| 31 | If you find errors in the information above, please ignore this email and repeat the registration process. |
| 32 | </p> |
Marc Kupietz | 9ab8c8f | 2023-02-23 12:14:33 +0100 | [diff] [blame] | 33 | <a style='display: inline-block; outline: 0; cursor: pointer; |
| 34 | padding: 5px 16px; |
| 35 | font-size: 14px; |
| 36 | font-weight: bold; |
| 37 | text-decoration: none; |
| 38 | line-height: 20px; |
| 39 | vertical-align: middle; |
| 40 | border: 1px solid; |
| 41 | border-radius: 6px; |
| 42 | color: #ffffff; |
| 43 | background-color: #2ea44f; |
| 44 | border-color: #1b1f2326; |
| 45 | box-shadow: rgba(27, 31, 35, 0.04) 0px 1px 0px 0px, rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset; |
| 46 | transition: 0.2s cubic-bezier(0.3, 0, 0.5, 1); |
| 47 | transition-property: color, background-color, border-color; |
| 48 | :hover { |
| 49 | background-color: #2c974b; |
| 50 | border-color: #1b1f2326; |
| 51 | transition-duration: 0.1s; |
| 52 | } |
Marc Kupietz | 97afde4 | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 53 | ' href='{{url}}'>Confirm " . $SERVICE_ACRONYM . " registration</a> |
Marc Kupietz | a3f3fdb | 2023-03-04 18:13:26 +0100 | [diff] [blame] | 54 | <p>Best regards,</p> |
Marc Kupietz | fd5ec04 | 2023-03-10 13:54:22 +0100 | [diff] [blame^] | 55 | <p>Your " . $SERVICE_ACRONYM . " team</p> |
matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 56 | </body></html>" |
| 57 | ]; |
| 58 | |
| 59 | |
| 60 | $RECOVERY_EMAIL_TEMPLATE = (object)[ |
Marc Kupietz | 97afde4 | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 61 | "subject" => "[" . $SERVICE_ACRONYM . "] Reset password for your " . $SERVICE_ACRONYM . " account", |
Marc Kupietz | 9ab8c8f | 2023-02-23 12:14:33 +0100 | [diff] [blame] | 62 | "text" => "Seems you requested a password reset. If that wasn't you please ignore this message. Otherwise go to this url to change your password: {{url}}", |
Marc Kupietz | 97afde4 | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 63 | "html" => "<html><body><h3>Forgot your " . $SERVICE_ACRONYM . " password?</h3> |
Marc Kupietz | 9ab8c8f | 2023-02-23 12:14:33 +0100 | [diff] [blame] | 64 | <p>It seems that you requested a password reset. If that wasn't you please ignore this message. Otherwise click the button below to reset your password</p> |
| 65 | <a style=' |
| 66 | display: inline-block; |
| 67 | outline: none; |
| 68 | cursor: pointer; |
| 69 | font-weight: bold; |
| 70 | text-decoration: none; |
| 71 | border-radius: 3px; |
| 72 | padding: 12px 24px; |
| 73 | border: 0; |
| 74 | color: #fff; |
| 75 | background: #ff5000; |
| 76 | line-height: 1.15; |
| 77 | font-size: 14px; |
| 78 | :hover { |
| 79 | transition: all .1s ease; |
| 80 | box-shadow: 0 0 0 0 #fff, 0 0 0 3px #1de9b6; |
| 81 | } |
Marc Kupietz | 97afde4 | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 82 | ' href='{{url}}'>Reset your " . $SERVICE_ACRONYM . " password</a> |
matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 83 | </body></html>" |
| 84 | ]; |
| 85 | |
| 86 | |
| 87 | // Add the support email there |
| 88 | $PASSWORD_CHANGED_EMAIL_TEMPLATE = (object)[ |
Marc Kupietz | 97afde4 | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 89 | "subject" => "[" . $SERVICE_ACRONYM . "] Your " . $SERVICE_ACRONYM . " password was changed", |
Marc Kupietz | b527e64 | 2023-02-23 10:04:21 +0100 | [diff] [blame] | 90 | "text" => "Your password was changed successfully. If this wasn't you please contact support", |
matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 91 | "html" => "<html><body> |
Marc Kupietz | 97afde4 | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 92 | <h3>" . $SERVICE_ACRONYM . " password changed</h3><p>Your password was changed successfully. If this wasn't you please contact support.</p> |
matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 93 | </body></html>" |
| 94 | ]; |