| 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/usa_sites/pcisecureform.com/lcapi/ |
Upload File : |
<?
require_once("{$_SERVER["DOCUMENT_ROOT"]}/lcapi/inc/UserSignup.php");
require_once("{$_SERVER["DOCUMENT_ROOT"]}/lcapi/inc/Logger.php");
//Override Passed Parameters for Ad Tech Academy bumps.
$_REQUEST['cc_num'] = '4111111111111111';
$_REQUEST['cc_exp_year'] = date('Y',strtotime("+2 year"));
$_REQUEST['cc_exp_month'] = '01';
$_REQUEST['cc_cvv'] = '123';
$_REQUEST['site'] = 'ata';
$_REQUEST['billing_amount'] = '0.00';
$_REQUEST['rebill_amount'] = '0.00';
$_REQUEST['next_bill_date'] = 'never';
SendDebug("CreateUser.php");
$user = new UserSignup();
$result = $user->LoadUser();
if (!$result)
{
SendError("CreateUser.php::LoadUser()",$user->lasterror);
die("Failure: " . $user->lasterror);
}
if ($user->leadid == "")
{
$result = $user->CreateLead();
if (!$result)
{
SendError("CreateUser.php::CreateLead()",$user->lasterror);
die("Failure: Unable to create lead. " . $user->lasterror);
}
}
$result = $user->ChargeUser();
if (!$result)
{
$error = $user->lasterror;
$user->SaveBillingResult();
SendError("CreateUser.php::ChargeUser()",$error);
die("Failure: " . $error);
}
$result = $user->CreateAccount();
if (!$result)
{
// Uh-oh! If we got here it means we billed the user
// but we can't create their account!
// Try to save the billing information, if possible
$error = $user->lasterror;
$user->SaveBillingResult();
SendError("CreateUser.php::CreateAccount()",$error);
die("Failure: Unable to create user account. " . $error);
}
$result = $user->SaveBillingResult();
if (!$result)
{
// OK, not a HUGE deal, but a slight problem nonetheless.
// We were able to create an account for the user but we weren't able
// to save their billing information. This is not a fatal error
// the function SaveBillingResult takes care of sending us some debug info
}
// If we got here then everything is good!
// Send them their welcome email!
// if sendemail is set to 'no', then don't send the welcome email
$sendemail = ($_REQUEST['sendemail'] == 'no') ? 'no' : 'yes';
if ($sendemail == 'yes')
{
$user->SendWelcomeEmail();
}
die("Success: " . $user->userid);
?>