| 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
if ($model_info->specialStatus == 0) {
echo "this model does not allow special requests!";
} else {
$price = "";
$request = "";
if (isset($model_info->model_id) && isset($_POST['request']) && isset($_POST['price'])) {
$price = $_POST['price'];
$request = $_POST['request'];
if (empty($_POST['request'])) {
$msgSystem = msgSystem("A Request was not filled out.", "error");
} elseif (!is_numeric($_POST['price'])) {
$msgSystem = msgSystem("Price must be a number.", "error");
$price = "";
} else {
if (isset($member_id) && $member_id > 0) {
$request = mysql_real_escape_string($_POST['request']);
$price = mysql_real_escape_string($_POST['price']);
$timestamp = date('Y-m-d H:i:s');
mysql_query("INSERT INTO `cms_model_requests` (`to_id`, `from_id`, `request`, `price`, `timestamp`) VALUES ('" . $model_info->model_id . "', '" . $member_id . "', '" . $request . "', '" . $price . "', '" . $timestamp . "')") or die(mysql_error());
$request_id = mysql_insert_id();
// INSERT INTO SHOPPING CART
//function cartAdd($cartID, $cartType, $itemID, $itemType, $itemName, $itemPrice)
//$msgSystem = cartAdd($member_id, 1, $model_info->model_id, 4, $request_id, $price);
if (mysql_insert_id() > 0) {
//$msgSystem = msgSystem("Thank you, your request has been submitted.", "success");
} else {
//$msgSystem = msgSystem("There was an error submitting your request.", "error");
}
} else {
$msgSystem = msgSystem("You must be logged in to submit a request.", "error");
}
}
}
?>
<div style="font-size: 20px; font-weight: bold;">SPECIAL REQUEST</div>
<div style="color: grey;">Do you have something special in mind?</div>
<div style="font-size: 20px; font-weight: bold; color: red;">STEPS TO MAKE AN OFFER</div>
<ul style="color: grey; list-style-type: decimal;">
<li>Request anything you want and name your price.</li>
<li>If I ACCEPT your offer you will receive a payment link via email.</li>
<li>Once I receive payment you will receive your request.</li>
</ul>
<?php
if (isset($msgSystem)) {
echo $msgSystem;
}
echo '<div style="text-align: left; margin-top: 20px; color: #333; background-color: #f2f2f2; border: 1px solid #d8d8d8; padding: 20px;">';
if (isset($member_id) && $member_id > 0) {
?>
<div class="brown24px" style="margin-bottom: 20px;">Send <?php echo $model_info->name; ?> a special request.</div>
<form action="" method="POST">
<div style="margin-bottom: 10px; font-size: 14px;">Request</div>
<textarea name="request" style="width: 100%; height: 150px;"><?php echo $request; ?></textarea>
<div style="margin-top: 10px; margin-bottom: 10px; font-size: 14px;">Price</div>
<input type="number" name="price" style="width: 60px; padding: 12px; margin-bottom: 20px;" value="<?php echo $price; ?>">
<input type="submit" value=" submit request " style="float: right; width: 170px; padding: 10px; background-color: #008cba; color: #fff; font-size: 16px;">
</form>
<?php
} else {
echo '<a href="join.php">you must be registered to submit a request</a>';
}
echo '</div>';
}
?>