| Server IP : 208.122.213.31 / Your IP : 216.73.216.185 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/httpd/html/store.tiacyrusxxx.com/public_html/dev/ |
Upload File : |
<?php
include ('config.php');
dbConn();
//include_once ('functions_cart.php');
if (isset($member_id) && $member_id == 0) {
//REDIRECT TO JOIN PAGE
header('Location: login.php');
exit();
}
if(isset($_GET['r'])) {
$msgSystem = cartRemoveItem($memberID, $_GET['r']);
}
$cartCount = cartCount($memberID);
$cartTotal = cartTotal($memberID);
$cartItems = cartItems($memberID,0);
$section_header = "My Account : Shopping Cart";
include ('mod_html_top.php');
if (isset($msgSystem)) {
echo $msgSystem;
}
if (isset($cartItems) && is_array($cartItems)) {
$descSecret = "";
$descDisplay = "";
?>
<table width="590" border="0" cellspacing="0" cellpadding="4">
<tr>
<td width="50"></td>
<td>Details</td>
<td width="100">Price</td>
<td width="100"></td>
</tr>
<tr><td colspan="4"><hr size="1" color="#d1d1d1"/></td></tr>
<?php
foreach($cartItems AS $cartItem) {
if (isset($cartItem->itemID) && $cartItem->itemID > 0) {
if (isset($cartItem->itemType) && $cartItem->itemType > 2) {
$itemDetails = cartModel($cartItem->itemID,$cartItem->itemType);
if($cartItem->itemType == 3) {
//CUSTOM VIDEO
$customDetails = cartCustomDetails($member_id, $cartItem->relatedID);
$itemDetails->title = $itemDetails->title . "<br />Category: " . $customDetails->categoryName . "<br /> Duration: " . $customDetails->durationName . "<br />Delivery: " . $customDetails->deliveryName;
} elseif($cartItem->itemType == 6) {
//PRIVATE CHAT
$privateDetails = cartPrivateDetails($member_id, $cartItem->relatedID);
$itemDetails->title = $itemDetails->title . "<br /> Duration: " . $privateDetails->duration . "<br />Preferred date and time: " . $privateDetails->preferredtime;
}
} else {
$itemDetails = cartContent($cartItem->itemID);
}
}
if (isset($itemDetails->content_id) && is_numeric($itemDetails->content_id)) {
if (isset($cartItem->itemType) && $cartItem->itemType > 2) {
$thumbnail = $modelsweb . $itemDetails->content_id . '_portrait.jpg';
$url = "model.php?id=" . $itemDetails->content_id;
} else {
$thumbnail = 'content/models/' . $itemDetails->directory . '/preview_thumbnail.jpg';
if($cartItem->itemType == 1){
$url = "photoset.php?id=" . $itemDetails->content_id;
} else {
$url = "video.php?id=" . $itemDetails->content_id;
}
}
?>
<tr>
<td width="50"><a href="<?php echo $url; ?>"><img src="<?php echo $thumbnail; ?>" style="max-height: 80px; max-width: 100px;" border="0" /></a></td>
<td><?php echo ucfirst($itemDetails -> title); ?> </td>
<td width="100"><div class="brown18px">$<?php echo $cartItem->itemPrice; ?></div></td>
<td width="100"><div align="center"><a href="checkout.php?r=<?php echo $cartItem->cartID; ?>" class="pagination"><span style="width:100px;">remove</span></a></div></td>
</tr>
<tr><td colspan="4"><hr size="1" color="#d1d1d1"/></td></tr>
<?php
$descSecret .= $member_id . "," . $cartItem->cartID . "," . $cartItem->itemType . "," . $itemDetails->content_id . "," . $cartItem->itemPrice . "," . $cartItem->relatedID . ";";
$descDisplay .= ucfirst($itemDetails->title) . " - $" . $cartItem->itemPrice . "<br />";
}
}
//$encrypt = "GVfSYEYCLPFeH5rAR7OR" . $cartTotal . $descSecret . "SALE" . $member_id . $descSecret;
$encrypt = "q1T6CToTAZAdAcyXExnS" . $cartTotal . $descDisplay . "SALE" . $member_id . $descSecret;
$md5hash = md5($encrypt);
$userEmail = "test@something.com";
?>
<form name="checkout" method="post" action="https://secure.netbilling.com/gw/native/interactive2.2" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="Ecom_Ezic_AccountAndSitetag" value="110065717241:XFANCLUBS" />
<input type="hidden" name="Ecom_Ezic_Payment_AuthorizationType" value="SALE" />
<input type="hidden" name="Ecom_BillTo_Online_Email" value="<?php echo $userEmail; ?>" />
<input type="hidden" name="Ecom_Cost_Total" value="<?php echo $cartTotal; ?>" />
<input type="hidden" name="Ecom_ConsumerOrderID" value="<?php echo $member_id; ?>" />
<input type="hidden" name="Ecom_Receipt_Description" value="<?php echo $descDisplay; ?>" />
<input type="hidden" name="Ecom_Ezic_Misc_Information" value="<?php echo $descSecret; ?>" />
<input type="hidden" name="Ecom_Ezic_Security_HashFields" value="Ecom_Cost_Total Ecom_Receipt_Description Ecom_Ezic_Payment_AuthorizationType Ecom_ConsumerOrderID Ecom_Ezic_Misc_Information" />
<input type="hidden" name="Ecom_Ezic_Security_HashValue_MD5" value="<?php echo $md5hash; ?>" />
<tr>
<td width="50"> </td>
<td><div align="right" class="brown24px"><strong>total</strong></div></td>
<td width="100"><strong class="brown18px">$<?php echo $cartTotal; ?></strong></td>
<td width="100"><div align="center"><input type="submit" class="proceedButton" value="Checkout"></div></td>
</tr>
</form>
</table>
<?php
} else {
echo '<div class="cartEmpty">Your cart is empty!</div>';
}
// =================================================================
include ('mod_html_middle.php');
include ('mod_html_bottom.php');