| 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'])) {
$message = "Thank you for leaving a comment! It is pending approval.";
$comment_id = $_POST['comment_id'];
$comment = $_POST['comment'];
if ($comment == "") {
$message = "your comment is blank, if you would like to delete this comment <a href=\"mystuff_comments_delete.php?id=".$comment_id."\">click here</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("UPDATE cms_members_comments SET approved='1', comment='$comment' WHERE member_id = '".$member_id."' AND comment_id = '".$comment_id."'");
$subject = " ** VIPArea.COM COMMENT EDIT ** ";
$to = "VIParea.support@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');
?>
<img src="images/section_mystuff.jpg" width="360" height="54" /><br />
<?
include('mod_rcol_mystuff.php');
if (isset($message)) {
echo "<div class=\"contentname\" align=\"center\">".$message."</div>";
} else {
$get_comment = @mysql_query("SELECT comment FROM cms_members_comments WHERE member_id = '".$member_id."' AND comment_id = '".$id."'");
$comment = @mysql_result($get_comment, 0, 'comment');
$comment = str_replace("<br />", chr(10).chr(13), $comment);
if (@mysql_num_rows($get_comment) == 0) {
echo "<div class=\"contentname\" align=\"center\">You are not authorized to delete this message!</div>";
} else {
?>
<div align="center">
<span class="contentname">Edit your own comment!</span><br /><strong>400 character limit<br />if you edit your comment, it will need to be re-approved</strong>
<br />
<form method="post" action="mystuff_comments_edit.php">
<textarea name="comment" cols="70" rows="7" onkeyup="limit(this)"><?=stripslashes($comment)?></textarea>
<input type="hidden" name="comment_id" value="<?=$id?>" />
<br />
<input type="submit" value=" re-submit comment " name="post">
</form>
</div>
<?
}
}
include('mod_html_middle.php');
include('mod_rcol_vipdelight.php');
include('mod_rcol_coming.php');
include('mod_rcol_browse.php');
include('mod_rcol_vipnetwork.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_bottom.php');
?>