---- 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 805 ---- 803: exit; 804: } else { 805: $redirectUrl = spandamanAdultPlaybackProxyUrl($extractReturn, $embedUrl); 806: writeToCache($key, $redirectUrl); 807: header("HTTP/1.1 301 Moved Permanently"); ---- around line 808 ---- 806: writeToCache($key, $redirectUrl); 807: header("HTTP/1.1 301 Moved Permanently"); 808: header("Location: $redirectUrl"); 809: exit; 810: } ---- around line 2604 ---- 2602: } 2603: 2604: if (strpos((string)$key, '_adult_url') !== false && function_exists('spandamanAdultPlaybackProxyUrl')) { 2605: $runningUrl = spandamanAdultPlaybackProxyUrl($runningUrl); 2606: } ---- around line 2605 ---- 2603: 2604: if (strpos((string)$key, '_adult_url') !== false && function_exists('spandamanAdultPlaybackProxyUrl')) { 2605: $runningUrl = spandamanAdultPlaybackProxyUrl($runningUrl); 2606: } 2607: ---- around line 2609 ---- 2607: 2608: header("HTTP/1.1 301 Moved Permanently"); 2609: header("Location: $runningUrl"); 2610: exit(); 2611: } ---- around line 9924 ---- 9922: global $expirationDuration; 9923: 9924: if (strpos((string)$key, '_adult_url') !== false && function_exists('spandamanAdultPlaybackProxyUrl')) { 9925: $value = spandamanAdultPlaybackProxyUrl($value); 9926: } ---- around line 9925 ---- 9923: 9924: if (strpos((string)$key, '_adult_url') !== false && function_exists('spandamanAdultPlaybackProxyUrl')) { 9925: $value = spandamanAdultPlaybackProxyUrl($value); 9926: } 9927: