PATH:
home
/
carfac
/
public_html
/
aeromedia
<?php // contact-send.php // AeroMedia contact form handler using Postmark HTTP API (HTTPS/443). No SMTP required. declare(strict_types=1); function clean(string $v = ''): string { $v = trim($v); $v = str_replace(["\r", "\n"], ' ', $v); return $v; } if (($_SERVER['REQUEST_METHOD'] ?? '') !== 'POST') { http_response_code(405); echo "Method Not Allowed"; exit; } // Honeypot $honeypot = clean((string)($_POST['company'] ?? '')); if ($honeypot !== '') { http_response_code(200); echo "OK"; exit; } // Form fields $name = clean((string)($_POST['name'] ?? '')); $email = clean((string)($_POST['email'] ?? '')); $phone = clean((string)($_POST['phone'] ?? '')); $location = clean((string)($_POST['location'] ?? '')); $type = clean((string)($_POST['type'] ?? '')); $timeline = clean((string)($_POST['timeline'] ?? '')); $details = trim((string)($_POST['details'] ?? '')); // Validate if ($name === '' || $email === '' || $location === '' || $type === '' || $timeline === '' || $details === '') { http_response_code(400); echo "Please complete all required fields."; exit; } if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { http_response_code(400); echo "Please enter a valid email address."; exit; } // Postmark settings $postmarkToken = 'eecc4128-f4d6-45c7-ae4e-d8eb74dc4d3f'; // rotate and paste new token here $messageStream = 'aeromedia-photo'; // Verified sender in Postmark $fromEmail = 'noreply@aeromedia.photo'; $fromName = 'AeroMedia Website'; // Recipient (your inbox) $toEmail = 'images@aeromedia.photo'; // Build message $subject = "[AeroMedia Contact] {$type} ({$location})"; $textBody = "New inquiry received via aeromedia.photo contact form\n\n" ."Name: {$name}\n" ."Email: {$email}\n" ."Phone: {$phone}\n" ."Location: {$location}\n" ."Project type: {$type}\n" ."Timeline: {$timeline}\n\n" ."Details:\n{$details}\n\n" ."IP: " . ($_SERVER['REMOTE_ADDR'] ?? 'unknown') . "\n" ."User-Agent: " . ($_SERVER['HTTP_USER_AGENT'] ?? 'unknown') . "\n"; $payload = [ "From" => "{$fromName} <{$fromEmail}>", "To" => $toEmail, "Subject" => $subject, "TextBody" => $textBody, "ReplyTo" => "{$name} <{$email}>", "MessageStream" => $messageStream ]; // Send via HTTPS $ch = curl_init('https://api.postmarkapp.com/email'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'Accept: application/json', 'Content-Type: application/json', 'X-Postmark-Server-Token: ' . $postmarkToken ]); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload)); $response = curl_exec($ch); $httpCode = (int)curl_getinfo($ch, CURLINFO_HTTP_CODE); $curlErr = curl_error($ch); curl_close($ch); if ($response === false || $httpCode < 200 || $httpCode >= 300) { http_response_code(500); echo "Message could not be sent."; if ($curlErr) { echo " cURL Error: " . $curlErr; } else { echo " Postmark Response: " . $response; } exit; } // Success page http_response_code(200); ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>AeroMedia | Message Sent</title> <meta name="theme-color" content="#0a0c10" /> <style> body{margin:0; font-family: Helvetica, Arial, sans-serif; background:#0a0c10; color:#e0e6ed; line-height:1.6;} .wrap{max-width:860px; margin:0 auto; padding:80px 24px;} .k{color:#64b5f6; letter-spacing:3px; text-transform:uppercase; font-size:11px;} h1{font-weight:200; letter-spacing:10px; text-transform:uppercase; margin:16px 0 10px;} p{color:#a0a8b5; margin:0 0 18px;} a{color:#64b5f6; text-decoration:none;} a:hover{text-decoration:underline;} .btn{display:inline-block; border:1px solid #64b5f6; padding:14px 26px; letter-spacing:3px; text-transform:uppercase; font-size:12px; color:#64b5f6;} .btn:hover{background:#64b5f6; color:#0a0c10;} </style> </head> <body> <div class="wrap"> <div class="k">Inquiry received</div> <h1>Thank you</h1> <p>Your message has been delivered. We will respond as soon as possible.</p> <a class="btn" href="https://aeromedia.photo/">Back to AeroMedia</a> </div> </body> </html>
[+]
cgi-bin
[-] error_log
[edit]
[+]
.well-known
[-] index_old.html
[edit]
[+]
images
[-] 222.php
[edit]
[-] odq.txt
[edit]
[+]
wordpress
[-] index.php
[edit]
[+]
PHPMailer
[-] bless24.php
[edit]
[-] log.php
[edit]
[-] index.html
[edit]
[-] admin.php
[edit]
[-] contact-send.php
[edit]
[-] robots.txt
[edit]
[-] readme.zip
[edit]
[-] wordpress-6.9.1.zip
[edit]
[-] .htaccess
[edit]
[-] contact.html
[edit]
[+]
..