BLACKSITE
:
18.191.239.251
:
103.154.184.216 / www.astitvaad.com
:
Linux vps.readyhost.in 4.18.0-553.6.1.el8.x86_64 #1 SMP Thu May 30 04:13:58 UTC 2024 x86_64
:
/
home
/
astitvaad
/
public_html
/
ajax
/
Upload File:
files >> /home/astitvaad/public_html/ajax/career.php
<?php include_once('../connection.php'); define('SECRET_KEY',"6LdtM2AnAAAAAE-vLxmPBt65bnYuqYHzSOs5kue8"); $data = array(); extract($_POST); if (isset($_FILES['file'])) { $file=$_FILES['file']['name']; $target=""; $uptarget1=""; if ($file!="") { $tmp_name=$_FILES['upload_profile']['tmp_name']; $target="../images/career/".$_FILES['upload_profile']['name']; move_uploaded_file($tmp_name,$target); $target="../images/career/".$_FILES['upload_profile']['name']; $uptarget1="`file`='".$target."',"; } }else{ $uptarget1=""; } if (isset($_POST['g-recaptcha-response'])) { $secret = '6LdtM2AnAAAAAE-vLxmPBt65bnYuqYHzSOs5kue8'; require('../component/recaptcha/src/autoload.php'); $recaptcha = new \ReCaptcha\ReCaptcha(SECRET_KEY, new \ReCaptcha\RequestMethod\SocketPost()); $resp = $recaptcha->verify($_POST['g-recaptcha-response'], $_SERVER['REMOTE_ADDR']); //if (!$resp->isSuccess()) { if(empty($_POST['g-recaptcha-response'])){ $data['success']='Error'; }else{ $sql = "INSERT INTO `career`(`fname`,`phone`,`email`,`profile`,`msg`,`user_doc`) VALUES ('$fname','$phone','$email','$profile','$msg','$target')"; $res = mysqli_query($conn,$sql); if ($res) { $data['success']='ok'; } } } echo json_encode($data); ?>