| Server IP : 10.200.247.200 / Your IP : 216.73.217.19 Web Server : Apache System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : jeremy ( 1001) PHP Version : 8.4.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/surf_sites/usworkathomesolutions.com/ |
Upload File : |
<?php
$pageTitle = 'Application Received | US Work At Home Solutions';
$appId = htmlspecialchars($_GET['app_id'] ?? '', ENT_QUOTES);
require_once __DIR__ . '/data/mysql.php';
$isApproved = false;
$applicantName = '';
$loginUrl = 'https://training.surfcrm.com/';
if ($appId) {
$row = $db->get_results(
"SELECT first_name, username FROM surfcrm.potential_employees WHERE id = '" . $db->clean($appId) . "' LIMIT 1"
);
if (!empty($row) && !empty($row[0]->username)) {
$isApproved = true;
$applicantName = $row[0]->first_name;
$username = $row[0]->username;
$loginUrl = 'https://training.surfcrm.com/?username=' . urlencode($username);
}
}
?>
<?php require __DIR__ . '/includes/header.php'; ?>
<section class="section" id="confirmation-step">
<div class="container-modern">
<div class="stepper">
<span class="stepper-item done">1. Application</span>
<span class="stepper-item done">2. Voice Sample</span>
<span class="stepper-item active">3. Confirmation</span>
</div>
<?php if ($isApproved): ?>
<div class="application-header">
<h2>You're Approved!</h2>
<p>Your account is ready and you can start training right away.</p>
</div>
<div class="card-modern" style="max-width:700px; margin:0 auto; padding:28px; text-align:center;">
<div class="feature-icon" style="margin:0 auto 16px; background:#edf9f3; color:var(--green);">✓</div>
<h3 style="margin-bottom:10px;">Congratulations<?= $applicantName ? ', ' . htmlspecialchars($applicantName) : '' ?>!</h3>
<div style="margin:0 0 18px;">
<a href="<?= htmlspecialchars($loginUrl, ENT_QUOTES) ?>" id="auto-login-btn" class="btn-primary-modern" style="background:var(--green); font-size:18px; min-height:58px; padding:0 32px;">
Log In & Start Training →
</a>
<p style="margin:10px 0 0; font-size:14px; color:var(--muted);">
Taking you to the training site in <strong id="auto-login-countdown">6</strong> seconds…
</p>
</div>
<p style="color:var(--muted); font-size:16px; margin-bottom:16px;">
Your application has been approved and your login has been created. Use the credentials below to log in and start your training.
</p>
<div style="background:var(--blue-soft); border-radius:12px; padding:18px 24px; display:inline-block; margin-bottom:16px; text-align:left;">
<div style="margin-bottom:12px;">
<span style="font-size:13px; color:var(--muted);">Login Website</span><br>
<a href="https://surfcrm.com/" target="_blank" style="color:var(--navy); font-size:18px; font-weight:700; text-decoration:none;">surfcrm.com</a>
</div>
<div style="margin-bottom:8px;">
<span style="font-size:13px; color:var(--muted);">Username</span><br>
<strong style="color:var(--navy); font-size:18px;"><?= htmlspecialchars($username) ?></strong>
</div>
<div>
<span style="font-size:13px; color:var(--muted);">Password</span><br>
<strong style="color:var(--navy); font-size:18px;">password</strong>
</div>
<p style="margin:10px 0 0; font-size:13px; color:var(--muted);">You can change your password after logging in.</p>
</div>
<div class="helper-box" style="text-align:left; margin-top:16px;">
<strong>Here's what to do next:</strong>
<ul style="margin:10px 0 0 18px; color:var(--muted);">
<li>Log in to the training site using the credentials above</li>
<li>Complete your training</li>
<li>Once training is complete, you'll receive your phone extension and can begin taking calls</li>
<li>Commissions are paid every Friday</li>
</ul>
</div>
<div style="margin-top:24px;">
<a href="<?= htmlspecialchars($loginUrl, ENT_QUOTES) ?>" class="btn-primary-modern" style="background:var(--green); font-size:18px; min-height:58px; padding:0 32px;">
Log In & Start Training →
</a>
</div>
<p style="margin-top:18px; color:var(--muted); font-size:14px;">
Most people complete training in a few hours and start taking calls the same day.
</p>
</div>
<script>
(function () {
var btn = document.getElementById('auto-login-btn');
var counter = document.getElementById('auto-login-countdown');
if (!btn) return;
var seconds = 6;
var cancelled = false;
// If the visitor clicks anything themselves, stop the auto-click.
btn.addEventListener('click', function () { cancelled = true; });
var tick = setInterval(function () {
seconds--;
if (counter) counter.textContent = seconds > 0 ? seconds : 0;
if (seconds > 0) return;
clearInterval(tick);
if (cancelled) return;
window.location.href = btn.href;
}, 1000);
})();
</script>
<?php else: ?>
<div class="application-header">
<h2>Application Received</h2>
<p>You're all set. Here's what happens next.</p>
</div>
<div class="card-modern" style="max-width:700px; margin:0 auto; padding:28px; text-align:center;">
<div class="feature-icon" style="margin:0 auto 16px;">✓</div>
<h3 style="margin-bottom:10px;">Your application and voice sample have been received</h3>
<p style="color:var(--muted); font-size:16px; margin-bottom:16px;">
Thank you for completing your application. Our team will review your information and your recording.
</p>
<?php if ($appId): ?>
<div style="background:var(--blue-soft); border-radius:12px; padding:12px 16px; display:inline-block; margin-bottom:16px;">
<span style="font-size:13px; color:var(--muted);">Application ID:</span><br>
<strong style="color:var(--navy); font-size:18px;"><?= $appId ?></strong>
</div>
<?php endif; ?>
<div class="helper-box" style="text-align:left; margin-top:16px;">
<strong>What happens next:</strong>
<ul style="margin:10px 0 0 18px; color:var(--muted);">
<li>Your application is reviewed by our team</li>
<li>If approved, you'll receive an email with login access</li>
<li>You will be given access to the training site</li>
</ul>
</div>
<p style="margin-top:18px; font-weight:700; color:var(--navy);">
Please check your email for updates. We will notify you once your application has been approved.
</p>
</div>
<?php endif; ?>
</div>
</section>
<?php require __DIR__ . '/includes/footer.php'; ?>