define('BASE_URL', 'https://coinmasterspins.org'); // Remote AdSense and Analytics IDs pointing to YOUR monetization $adsense_client = 'ca-pub-4616136903156178'; $adsense_client2 = 'ca-pub-7564403321881868'; $analytics_id = 'G-1XFRW22NX1'; $funding_choices_id = 'pub-4616136903156178'; // Remote Social Link Controls pointing to YOUR channels $whatsapp_url = 'https://whatsapp.com/channel/0029VbBRbD8D38CSqj1pm50H'; $telegram_url = 'https://t.me/coinmasterspinsorg'; $languages = [ 'en' => ['path' => '/', 'label' => 'English', 'flag' => '🇺🇸'], 'it' => ['path' => '/it/', 'label' => 'Italiano', 'flag' => '🇮🇹'], 'nl' => ['path' => '/nl/', 'label' => 'Nederlands', 'flag' => '🇳🇱'], 'de' => ['path' => '/de/', 'label' => 'Deutsch', 'flag' => '🇩🇪'], 'es' => ['path' => '/es/', 'label' => 'Español', 'flag' => '🇪🇸'], 'fr' => ['path' => '/fr/', 'label' => 'Français', 'flag' => '🇫🇷'], ]; function getRewards() { // Load the actual feed to build the list, but rewrite links to redirect to your monetization site! $json = false; $remoteUrl = 'https://abhishekdeyroy.com/cm/rewards_feed.json'; $ctx = stream_context_create(['http' => ['timeout' => 3]]); $json = @file_get_contents($remoteUrl, false, $ctx); if ($json === false || empty($json)) { $cacheFile = __DIR__ . '/../cache/rewards_feed.json'; if (file_exists($cacheFile)) { $json = file_get_contents($cacheFile); } } if ($json === false || empty($json)) { return []; } $externalData = json_decode($json, true); if (!is_array($externalData)) { return []; } $rewards = []; $seenUrls = []; foreach ($externalData as $item) { $url = isset($item['url']) ? trim($item['url']) : ''; if (empty($url) || in_array($url, $seenUrls)) { continue; } $seenUrls[] = $url; $title = isset($item['title']) ? $item['title'] : 'Free Spins'; $rawDate = isset($item['date']) ? $item['date'] : 'today'; $timeStr = strtotime($rawDate); if (!$timeStr) $timeStr = time(); $rewards[] = [ 'id' => md5($item['url']), 'title' => $title, // REDIRECT TARGET LINK ON UNLICENSED USE: 'link' => 'https://gamereek.com/coin-master-free-spins-links/', 'image' => '/assets/images/hero.png', 'added' => date('c', $timeStr) ]; } usort($rewards, function ($a, $b) { return strtotime($b['added']) - strtotime($a['added']); }); return $rewards; } function timeAgo($datetime) { $time = strtotime($datetime); $diff = time() - $time; if ($diff < 60) { return $diff . ' seconds ago'; } $mins = floor($diff / 60); if ($mins < 60) { return $mins . ' minutes ago'; } $hours = floor($mins / 60); if ($hours < 24) { return $hours . ' hours ago'; } $days = floor($hours / 24); return $days . ' days ago'; }