|
Server : LiteSpeed System : Linux terra.hostitbro.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64 User : outerorb ( 1091) PHP Version : 8.1.34 Disable Function : mail Directory : /home2/outerorb/zapnix.co/ | |
|
Path: /home2/outerorb/zapnix.co/getCatData.php
Size: 1.82 KB
Permissions: 0644
<?php
include_once("include/main.inc.php");
$admin_res = getAdminDetails();
date_default_timezone_set('Asia/Kolkata');
$enq_date = date('Y-m-d H:i:s');
$referer = $_SERVER['HTTP_REFERER'];
$ip=$_SERVER['REMOTE_ADDR'];
print_r($_POST);
exit;
$name = !empty($_POST['name'])?$_POST['name']:'';
// $sql_ens="insert into tbl_enquiry set en_name='$name', en_email='$email', en_mobile='$mobile', en_address='$location', en_comment='$message', en_url='$referer', en_date='$enq_date', en_ip='$ip'";
// $qry=mysqli_query($GLOBALS['dbconn'],
// $sql_ens);
$htmlContent = '<table border="0" width="100%">
<tbody>
<tr>
<td colspan="2">
<strong>Dear Admin</strong></td>
</tr>
<tr>
<td colspan="2">
Enquiry Received with following info :</td>
</tr>
<tr>
<td colspan="2">
</td>
</tr>
<tr>
<td width="26%">
<strong>Post URL : </strong></td>
<td>
<span style="margin-top: 15px;">' . $referer . '</span></td>
</tr>
<tr>
<td width="26%">
<strong>Name : </strong></td>
<td>
<span style="margin-top: 15px;">' . $name . '</span></td>
</tr>
<tr>
<td width="26%">
<strong>Email Id : </strong></td>
<td>
<span style="margin-top: 15px;">' . $email . '</span></td>
</tr>
<tr>
<td width="26%">
<strong>Contact No : </strong></td>
<td>
<span style="margin-top: 15px;">' . $mobile . '</span></td>
</tr>
<tr>
<td>
<strong>Location : </strong></td>
<td>
<span style="margin-top: 15px;">' . $location . '</span></td>
</tr>
<tr>
<td>
<strong>Message : </strong></td>
<td>
<span style="margin-top: 15px;">' . $message . '</span></td>
</tr>
</tbody>
</table>';
$resp = [
'message_response' => 'All the fields are Mandatory!',
'status' => false
];
echo json_encode($resp);
exit;
?>