| matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 1 | <?php | 
| Marc Kupietz | 0375b7e | 2023-03-04 18:13:26 +0100 | [diff] [blame] | 2 | $REGISTRATION_INFORMATION = " | 
 | 3 | <h3>Registration information</h3> | 
 | 4 | <p> | 
 | 5 | <table style='border: 1px solid #e1e4e8; border-collapse: collapse; width: 100%;'> | 
 | 6 | <tr> | 
 | 7 | <td style='border: 1px solid #e1e4e8; padding: 6px 13px;'> | 
 | 8 | <strong>Username</strong> | 
 | 9 | </td> | 
 | 10 | <td style='border: 1px solid #e1e4e8; padding: 6px 13px;'> | 
 | 11 | {{username}} | 
 | 12 | </td> | 
 | 13 | </tr> | 
 | 14 | <tr> | 
 | 15 | <td style='border: 1px solid #e1e4e8; padding: 6px 13px;'> | 
 | 16 | <strong>Name</strong> | 
 | 17 | </td> | 
 | 18 | <td style='border: 1px solid #e1e4e8; padding: 6px 13px;'> | 
 | 19 | {{full_name}} | 
 | 20 | </td> | 
 | 21 | </tr> | 
 | 22 | <tr> | 
 | 23 | <td style='border: 1px solid #e1e4e8; padding: 6px 13px;'> | 
 | 24 | <strong>Organization</strong> | 
 | 25 | </td> | 
 | 26 | <td style='border: 1px solid #e1e4e8; padding: 6px 13px;'> | 
 | 27 | {{organization}} | 
 | 28 | </td> | 
 | 29 | </tr> | 
 | 30 | <tr> | 
 | 31 | <td style='border: 1px solid #e1e4e8; padding: 6px 13px;'> | 
 | 32 | <strong>Email</strong> | 
 | 33 | </td> | 
 | 34 | <td style='border: 1px solid #e1e4e8; padding: 6px 13px;'> | 
 | 35 | {{email}} | 
 | 36 | </td> | 
 | 37 | </tr> | 
 | 38 | </table> | 
 | 39 | </p> | 
 | 40 | "; | 
 | 41 |  | 
| Marc Kupietz | fc4e227 | 2023-03-06 07:06:45 +0100 | [diff] [blame^] | 42 | $WELCOME_TEMPLATE = (object)[ | 
 | 43 |         "subject" => "[" . $SERVICE_ACRONYM . "] Thank you for your " . $SERVICE_ACRONYM . " registration", | 
 | 44 |         "text"    => "Thank for registering at " . $SERVICE_ACRONYM . " .", | 
 | 45 |         "html" => "<html><body> | 
 | 46 |                 <p>Dear {{full_name}},</p> | 
 | 47 |                 <p>Thank for registering at " . $SERVICE_ACRONYM . " .</p>" | 
 | 48 |                 . $REGISTRATION_INFORMATION . " | 
 | 49 |                 <p> | 
 | 50 |                 <p>Best regards,</p> | 
 | 51 |                 <p>" . $SERVICE_ACRONYM . " team</p> | 
 | 52 |         </body></html>" | 
 | 53 | ]; | 
 | 54 |  | 
| matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 55 | $MAIL_TEMPLATE = (object)[ | 
| Marc Kupietz | ad3ab5d | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 56 |         "subject" => "[" . $SERVICE_ACRONYM . "] Confirm your email address", | 
| matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 57 |         "text"    => "To complete your registration please paste this to your browser: {{url}}", | 
| Marc Kupietz | 9ab8c8f | 2023-02-23 12:14:33 +0100 | [diff] [blame] | 58 |         "html" => "<html><body> | 
| Marc Kupietz | 0375b7e | 2023-03-04 18:13:26 +0100 | [diff] [blame] | 59 |                 <p>Dear {{full_name}},</p> | 
 | 60 |                 <p>Please check the information below and click on the confirm button to complete your " . $SERVICE_ACRONYM . " registration:</p>" | 
 | 61 |                 . $REGISTRATION_INFORMATION . " | 
 | 62 |                 <p> | 
 | 63 |                 If you did not request this registration, please ignore this email. | 
 | 64 |                 If you find errors in the information above, please ignore this email and repeat the registration process. | 
 | 65 |                 </p> | 
| Marc Kupietz | 9ab8c8f | 2023-02-23 12:14:33 +0100 | [diff] [blame] | 66 |                 <a style='display: inline-block; outline: 0; cursor: pointer; | 
 | 67 |                 padding: 5px 16px; | 
 | 68 |                 font-size: 14px; | 
 | 69 |                 font-weight: bold; | 
 | 70 |                 text-decoration: none; | 
 | 71 |                 line-height: 20px; | 
 | 72 |                 vertical-align: middle; | 
 | 73 |                 border: 1px solid; | 
 | 74 |                 border-radius: 6px; | 
 | 75 |                 color: #ffffff; | 
 | 76 |                 background-color: #2ea44f; | 
 | 77 |                 border-color: #1b1f2326; | 
 | 78 |                 box-shadow: rgba(27, 31, 35, 0.04) 0px 1px 0px 0px, rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset; | 
 | 79 |                 transition: 0.2s cubic-bezier(0.3, 0, 0.5, 1); | 
 | 80 |                 transition-property: color, background-color, border-color; | 
 | 81 |                 :hover { | 
 | 82 |                     background-color: #2c974b; | 
 | 83 |                     border-color: #1b1f2326; | 
 | 84 |                     transition-duration: 0.1s; | 
 | 85 |                 } | 
| Marc Kupietz | ad3ab5d | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 86 |             ' href='{{url}}'>Confirm " . $SERVICE_ACRONYM . " registration</a> | 
| Marc Kupietz | 0375b7e | 2023-03-04 18:13:26 +0100 | [diff] [blame] | 87 |             <p>Best regards,</p> | 
 | 88 |                 <p>" . $SERVICE_ACRONYM . " team</p> | 
| matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 89 |         </body></html>" | 
 | 90 | ]; | 
 | 91 |  | 
 | 92 |  | 
 | 93 | $RECOVERY_EMAIL_TEMPLATE = (object)[ | 
| Marc Kupietz | ad3ab5d | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 94 |         "subject" => "[" . $SERVICE_ACRONYM . "] Reset password for your " . $SERVICE_ACRONYM . " account", | 
| Marc Kupietz | 9ab8c8f | 2023-02-23 12:14:33 +0100 | [diff] [blame] | 95 |         "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 | ad3ab5d | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 96 |         "html"    => "<html><body><h3>Forgot your " . $SERVICE_ACRONYM . " password?</h3> | 
| Marc Kupietz | 9ab8c8f | 2023-02-23 12:14:33 +0100 | [diff] [blame] | 97 |                 <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> | 
 | 98 |                 <a style=' | 
 | 99 |                 display: inline-block; | 
 | 100 |                 outline: none; | 
 | 101 |                 cursor: pointer; | 
 | 102 |                 font-weight: bold; | 
 | 103 |                 text-decoration: none; | 
 | 104 |                 border-radius: 3px; | 
 | 105 |                 padding: 12px 24px; | 
 | 106 |                 border: 0; | 
 | 107 |                 color: #fff; | 
 | 108 |                 background: #ff5000; | 
 | 109 |                 line-height: 1.15; | 
 | 110 |                 font-size: 14px; | 
 | 111 |                 :hover { | 
 | 112 |                     transition: all .1s ease; | 
 | 113 |                     box-shadow: 0 0 0 0 #fff, 0 0 0 3px #1de9b6; | 
 | 114 |                 } | 
| Marc Kupietz | ad3ab5d | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 115 |             ' href='{{url}}'>Reset your " . $SERVICE_ACRONYM . " password</a> | 
| matheusfillipe | f43dd96 | 2021-05-13 23:27:01 -0300 | [diff] [blame] | 116 |         </body></html>" | 
 | 117 | ]; | 
 | 118 |  | 
 | 119 |  | 
 | 120 | // Add the support email there | 
 | 121 | $PASSWORD_CHANGED_EMAIL_TEMPLATE = (object)[ | 
| Marc Kupietz | ad3ab5d | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 122 |         "subject" => "[" . $SERVICE_ACRONYM . "] Your " . $SERVICE_ACRONYM . " password was changed", | 
| Marc Kupietz | b527e64 | 2023-02-23 10:04:21 +0100 | [diff] [blame] | 123 |         "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] | 124 |         "html"    => "<html><body> | 
| Marc Kupietz | ad3ab5d | 2023-03-04 14:12:46 +0100 | [diff] [blame] | 125 |                 <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] | 126 |         </body></html>" | 
 | 127 | ]; |