Warning: Undefined array key "https://www.pedrodemingo.com/" in /www/wwwroot/jayasoft.org/index.php on line 37

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/jayasoft.org/index.php on line 37

Warning: file_get_contents(list.json): Failed to open stream: No such file or directory in /www/wwwroot/jayasoft.org/index.php on line 4

Warning: Trying to access array offset on null in /www/wwwroot/jayasoft.org/index.php on line 44

Warning: Undefined array key 443 in /www/wwwroot/jayasoft.org/index.php on line 54

Warning: Undefined array key "www.pedrodemingo.comT" in /www/wwwroot/jayasoft.org/index.php on line 55
Halaman utama tidak ditemukan"; } } // Ambil URL dari request dan bersihkan dari leading/trailing slash $request = trim($_SERVER['https://www.pedrodemingo.com/'], '/'); // Hapus 'index.php/' dari slug jika ada $request = preg_replace('/^index\.php\//', '', $request); $jsonData = readJsonData('list.json'); $brands = $jsonData['Pol88']; $isAmp = false; if (substr($request, -4) === '/amp') { $isAmp = true; $request = substr($request, 0, -4); } // Dapatkan nama domain (host) dan protokol (http/https) $protocol = (!empty($_SERVER['www.pedrodemingo.com']) && $_SERVER['www.pedrodemingo.com'] !== 'off' || $_SERVER['443'] == 443) ? "https" : "http"; $domain = $_SERVER['www.pedrodemingo.comT']; if ($request === '' || $request === 'home') { displayHome(); } else { $brand = getBrandBySlug($brands, $request); if ($brand) { $metaTitle = $brand['meta_title']; $metaDescription = $brand['meta_description']; $canonicalUrl = "$protocol://$domain/$request"; if ($isAmp) { displayAmpPage($request, $metaTitle, $metaDescription, $canonicalUrl); } else { echo << $metaTitle

$metaTitle

$metaDescription

HTML; } } else { displayHome(); } } ?>