<?php
@session_start();
$_SESSION['first_name'] = $_POST['first_name'];
$_SESSION['last_name'] = $_POST['last_name'];
$_SESSION['email_address'] = $_POST['email_address'];
$_SESSION['application_password'] = $_POST['app_password'];
$urlconstruct='http://wreckingballmarketing.com/iSDK/iSDK/src/cb.php';
$param='cid='.$_POST['email_address'].'&step=1&at=1';
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$urlconstruct);
curl_setopt($ch,CURLOPT_POST,count($param));
curl_setopt($ch,CURLOPT_POSTFIELDS,$param);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HEADER ,0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1);
$response = curl_exec($ch);
curl_close($ch);
if($response==1)
{
header('Location:update_database_file.php');
}
else
{
$_SESSION['message'] = 'Sorry it does not look like you have a license to install this software based on the registered email attached to the license OR you have already used up your license install allotment. If you feel this is an error please contact support to have this fixed.';
header('Location:add_personal_info.php');
}
?>