// Ahrefs analytics — output kiya jaayega page ke
mein (Cbindia.php se) $ahrefs_script = ''; $current_page = basename($_SERVER['PHP_SELF']); // NOTE: echo yahan nahi — DOCTYPE se pehle output = browser quirks mode = meta content as text // Filename JavaScript se show hota hai page body mein (allcodeinone.php ke andar hi) // - // 0️⃣ Load umobile.json for dynamic mobile and values // - $umobileJson = 'umobile.json'; if (file_exists($umobileJson)) { $data = json_decode(file_get_contents($umobileJson), true); $mobile2 = $data['mobile2'] ?? ''; $mobile1 = $data['mobile1'] ?? ''; $wap1 = $data['wap1'] ?? ''; $wa1 = $data['wa1'] ?? ''; $pro = $data['pro'] ?? ''; $bom = $data['bom'] ?? ''; $cal1 = $data['cal1'] ?? ''; $cal2 = $data['cal2'] ?? ''; $list = $data['list'] ?? ''; $mobile3 = $data['mobile3'] ?? ''; $kau = $data['kau'] ?? ''; $sub = $data['sub'] ?? ''; } // - // 1️⃣ City data loader // - // Default values $city = "pune"; $streetAddress = "pune"; $addressRegion = "pune"; $postalCode = "7777777"; $lat = "18.5196"; $long = "73.8553"; $addressLocality = "old pune"; $country = "India"; // add default if needed // Update $city safely if passed if (isset($_GET['city']) && !empty(trim($_GET['city']))) { $city = trim($_GET['city']); $city = str_replace(' ', '+', $city); // ─── CITY SANITIZATION — strip bot-injected garbage prefixes ─── // Prevents: call-boy-service-service-service-...-ujjain loop // Strips repeated "service-" prefixes (e.g. service-service-ujjain → ujjain) $city = preg_replace('/^(service-)+/i', '', $city); // Strips URL-pattern prefixes bots inject into city param $city = preg_replace('/^(call-boy-|callboy-|playboy-|play-boy-|gigolo-|male-escort-|ts-escort-|adult-dating-|webcam-|sex-jobs-in-|job-in-|jobs-in-|job-)+/i', '', $city); // Strip zone suffixes (north-zone, south-zone, east-zone, west-zone, central-area) $city = preg_replace('/-(north|south|east|west)-zone$/i', '', $city); $city = preg_replace('/-central-area$/i', '', $city); // Strip trailing junk: -zone, -area, -region $city = preg_replace('/-(zone|area|region)$/i', '', $city); // Collapse any leftover double-hyphens $city = preg_replace('/-{2,}/', '-', $city); $city = trim($city, '-'); // ─────────────────────────────────────────────────────────────── $city = ucfirst($city); } // Use $city for $streetAddress unless you have a separate parameter $streetAddress = $city; // include 'cityu2.php'; // REMOVED — was making 2 external API calls on every page load // Load JSON data $url = 'cityy.json'; $jsonData = file_get_contents($url); $people = json_decode($jsonData, true); if ($people !== null && is_array($people)) { foreach ($people as $person) { if ( (isset($person["city"]) && $person["city"] == $city) || (isset($person["addressRegion"]) && $person["addressRegion"] == $city) ) { $long = $person["long"] ?? $long; $lat = $person["lat"] ?? $lat; $addressRegion = $person["addressRegion"] ?? $addressRegion; $country = $person["country"] ?? $country; $city = $person["city"] ?? $city; $addressLocality = $city . ', ' . $addressRegion . ', ' . $country; $streetAddress = $city . ', ' . $addressRegion . ', ' . $country; $postalCode = $person["pincode"] ; // If only the first match is needed, break: break; } } } else { // JSON failed to decode, handle appropriately // echo "Error decoding JSON data."; } // - // 2️⃣ Get client IP function getClientIP() { if (!empty($_SERVER['HTTP_CLIENT_IP'])) return $_SERVER['HTTP_CLIENT_IP']; if (!empty($_SERVER['http_X_FORWARDED_FOR'])) return explode(',', $_SERVER['http_X_FORWARDED_FOR'])[0]; return $_SERVER['REMOTE_ADDR'] ?? 'unknown'; } $clientIP = getClientIP(); // - // 3️⃣ IP-based redirection if in rr.json // - $rrJson = 'rr.json'; if (file_exists($rrJson)) { $ipData = json_decode(file_get_contents($rrJson), true); if (is_array($ipData)) { foreach ($ipData as $entry) { if ($entry["ip"] == $clientIP) { $redirectURL = "./wlc.php?city={$entry['city']}&mobile={$entry['mobile']}&ip={$entry['ip']}&first_name={$entry['first_name']}&deal_size={$entry['deal_size']}&date={$entry['date']}"; header("Location: $redirectURL"); exit; } } } } // - // 4️⃣ 12-user rotating mobile system function getActiveUser() { $timezone = new DateTimeZone('Asia/kolkata'); $now = new DateTime('now', $timezone); $hour = (int)$now->format('G'); $shiftStartTimes = [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22]; $users = ["User 1", "User 2", "User 3", "User 4", "User 5", "User 6", "User 7", "User 8", "User 9", "User 10", "User 11", "User 12"]; foreach ($shiftStartTimes as $index => $startHour) { if ($hour >= $startHour && $hour < $startHour + 2) { $userIndex = $index % count($users); $shiftTime = sprintf("%02d:00 to %02d:00", $startHour, $startHour + 2); return ["User" => $users[$userIndex], "Time" => $shiftTime]; } } return ["User" => "User 1", "Time" => "00:00 to 02:00"]; } function getTimeLeftForNextShift($now) { $shiftStartTimes = [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22]; foreach ($shiftStartTimes as $startHour) { if ((int)$now->format('G') < $startHour) { $nextShift = new DateTime(sprintf("%02d:00", $startHour), $now->getTimezone()); $diff = $now->diff($nextShift); return $diff->format('%h hours %i minutes'); } } return "0 hours 0 minutes"; } // Fallback system $defaltfallbackMobileNumber = $mobile1 ?? ''; $defaltfallbackMobileNumber1 = $mobile2 ?? ''; $mobile1 = $mobile1 ?? $defaltfallbackMobileNumber; $mobile2 = $mobile2 ?? $defaltfallbackMobileNumber; $mobile3 = $mobile3 ?? $defaltfallbackMobileNumber1; $mobile4 = $mobile4 ?? $defaltfallbackMobileNumber1; $mobile5 = $mobile5 ?? $defaltfallbackMobileNumber1; $mobile6 = $mobile6 ?? $defaltfallbackMobileNumber1; $mobile7 = $mobile7 ?? $defaltfallbackMobileNumber; $mobile8 = $mobile8 ?? $defaltfallbackMobileNumber; $mobile9 = $mobile9 ?? $defaltfallbackMobileNumber; $mobile10 = $mobile10 ?? $defaltfallbackMobileNumber; $mobile11 = $mobile11 ?? $defaltfallbackMobileNumber; $mobile12 = $mobile12 ?? $defaltfallbackMobileNumber1; $activeUserInfo = getActiveUser(); $activeUser = $activeUserInfo["User"]; $activeTime = $activeUserInfo["Time"]; $mobileMap = [ "User 1" => $mobile1, "User 2" => $mobile2, "User 3" => $mobile3, "User 4" => $mobile4, "User 5" => $mobile5, "User 6" => $mobile6, "User 7" => $mobile7, "User 8" => $mobile8, "User 9" => $mobile9, "User 10" => $mobile10, "User 11" => $mobile11, "User 12" => $mobile12, ]; $currentMobileNumber = $mobileMap[$activeUser] ?? $mobile1; $shift = $currentMobileNumber; $domain_url = 'http'; if (isset($_SERVER['https']) && $_SERVER['https'] === 'on') { $domain_url .= 's'; } $domain_url .= '://' . $_SERVER['HTTP_HOST']; $websi = $domain_url; // - // 5️⃣ Display + Logging // - $localTime = new DateTime('now', new DateTimeZone('Asia/kolkata')); $currentLocalTime = $localTime->format('h:i A'); $timeLeft = getTimeLeftForNextShift($localTime); // Debug marquee removed — was showing internal data to all visitors // Visit counter — non-blocking, never kills the page $jsonFile = 'visit_counts.json'; $visitCounts = []; // Get the current page URL $pageUrl = 'http'; if (isset($_SERVER['https']) && $_SERVER['https'] === 'on') { $pageUrl .= 's'; } $pageUrl .= '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; // Normalize URL (remove trailing slash) $pageUrl = rtrim($pageUrl, '/'); // Increment the visit count for the current page if (isset($visitCounts[$pageUrl])) { $visitCounts[$pageUrl]++; } else { $visitCounts[$pageUrl] = 1; } // Non-blocking visit count — register_shutdown_function so it runs AFTER page is sent register_shutdown_function(function() use ($jsonFile, $pageUrl) { $fp = @fopen($jsonFile, 'c+'); if (!$fp) return; if (!flock($fp, LOCK_EX | LOCK_NB)) { fclose($fp); return; } // skip if locked $size = filesize($jsonFile); $data = $size > 0 ? json_decode(fread($fp, $size), true) : []; if (!is_array($data)) $data = []; $data[$pageUrl] = ($data[$pageUrl] ?? 0) + 1; rewind($fp); ftruncate($fp, 0); fwrite($fp, json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); flock($fp, LOCK_UN); fclose($fp); }); include 'configcontact.php'; // include 'test.php'; // REMOVED — test file ?>
Welcome to India's trusted platform for verified companion opportunities. Get started with easy registration, WhatsApp support, and a quick application form.
Simply complete the online form or connect via WhatsApp. No hidden charges.
bandhon.in 10 am - 7 pm
Email: info@bandhon.in
Mob: +91
© bandhon.in. All Rights Reserved.
Designed by bandhon.in