| 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/store.tiacyrusxxx.com/public_html/dev/TSCP2/ |
Upload File : |
<?
include 'config.php';
if (isset($_POST['post'])) {
$name = $_POST['name'];
$email = $_POST['email'];
$caption = $_POST['caption'];
$capid = $_POST['capid'];
$date = date("Y-m-d");
dbConn();
$sql = "INSERT INTO cms_blogcomments
SET capid='$capid',
name='$name',
caption='$caption',
date='$date',
email='$email'";
if (@mysql_query($sql)) {
printf("<meta http-equiv=\"Refresh\" content=\"0;url=./comm_entry.php?capid=$capid\">");
} else {
echo 'Error:' . mysql_error();
}
} else {
?>
<br><br>
<table width="800" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td bgcolor="#CCCCCC"><span class="fourbold">ADD COMMENT</span>
</td>
</tr>
<tr>
<td>
<form method="post" action="<?=$_SERVER['PHP_SELF']?>" enctype='multipart/form-data'>
<table width="600" border="0" align="center" cellpadding="3" cellspacing="3">
<tr>
<td width="50%" align="right">name:</td>
<td width="50%"><input name="name" value="" type=text maxlength=255 size="40" class="grey"></td>
</tr>
<tr>
<td width="50%" align="right">email address:</td>
<td width="50%"><input name="email" value="" type=text maxlength=255 size="40" class="grey"></td>
</tr>
<tr>
<td width="50%" align="right">Caption:</td>
<td width="50%"><input name="caption" value="" type=text maxlength=255 size="40" class="grey"></td>
</tr>
<tr>
<td colspan="2" align="right"><div align="center">
<input type="hidden" name="capid" value="<?=$_GET['capid']?>">
<input type=submit name="post" value="Add" class="grey">
</div></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<?
}
?>