";
$copyright.="© ".$year." ".$site_name." ";
$copyright.="- All Rights Reserved Worldwide";
$copyright.="";
$copyright.="
";
$time_now=time();
$ip = $_SERVER['REMOTE_ADDR'];
$url = $_SERVER[HTTP_REFERER];
if ($_POST['customer_login']){
$customer_username = $_POST['username'];
$customer_password = $_POST['password'];
$custom = $_POST['custom'];
if (($customer_username=="")||($customer_password=="")){
$menus_off="Yes";
$control_panel="Error";
include ("members/include/header.php");
$message="Error
";
$message.="Please Enter A Username And Password ";
$message.=customer_login_form($member_id,$customer_username,$customer_password,$name,$email,$verified,$site_address,$custom,$sponsor_message);
$message.=" |
";
$returncontent = preg_replace ("/\[\[(.*?)\]\]/e", "$$1", $message);
echo $returncontent;
include ("members/include/footer.php");
exit;
}
$affiliate_info=mysql_fetch_array(mysql_execute("select * from jv_members where username='$customer_username'"));
$affiliate_id=$affiliate_info[0];
$affiliate_username=$affiliate_info[1];
$affiliate_password=$affiliate_info[2];
if ($affiliate_id>=1){
if (($customer_username==$affiliate_username)&&($customer_password==$affiliate_password)){
$decrypt=new cript();
$decrypted=$decrypt->decriptData($custom);
$data=explode("&",$decrypted);
$status=$data[0];
$referrer_username=$data[1];
$payment_for=$data[2];
$payer_email=$data[3];
$check_email=$data[4];
if ($check_email==""){
$check_email=$payer_email;
}
$sponsor_info=mysql_fetch_array(mysql_execute("select * from jv_members where username='$referrer_username'"));
$sponsor_id=$sponsor_info[0];
$delivery_info=mysql_fetch_array(mysql_execute("select * from jv_delivery where product_id='$payment_for' and member_id='$affiliate_id'"));
$delivery_id=$delivery_info[0];
if ($delivery_id>0){
$update_query = "update jv_delivery set cancelled_payment='No' where product_id='$payment_for' and member_id='$affiliate_id'";
$update_res=mysql_execute($update_query);
}
else{
$add_product_query="insert into jv_delivery (product_id,member_id,date_ordered,cancelled_payment,ordered_from,paypal1,paypal2) values ('$payment_for','$affiliate_id','$time_now','No','$sponsor_id','$check_email','$payer_email')";
$add_product_res=mysql_execute($add_product_query);
}
send_emails($affiliate_id,$sponsor_id,$payment_for,$site_name,$site_address);
session_start();
$_SESSION['user_session']=$affiliate_id;
$product_info=mysql_fetch_array(mysql_execute("select * from jv_products where product_id='$payment_for'"));
$one_time_offer=$product_info[7];
if ($one_time_offer>0){
$product_info=mysql_fetch_array(mysql_execute("select * from jv_products where product_id='$one_time_offer'"));
$product_id=$product_info[0];
$product_url=$product_info[3];
$show_offer=$site_address."/go/".$referrer_username."/".$product_url;
header("Location:$show_offer");
exit;
}
else{
header("Location:$download_area");
exit;
}
}
else {
$menus_off="Yes";
$control_panel="Error";
include ("members/include/header.php");
$message="Error
";
$message.="That username already exist's. Please enter a different username or the correct password. ";
$message.=customer_login_form($member_id,$customer_username,$customer_password,$name,$email,$verified,$site_address,$custom,$sponsor_message);
$message.=" |
";
$returncontent = preg_replace ("/\[\[(.*?)\]\]/e", "$$1", $message);
echo $returncontent;
include ("members/include/footer.php");
exit;
}
}
else{
$decrypt=new cript();
$decrypted=$decrypt->decriptData($custom);
$data=explode("&",$decrypted);
$status=$data[0];
$referrer_username=$data[1];
$payment_for=$data[2];
$payer_email=$data[3];
$check_email=$data[4];
if ($check_email==""){
$check_email=$payer_email;
}
$sponsor_info=mysql_fetch_array(mysql_execute("select * from jv_members where username='$referrer_username'"));
$sponsor_id=$sponsor_info[0];
if ($must_verify==Yes){$verified="No";}
else{$verified="Yes";}
$message1=add_new_member($customer_username,$customer_password,$verified,$referrer_username,$payment_for,$dark_color,$site_address,$check_email,$payer_email,$status,$sponsor_id);
$new_data=$customer_username."&".$customer_password."&".$payment_for."&".$referrer_username;
$encrypt=new cript();
$custom=$encrypt->criptData($new_data);
$menus_off="Yes";
$control_panel="Almost Done";
include ("members/include/header.php");
$message="Almost Done
";
$message.="We just need to get your name and email and we'll be finished. Please fill out the form below and click on \"Create My Account\". ";
$message.=customer_signup_form($member_id,$customer_username,$customer_password,$name,$email,$verified,$site_address,$custom);
$message.=" |
";
$returncontent = preg_replace ("/\[\[(.*?)\]\]/e", "$$1", $message);
echo $returncontent;
include ("members/include/footer.php");
exit;
}
exit;
}
if ($_POST['customer_signup']){
$customer_name = $_POST['name'];
$customer_email = $_POST['email'];
$paypal_email = $_POST['paypal_email'];
$custom = $_POST['custom'];
$decrypt=new cript();
$decrypted=$decrypt->decriptData($custom);
$data=explode("&",$decrypted);
$customer_username=$data[0];
$customer_password=$data[1];
$payment_for=$data[2];
$referrer_username=$data[3];
$update_query = "update jv_members set name='$customer_name',email='$customer_email',paypal_email='$paypal_email' where username='$customer_username'";
$update_res=mysql_execute($update_query);
$message2=add_resellmaster($customer_username,$customer_password,$customer_name,$customer_email,$paypal_email,$referrer_username);
$affiliate_info=mysql_fetch_array(mysql_execute("select * from jv_members where username='$customer_username'"));
$affiliate_id=$affiliate_info[0];
$sponsor_info=mysql_fetch_array(mysql_execute("select * from jv_members where username='$referrer_username'"));
$sponsor_id=$sponsor_info[0];
send_emails($affiliate_id,$sponsor_id,$payment_for,$site_name,$site_address);
session_start();
$cookie_value = explode('/', $site_address);
$cookie_domain = $cookie_value[2];
$cookie_domain = preg_replace ("/www./e", "", $cookie_domain);
$new_data=$customer_username;
$encrypt=new cript();
$cookie_id=$encrypt->criptData($new_data);
setcookie("affiliate","$cookie_id",time() + (3600*24*365*30),"/",".$cookie_domain",0);
$new_sponsor_data=$sponsor_id;
$sponsor_encrypt=new cript();
$cookie_id=$sponsor_encrypt->criptData($new_sponsor_data);
setcookie("sponsor","$cookie_id",time() + (3600*24*365*30),"/",".$cookie_domain",0);
$_SESSION['user_session']=$affiliate_id;
$product_info=mysql_fetch_array(mysql_execute("select * from jv_products where product_id='$payment_for'"));
$one_time_offer=$product_info[7];
if ($one_time_offer>0){
$product_info=mysql_fetch_array(mysql_execute("select * from jv_products where product_id='$one_time_offer'"));
$product_id=$product_info[0];
$product_url=$product_info[3];
$show_offer=$site_address."/go/".$referrer_username."/".$product_url;
header("Location:$show_offer");
exit;
}
else{
header("Location:$download_area");
exit;
}
exit;
}
$recommended=$_SERVER['REQUEST_URI'];
$recommended = explode('/', $recommended);
$num_param = count($recommended);
for($i = 0; $i < $num_param; $i++) {
$key = $recommended[$i];
if ($key==go){
$i++;
$affiliate = $recommended[$i];
$this_affiliate = $recommended[$i];
$i++;
$product = $recommended[$i];
}
}
$affiliate_info=mysql_fetch_array(mysql_execute("select * from jv_members where username='$affiliate'"));
$affiliate_id=$affiliate_info[0];
$temp_sponsor_id=$affiliate_info[0];
$temp_affiliate_username=$affiliate_info[1];
if ($affiliate_id>=1){$affiliate_id=$affiliate_id;}
else{$affiliate_id=1;}
$merchant_id=$_COOKIE[merchant];
if (!$merchant_id){
$cookie_value = explode('/', $site_address);
$cookie_domain = $cookie_value[2];
$cookie_domain = preg_replace ("/www./e", "", $cookie_domain);
$new_data=$affiliate_id;
$encrypt=new cript();
$cookie_id=$encrypt->criptData($new_data);
//setcookie("merchant", "$cookie_id", time() + (3600*24*365*30));
setcookie("merchant","$cookie_id",time() + (3600*24*365*30),"/",".$cookie_domain",0);
}
if ($merchant_id){
$decrypt=new cript();
$decrypted=$decrypt->decriptData($merchant_id);
$affiliate_id=$decrypted;
}
$sponsor_id=$_COOKIE[sponsor];
if ($sponsor_id){
$decrypt=new cript();
$decrypted=$decrypt->decriptData($sponsor_id);
$affiliate_id=$decrypted;
$sponsor_message=1;
//$sponsor_message="| Because you are not allowed to order through your own link, this button will pay the affiliate who referred you. When you send visitors to this page, they will not see this message and you will be paid. |
";
}
$product_info=mysql_fetch_array(mysql_execute("select * from jv_products where product_url='$product'"));
$product_id=$product_info[0];
if ($product_id>=1){$product_id=$product_id;}
else{$product_id=1;}
// Gather Admin Info
$admin_info=mysql_fetch_array(mysql_execute("select * from jv_members where member_id='1'"));
$admin_id=$admin_info[0];
$admin_username=$admin_info[1];
$admin_password=$admin_info[2];
$admin_name=$admin_info[3];
$admin_contact=$admin_info[4];
$admin_verified=$admin_info[5];
$admin_paypal=$admin_info[6];
$admin_referrer=$admin_info[7];
$admin_signup_date=$admin_info[8];
$admin_status=$admin_info[9];
$admin_last_login=$admin_info[10];
$admin_commission=$admin_info[11];
// Gather Affiliate Info
$affiliate_info=mysql_fetch_array(mysql_execute("select * from jv_members where member_id='$affiliate_id'"));
$affiliate_id=$affiliate_info[0];
$affiliate_username=$affiliate_info[1];
$affiliate_password=$affiliate_info[2];
$affiliate_name=$affiliate_info[3];
$affiliate_contact=$affiliate_info[4];
$affiliate_verified=$affiliate_info[5];
$affiliate_paypal=$affiliate_info[6];
$affiliate_referrer=$affiliate_info[7];
$affiliate_signup_date=$affiliate_info[8];
$affiliate_status=$affiliate_info[9];
$affiliate_last_login=$affiliate_info[10];
$affiliate_commission=$affiliate_info[11];
// Gather Product Info
$product_info=mysql_fetch_array(mysql_execute("select * from jv_products where product_id='$product_id'"));
$product_id=$product_info[0];
$product_name=$product_info[1];
$product_price=$product_info[2];
$product_url=$product_info[3];
$product_description=$product_info[4];
$product_download=$product_info[5];
$product_recurring=$product_info[6];
$product_oto=$product_info[7];
$product_type=$product_info[8];
$product_commission=$product_info[9];
$recurring=explode("-",trim($product_recurring));
$recurring_flag=$recurring[2];
if ($product_type==OTO){
$no_thanks="No thanks! Take me to the download area.";
}
if ($product_type==Login){
$no_thanks="No thanks! Take me to the members area.";
}
if ($product_type==Logout){
$no_thanks="";
}
if (($sponsor_message==1)&&($product_price!=0)&&($affiliate_id!=$temp_sponsor_id)){
$sponsor_message="| Because you are not allowed to order through your own link, this button will pay the affiliate who referred you (".$affiliate_username."). When you send visitors to this page, they will not see this message and you will be paid. |
";
}
elseif (($sponsor_message==1)&&($product_price==0)&&($affiliate_id!=$temp_sponsor_id)){
$sponsor_message="| Because you are not allowed to sign up through your own link, this form will sign you up under the affiliate who originally referred you (".$affiliate_username."). When you send visitors to this page, they will not see this message and will be signed up under you. |
";
}
else{
$sponsor_message="";
}
$affiliate_site_id=$_COOKIE[affiliate];
if ($affiliate_site_id){
$decrypt=new cript();
$decrypted=$decrypt->decriptData($affiliate_site_id);
$affiliate_site_id=$decrypted;
if (($affiliate_id>1)&&($this_affiliate!="")&&($temp_affiliate_username!=$affiliate_site_id)&&($temp_affiliate_username!=$affiliate_username)){
$control_panel="Error - Wrong URL!";
include ("members/include/header.php");
?>
include ("members/include/footer.php");
exit;
}
}
$visitor_info=mysql_fetch_array(mysql_execute("select * from jv_visitors where visitor_ip='$ip' and product_id='$product_id' and member_id='$affiliate_id'"));
$visitor_id=$visitor_info[0];
if (!$visitor_id){
$visitor_res=mysql_execute("insert into jv_visitors (visitor_ip,product_id,member_id,referrer,date) values ('$ip','$product_id','$affiliate_id','$url','$time_now')");
}
$yearly_visitor_info=mysql_fetch_array(mysql_execute("select * from jv_system_visitors where visitor_ip='$ip' and product_id='$product_id' and member_id='$affiliate_id'"));
$yearly_visitor_id=$yearly_visitor_info[0];
if (!$yearly_visitor_id){
$yearly_visitor_res=mysql_execute("insert into jv_system_visitors (visitor_ip,product_id,member_id,referrer,date) values ('$ip','$product_id','$affiliate_id','$url','$time_now')");
}
if ($product_commission>$affiliate_commission){$affiliate_commission=$product_commission;}
if ($affiliate_status==member){$affiliate_commission=100;}
else{$affiliate_commission=$affiliate_commission;}
//echo "Affiliate Status ".$affiliate_status;
//echo "
Affiliate ID ".$affiliate_id;
//echo "
Affiliate Name ".$affiliate_name;
//echo "
Affiliate Commission ".$affiliate_commission;
//exit;
// Configure Return URL
$return_url=$site_address."/go/".$affiliate_username."/".$product_url;
// Figure Commissions
$affiliate_profit=$affiliate_commission*$product_price/100;
$affiliate_profit=format_number($affiliate_profit);
$admin_profit=$product_price-$affiliate_profit;
$admin_profit=format_number($admin_profit);
$item_name = $product_name;
$item_number = "$product_id";
$payment_number=1;
$user_ordering="No";
$payment_status = "";
$payment_amount = "";
$payment_currency = "";
$txn_id = "";
$receiver_email = "";
$payer_email = "";
$custom = "";
if (($_POST['custom'])||($_POST['user1'])){
$payment_number=2;
$item_number = $_POST['item_number'];
$user_ordering="Yes";
$payment_status = $_POST['payment_status'];
$payment_amount = $_POST['mc_gross'];
$payment_currency = $_POST['mc_currency'];
$txn_id = $_POST['txn_id'];
$receiver_email = $_POST['receiver_email'];
$payer_email = $_POST['payer_email'];
$custom = $_POST['custom'];
}
// Check For Payments That Have Already Been Made
if ($custom==""){
$user_site_address=$return_url;
$payment_query = "select * from jv_payments where (site_address='$user_site_address' and payment_for='$item_number'and payer_email='$payer_email')";
}
else{
$decrypt=new cript();
$decrypted=$decrypt->decriptData($custom);
$data=explode("&",$decrypted);
$user_site_address=$data[1];
$payment_for=$data[2];
$check_email=$data[3];
if ($check_email==""){
$payment_query = "select * from jv_payments where (site_address='$user_site_address' and payment_for='$item_number'and payer_email='$payer_email')";
}
else{
$payment_query = "select * from jv_payments where (site_address='$user_site_address' and payment_for='$item_number') and (payer_email='$payer_email' or payer_email='$check_email')";
}
}
$payment_result=mysql_execute($payment_query);
if (mysql_affected_rows()!=0){
while($payment_res=mysql_fetch_array($payment_result)){
$payment_id=$payment_res['payment_id'];
$receiver_email=$payment_res['receiver_email'];
$status=$payment_res['status'];
$payer_email=$payment_res['payer_email'];
if ($receiver_email==$affiliate_paypal){
$affiliate_payment_status=$status;
$affiliate_payment_amount=$payment_res['transaction_amount'];
$affiliate_total=$affiliate_total+$affiliate_payment_amount;
}
if ($receiver_email==$admin_paypal){
$admin_payment_status=$status;
$admin_payment_amount=$payment_res['transaction_amount'];
$admin_total=$admin_total+$admin_payment_amount;
}
}
}
// Apply Found Affiliate Payments To Affiliate Account
if ($affiliate_total>0){
if ($affiliate_total>=$affiliate_profit){
$affiliate_owed=0;
}
else{
$affiliate_owed=$affiliate_profit-$affiliate_total;
}
}
else {
$affiliate_owed=$affiliate_profit;
}
// Apply Found Admin Payments To Admin Account
if ($admin_total>0){
if ($admin_total>=$admin_profit){
$admin_owed=0;
}
else{
$admin_owed=$admin_profit-$admin_total;
}
}
else {
$admin_owed=$admin_profit;
}
$total_paid=$affiliate_total+$admin_total;
// If The Seller Is The Admin Collect All The Money
if (($admin_paypal==$affiliate_paypal)&&($total_paid<$product_price)){
if ($admin_total<$product_price){
$admin_owed=$product_price-$admin_total;
$admin_owed=format_number($admin_owed);
$admin_total=format_number($admin_total);
$new_data=$admin_id."&".$user_site_address."&".$item_number."&".$payer_email;
$encrypt=new cript();
$custom=$encrypt->criptData($new_data);
$admin_button=get_buttons($item_name,$item_number,0,$custom,$admin_paypal,$admin_owed,$return_url,$paypal_notify_url,$paypal_post,$site_address,$product_recurring,$sponsor_message);
if ($admin_total>0){
$admin_message.="
You have paid a total of \$".$admin_total." to ".$admin_name.". You still owe \$".$admin_owed.".\n";
}
$admin_message.=$admin_button;
$sales_message=$admin_message;
}
}
// If The Product Commission Is 100% Give The Affiliate All The Money
elseif ((($product_commission==100)||($affiliate_status==member))&&($total_paid<$product_price)){
if ($affiliate_total<$product_price){
$affiliate_owed=$product_price-$affiliate_total;
$affiliate_owed=format_number($affiliate_owed);
$admin_total=format_number($admin_total);
$new_data=$affiliate_id."&".$user_site_address."&".$item_number."&".$payer_email;
$encrypt=new cript();
$custom=$encrypt->criptData($new_data);
$affiliate_button=get_buttons($item_name,$item_number,0,$custom,$affiliate_paypal,$affiliate_owed,$return_url,$paypal_notify_url,$paypal_post,$site_address,$product_recurring,$sponsor_message);
if ($affiliate_total>0){
$affiliate_message.="
You have paid a total of \$".$affiliate_total." to ".$affiliate_name.". You still owe \$".$affiliate_owed.".\n";
}
$affiliate_message.=$affiliate_button;
$sales_message=$affiliate_message;
}
}
// If The Seller Is An Affiliate Split The Commissions
else {
// If We Still Owe The Affiliate Make Their Payment Buttons
if (($affiliate_owed>0)&&($total_paid<$product_price)){
$affiliate_owed=format_number($affiliate_owed);
$admin_profit=format_number($admin_profit);
$affiliate_total=format_number($affiliate_total);
$new_data=$affiliate_id."&".$user_site_address."&".$item_number."&".$payer_email;
$encrypt=new cript();
$custom=$encrypt->criptData($new_data);
$affiliate_button=get_buttons($item_name,$item_number,1,$custom,$affiliate_paypal,$affiliate_owed,$return_url,$paypal_notify_url,$paypal_post,$site_address,$product_recurring,$sponsor_message);
$affiliate_message.="
Payment 1 - ";
if ($affiliate_total>0){
$affiliate_message.="You have paid a total of \$".$affiliate_total." to ".$affiliate_name.". You still owe \$".$affiliate_owed.". ";
}
$affiliate_message.="Pay \$".$affiliate_owed." to ".$affiliate_name.".\n";
$affiliate_message.=$affiliate_button;
if ($admin_owed<=0){
$affiliate_message.="
Payment 2 - Pay \$".$admin_profit." to ".$admin_name.".\n";
$affiliate_message.="
".$admin_payment_status."\n";
}
}
// If We Still Owe The Admin Make Their Payment Buttons
if (($admin_owed>0)&&($total_paid<$product_price)){
$admin_owed=format_number($admin_owed);
$affiliate_profit=format_number($affiliate_profit);
$admin_total=format_number($admin_total);
// Encrypt Values To Make Payment "Custom" Field
$new_data=$admin_id."&".$user_site_address."&".$item_number."&".$payer_email;
$encrypt=new cript();
$custom=$encrypt->criptData($new_data);
if ($affiliate_owed<=0){
$admin_message.="
Payment 1 - Pay \$".$affiliate_profit." to ".$affiliate_name.".\n";
$admin_message.="
".$affiliate_payment_status."\n";
$admin_button=get_buttons($item_name,$item_number,2,$custom,$admin_paypal,$admin_owed,$return_url,$paypal_notify_url,$paypal_post,$site_address,$product_recurring,$sponsor_message);
$admin_message.="
Payment 2 - ";
if ($admin_total>0){
$admin_message.="You have paid a total of \$".$admin_total." to ".$admin_name.". You still owe \$".$admin_owed.". ";
}
$admin_message.="Pay \$".$admin_owed." to ".$admin_name.".\n";
$admin_message.=$admin_button;
}
else{
$admin_message.="
Payment 2 - ";
$admin_message.="Pay \$".$admin_owed." to ".$admin_name.".\n";
$admin_message.="
\n\nPlease make Payment 1 first.\n\n \n\n |
\n\n";
}
$sales_message=$affiliate_message;
$sales_message.=$admin_message;
}
}
if (($affiliate_button=="")&&($admin_button=="")){
if ($product_price==0){
if ($recurring_flag==1){
$download="members";
$users="members";
$status="affiliate";
}
else{
$download="download";
$users="customers";
$status="affiliate";
}
$new_data=$status."&".$affiliate_username."&".$item_number."&".$payer_email."&".$check_email;
$encrypt=new cript();
$custom=$encrypt->criptData($new_data);
$message="
To access ".$product_name.", please enter your username and password in the form below and click \"Submit\". Existing ".$users." will be logged in and taken to the ".$download." area. New ".$users." will have an account created and then taken to the ".$download." area.";
$message.=customer_login_form($member_id,$username,$password,$name,$email,$verified,$site_address,$custom,$sponsor_message);
$paypal_button=$message;
$site_title=$site_name." :: ".$product_name;
$returncontent = preg_replace ("/\[\[(.*?)\]\]/e", "$$1", $product_description);
echo $returncontent;
exit;
}
else{
if ($recurring_flag==1){
$control_panel="Welcome";
$download="members";
$users="members";
$status="affiliate";
$message="
Welcome!
";
}
else{
$control_panel="Thank You";
$download="download";
$users="customers";
$status="affiliate";
$message=" Thank You!
";
}
$menus_off="Yes";
include ("members/include/header.php");
$new_data=$status."&".$affiliate_username."&".$item_number."&".$payer_email."&".$check_email;
$encrypt=new cript();
$custom=$encrypt->criptData($new_data); $message.=" To access ".$product_name.", please enter your username and password in the form below and click \"Submit\". Existing ".$users." will be logged in and taken to the ".$download." area. New ".$users." will have an account created and then taken to the ".$download." area.";
$message.=customer_login_form($member_id,$username,$password,$name,$email,$verified,$site_address,$custom,$sponsor_message);
$message.=" | ";
$site_title=$site_name." :: ".$control_panel;
$returncontent = preg_replace ("/\[\[(.*?)\]\]/e", "$$1", $message);
echo $returncontent;
include ("members/include/footer.php");
exit;
}
}
else{
if ($user_ordering==Yes){
$my_message.="Thank You!\n";
$my_message.="Very Important: You have made a payment, but you're still not done! You must continue your payments below. \n";
if ($admin_button!=""){
$my_message.=" If you've finished your payment(s) and you're still seeing this page it means we haven't received confirmation of your payment(s) from PayPal yet, so please wait a couple of minutes and refresh this page and it should let you in. \n";
}
if ($recurring_flag==1){
$my_message.="After completing your payments at PayPal you must click on \"Return To ".$item_name."\" to establish your account. ";
}
else{
$my_message.="After completing your payments at PayPal you must click on \"Return To ".$item_name."\" to download your product. ";
}
$my_message.=$sales_message;
}
else{
if (($admin_paypal==$affiliate_paypal)||($product_commission==100)||($affiliate_status==member)){
if ($recurring_flag==1){
$my_message.=" Instant Access Only \$".$product_price."\n";
$my_message.=$sales_message;
$my_message.="";
$my_message.="You will get instant access to ".$item_name." as soon as you finish payment.";
$my_message.="If you have questions or need help, please send an email.";
}
else{
$my_message.=" Instant Download Only \$".$product_price."\n";
$my_message.=$sales_message;
$my_message.="";
$my_message.="You will get instant access to download ".$item_name." as soon as you finish payment.";
$my_message.="If you have questions or need help, please send an email.";
}
}
else{
if ($recurring_flag==1){
$my_message.=" Instant Access Only \$".$product_price."\n";
$my_message.="Very Important: Our payment process is a 2 Payment process. \n";
$my_message.="After completing the first payment at PayPal you must click on \"Return To ".$item_name."\" and make the second payment. ";
$my_message.="After completing the second payment at PayPal you must click on \"Return To ".$item_name."\" to establish your account. ";
$my_message.=$sales_message;
//$my_message.=$admin_message;
$my_message.=" You will get instant access to ".$item_name." as soon as you finish both payments.";
$my_message.=" If you have questions or need help, please send an email.";
}
else{
$my_message.=" Instant Download Only \$".$product_price."\n";
$my_message.="Very Important: Our payment process is a 2 Payment process. \n";
$my_message.="After completing the first payment at PayPal you must click on \"Return To ".$item_name."\" and make the second payment. ";
$my_message.="After completing the second payment at PayPal you must click on \"Return To ".$item_name."\" to download your purchase. ";
$my_message.=$sales_message;
//$my_message.=$admin_message;
$my_message.=" You will get instant access to download ".$item_name." as soon as you finish both payments.";
$my_message.=" If you have questions or need help, please send an email.";
}
}
}
$paypal_button=$my_message;
$year=date('Y');
$copyright="
";
$copyright=$copyright."© ".$year." ".$site_name." - All Rights Reserved Worldwide";
$copyright=$copyright."
";
$style=get_style($dark_color,$light_color,$text_color,$link_color,$site_address);
if ($_SESSION['user_session']){
$top_menu="";
$side_menu="";
$top_menu_plain="";
$side_menu_plain="";
}
else{
$menus=get_menus($site_address,$affiliate_id,$affiliate_status);
$top_menu=$menus[0];
$side_menu=$menus[1];
$top_menu_plain=$menus[2];
$side_menu_plain=$menus[3];
}
$site_title=$product_name;
if ($user_ordering==Yes){
$payment_page="
[[item_name]]: Payment
[[style]]
[[item_name]]
[[paypal_button]]
|
|
";
$returncontent = preg_replace ("/\[\[(.*?)\]\]/e", "$$1", $payment_page);
}
else{
$returncontent = preg_replace ("/\[\[(.*?)\]\]/e", "$$1", $product_description);
}
echo $returncontent;
exit;
}
?>
|