account.php 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <div class="container mt-3 py-4">
  2. <h2>Account</h2>
  3. <?php
  4. switch(Core::$user->level) {
  5. case User::LEVEL_BANNED:
  6. ?>
  7. <div class="alert alert-danger"><i class="fal fa-fw fa-exclamation-circle"></i> Your account has been banned. You will not be able to participate in any tests.</div>
  8. <?php
  9. break;
  10. case User::LEVEL_REGISTERED:
  11. ?>
  12. <div class="alert alert-warning"><i class="fal fa-fw fa-clock"></i> Your account is not verified. You need to submit proof of ID and get your account verified before you can participate in tests.</div>
  13. <?php
  14. break;
  15. case User::LEVEL_UNVERIFIED:
  16. ?>
  17. <div class="alert alert-warning"><i class="fal fa-fw fa-clock"></i> Your account is pending verification. You will be able to participate in tests once verified.</div>
  18. <?php
  19. break;
  20. case User::LEVEL_DEACTIVATED:
  21. ?>
  22. <div class="alert alert-info"><i class="fal fa-fw fa-info-circle"></i> Your account is deactivated. You will not be able to participate in any tests until you reactivate your account.</div>
  23. <?php
  24. break;
  25. }
  26. ?>
  27. <div class="row">
  28. <div class="col-lg-4 mb-3 mb-lg-0">
  29. <h3>Main Menu</h3>
  30. <div class="list-group">
  31. <?php
  32. foreach($links as $path => $text) {
  33. ?>
  34. <a class="list-group-item list-group-item-action" href="<?=htmlspecialchars($path)?>">
  35. <?=htmlspecialchars($text)?>
  36. </a>
  37. <?php
  38. }
  39. ?>
  40. </div>
  41. </div>
  42. <div class="col-lg mb-3 mb-lg-0">
  43. <?php
  44. if(Core::$user->level >= User::LEVEL_ADMIN) {
  45. ?>
  46. <h3>To-Do</h3>
  47. <?php
  48. if($users_pending_verification) {
  49. $s = ($users_pending_verification == 1) ? "" : "s";
  50. ?>
  51. <div class="alert alert-info mb-3 d-flex flex-row justify-content-between">
  52. <div class="align-self-center">
  53. <i class="fal fa-fw fa-info-circle"></i> <?=number_format($users_pending_verification)?> user<?=$s?> to be verified.
  54. </div>
  55. <a class="btn btn-primary" href="/account/users?level=<?=User::LEVEL_UNVERIFIED?>">View</a>
  56. </div>
  57. <?php
  58. }
  59. if($tests_pending_verification) {
  60. $s = ($tests_pending_verification == 1) ? "" : "s";
  61. ?>
  62. <div class="alert alert-info mb-3 d-flex flex-row justify-content-between">
  63. <div class="align-self-center">
  64. <i class="fal fa-fw fa-info-circle"></i> <?=number_format($tests_pending_verification)?> test<?=$s?> to be verified.
  65. </div>
  66. <a class="btn btn-primary" href="/account/tests?status=<?=Test::STATUS_PENDING_VERIFICATION?>">View</a>
  67. </div>
  68. <?php
  69. }
  70. ?>
  71. <?php
  72. }
  73. ?>
  74. <h3>Useful Documents</h3>
  75. <ul>
  76. <li><a href="/files/id_response.pdf">ID Response for Testers</a></li>
  77. <li><a href="/files/testing_methodology.pdf">Age Verification Testing Methodology</a></li>
  78. <li><a href="/files/machine_categories.pdf">Machine Categories</a></li>
  79. <li><a href="/files/testing_procedure.pdf">Testing Procedure</a></li>
  80. </ul>
  81. </div>
  82. </div>
  83. </div>