$captchasecretkey, 'response' => $response , 'remoteip' => $_SERVER['REMOTE_ADDR'] ); $url = "https://www.google.com/recaptcha/api/siteverify"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $resp=curl_exec($ch); return $resp; } $getCms=$db->singlerec("select * from cms where id='1'"); $cphone = stripslashes($getCms['c_phone']); $cemail = stripslashes($getCms['c_email']); $cskype = stripslashes($getCms['c_skype']); $caddress = strip_tags($getCms['c_address']); $c_text1 = strip_tags($getCms['c_text1']); $getGeneral=$db->singlerec("select * from general_setting where id='1'"); $facebook = stripslashes($getGeneral['facebook']); $twitter = stripslashes($getGeneral['twitter']); $google_plus = strip_tags($getGeneral['google_plus']); $instaurl = strip_tags($getGeneral['instaurl']); $linkedinurl = strip_tags($getGeneral['linkedinurl']); /* $usernameErr = $emailErr = $subjectErr = $messageErr = ""; */ if(isset($cont_submit)) { if(!empty($username) && !empty($email) && !empty($subject) && !empty($message)) { $username=$db->escapstr($username); $email=$db->escapstr($email); $message = $db->escapstr($message); $subject=$db->escapstr($subject); $date=date("Y-m-d h:m:s"); $ip=$_SERVER['REMOTE_ADDR']; $response= $_POST['g-recaptcha-response']; if(!$response){ echo ""; header("location:contact-us.php?act=captchaempty"); exit; } $data=reCaptcha($response); if($data['success']!=true){ //echo""; echo ""; header("location:contact-us.php?act=error"); exit; } else{ $set="name='$username'"; $set .= ",subject='$subject'"; $set .= ",email='$email'"; $set .= ",comment='$message'"; $set .= ",crcdt='$date'"; $set .= ",ip_addr='$ip'"; $db->insertrec("insert into contact set $set"); $GetContact = $db->singlerec("select c_phone from cms where id='1'"); $contact_num = $GetContact['c_phone']; $to_email = $email; $fromemail = $from_email; $subject2 = "Your Feedback about $sitetitle"; $title="Thank you for getting in touch with us!"; $text = "Your valuable Query / Feedback has been considered for review and it is being processed. We shall get back to you shortly."; $text = $text."We will contact you shortly via Email"; $url = "$siteurl"; $message2 = $email_temp->notice_mail($GetSite,$contact_num,$title,$text,$username); $com_obj->email($fromemail,$to_email,$subject2,$message2); $subject1 = "User Feedback about $sitetitle"; $title1="User Feedback details"; $text1 = "
."; $text1=$text1."
Your Username. : ". $username ."
Your Message :
". $message2 ."
."; $message1 = $email_temp->notice_mail($GetSite,'',$title1,$text1,$username); $com_obj->email($to_email,$fromemail,$subject1,$message1); echo ""; header("location:$siteurl/contact-us.php?act=suc"); } }else { header("location:$siteurl/contact-us.php?act=miss"); echo ""; } } if($act == "captchaempty"){ $Message="
Kindly Check the Captcha
"; } else if($act == "miss"){ $Message="
Please Fill All Details
"; } else if($act == "error"){ $Message="
Wrong Captcha!
"; } else if($act == "suc"){ $Message="
Enquiry Sent Successfully..!, Admin Contact you as soon as possible.
"; //echo ""; } ?>

Contact With Us

  • Address

  • Phone

  • Email-id

  • Skype-id

Follow Us

Leave a Message