| 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/asap_sites/assetprotectionasap.com/ |
Upload File : |
<?php
session_start();
include_once($_SERVER['DOCUMENT_ROOT'].'/php/db_config_lc_user.php');
include_once($_SERVER['DOCUMENT_ROOT'].'/php/phpCrypto.class.php');
include_once($_SERVER['DOCUMENT_ROOT'].'/php/mailgun.php');
include_once($_SERVER['DOCUMENT_ROOT'].'/php/NetworkMerchants.php');
include_once($_SERVER['DOCUMENT_ROOT'].'/include/ua.php');
$db = connect_lc2user_new('asap_leads');
$crypto = new phpCrypto();
//$version = (rand(1,2)==1) ? 'autoplay' : 'no_autoplay';
$version = 'no_autoplay';
//if(empty($_SESSION['angie_webinar_id'])) {
/*$is_there = $db->get_results("SELECT id FROM angie_webinar_tracking WHERE ip_address='".$db->clean($_SERVER['REMOTE_ADDR'])."' AND ts >= CURDATE()");
if(!empty($is_there)) {
$_SESSION['angie_webinar_id'] = $is_there[0]->id;
} else {*/
$db->query("INSERT INTO angie_webinar_tracking
(
ip_address
,ts
,ab_version
,referer
,browser
,device
,operating_system
) VALUES (
'".$db->clean($_SERVER['REMOTE_ADDR'])."'
,NOW()
,'".$db->clean($version)."'
,'".$db->clean($_SERVER['HTTP_REFERER'])."'
,'".$db->clean($browser)."'
,'".$db->clean($device)."'
,'".$db->clean($operatingSystem)."'
)");
$_SESSION['angie_webinar_id'] = $db->last_insert_id();
//}
//}
if(empty($_REQUEST['cc_num']) && empty($_REQUEST['first_name'])) {
$db->query("INSERT INTO webinar_order_page_views (ip_address,ts,user_agent)
VALUES (
'".$db->clean($_SERVER['REMOTE_ADDR'])."'
,NOW()
,'".$db->clean($_SERVER['HTTP_USER_AGENT'])."'
)");
}
$response = array();
if(!empty($_POST)) {
if(!empty($_POST['cc_num'])) {
//Check if they are already in the system
$is_there = $db->get_results("SELECT id FROM asap.Members WHERE username='".$db->clean($_POST['email'])."'");
if(!empty($is_there)) {
$error = "You have already signed up";
$output = "";
} else {
$this_payment_amount = '998.00';
if($_POST['do_payment_plan']=='PaymentPlan') {
$this_payment_amount = '499.00';
}
//Is Testing
if(strpos($_POST['email'],'@assetspeaker.com')!==false && $_POST['cc_num']=='4111111111111111') {
$response['response'] = '1';
$response['transactionid'] = '12345';
$response['avsresponse'] = '';
$response['cvvresponse'] = '';
$response['ordernumber'] = '12345';
$response['transresponse'] = 'Approved';
$response['proc_id'] = 'asapcms';
$response['gateway'] = 'giso';
} else {
//Charge Card
$nmi = new gwapi();
$nmi->setLogin('asfap','znFWG_pV73Gn7y','asapcms');
$user = (object) array();
$user->cc_num = $_POST['cc_num'];
$user->cc_cvv = $_POST['cc_cvv'];
$user->fname = $_POST['first_name'];
$user->lname = $_POST['last_name'];
$user->address = $_POST['shipping_address'];
$user->city = $_POST['city'];
$user->state = $_POST['state'];
$user->zip = $_POST['zip'];
$user->country = 'US';
$user->phone = preg_replace('/[^0-9]/','',$_POST['cell_phone']);
$user->email = $_POST['email'];
$user->billing_amount = $this_payment_amount;
$user->cc_exp_month = $_POST['cc_exp_month'];
$user->cc_exp_year = $_POST['cc_exp_year'];
$user->leadid = 0;
$user->description = 'ASAP Starter Kit';
$nmi->setBilling($user->fname,$user->lname,"",$user->address,"", $user->city,$user->state,$user->zip,$user->country,$user->phone,"",$user->email,"");
$nmi->setShipping($user->fname,$user->lname,"",$user->address,"",$user->city,$user->state,$user->zip,$user->country,$user->email);
$nmi->setOrder($user->leadid,$user->description,"","","","");
$cc_year = $user->cc_exp_year;
if(strlen($cc_year) > 2) { $cc_year = substr($cc_year, -2);}
$result = $nmi->doSale($user->billing_amount,$user->cc_num,$user->cc_exp_month.$cc_year,$user->cc_cvv);
$response['response'] = $nmi->responses['response'];
$response['transactionid'] = $nmi->responses['transactionid'];
$response['avsresponse'] = $nmi->responses['avsresponse'];
$response['cvvresponse'] = $nmi->responses['cvvresponse'];
$response['ordernumber'] = $nmi->responses['authcode'];
$response['transresponse'] = $nmi->responses['responsetext'];
$response['proc_id'] = 'asapcms';
$response['gateway'] = 'giso';
}
if($response['response']=='1') {
$db->query("INSERT INTO webinar_orders
(
payment_type
,special_instructions
,prefix
,first_name
,last_name
,suffix
,company
,shipping_address
,city
,state
,zip
,work_phone
,home_phone
,occupation
,cell_phone
,fax
,email
,payment_method
,cc_num
,cc_exp_month
,cc_exp_year
,cc_cvv
,check_routing_number
,check_account_number
,check_number
,signature
,ts
) VALUES (
'".$db->clean($_POST['payment_type'])."'
,'".$db->clean($_POST['special_instructions'])."'
,'".$db->clean($_POST['prefix'])."'
,'".$db->clean($_POST['first_name'])."'
,'".$db->clean($_POST['last_name'])."'
,'".$db->clean($_POST['suffix'])."'
,'".$db->clean($_POST['company'])."'
,'".$db->clean($_POST['shipping_address'])."'
,'".$db->clean($_POST['city'])."'
,'".$db->clean($_POST['state'])."'
,'".$db->clean($_POST['zip'])."'
,'".$db->clean(preg_replace('/[^0-9]/','',$_POST['work_phone']))."'
,'".$db->clean(preg_replace('/[^0-9]/','',$_POST['home_phone']))."'
,'".$db->clean($_POST['occupation'])."'
,'".$db->clean(preg_replace('/[^0-9]/','',$_POST['cell_phone']))."'
,'".$db->clean(preg_replace('/[^0-9]/','',$_POST['fax']))."'
,'".$db->clean($_POST['email'])."'
,'".$db->clean($_POST['payment_method'])."'
,'".$db->clean($crypto->encrypt($_POST['cc_num']))."'
,'".$db->clean($_POST['cc_exp_month'])."'
,'".$db->clean($_POST['cc_exp_year'])."'
,'".$db->clean($crypto->encrypt($_POST['cc_cvv']))."'
,'".$db->clean($_POST['check_routing_number'])."'
,'".$db->clean($crypto->encrypt($_POST['check_account_number']))."'
,'".$db->clean($_POST['check_number'])."'
,'".$db->clean($_POST['signature'])."'
,NOW()
)");
//////////////////CLIENT INFO//////////////////////
$_POST['association'] = 'Webinar';
$db->query("INSERT INTO asap_leads.client_info (kit_client_type,client_status,client_status_description,client_status_date,lead_source,association,event_date,speaker,referred,prefix,first_name,last_name,suffix,salutation,address1,address2,city,state,zip,company,occupation,payment_special_instructions)
VALUES (
'purchaser_at_event',
'Active',
'',
'".date("Y-m-d H:i:s")."',
'".$db->clean($_POST['lead_source'])."',
'".$db->clean($_POST['association'])."',
CURDATE(),
'Webinar',
'".$db->clean($_POST['referred'])."',
'".$db->clean($_POST['prefix'])."',
'".$db->clean($_POST['first_name'])."',
'".$db->clean($_POST['last_name'])."',
'".$db->clean($_POST['suffix'])."',
'".$db->clean((empty($_POST['salutation']) ? $_POST['first_name'] : $_POST['salutation']))."',
'".$db->clean($_POST['shipping_address'])."',
'".$db->clean($_POST['address2'])."',
'".$db->clean($_POST['city'])."',
'".$db->clean($_POST['state'])."',
'".$db->clean($_POST['zip'])."',
'".$db->clean($_POST['company'])."',
'".$db->clean($_POST['occupation'])."',
'$295 2 Month Demo Account'
)");
$client_id = $db->last_insert_id();
$db->query("UPDATE asap_leads.webinar_orders_partials
SET lead_id='".$db->clean($client_id)."'
WHERE id='".$db->clean($_SESSION['partial_order_id'])."'");
$phone_id = '';
$phone = '';
if(!empty($_POST['cell_phone'])) {
$db->query("INSERT INTO phone_numbers(client_id,phone,ext,type,is_primary)
VALUES (
'".$db->clean($client_id)."',
'".$db->clean($_POST['cell_phone'])."',
'',
'Cell',
'0'
)");
$phone_id = $db->last_insert_id();
$phone = $_POST['cell_phone'];
}
if(!empty($phone_id)) {
$db->query("UPDATE phone_numbers p LEFT JOIN client_info c ON c.id=p.client_id SET p.is_primary=1,c.phone='".$db->clean($phone)."' WHERE p.id='".$db->clean($phone_id)."'");
}
if(!empty($_POST['email'])) {
$db->query("INSERT INTO emails(client_id,email,type,is_primary)
VALUES (
'".$db->clean($client_id)."',
'".$db->clean($_POST['email'])."',
'',
'1'
)");
$db->query("UPDATE client_info SET email='".$db->clean($_POST['email'])."' WHERE id='".$db->clean($client_id)."'");
}
/////////////////PAYMENT INFO//////////////
if(empty($_POST['insert_as_cancel'])) {
if(!empty($_POST['cc_num'])) {
$db->query("INSERT INTO payment_info (client_id,payment_type,name_as_appears,street_address,city,state,zip,cc_num,cc_exp_month,cc_exp_year,cc_cvv,cc_first_four,cc_last_four,date_created)
VALUES (
'".$db->clean($client_id)."',
'credit_card',
'".$db->clean($_POST['first_name'].' '.$_POST['last_name'])."',
'".$db->clean(trim($_POST['shipping_address']))."',
'".$db->clean($_POST['city'])."',
'".$db->clean($_POST['state'])."',
'".$db->clean($_POST['zip'])."',
'".$db->clean($crypto->encrypt($_POST['cc_num']))."',
'".$db->clean(substr($_POST['cc_exp'],0,2))."',
'".$db->clean('20'.substr($_POST['cc_exp'],2,2))."',
'".$db->clean($crypto->encrypt($_POST['cc_cvv']))."',
'".$db->clean(substr($_POST['cc_num'],0,4))."',
'".$db->clean(substr($_POST['cc_num'],-4))."',
'".date('Y-m-d H:i:s')."'
)");
$payment_info_id = $db->last_insert_id();
$payment_type = 'credit_card';
} else {
$payment_type = '';
$payment_info_id = 0;
}
}
//////////////////ORDER/////////////////
$db->query("INSERT INTO orders (client_id,employee,monthly_forevor,monthly_forevor_next_bill_date,free_cd,free_cd_amount,kit,kit_amount,total_cost,date_ordered,payable_date,return_deadline,payment_number)
VALUES (
'".$db->clean($client_id)."',
'Webinar',
'1',
'".date('Y-m-d',strtotime('+1 month'))."',
'1',
'0',
'1',
'998.00',
'998.00',
'".date('Y-m-d H:i:s')."',
'".date('Y-m-d H:i:s')."',
'".date('Y-m-d',strtotime('+30 day'))."',
1
)");
$order_id = $db->last_insert_id();
$db->query("UPDATE orders
SET
digital_only='1'
,tracking_number='1234567890'
,shipping_label_print_date=CURDATE()
WHERE id='".$db->clean($order_id)."'");
$db->query("UPDATE client_info
SET
free_cd_envelope_printed=CURDATE()
,free_cd_letter_printed=CURDATE()
WHERE id='".$db->clean($client_id)."'");
if($_POST['do_payment_plan']=='PaymentPlan') {
$db->query("UPDATE orders
SET finance='1'
,payment_plan_id='6'
,payment_number=1
,downpayment='499'
,other_payments='499'
,num_months='1'
,finance_first_payment_date='".date('Y-m-d',strtotime('+1 month'))."'
,finance_recurring_payment_info_id='".$db->clean($payment_info_id)."'
WHERE id='".$db->clean($order_id)."'");
}
/////////////////BILLING QUEUE///////////////
$payment_date = date('Y-m-d');
$db->query("INSERT INTO billing_queue (client_id,order_id,payment_info_id,payment_type,auth_amount,date_to_bill,date_created,payment_number,
auth_num,auth_transaction_id,auth_date,auth_response_num,auth_response,
bill_transaction_id,bill_amount,bill_date,bill_response_num,bill_response)
VALUES (
'".$db->clean($client_id)."',
'".$db->clean($order_id)."',
'".$db->clean($payment_info_id)."',
'".$db->clean($payment_type)."',
'".$db->clean($this_payment_amount)."',
'".$db->clean($payment_date)."',
'".date('Y-m-d H:i:s')."',
1,
'".$db->clean($response['ordernumber'])."',
'".$db->clean($response['transactionid'])."',
'".date('Y-m-d H:i:s')."',
'".$db->clean($response['response'])."',
'".$db->clean($response['transresponse'])."',
'".$db->clean($response['transactionid'])."',
'".$db->clean($this_payment_amount)."',
'".date('Y-m-d H:i:s')."',
'".$db->clean($response['response'])."',
'".$db->clean($response['transresponse'])."'
)");
//$password = substr(md5(uniqid(mt_rand(), true)), 0, 8); //random 8 digit alphanumeric password
$password = strtolower(substr($_POST['last_name'],0,1)).$_POST['zip']; //first letter of last name and zip code
////////////////////////CREATE USER FOR THE ASAP WEBSITE///////////////////////
$db->query("INSERT IGNORE INTO asap.Members (username,email,date_created,association,event_date,speaker,prefix,first_name,last_name,suffix,password,street_address,unit,city,state,zip,country,home_phone,office_phone,fax_number,occupation,password_valid,first_time,active,demo_account,demo_expires)
VALUES (
'".$db->clean(strtolower($_POST['email']))."',
'".$db->clean(strtolower($_POST['email']))."',
'".date('Y-m-d H:i:s')."',
'".$db->clean($_POST['association'])."',
'".$db->clean(date('Y-m-d'))."',
'".$db->clean($_POST['speaker'])."',
'".$db->clean($_POST['prefix'])."',
'".$db->clean($_POST['first_name'])."',
'".$db->clean($_POST['last_name'])."',
'".$db->clean($_POST['suffix'])."',
md5(".$db->clean($password)."'),
'".$db->clean($_POST['address1'])."',
'".$db->clean($_POST['address2'])."',
'".$db->clean($_POST['city'])."',
'".$db->clean($_POST['state'])."',
'".$db->clean($_POST['zip'])."',
'".$db->clean($_POST['country'])."',
'".$db->clean($_POST['home_phone'])."',
'".$db->clean($_POST['work_phone'])."',
'".$db->clean($_POST['fax'])."',
'".$db->clean($_POST['occupation'])."',
'1',
'1',
'1',
'0',
'0000-00-00'
)");
$new_id = $db->last_insert_id();
$db->query("UPDATE asap_leads.client_info SET kit_client_id='".$db->clean($new_id)."',kit_client_password='".$db->clean($password)."' WHERE id='".$db->clean($client_id)."'");
$db->query("INSERT INTO asap_leads.notes (leadid,employee,notedate,notes,sys_note)
VALUES ('".$db->clean($client_id)."','".$db->clean($_SESSION['fullname'])."','".date('Y-m-d H:i:s')."','Created as Webinar Starter Kit Purchaser.','1')");
$to = $_POST['email'];
$from = 'support@americansocietyforassetprotection.com';
$subject = 'ASAP New Account';
$body = "<p>{$_POST['first_name']},</p>
<p>Welcome to American Society For Asset Protection.</p>
<p>You can log in to your account here.</p>
<p>Website: <a href=\"https://www.americansocietyforassetprotection.com/member/login.php\">www.americansocietyforassetprotection.com/member/login.php</a></p>
<p>Username: {$_POST['email']}</p>
<p>Password: {$password}</p>
<p>If you have any questions, or want to order over the phone, please call (877) 992-7738 or send us an email at support@americansocietyforassetprotection.com</p>
<br />
<p>Support<br />AmericanSocietyForAssetProtection.com</p>";
$attachments = array();
mailgun_send_message($to,$from,$subject,$body,1,'ASAP Webinar Welcome','','','asap_leads',$client_id,$attachments);
$to = 'kammeeplant@gmail.com,hans@assetspeaker.com';
$from = 'support@americansocietyforassetprotection.com';
$subject = 'ASAP New Account';
$body = "<p>{$_POST['first_name']} {$_POST['last_name']} ({$_POST['email']}) just signed up.</p>
<p><a href=\"https://surfcrm.com/bin/reports/printables/orders_asap.php?order_id={$order_id}&client_id={$client_id}\">Invoice</a></p>";
mailgun_send_message($to,$from,$subject,$body,1,'ASAP Webinar Welcome2','','','',0,$attachments);
$output = 'Thank you for your order. We will be in touch soon.';
$error = '';
} else {
$output = '';
$error = $response['transresponse'];
}
}
} else {
$error = "You need to Sign the Document";
$output = "";
}
}
ob_start();
?>
<link rel="stylesheet" type="text/css" href="/css/glyphicons/css/glyphicons.css">
<link rel="stylesheet" type="text/css" href="/css/style.css">
<style type="text/css">
.save_button {
font-size:18px;
padding: 10px 20px;
cursor:pointer;
border:2px outset #BBB;
margin:20px 0px;
}
.save_button:hover {
border:2px inset #BBB;
}
.error {
background:#993300;
text-align:center;
color:white;
padding:10px;
font-size:16px;
}
.output {
background:#33AA66;
text-align:center;
color:white;
padding:10px;
font-size:16px;
}
.hidden_form {
display:none;
}
.hidden_steps {
padding:20px;
}
.hidden_step {
display:none;
}
.step_next_button,.step_back_button {
border-style: solid;
border-width: 0px;
cursor: pointer;
font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
font-weight: normal;
line-height: normal;
margin: 0 0 1.25rem;
position: relative;
text-decoration: none;
text-align: center;
-webkit-appearance: none;
-webkit-border-radius: 0;
display: inline-block;
padding-top: 1rem;
padding-right: 2rem;
padding-bottom: 1.0625rem;
padding-left: 2rem;
font-size: 1rem;
background-color: #1e9500;
border-color: #007095;
color: white;
transition: background-color 300ms ease-out;
}
.step_next_button:hover,.step_back_button:hover {
background: #32b510;
}
.half_width {
width:49%;
}
.order_service_image {
vertical-align:top;
display:inline-block;
margin:0px 10px;
}
.order_service_image img {
width:100%;
}
.order_service_image_text {
font-family:'Playfair Display', serif;
font-size:23px;
font-weight:bold;
color: #093554;
padding:10px 0px;
}
.special_box {
font-family:Arial;
}
.special_box_header {
border-top-left-radius:25px;
border-top-right-radius:25px;
background:#1A4684;
padding:10px 21px;
color:white;
}
.special_box_body {
border-bottom-left-radius:25px;
border-bottom-right-radius:25px;
background:white;
color:black;
padding:10px;
border-left: 1px dashed #BBBBBB;
border-right: 1px dashed #BBBBBB;
border-bottom: 1px dashed #BBBBBB;
}
.special_box_body label {
font-size:14px;
}
.special_instructions {
width:100%;
height:36px;
font-size:12px;
line-height:18px;
border:none;
color:black;
background:#fff;
background: -webkit-gradient(linear, 0 0, 0 100%, from(#000), color-stop(4%, #fff)) 0 4px;
background: -webkit-linear-gradient(top, #000 0%, #fff 8%) 0 4px;
background: -moz-linear-gradient(top, #000 0%, #fff 8%) 0 4px;
background: -ms-linear-gradient(top, #000 0%, #fff 8%) 0 4px;
background: -o-linear-gradient(top, #000 0%, #fff 8%) 0 4px;
background: linear-gradient(top, #000 0%, #fff 8%) 0 4px;
-webkit-background-size: 100% 18px;
-moz-background-size: 100% 18px;
-ms-background-size: 100% 18px;
-o-background-size: 100% 18px;
background-size: 100% 18px;
}
.medium_margin_top {
margin-top:20px;
}
.all_caps {
text-transform:uppercase;
font-family:'Playfair Display', serif;
font-size:18px;
font-weight:bold;
}
label.boxed_input_label {
display:inline-block;
padding:0px 0px 0px 1%;
}
label.boxed_input_label input[type=text], label.boxed_input_label input[type=email], label.boxed_input_label input[type=tel] {
width:100%;
height:24px;
font-size:18px;
border:1px solid #BBB;
color:black;
background:#fff;
}
@media screen and (max-width : 520px) {
body {
width: 100%;
text-align:center;
}
.half_width {
width:100%;
}
label.boxed_input_label {
width:100% !important;
}
.order_service_image {
width:100% !important;
margin:10px 0px;
}
label.bigger_letters_label {
display:block;
margin:5px;
font-size:20px;
}
.order_header {
padding-left:10px;
}
.fixed {
padding:15px 0px;
}
.questions_h3 {
font-size:11px;
}
.break_here {
display:block;
}
}
</style>
<?php
$css = ob_get_clean();
if($response['response']=='1') {
try {
$to = 'hans@americansocietyap.org,heinz57@gmail.com';
//$to = 'jeremy@usbusinessfundingsolutions.com';
$from = 'webinar@americansocietyforassetprotection.com';
$subject = 'ASAP Webinar Order';
$body = "<p>A new client filled out the order form.</p><pre>".print_r($_REQUEST,true)."</pre>";
$attachments = array();
mailgun_send_message($to,$from,$subject,$body,1,'ASAP Webinar Order','','','',0,$attachments);
unlink($file_url);
} catch(Exception $e) {
//print_r($e);
//mail('jeremy@synergytpsreports.com,hans@americansocietyap.org,heinz57@gmail.com','ASAP Webinar Order',print_r($_REQUEST,true),"From:NoReply@asapwebinar.com\r\n");
}
}
?>
<!doctype html>
<html lang="en">
<head>
<title>Asset Protection</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Contact us to learn about Asset Protection">
<link href="/css/glyphicons/css/glyphicons.css" rel="stylesheet" type="text/css" />
<link href="/css/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="/css/normalize.css" rel="stylesheet" type="text/css" />
<link href="/css/style.css?ts=<?= time();?>" rel="stylesheet" type="text/css" />
<?= $css;?>
<script type="text/javascript">
var last_watch_updated = 0;
function track_video_watched() {
var str="track_video=1";
$.ajax({
method: "POST",
url: "/php/track_video_watched2.php",
data: str
}).done(function( msg ) {
});
}
function track_video_watched_so_far(seconds) {
var str="seconds=" + seconds;
$.ajax({
method: "POST",
url: "/php/track_video_watched_so_far2.php",
data: str
}).done(function( msg ) {
});
}
var tracked_video_started = false;
function track_video_started() {
if(!tracked_video_started) {
tracked_video_started = true;
var str="track_video=1";
$.ajax({
method: "POST",
url: "/php/track_video_started2.php",
data: str
}).done(function( msg ) {
});
}
$('.step1').show();
}
var marked_tracked = false;
function save_update_time(me) {
if(!tracked_video_started) {
track_video_started();
}
if(last_watch_updated + 5 < me.currentTime) {
track_video_watched_so_far(me.currentTime);
last_watch_updated = me.currentTime;
hide_play_buttons();
}
if(me.currentTime >= 1874) {
if(!marked_tracked) {
track_video_watched();
marked_tracked = true;
}
$('.hidden_form').show();
$('.hidden_form_waiting').hide();
} else {
$('.hidden_form').hide();
$('.hidden_form_waiting').show();
}
}
function show_play_buttons() {
if($('video')[0].paused) {
$('#play_button').show();
$('#pause_button').hide();
} else {
$('#play_button').hide();
$('#pause_button').show();
}
}
function hide_play_buttons() {
$('#play_button,#pause_button').hide();
}
function next_hidden_step(current_step,step_num) {
var next_step = '';
if(current_step=='do_you_own_business') {
if($('[name='+current_step+']').filter(':checked').val()=='Yes') {
next_step = '2';
} else if($('[name='+current_step+']').filter(':checked').val()=='No') {
next_step = '7';
}
} else if(step_num <= 9) {
next_step = step_num;
}
if(next_step!='') {
$('.hidden_step').hide();
$('.step'+next_step).show();
}
var str="action=next";
$('.hidden_steps').find('input,select,textarea').each(function() {
if(this.type=='radio' || this.type=='checkbox') {
if($(this).is(':checked')) {
str += '&' + encodeURIComponent(this.name) + '=' + encodeURIComponent($(this).val());
}
} else {
str += '&' + encodeURIComponent(this.name) + '=' + encodeURIComponent($(this).val());
}
});
$.ajax({
method: "POST",
url: "/php/track_hidden_form2.php",
data: str
}).done(function( msg ) {
});
}
function back_hidden_step(current_step,step_num) {
var next_step = '';
if(current_step=='do_you_have_living_trust') {
if($('[name=do_you_own_business]').filter(':checked').val()=='Yes') {
next_step = '6';
} else if($('[name=do_you_own_business]').filter(':checked').val()=='No') {
next_step = '1';
}
} else if(step_num >= 1) {
next_step = step_num;
}
if(next_step!='') {
$('.hidden_step').hide();
$('.step'+next_step).show();
}
}
</script>
</head>
<body>
<div class="body_container">
<div class="header">
<img class="main_logo" alt="ASAP Logo" src="/images/logo.png" />
<div class="page_title">
American Society<br />
<i>for</i> Asset Protection
</div>
<div class="page_subtitles">
<div class="page_subtitle">
Protecting your Personal & Business Assets for Decades
</div>
<div class="page_subtitle2">
Asset Protection...Simplified
</div>
</div>
<?php /*
<div class="icon_menu">
<div class="icon_menu_item">
<img class="icon" alt="Lock" src="/images/lock.png" />
<div class="icon_text">Legal Tools & Entities</div>
</div>
<div class="icon_menu_item">
<img class="icon" alt="Phone" src="/images/phone.png" style="padding-left:4px;" />
<div class="icon_text">Contact</div>
</div>
</div>
*/ ?>
<div class="header_underline"></div>
<div class="clear"></div>
</div>
<div class="main_content_container">
<div class="main_content">
<div>
<?php if(!empty($error)) { echo '<div class="error" style="margin-top:10px;">'.$error.'</div>'; };?>
<?php if(!empty($output)) { echo '<div class="output" style="margin-top:10px;">'.$output.'</div>'; };?>
</div>
<h1>Watch the Full Presentation</h1>
<form method="post" action="step2.php" id="order_form" onsubmit="return $('[name=zip]').is(':visible');">
<div class="video_holder">
<?php if($version=='autoplay') { ?>
<video id="angie_blueprint_video" src="/images/AngieWebinar.mp4" poster="/images/AngieWebinar.jpg" ontimeupdate="save_update_time(this);" onmouseover="show_play_buttons();" onmouseout="hide_play_buttons();" onclick="this.muted = 0;" style="width:100%;" playsinline autoplay muted></video>
<?php } else { ?>
<video id="angie_blueprint_video" src="/images/AngieWebinar.mp4" poster="/images/AngieWebinar.jpg" ontimeupdate="save_update_time(this);" onmouseover="show_play_buttons();" onmouseout="hide_play_buttons();" onclick="this.muted = 0;" style="width:100%;" playsinline></video>
<?php } ?>
<div id="play_button" onmouseover="show_play_buttons();" onmouseout="hide_play_buttons();" onclick="$('video')[0].play(); $('video')[0].muted = 0; show_play_buttons();"><span class="glyphicons glyphicons-play glyphicons-fw f64"></span></div>
<div id="pause_button" onmouseover="show_play_buttons();" onmouseout="hide_play_buttons();" onclick="$('video')[0].pause(); show_play_buttons();"><span class="glyphicons glyphicons-pause glyphicons-fw f64"></span></div>
</div>
<div class="questionnaire">
<h1 class="questionnaire_title">Follow along with the video</h1>
<div class="hidden_steps">
<div class="hidden_step step1">
<div class="form_row">
<div class="question">
Do you own a business?
</div>
<div class="answer">
<label><input type="radio" name="do_you_own_business" value="Yes" /> Yes</label>
<label><input type="radio" name="do_you_own_business" value="No" /> No</label>
</div>
</div>
<br />
<center>
<button class="step_next_button" onclick="next_hidden_step('do_you_own_business',2); return false;">Next</button>
</center>
</div>
<div class="hidden_step step2">
<div class="form_row">
<div class="question">
How is your business structured?
</div>
<div class="answer">
<select name="how_is_your_business_structured" style="vertical-align:middle;">
<option value=""></option>
<option value="Sole Proprietor">Sole Proprietor</option>
<option value="Corporation">Corporation</option>
<option value="LLC">LLC</option>
</select>
</div>
</div>
<br />
<center>
<button class="step_back_button" onclick="back_hidden_step('how_is_your_business_structured',1); return false;">Back</button>
<button class="step_next_button" onclick="next_hidden_step('how_is_your_business_structured',3); return false;">Next</button>
</center>
</div>
<div class="hidden_step step3">
<div class="form_row">
<div class="question">
How many employees do you have?
</div>
<div class="answer">
<input type="number" name="how_many_employees" value="" />
</div>
</div>
<br />
<center>
<button class="step_back_button" onclick="back_hidden_step('how_many_employees',2); return false;">Back</button>
<button class="step_next_button" onclick="next_hidden_step('how_many_employees',4); return false;">Next</button>
</center>
</div>
<div class="hidden_step step4">
<div class="form_row">
<div class="question">
What is the Total Gross Income of your business?<br />
<small><i>(Total money received before any deductions like rent, cost of goods, and taxes)</i></small>
</div>
<div class="answer">
<input type="number" name="what_is_your_gross_revenue" value="" />
</div>
</div>
<br />
<center>
<button class="step_back_button" onclick="back_hidden_step('what_is_your_gross_revenue',3); return false;">Back</button>
<button class="step_next_button" onclick="next_hidden_step('what_is_your_gross_revenue',5); return false;">Next</button>
</center>
</div>
<div class="hidden_step step5">
<div class="form_row">
<div class="question">
Have you or your business every been a defendant in a lawsuit?
</div>
<div class="answer">
<label><input type="radio" name="been_defendant_in_lawsuit" value="Yes" /> Yes</label>
<label><input type="radio" name="been_defendant_in_lawsuit" value="No" /> No</label>
</div>
</div>
<br />
<center>
<button class="step_back_button" onclick="back_hidden_step('been_defendant_in_lawsuit',4); return false;">Back</button>
<button class="step_next_button" onclick="next_hidden_step('been_defendant_in_lawsuit',6); return false;">Next</button>
</center>
</div>
<div class="hidden_step step6">
<div class="form_row">
<div class="question">
Do you feel if you were sued, you are properly protected so you wouldn't lose any of your assets like your home, cars, building, etc?
</div>
<div class="answer">
<label><input type="radio" name="if_sued_protected" value="Yes" /> Yes</label>
<label><input type="radio" name="if_sued_protected" value="No" /> No</label>
</div>
</div>
<br />
<center>
<button class="step_back_button" onclick="back_hidden_step('if_sued_protected',5); return false;">Back</button>
<button class="step_next_button" onclick="next_hidden_step('if_sued_protected',7); return false;">Next</button>
</center>
</div>
<div class="hidden_step step7">
<div class="form_row">
<div class="question">
Do you have a living trust?
</div>
<div class="answer">
<label><input type="radio" name="do_you_have_living_trust" value="Yes" /> Yes</label>
<label><input type="radio" name="do_you_have_living_trust" value="No" /> No</label>
</div>
</div>
<br />
<center>
<button class="step_back_button" onclick="back_hidden_step('do_you_have_living_trust',6); return false;">Back</button>
<button class="step_next_button" onclick="next_hidden_step('do_you_have_living_trust',8); return false;">Next</button>
</center>
</div>
<div class="hidden_step step8">
<div>
<div class="form_row">
<div class="first_name">
<div class="question fullwidth">First Name</div>
<div class="answer fullwidth"><input type="text" name="first_name" placeholder="First" value="<?= $_SESSION['first_name'];?>" /></div>
</div>
<div class="last_name">
<div class="question fullwidth">Last Name</div>
<div class="answer fullwidth"><input type="text" name="last_name" placeholder="Last" value="<?= $_SESSION['last_name'];?>" /></div>
</div>
</div>
<div class="form_row">
<div class="question fullwidth">Email</div>
<div class="answer fullwidth"><input type="text" name="email" placeholder="Email" value="<?= $_SESSION['email'];?>" /></div>
</div>
<div class="form_row">
<div class="cell_phone">
<div class="question fullwidth">Mobile Phone</div>
<div class="answer fullwidth"><input type="text" name="cell_phone" class="phone_number" placeholder="(333) 444-5555" value="<?= $_SESSION['cell_phone'];?>" /></div>
</div>
</div>
</div>
<br />
<center>
<button class="step_back_button" onclick="back_hidden_step('do_you_have_living_trust',7); return false;">Back</button>
<button class="step_next_button" onclick="next_hidden_step('contact_info',9); return false;">Next</button>
</center>
</div>
<div class="hidden_step step9">
<div class="hidden_form_waiting">
Please finish the watching the video to continue
</div>
<div class="hidden_form" id="hidden_form3">
<div>
<center>
<div class="order_service_image" style="width:30%;">
<div class="order_service_image_text">Customized Blueprint & Consultation W/Attorney (Yearly Evaluation)</div>
<img src="images/order/customized_blueprint.jpg" />
</div>
<div class="order_service_image" style="width:34%;">
<div class="order_service_image_text">Create Unlimited Asset Protection Documents with Online Software</div>
<img src="images/order/online_software.jpg" />
</div>
<div class="order_service_image" style="width:26%;">
<div class="order_service_image_text">Unlimited Access to Asset Protection Online Training Library</div>
<img src="images/order/online_training.jpg" />
</div>
</center>
</div>
<div class="special_box medium_margin_top">
<div class="special_box_header">
Payment Information
</div>
<div class="special_box_body">
<div>
<h1 style="font-weight:normal;color:black;text-align:center;margin-top:0px;">Invincible Legal Tools $998<br /><span class="smaller_letter">+ $9.95 Per Month</span></h1>
</div>
<div>
<label class="boxed_input_label" style="width:45%;">
Card Number <span style="font-weight:normal;">(no spaces or dashes)</span><br />
<input type="text" name="cc_num" maxlength="16" value="<?= $_REQUEST['cc_num'];?>" required />
</label>
<label class="boxed_input_label" style="width:20%;">
Exp. Date<br />
<select name="cc_exp_month" style="width:40%;height:auto;padding:2px 15px 2px 0px;">
<?php for($i=1;$i<=12;$i++) { ?>
<option value="<?= ($i<10) ? '0'.$i : $i;?>" <?= ($_REQUEST['cc_exp_month']==(($i<10) ? '0'.$i : $i)) ? 'selected' : '';?>><?= ($i<10) ? '0'.$i : $i;?></option>
<?php } ?>
</select>
/
<select name="cc_exp_year" style="width:50%;height:auto;padding:2px 15px 2px 0px;">
<?php for($i=date('Y');$i<=date('Y')*1+10;$i++) { ?>
<option value="<?= $i;?>" <?= ($_REQUEST['cc_exp_year']==$i) ? 'selected' : '';?>><?= $i;?></option>
<?php } ?>
</select>
</label>
<label class="boxed_input_label" style="width:15%;">
Card Code<br />
<input type="text" name="cc_cvv" maxlength="4" value="<?= $_REQUEST['cc_cvv'];?>" />
</label>
</div>
<div>
<label class="boxed_input_label" style="width:45%;">
Billing Address<br />
<input type="text" name="shipping_address" value="<?= $_REQUEST['shipping_address'];?>" />
</label>
<label class="boxed_input_label" style="width:30%;">
City<br />
<input type="text" name="city" value="<?= $_REQUEST['city'];?>" />
</label>
<label class="boxed_input_label" style="width:8%;">
State<br />
<input type="text" name="state" value="<?= $_REQUEST['state'];?>" />
</label>
<label class="boxed_input_label" style="width:15%;">
Zip<br />
<input type="text" name="zip" value="<?= $_REQUEST['zip'];?>" />
</label>
</div>
<center>
<label class="bigger_letters_label"><input type="radio" name="do_payment_plan" value="PayInFull" /> Pay in Full</label>
<label class="bigger_letters_label"><input type="radio" name="do_payment_plan" value="PaymentPlan" /> Payment Plan 2 payments of $499</label>
</center>
<center>
<input type="hidden" name="payment_type" value="Credit Card" />
<input type="submit" class="save_button" value="Complete Order" />
<h3 class="questions_h3">If you have any questions, or want to order over the phone, please call (877) 992-7738 <span class="break_here"></span>or send us an email at support@americansocietyforassetprotection.com</h3>
</center>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<div class="testimonials">
<h1>Listen to our Clients</h1>
<div class="testimonial">"I can now tell my lawyer and accountant what I want and my business can be fully protected."<br />-Curtis Evans</div>
<div class="testimonial">"It was rather enlightening and wished I had heard it years ago for its valuable information."<br />-Dr. Mary Grotz</div>
<div class="testimonial">"I would recommend this to friends, family and other businesses."<br />-Lindsey Filley</div>
<div class="testimonial">"Showed me how the 'ultra rich' in America are shielded from both taxes (including the death tax) and lawsuits whole the rest who actually work for am living are always at risk."<br />-Andrew Zak</div>
</div>
<?php /*
<div class="legal_team">
<h1>Our Legal Team</h1>
</div>
*/ ?>
<div class="footer">
<?php /*
<div class="footer_divider"></div>
<div class="footer_menu">
<div class="icon_menu_item">
<img class="icon" alt="Lock" src="/images/lock.png" />
<div class="icon_text">Legal Tools & Entities</div>
</div>
<div class="icon_menu_item">
<img class="icon" alt="People" src="/images/people.png" />
<div class="icon_text">Legal Team</div>
</div>
<div class="icon_menu_item right_side">
<img class="icon" alt="Phone" src="/images/phone.png" />
<div class="icon_text">Contact</div>
</div>
<div class="clear"></div>
</div>
*/ ?>
<div class="footer_divider"></div>
<div class="bbb_and_ssl">
<img alt="BBB" src="/images/bbb.png" />
<img alt="SSL" src="/images/ssl.png" />
</div>
</div>
</div>
</div>
<script src="js/vendor/jquery.js"></script>
<script type="text/javascript" src="/js/jquery/jquery.formatter.min.js"></script>
<script type="text/javascript">
var is_running = false;
function do_partial_tracking() {
if(is_running) {
//do nothing
} else {
is_running = true;
var str = '';
$('#order_form').find('input,select,textarea').each(function() {
if(this.type=='checkbox') {
if($(this).is(':checked')) {
str += (str=='') ? '' : '&';
str += encodeURIComponent(this.name) + '=' + encodeURIComponent($(this).val());
}
} else {
str += (str=='') ? '' : '&';
str += encodeURIComponent(this.name) + '=' + encodeURIComponent($(this).val());
}
});
$.ajax({
url:"/php/track_partial_order2.php",
cache: false,
type: "POST",
data: str,
success: function(results) {
is_running = false;
},
error: function(jqXHR, textStatus, errorThrown) {
is_running = false;
}
});
var str="action=next";
$('.hidden_steps').find('input,select,textarea').each(function() {
if(this.type=='radio' || this.type=='checkbox') {
if($(this).is(':checked')) {
str += '&' + encodeURIComponent(this.name) + '=' + encodeURIComponent($(this).val());
}
} else {
str += '&' + encodeURIComponent(this.name) + '=' + encodeURIComponent($(this).val());
}
});
$.ajax({
method: "POST",
url: "/php/track_hidden_form2.php",
data: str
}).done(function( msg ) {
});
}
}
$('document').ready(function() {
do_partial_tracking();
$('input').blur(function() {
do_partial_tracking();
});
$('.phone_number').formatter({
'pattern': '({{999}}) {{999}}-{{9999}}',
'persistent': false
});
});
</script>
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '312665332714811');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=312665332714811&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
</body>
</html>