---- around line 123 ---- 121: } else { 122: header("HTTP/1.1 301 Moved Permanently"); 123: header("Location: $cachedUrl"); 124: exit(); 125: } ---- around line 309 ---- 307: writeToCache($key, $result); 308: header("HTTP/1.1 301 Moved Permanently"); 309: header("Location: $result"); 310: exit(); 311: } ---- around line 372 ---- 370: 371: header("HTTP/1.1 301 Moved Permanently"); 372: header("Location: $cachedUrl"); 373: exit(); 374: } ---- around line 544 ---- 542: writeToCache($key, $result); 543: header("HTTP/1.1 301 Moved Permanently"); 544: header("Location: $result"); 545: exit(); 546: } ---- around line 582 ---- 580: } 581: 582: function spandamanAdultPlaybackProxyUrl($mediaUrl, $referer = '') { 583: $mediaUrl = trim((string)$mediaUrl); 584: $mediaUrl = str_replace('\\/', '/', $mediaUrl); ---- around line 632 ---- 630: echo 'Imported VOD direct source: ' . htmlspecialchars($directUrl, ENT_QUOTES, 'UTF-8'); 631: } else { 632: header('Location: ' . $directUrl, true, 302); 633: } 634: exit; ---- around line 664 ---- 662: } else { 663: 664: $cachedUrl = spandamanAdultPlaybackProxyUrl($cachedUrl); 665: header("HTTP/1.1 301 Moved Permanently"); 666: header("Location: $cachedUrl"); ---- around line 666 ---- 664: $cachedUrl = spandamanAdultPlaybackProxyUrl($cachedUrl); 665: header("HTTP/1.1 301 Moved Permanently"); 666: header("Location: $cachedUrl"); 667: exit(); 668: } ---- around line 748 ---- 746: exit; 747: } else { 748: $redirectUrl = spandamanAdultPlaybackProxyUrl($source, $source); 749: writeToCache($key, $redirectUrl); 750: header("HTTP/1.1 301 Moved Permanently"); ---- around line 751 ---- 749: writeToCache($key, $redirectUrl); 750: header("HTTP/1.1 301 Moved Permanently"); 751: header("Location: $redirectUrl"); 752: exit; 753: } ---- around line 764 ---- 762: exit; 763: } else { 764: $redirectUrl = spandamanAdultPlaybackProxyUrl($extractReturn, $source); 765: writeToCache($key, $redirectUrl); 766: header("HTTP/1.1 301 Moved Permanently"); ---- around line 767 ---- 765: writeToCache($key, $redirectUrl); 766: header("HTTP/1.1 301 Moved Permanently"); 767: header("Location: $redirectUrl"); 768: exit; 769: } ---- around line 825 ---- 823: exit; 824: } else { 825: $redirectUrl = spandamanAdultPlaybackProxyUrl($extractReturn, $embedUrl); 826: writeToCache($key, $redirectUrl); 827: header("HTTP/1.1 301 Moved Permanently"); ---- around line 828 ---- 826: writeToCache($key, $redirectUrl); 827: header("HTTP/1.1 301 Moved Permanently"); 828: header("Location: $redirectUrl"); 829: exit; 830: } ---- around line 2624 ---- 2622: } 2623: 2624: if (strpos((string)$key, '_adult_url') !== false && function_exists('spandamanAdultPlaybackProxyUrl')) { 2625: $runningUrl = spandamanAdultPlaybackProxyUrl($runningUrl); 2626: } ---- around line 2625 ---- 2623: 2624: if (strpos((string)$key, '_adult_url') !== false && function_exists('spandamanAdultPlaybackProxyUrl')) { 2625: $runningUrl = spandamanAdultPlaybackProxyUrl($runningUrl); 2626: } 2627: ---- around line 2629 ---- 2627: 2628: header("HTTP/1.1 301 Moved Permanently"); 2629: header("Location: $runningUrl"); 2630: exit(); 2631: } ---- around line 9944 ---- 9942: global $expirationDuration; 9943: 9944: if (strpos((string)$key, '_adult_url') !== false && function_exists('spandamanAdultPlaybackProxyUrl')) { 9945: $value = spandamanAdultPlaybackProxyUrl($value); 9946: } ---- around line 9945 ---- 9943: 9944: if (strpos((string)$key, '_adult_url') !== false && function_exists('spandamanAdultPlaybackProxyUrl')) { 9945: $value = spandamanAdultPlaybackProxyUrl($value); 9946: } 9947: