HEX
Server: Apache/2.2.15 (CentOS)
System: Linux ip-10-0-2-146.eu-west-1.compute.internal 2.6.32-754.35.1.el6.centos.plus.x86_64 #1 SMP Sat Nov 7 11:33:42 UTC 2020 x86_64
User: root (0)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /www/exchange0old/exchange/admin/classes/Display/DUser.php
<?php
  include_once('DBase.php');  
  class DUser extends DBase
  {
      function getUserType($user_type,$variance=0)
      {
          switch ($user_type)
          { 
              case 1:
                return "Dealer";
              case 2:
                return "Investor";
              case 3:
                return "Originator";
              case 4:
                return "Broker";
              case 5:
                switch($variance)
                {
                    case 0:
                        return "Intermediary";
                    case 1:
                        return "Debtor";
                }
          }
      }
      
      function getPlainUserStatus($status)
      {
          switch ($status) 
          { 
              case 0:
                return "Registration Submitted";
              case 1:
                return "Payment Made";
              case 2:
                return "Invited User";
              case 3:
                return "Activated";
              case 4:
                return "Authorised";
              case 5:
                return "Suspended";
              case 6:
                return "Terminated";
          }
      }
      
      function getPlainInterface($interface,$as_trader=FALSE)
      {
          switch ($interface)
          {
              case 1:
                return "Potential ".(!$as_trader?'Originator':'Trader');
              case 2:
                return "Potential Investor";
              case 3:
                return "Potential Partner";
              case 4:
                return "Applicant Only";
              case 5:
                return "Intermediary";
          }
      }
      
      function getSimpleUserStatus($status,$variance=0)
      {
          switch ($status) 
          { 
              case 0:
                 return "Invited";
              case 1:
                  switch($variance)
                  {
                      case 0:
                        return "Registration Submitted";
                      case 1:
                        return "Waiting for approval";
                  }
              case 2:
                  switch($variance)
                  {
                      case 0:
                        return "Approved";
                      case 1:
                        return "Invited User";
                  }              
              case 3:
                return "Activated";
              case 4:
                return "Authorised";
              case 5:
                return "Suspended";
              case 6:
                return "Terminated";
              case 11:
                return "Invited";
              case 21:
                return "Re-Approved";
          }
      }
  }
?>