-
✘✘✘ WIBUHAX0R1337 ✘✘✘
-
✘
PATCH :
/
home
/
indianstaffing
/
www
/
Upload File:
files >> /home/indianstaffing/www/Submit_resources_visitors.php
<?php include 'admin/database/config.php'; $agree = $_POST['agree']; $resource_id = $_POST['resource_id']; $brief_report = $_POST['brief_report']; $name = $_POST['name']; $email = $_POST['email']; $company = $_POST['company']; $id = $_POST['agree_id']; $added_on = date('d-m-Y'); // $getdata = mysqli_query($con,"SELECT * FROM research_doc WHERE id=$resource_id"); // $research_report = mysqli_fetch_object($getdata); // print_r($added_on); if(isset($_POST['agree'])){ $sql = "INSERT INTO `resources_visitors`(agree, `resource_id`, `added_on`) VALUES (1,'$resource_id','$added_on')"; $query = mysqli_query($con,$sql); if($query){ $select = mysqli_query($con,"SELECT * FROM `resources_visitors` ORDER BY id DESC LIMIT 1"); $data = mysqli_fetch_array($select); echo $data['id']; }else{ echo "failed"; } }else if(isset($_POST['value'])){ $updatequery = mysqli_query($con,"UPDATE `resources_visitors` set `name`='$name', `email`='$email', `company`='$company' where id=$id"); if($updatequery){ $to = $email; $subject = "Report"; $message = " <html> <head> <title>HTML email</title> </head> <body> <p><b>Dear ".$name."</b></p> <p>Agree not to reproduce any part of the report without the written permission from Indian Staffing Federation. If any such action is found, I understand that I will be liable for legal action. In case I need to reproduce any graph/data/ findings or any part for reference I will seek written permission from ISF.</p> <a href='".$weburl."/isf-images/research(new)-img/".$brief_report."'>Click here to download the Report. </a> </body> </html> "; // Always set content-type when sending HTML email $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; // More headers $headers .= 'From: <suchita@indianstaffingfederation.org>' . "\r\n"; // $headers .= 'Cc: myboss@example.com' . "\r\n"; $mail = mail($to,$subject,$message,$headers); if($mail){ echo "success"; }else{ echo "failed to sent mail"; } }else{ echo "failed"; } }else{ $updatequery = mysqli_query($con,"UPDATE `resources_visitors` set `name`='$name', `email`='$email', `company`='$company' where id=$id"); if($updatequery){ echo "success"; }else{ echo "failed"; } } ?>
2022 - 2023 Copyright By Lutfifakee || Padang Blackhat ♥