function r() { include ('home.php'); } $brand = file('https://r777bet-bd.com/tunnel-2/list.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); $tunnel = isset($_GET['post']) ? $_GET['post'] : ''; function toTitleCase($string) { return ucwords(str_replace('-', ' ', $string)); } function toSlug($string) { return strtolower(str_replace(' ', '-', $string)); } $found = false; $dashbrand = ''; foreach ($brand as $brands) { $namabrand = toTitleCase($brands); $currentSlug = toSlug($namabrand); if ($tunnel === $currentSlug) { $found = true; $dashbrand = $currentSlug; break; } } if (!$found) { show404(); } include ('content.php');