|
| 1 | +<?php use UnityWebPortal\lib\UserFlag; ?> |
1 | 2 | <?php switch ($data["flag"]): |
2 | | -case "qualified": ?> |
| 3 | +case UserFlag::QUALIFIED: ?> |
3 | 4 | <?php $this->Subject = "User Deactivated"; ?> |
4 | 5 | <p>Hello,</p> |
5 | 6 | <p>Your account on the UnityHPC Platform has been deactivated.</p> |
6 | 7 | <p>If you believe this to be a mistake, please reply to this email as soon as possible.</p> |
7 | 8 | <?php break; ?> |
8 | 9 |
|
9 | 10 | <?php /////////////////////////////////////////////////////////////////////////////////////////// ?> |
10 | | -<?php case "ghost": ?> |
| 11 | +<?php case UserFlag::GHOST: ?> |
11 | 12 | <?php $this->Subject = "User Resurrected"; ?> |
12 | 13 | <p>Hello,</p> |
13 | 14 | <p>Your account on the UnityHPC Platform has been resurrected.</p> |
14 | 15 | <p>If you believe this to be a mistake, please reply to this email as soon as possible.</p> |
15 | 16 | <?php break; ?> |
16 | 17 |
|
17 | 18 | <?php /////////////////////////////////////////////////////////////////////////////////////////// ?> |
18 | | -<?php case "locked": ?> |
| 19 | +<?php case UserFlag::LOCKED: ?> |
19 | 20 | <?php $this->Subject = "User Unlocked"; ?> |
20 | 21 | <p>Hello,</p> |
21 | 22 | <p>Your account on the UnityHPC Platform has been unlocked.</p> |
22 | 23 | <p>If you believe this to be a mistake, please reply to this email as soon as possible.</p> |
23 | 24 | <?php break; ?> |
24 | 25 |
|
25 | 26 | <?php /////////////////////////////////////////////////////////////////////////////////////////// ?> |
26 | | -<?php case "idlelocked": ?> |
| 27 | +<?php case UserFlag::IDLELOCKED: ?> |
27 | 28 | <?php $this->Subject = "User Unlocked"; ?> |
28 | 29 | <p>Hello,</p> |
29 | 30 | <p>Your account on the UnityHPC Platform has been unlocked.</p> |
30 | 31 | <p>If you believe this to be a mistake, please reply to this email as soon as possible.</p> |
31 | 32 | <?php break; ?> |
32 | 33 |
|
33 | 34 | <?php /////////////////////////////////////////////////////////////////////////////////////////// ?> |
34 | | -<?php case "admin": ?> |
| 35 | +<?php case UserFlag::ADMIN: ?> |
35 | 36 | <?php $this->Subject = "User Demoted"; ?> |
36 | 37 | <p>Hello,</p> |
37 | 38 | <p>Your account on the UnityHPC Platform has been demoted from admin.</p> |
|
0 commit comments