0) $row = mysqli_fetch_array($result);
// verification progress
$e = 0;
$verification_progress = 0;
if (EMAIL_VERIFICATION == 1) $e+=1;
if (PHONE_VERIFICATION == 1) $e+=1;
if (DOCUMENT_VERIFICATION == 1) $e+=1;
if (ADDRESS_VERIFICATION == 1) $e+=1;
if ($e > 0) $progress_percent = floor(100/$e);
if (isset($_GET['action']) && $_GET['action'] == "confirm_document")
{
$verification_progress+=$progress_percent;
smart_mysql_query("UPDATE exchangerix_users SET verified_document='1', verification_progress='$verification_progress' WHERE user_id='$uid' LIMIT 1");
if (file_exists(PUBLIC_HTML_PATH."/uploads/".$row['verified_document'])) @unlink(PUBLIC_HTML_PATH."/uploads/".$row['verified_document']);
header("Location: user_details.php?id=".$uid."&msg=confirmed");
exit();
}
if (isset($_GET['action']) && $_GET['action'] == "decline_document")
{
smart_mysql_query("UPDATE exchangerix_users SET verified_document='0' WHERE user_id='$uid' LIMIT 1");
if (file_exists(PUBLIC_HTML_PATH."/uploads/".$row['verified_document'])) @unlink(PUBLIC_HTML_PATH."/uploads/".$row['verified_document']);
header("Location: user_details.php?id=".$uid."&msg=declined");
exit();
}
if (isset($_GET['action']) && $_GET['action'] == "confirm_address")
{
$verification_progress+=$progress_percent;
smart_mysql_query("UPDATE exchangerix_users SET verified_address='1', verification_progress='$verification_progress' WHERE user_id='$uid' LIMIT 1");
if (file_exists(PUBLIC_HTML_PATH."/uploads/".$row['verified_address'])) @unlink(PUBLIC_HTML_PATH."/uploads/".$row['verified_address']);
header("Location: user_details.php?id=".$uid."&msg=confirmed");
exit();
}
if (isset($_GET['action']) && $_GET['action'] == "decline_address")
{
smart_mysql_query("UPDATE exchangerix_users SET verified_address='0' WHERE user_id='$uid' LIMIT 1");
if (file_exists(PUBLIC_HTML_PATH."/uploads/".$row['verified_address'])) @unlink(PUBLIC_HTML_PATH."/uploads/".$row['verified_address']);
header("Location: user_details.php?id=".$uid."&msg=declined");
exit();
}
}
$title = "User Details";
require_once ("inc/header.inc.php");
?>
User Details
0) { ?>
| User ID: |
|
| Role: |
Operator"; break;
default: echo $row['user_group']; break;
}
?>
|
| Operator login: |
" target="_blank"> |
| Username: |
|
| First Name: |
|
| Last Name: |
|
| Email: |
not verified
verified not verified
|
| Address Line 1: |
|
| Address Line 2: |
|
| City: |
|
| State/Province: |
|
| Zip Code: |
|
| Country: |
|
| Phone: |
verified not verified
|
0) { ?>
| Discount: |
% |
| How did you hear about us: |
|
| Newsletter: |
|
| Signup via: |
|
| Signup Date: |
|
| IP Address: |
|
| Login Count: |
|
0) { ?>
| Last Login: |
|
| Last logged IP: |
|
| Status: |
".$row['status'].""; else echo "".$row['status'].""; ?>
(awaiting activation by email)
|
| Block Reason: |
|
|
|
|
Account Balance
|
Exchanges
|
Testimonials
|
Referrals
|
Account Verification
|
|
|
|
Edit User
Go Back
Delete User
Sorry, no user found.