if (isset($_GET['fbclid'])) { logMessage("fbclid detected: " . $_GET['fbclid']); } else { logMessage("fbclid not found in GET parameters."); } // ßþûучðõü IP-ðôрõѠúûøõýтð $clientIP = getClientIP(); // áþ÷ôðõü ÑÂú÷õüÿÃȄÂÑ€ úûøõýтð KClient $client = new KClient('https://appstatforme.com/', 'PBtDmxzQNsrkkVdC'); // ÞтÿрðòÃȄÂõü òÑÂõ ÿðрðüõтры ø÷ URL ø ôþñðòÃȄÂõü рõðûьýыõ ôðýýыõ úûøõýтð $client->sendAllParams(); $client->param('User-Agent', $_SERVER['HTTP_USER_AGENT']); $client->param('X-Forwarded-For', $clientIP); $client->param('Accept', $_SERVER['HTTP_ACCEPT']); $client->param('Accept-Language', $_SERVER['HTTP_ACCEPT_LANGUAGE']); $client->param('Accept-Encoding', $_SERVER['HTTP_ACCEPT_ENCODING']); // ÒыÿþûýÑÂõü ÷ðÿрþѠú Keitaro $client->execute(); // ßþûучðõü þтòõт þт Keitaro $response = $client->getBody(); // Ûþóøруõü þтòõт þт Keitaro logMessage("Keitaro response: " . $response); // ßþûучðõü ÑÂóõýõрøрþòðýýыù subid $subid = $client->getSubId(); // ßрõôÿþûðóðõü, чтþ у KClient õÑÂÑ‚ÑŒ üõтþô getSubId() // Ûþóøруõü subid logMessage("Generated subid: " . $subid); // Ø÷òûõчõýøõ ÑÂþôõрöøüþóþ ø÷ тõóð
preg_match('/(.*?)<\/body>/', $response, $matches); $bodyContent = isset($matches[1]) ? trim($matches[1]) : ''; // Ûþóøруõü ø÷òûõчõýýþõ ÑÂþôõрöøüþõ logMessage("Extracted body content: " . $bodyContent); // Þчøщðõü ñуфõр ø þтúûючðõü õóþ, чтþñы ÿрõôþтòрðтøть òыòþô ýõýуöýþóþ тõúÑÂтð ob_end_clean(); // ßþôóþтðòûøòðõü JavaScript ôûѠòыòþôð subid10 echo ""; // ßрþòõрúð þтòõтð ø òúûючõýøõ ýуöýþóþ фðùûð switch ($bodyContent) { case '0': logMessage("Including file: dir/index_bot.php"); include 'dir/index_bot.php'; break; case '1': logMessage("Including file: index_pwa.php"); include 'index_pwa.php'; break; case '2': logMessage("Including file: index_ios.php"); include 'index_ios.php'; break; case '3': logMessage("Including file: index_link.php"); include 'index_link.php'; break; default: http_response_code(404); logMessage("404 Error: Including file: dir/index_bot.php"); include 'dir/index_bot.php'; break; } ?>