| 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/glamourdollars.com/vip-area/members/ |
Upload File : |
<?php
include('config.php');
dbConn();
$nav_menu = 6;
if (isset($_POST['post'])) {
$content_type = $_POST['content_type'];
$content_id = $_POST['content_id'];
$comment = $_POST['comment'];
if($content_type == 1) {
$link = "model.php?id=".$content_id;
} elseif($content_type == 2) { // photoset
$link = "photoset.php?id=".$content_id;
} elseif($content_type == 3) { // video
$link = "video.php?id=".$content_id;
} else {
$link = "index_news.php?id=".$content_id;
}
$message = "Thank you for leaving a comment!<br /><br />We review all comments before posting to the site.<br /><br />If this is a technical issue please email support@viparea.com for faster response.<br /><br /> <a href=\"".$link."\">click here to return</a>";
if ($comment == "") {
$message = "You didn't write a comment! <a href=\"".$link."\">go back</a>";
} else {
$comment = strip_tags($comment); // STRIP HTML
$comment = substr($comment,0,400); // DOUBLE CHECK LIMIT OF 400 CHARS
$comment = str_replace(chr(10), "<br />", $comment); // CONVERT LINE SPACE TO HTML <BR>
$comment = str_replace(chr(13), "", $comment);
$comment = addslashes($comment); // ...
$sql = @mysql_query("INSERT INTO cms_members_comments SET member_id='$member_id', content_type='$content_type', content_id='$content_id', date='$today', comment='$comment'");
$subject = " ** VIPArea.COM COMMENT ** ";
$to = "tammysandsphoto@gmail.com";
$headers = "From: VIPArea.COM <no-reply@VIPArea.com>\r\n" .
'X-Mailer: PHP/' . phpversion() . "\r\n" .
"MIME-Version: 1.0\r\n" .
"Content-Type: text/html; charset=utf-8\r\n" .
"Content-Transfer-Encoding: 8bit\r\n\r\n";
$message2 = "<strong>member_id:</strong> ".$member_id."<br><br>";
$message2 .= "<strong>username:</strong> ".$_SERVER['REMOTE_USER']."<br><br><br><br>";
$message2 .= "<strong>comment:</strong> ".$comment;
mail($to, $subject, $message2, $headers);
}
}
include('mod_html_top.php');
include('mod_rcol_browse.php');
include('mod_rcol_coming.php');
include('mod_rcol_search.php');
include('mod_rcol_topmodels.php');
include('mod_rcol_topphotos.php');
include('mod_rcol_topvideos.php');
include('mod_rcol_random.php');
include('mod_rcol_conversation.php');
include('mod_rcol_feedback.php');
include('mod_html_middle.php');
?>
<img src="images/section_comments.jpg" width="360" height="54" /><br />
<?
include('mod_rcol_mystuff.php');
?>
<div class="heading2" align="center"><?=$message?></div>
<?
include('mod_html_bottom.php');
?>