| Server IP : 208.122.213.31 / Your IP : 216.73.216.45 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/www.superporner.com/porn/admin/modules/user_profile_comments/ |
Upload File : |
<? require "../../header.php";
if(!is_numeric($_REQUEST['id'])) {
exit();
}
if($_POST) {
$_POST = mysql_real_escape_array($_POST);
mysql_query("UPDATE comments SET comment = '$_POST[comment]' WHERE record_num = '$_POST[id]'") or die(mysql_error());
$insertid = $_POST[id];
$success = true;
}
$result = mysql_query("SELECT * FROM comments WHERE record_num = '$_GET[id]'");
$row = mysql_fetch_array($result);
?>
<div id="right_column">
<div id="right_top">
<div id="right_home"></div>
<div id="right_right">
<a href="index.php">Admin Home</a>
<span><a href="comments_all.php">Edit Comments</a></span>
</div>
</div>
<div id="right_bg">
<h2>Edit<strong>Comment</strong></h2>
<div id="index_left" style='width: 100%;'>
<form method='post' action='' enctype='multipart/form-data'>
<input type='hidden' name='id' value='<? echo $_GET[id]; ?>' />
<? if($success) { ?><p align='center'>Save Successful. <a href='comments.php'>Click here to go back</a>.</p>
<? } ?>
<table width="750" border="0" align="center" cellpadding="3" cellspacing="0" class='pagetable' >
<thead>
<tr class='menutop'>
<th align='left'>Comment Details</th>
</tr>
</thead>
<tr>
<td height="25" class="style4"><textarea name="comment" style='width: 98%;' rows="5"><? echo $row[comment]; ?></textarea></td>
</tr>
<tr>
<td height="25" align="center" class="style4"><input type="submit" name="Submit" value="Save" /></td>
</tr>
</table>
</form>
</div>
</div>
<div id="right_bottom"></div>
</div>
</div>
</div>
<? require "../../footer.php"; ?>