| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <div class="container mt-3 py-4">
- <h2>Account</h2>
- <?php
- switch(Core::$user->level) {
- case User::LEVEL_BANNED:
- ?>
- <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>
- <?php
- break;
- case User::LEVEL_REGISTERED:
- ?>
- <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>
- <?php
- break;
- case User::LEVEL_UNVERIFIED:
- ?>
- <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>
- <?php
- break;
- case User::LEVEL_DEACTIVATED:
- ?>
- <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>
- <?php
- break;
- }
- ?>
- <div class="row">
- <div class="col-lg-4 mb-3 mb-lg-0">
- <h3>Main Menu</h3>
- <div class="list-group">
- <?php
- foreach($links as $path => $text) {
- ?>
- <a class="list-group-item list-group-item-action" href="<?=htmlspecialchars($path)?>">
- <?=htmlspecialchars($text)?>
- </a>
- <?php
- }
- ?>
- </div>
- </div>
- <div class="col-lg mb-3 mb-lg-0">
- <?php
- if(Core::$user->level >= User::LEVEL_ADMIN) {
- ?>
- <h3>To-Do</h3>
- <?php
- if($users_pending_verification) {
- $s = ($users_pending_verification == 1) ? "" : "s";
- ?>
- <div class="alert alert-info mb-3 d-flex flex-row justify-content-between">
- <div class="align-self-center">
- <i class="fal fa-fw fa-info-circle"></i> <?=number_format($users_pending_verification)?> user<?=$s?> to be verified.
- </div>
- <a class="btn btn-primary" href="/account/users?level=<?=User::LEVEL_UNVERIFIED?>">View</a>
- </div>
- <?php
- }
- if($tests_pending_verification) {
- $s = ($tests_pending_verification == 1) ? "" : "s";
- ?>
- <div class="alert alert-info mb-3 d-flex flex-row justify-content-between">
- <div class="align-self-center">
- <i class="fal fa-fw fa-info-circle"></i> <?=number_format($tests_pending_verification)?> test<?=$s?> to be verified.
- </div>
- <a class="btn btn-primary" href="/account/tests?status=<?=Test::STATUS_PENDING_VERIFICATION?>">View</a>
- </div>
- <?php
- }
- ?>
- <?php
- }
- ?>
- <h3>Useful Documents</h3>
- <ul>
- <li><a href="/files/id_response.pdf">ID Response for Testers</a></li>
- <li><a href="/files/testing_methodology.pdf">Age Verification Testing Methodology</a></li>
- <li><a href="/files/machine_categories.pdf">Machine Categories</a></li>
- <li><a href="/files/testing_procedure.pdf">Testing Procedure</a></li>
- </ul>
- </div>
- </div>
- </div>
|