| 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('mod_html_top.php');
if (isset($model_info->model_id) && isset($_POST['message']) && isset($_POST['subject'])) {
if (empty($_POST['message'])) {
$msg_system = "A message was not filled out.";
} else {
if (empty($_POST['subject'])) {
$msg_system = "A subject was not filled out.";
} else {
if (isset($member_id) && $member_id > 0) {
$subject = mysql_real_escape_string($_POST['subject']);
$message = mysql_real_escape_string($_POST['message']);
$timestamp = date('Y-m-d H:i:s');
mysql_query("INSERT INTO `cms_messages` (`to_id`, `from_id`, `subject`, `message`, `timestamp`) VALUES ('" . $model_info->model_id . "', '" . $member_id . "', '" . $subject . "', '" . $message . "', '" . $timestamp . "')") or die(mysql_error());
if (mysql_insert_id() > 0) {
$msg_system = "Thank you, your message has been sent.";
} else {
$msg_system = "There was an error saving your message.";
}
} else {
$msg_system = "You must be logged in to message.";
}
}
}
}
echo '<div style="text-align: left; margin-top: 20px; color: #333; background-color: #f2f2f2; border: 1px solid #d8d8d8; padding: 20px;">';
if (isset($msg_system)) {
echo '<div>' . $msg_system . '</div>';
}
if (isset($member_id) && $member_id > 0) {
?>
<div class="brown24px" style="margin-bottom: 20px;">Send <?php echo $model_info->name; ?> a message.</div>
<form action="" method="POST">
<div style="margin-bottom: 10px; font-size: 14px;">Subject</div>
<input type="text" name="subject" style="width: 100%; margin-bottom: 10px;">
<div style="margin-bottom: 10px; font-size: 14px;">Message</div>
<textarea name="message" style="width: 100%; height: 120px;"></textarea>
<input type="submit" value=" submit message " style="width: 170px; padding: 10px; background-color: #008cba; color: #fff; font-size: 16px; margin-top: 20px;">
</form>
<?php
} else {
echo '<a href="join.php">you must be registered to leave a message</a>';
}
echo '</div>';
include('mod_html_middle.php');
include('mod_html_bottom.php');