Home
Server Info
Spawn Toolkit
Naxtarrr
Path:
~
/
home
/
u415470203
/
domains
/
orioncorporate.com
/
public_html
/
Filename: download_brochure.php
<?php session_start(); include('connection/config.php'); $name = $_POST['name']; $email = $_POST['email']; $contact = $_POST['contact']; // $captcha_text = $_POST['captcha_text']; // $captcha_code = $_SESSION['CODE']; $ip=@$_SERVER['REMOTE_ADDR']; $date=date('Y-m-d'); $response_key = $_POST['g-recaptcha-response']; $secret_key = "6LfK_jQiAAAAALeB6mO7i82wCdILDaH1j67d5f7U"; $url = "https://www.google.com/recaptcha/api/siteverify?secret=$secret_key&response=$response_key&remoteip=$ip"; $response = file_get_contents($url); $response1 = json_decode($response); if($response1->success){ // if($captcha_text==$captcha_code){ $sql="INSERT INTO `brochure` (`name`, `email`, `contact`, `ip`, `date1`) VALUES ('$name', '$email', '$contact', '$ip', '$date')"; // echo $sql; $res=GetResultSet($sql); if($res){ // $to="info@orioncorporate.com"; $to = "info@orioncorporate.com"; $subject="Download brochure"; $msg.="Name :".$name."\r\n"; $msg.="E-mail :".$email."\r\n"; $msg.="Contact :".$contact."\r\n"; $header="From: $email\r\n". 'Reply-To: '.$to."\r\n". 'X-Mailer: PHP/'.phpversion(); @mail($to,$subject,$msg,$header); echo "brochure.pdf"; } }else{ echo "FAILED"; } ?>
Submit
Create File
Create Folder
Upload File