blob: 7d61eef3ff2d50ae0a9d50056b777ac2988802e6 [file] [log] [blame]
matheusfillipef43dd962021-05-13 23:27:01 -03001<?php
Marc Kupietz0375b7e2023-03-04 18:13:26 +01002$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
matheusfillipef43dd962021-05-13 23:27:01 -030042$MAIL_TEMPLATE = (object)[
Marc Kupietzad3ab5d2023-03-04 14:12:46 +010043 "subject" => "[" . $SERVICE_ACRONYM . "] Confirm your email address",
matheusfillipef43dd962021-05-13 23:27:01 -030044 "text" => "To complete your registration please paste this to your browser: {{url}}",
Marc Kupietz9ab8c8f2023-02-23 12:14:33 +010045 "html" => "<html><body>
Marc Kupietz0375b7e2023-03-04 18:13:26 +010046 <p>Dear {{full_name}},</p>
47 <p>Please check the information below and click on the confirm button to complete your " . $SERVICE_ACRONYM . " registration:</p>"
48 . $REGISTRATION_INFORMATION . "
49 <p>
50 If you did not request this registration, please ignore this email.
51 If you find errors in the information above, please ignore this email and repeat the registration process.
52 </p>
Marc Kupietz9ab8c8f2023-02-23 12:14:33 +010053 <a style='display: inline-block; outline: 0; cursor: pointer;
54 padding: 5px 16px;
55 font-size: 14px;
56 font-weight: bold;
57 text-decoration: none;
58 line-height: 20px;
59 vertical-align: middle;
60 border: 1px solid;
61 border-radius: 6px;
62 color: #ffffff;
63 background-color: #2ea44f;
64 border-color: #1b1f2326;
65 box-shadow: rgba(27, 31, 35, 0.04) 0px 1px 0px 0px, rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset;
66 transition: 0.2s cubic-bezier(0.3, 0, 0.5, 1);
67 transition-property: color, background-color, border-color;
68 :hover {
69 background-color: #2c974b;
70 border-color: #1b1f2326;
71 transition-duration: 0.1s;
72 }
Marc Kupietzad3ab5d2023-03-04 14:12:46 +010073 ' href='{{url}}'>Confirm " . $SERVICE_ACRONYM . " registration</a>
Marc Kupietz0375b7e2023-03-04 18:13:26 +010074 <p>Best regards,</p>
75 <p>" . $SERVICE_ACRONYM . " team</p>
matheusfillipef43dd962021-05-13 23:27:01 -030076 </body></html>"
77];
78
79
80$RECOVERY_EMAIL_TEMPLATE = (object)[
Marc Kupietzad3ab5d2023-03-04 14:12:46 +010081 "subject" => "[" . $SERVICE_ACRONYM . "] Reset password for your " . $SERVICE_ACRONYM . " account",
Marc Kupietz9ab8c8f2023-02-23 12:14:33 +010082 "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 Kupietzad3ab5d2023-03-04 14:12:46 +010083 "html" => "<html><body><h3>Forgot your " . $SERVICE_ACRONYM . " password?</h3>
Marc Kupietz9ab8c8f2023-02-23 12:14:33 +010084 <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>
85 <a style='
86 display: inline-block;
87 outline: none;
88 cursor: pointer;
89 font-weight: bold;
90 text-decoration: none;
91 border-radius: 3px;
92 padding: 12px 24px;
93 border: 0;
94 color: #fff;
95 background: #ff5000;
96 line-height: 1.15;
97 font-size: 14px;
98 :hover {
99 transition: all .1s ease;
100 box-shadow: 0 0 0 0 #fff, 0 0 0 3px #1de9b6;
101 }
Marc Kupietzad3ab5d2023-03-04 14:12:46 +0100102 ' href='{{url}}'>Reset your " . $SERVICE_ACRONYM . " password</a>
matheusfillipef43dd962021-05-13 23:27:01 -0300103 </body></html>"
104];
105
106
107// Add the support email there
108$PASSWORD_CHANGED_EMAIL_TEMPLATE = (object)[
Marc Kupietzad3ab5d2023-03-04 14:12:46 +0100109 "subject" => "[" . $SERVICE_ACRONYM . "] Your " . $SERVICE_ACRONYM . " password was changed",
Marc Kupietzb527e642023-02-23 10:04:21 +0100110 "text" => "Your password was changed successfully. If this wasn't you please contact support",
matheusfillipef43dd962021-05-13 23:27:01 -0300111 "html" => "<html><body>
Marc Kupietzad3ab5d2023-03-04 14:12:46 +0100112 <h3>" . $SERVICE_ACRONYM . " password changed</h3><p>Your password was changed successfully. If this wasn't you please contact support.</p>
matheusfillipef43dd962021-05-13 23:27:01 -0300113 </body></html>"
114];