if($_GET['action'] == ''){?>

} ?>
if($_GET['action'] == 'acctype'){?>
}
else if($_GET['action'] == 'final'){
$paymentoption = $_REQUEST['payment_type'];
$upgradeoption = $_REQUEST['upgrade_term'];
$sql_qry = "SELECT at_id,at_name,at_amount,at_months FROM account_types WHERE at_status=1 and at_id='".$upgradeoption."'";
$sql_res = $db->query($sql_qry);
$acc_types = $db->fetch_array($sql_res);
$aid = $acc_types['at_id'];
$period = $acc_types['at_months'];
$price = $acc_types['at_amount'];
$aname = $acc_types['at_name'];
$nextupgrade = date('M d, Y',mktime(0, 0, 0, date("m")+$period, date("d"), date("Y")));
if($paymentoption == 'Paypal'){
$_SESSION[upgrade_type] = $aid;
?>
// $return_url = $siteurl."/album/u".$frm_user."/$username/";
$cancel_url = $siteurl."/upgrade";
$return_url = $siteurl."/svc/paypal.php";
unset($_SESSION[payment_id]);
if (isset($_SESSION['shopper'])) {
$db->query("UPDATE clickthroughs SET ordered = 'yes',validpayclick='yes',affiliate_id='$affiliate_id' WHERE clickthrough_id = '".$_SESSION['shopper']."' LIMIT 1 ");
$db->query("update user set upgrade_clickthrough_id = '".$_SESSION['shopper']."' where user_id = $frm_user");
}
?>
}
if($paymentoption == 'Check'){
$sql_payment_insert = "insert into payment(user_id,upgrade_acc_type,request_date) values('".$_SESSION['sess_user_id']."','$upgradeoption',CURDATE())";
$db->query($sql_payment_insert);
?>
Thank You for upgrading.
| Uploadkey account: |
=$username?>
|
| Billing term: |
=$period?>
months
|
| Payment method: |
Check or Money Order |
| Amount due: |
=$price?>
|
| Good through: |
=$nextupgrade?>
|
U.S. certified funds required. Please print this page, and mail it along with your funds to:
Uploadkey.com
PO Box
*Important: The changes to your account will occur when the funds are received
}
}
?>