| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- <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>
- <?=htmlspecialchars(__("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>
- <?=htmlspecialchars(__("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>
- <?=htmlspecialchars(__("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>
- <?=htmlspecialchars(__("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-xl mb-3 mb-lg-0">
- <h3>
- <?=htmlspecialchars(__("Main Menu"))?>
- </h3>
- <div class="row">
- <?php
- foreach($icons as $icon) {
- ?>
- <div class="col-6 col-sm-4 text-center">
- <a class="btn btn-light btn-block mb-3 p-2" href="<?=htmlspecialchars($icon->url)?>">
- <?php
- if($icon->counter) {
- ?>
- <span class="fa-layers fa-fw fa-3x mb-2">
- <i class="fal fa-<?=htmlspecialchars($icon->icon)?>"></i>
- <span class="fa-layers-counter fa-layers-bottom-right"><?=number_format($icon->counter)?></span>
- </span>
- <?php
- }
- else {
- ?>
- <i class="fal fa-3x fa-<?=htmlspecialchars($icon->icon)?> mb-2"></i>
- <?php
- }
- ?>
- <br />
- <?=htmlspecialchars($icon->name)?>
- </a>
- </div>
- <?php
- }
- ?>
- </div>
- </div>
- <div class="col-xl mb-3 mb-lg-0">
- <?php
- if($to_do) {
- ?>
- <h3><?=htmlspecialchars(__("To-Do"))?></h3>
- <div class="row">
- <?php
- foreach($to_do as $icon) {
- ?>
- <div class="col-6 col-sm-4 text-center">
- <a class="btn btn-primary btn-block mb-3 p-2" href="<?=htmlspecialchars($icon->url)?>">
- <?php
- if($icon->counter) {
- ?>
- <span class="fa-layers fa-fw fa-3x mb-2">
- <i class="fal fa-<?=htmlspecialchars($icon->icon)?>"></i>
- <span class="fa-layers-counter fa-layers-bottom-right"><?=number_format($icon->counter)?></span>
- </span>
- <?php
- }
- else {
- ?>
- <i class="fal fa-3x fa-<?=htmlspecialchars($icon->icon)?> mb-2"></i>
- <?php
- }
- ?>
- <br />
- <?=htmlspecialchars($icon->name)?>
- </a>
- </div>
- <?php
- }
- ?>
- </div>
- <?php
- }
- if(Core::$user->level != User::LEVEL_DEACTIVATED && !Core::$user->terms_accepted) {
- ?>
- <div class="alert alert-danger">
- <p><i class="fas fa-info-circle"></i> <strong><?=htmlspecialchars(__("Important"))?></strong></p>
- <?php
- if(is_null(Core::$user->terms_accepted)) {
- ?>
- <p>
- <a href="/terms-and-conditions">Terms and Conditions</a> have been published.
- <?=sprintf(htmlspecialchars(__("%sTerms and Conditions%s have been published.")), "<a href=\"/terms-and-conditions\">", "</a>")?>
- </p>
- <p>
- <?=sprintf(htmlspecialchars(__("Our records show that you have not accepted the %sTerms and Conditions%s on registration. Please take time to read our Terms and Conditions and then click Accept or Decline to continue.")), '<a href="/terms-and-conditions">', '</a>')?>
- </p>
- <?php
- }
- else {
- ?>
- <p>
- <?=sprintf(htmlspecialchars(__("Our records show that you have declined the %sTerms and Conditions. If you have changed your mind, please click Accept to continue or Decline for other actions.")), '<a href="/terms-and-conditions">', '</a>')?>
- </p>
- <?php
- }
- ?>
- <a class="btn btn-success" href="/account/accept-terms"><?=htmlspecialchars(__("Accept"))?></a>
- <a class="btn btn-danger" href="/account/decline-terms"><?=htmlspecialchars(__("Decline"))?></a>
- </div>
- <?php
- }
- ?>
- <?php
- if(Core::$user->isCustomer() == false) {
- ?>
- <h3><?=htmlspecialchars(__("Useful Documents"))?></h3>
- <div class="list-group mb-3">
- <a class="list-group-item list-group-item-action" href="/files/id_response.pdf">
- <i class="fal fa-fw fa-file-pdf"></i>
- <?=htmlspecialchars(__("ID Response for Testers"))?>
- </a>
- <a class="list-group-item list-group-item-action" href="/files/testing_methodology.pdf">
- <i class="fal fa-fw fa-file-pdf"></i>
- <?=htmlspecialchars(__("Age Verification Testing Methodology"))?>
- </a>
- <a class="list-group-item list-group-item-action" href="/files/machine_categories.pdf">
- <i class="fal fa-fw fa-file-pdf"></i>
- <?=htmlspecialchars(__("Machine Categories"))?>
- </a>
- <a class="list-group-item list-group-item-action" href="/files/testing_procedure_arcades.pdf">
- <i class="fal fa-fw fa-file-pdf"></i>
- <?=htmlspecialchars(__("Testing Procedure for Arcades"))?>
- </a>
- <a class="list-group-item list-group-item-action" href="/files/testing_procedure_pubs.pdf">
- <i class="fal fa-fw fa-file-pdf"></i>
- <?=htmlspecialchars(__("Testing Procedure for Pubs"))?>
- </a>
- </div>
- <?php
- }
- if(Core::$user->isTester()) {
- ?>
- <h3><?=htmlspecialchars(__("Referrals"))?></h3>
- <div class="list-group mb-3">
- <div class="list-group-item d-flex justify-content-between">
- <span>
- <i class="fal fa-fw fa-users"></i>
- <?=htmlspecialchars(__("Users Referred"))?>:
- </span>
- <span><?=number_format(count($referrals))?></span>
- </div>
- <div class="list-group-item d-flex justify-content-between">
- <span>
- <i class="fal fa-fw fa-external-link"></i>
- <?=htmlspecialchars(__("Referral Link"))?>:
- </span>
- <span>
- <a href="#" data-clipboard-text="<?=PROTOCOL?>://<?=DOMAIN?>/register?r=<?=Core::$user->id?>" data-toggle="tooltip" data-title="<?=htmlspecialchars(__("Copy to clipboard"))?>">
- <i class="fal fa-fw fa-clipboard"></i>
- <?=htmlspecialchars(__("Copy to clipboard"))?>
- </a>
- </span>
- </div>
- </div>
- <?php
- }
- ?>
- </div>
- </div>
- </div>
|