OverLord Shell
<?php error_reporting(0);
session_start();
if($_SERVER['REQUEST_METHOD']!='POST' || empty($_POST)){echo "404.php";exit;}
require_once("db/conn.php");
$email=$_POST['email'];
$feedback=htmlentities(trim($_POST['message']),ENT_QUOTES);
$patterns = array();
$patterns[0] = '/([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)/';
$patterns[1] = '/([0-9]+[\- ]?[0-9]{9}+)/';
$patterns[2] = '/([0-9]{2,}-[0-9]{0,}-[0-9]{0,})/';
$patterns[3] = "/(http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/";
$replacements = array();
$replacements[0] = '';
$replacements[1] = '';
$replacements[2] = '';
$replacements[3] = '';
//should use just one call of preg_replace for perfomance issues
$string = preg_replace($patterns, $replacements, $feedback);
$data = array(
'Type'=>'m',
'name' => $_POST['name'],
'feedback' => $string,
'email' =>$_POST['email'],
'feedback_date' => date('Y-m-d H:i:s'),
'createdon' => date('Y-m-d H:i:s')
);
$insertresult = dbRowInsert('busdir_mst_jbn_fback', $data);
$insertresultarr = explode("-",$insertresult);
if(trim($insertresultarr[0])=='success'){
$to = "support@ultraliant.com";
$subject="MACCIA Business Network Enquiry";
$headers = 'From: business.maccia.org.in' . "\r\n" .
'Reply-To:'.$email . "\r\n" .
'MIME-Version: 1.0' . "\r\n" .
'Content-type: text/html; charset=iso-8859-1' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
/*$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";*/
$body = '<html><body>';
$body .= '<img src="http://macciabusiness.ultraliant.com/img/logo.jpg" alt="Hotel" width="200px" height="auto"></img><br/>';
$body .= '<table rules="all" style="border-color: #666;" cellpadding="10">';
$body .= '<p style="color:#3366FF;font-size:14px;">Hello'.' '.$_POST['name'].',</p>';
$body .= "</table>";
$body .= "</body></html>";
/* $message="To Admin"."<br>"."Subject: New Enquiry, ";
$message.= "<html><head>Subject: New Enquiry</head><body>";
$message.= "<img src='http://macciabusiness.ultraliant.com/img/logo.jpg' alt='' /></body></html>";
$message.="<br><br>".$string."<br><br>"."Thank You"."<br>".$_POST['name']."<br>(" .$email.")";*/
$mresponse = mail($to,$subject,$body,$headers);
}
echo $insertresultarr[0];
?>
xRyukZ - Copyright 2k19