Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /* __________________________________________________ | Obfuscated by YAK..

Decoded Output download

<?php  
/*   __________________________________________________  
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.14  |  
    |              on 2023-01-07 09:41:40              |  
    |    GitHub: https://github.com/pk-fr/yakpro-po    |  
    |__________________________________________________|  
*/  
 namespace GDPlayer; use GDPlayer\Core; use GDPlayer\Security; use GDPlayer\HTML; use GDPlayer\Hosting; use GDPlayer\Helper; use GDPlayer\Model\Videos; use GDPlayer\Model\VideoShort; use GDPlayer\Model\VideosAlternatives; use GDPlayer\Model\VideoSources; use GDPlayer\Model\LoadBalancers; class Player { const MESSAGE_ACCESS_DENIED = "Access Denied"; const MESSAGE_UNAVAILABLE = "Sorry this videos is unavailable"; const MESSAGE_TAKEDOWN = "DMCA Takedown"; const MESSAGE_PLAYER_EMPTY = "Please set the video player first"; const REMOVE_NAMESERVER = ["|New" => '', "|Additional Host" => '']; private $core; private $html; private $security; private $hosting; private $videos; private $vShort; private $vAlt; private $vSources; private $balancer; private $helper; private $defaultContext = []; private $isTakedown = false; private $isError = false; private $errorTemplate = "embed-error.html.twig"; private $downloadErrorTemplate = "download-error.html.twig"; private $browserLanguage = "en"; private $themeColor = "#673ab7"; private $videoTitle = ''; private $videoPoster = ''; private $player = "plyr"; private $playerSkin = "default"; private $playerTemplate = "embed-plyr.html.twig"; private $downloadTemplate = "download.html.twig"; private $playerVersion = "8.9.5"; private $playerColor = "673ab7"; private $playerColorRGB = "103, 58, 183"; private $embedURL = ''; private $embedSlug = "embed"; private $downloadSlug = "download"; private $videoCustomSlug = ''; private $originalQry = []; private $apiQuery = []; private $allowedQueries = ["host", "ahost", "id", "aid", "poster", "sub", "lang", "source"]; private $supportedSites = []; private $selectedServer = -1; private $messageText = "Please wait..."; private $defaultAlternative = "alt=-1"; private $defaultHostLabel = "Direct Link"; private $isSafariBrowser = false; public function __construct() { goto KKbuZR03P6t7wwU; BMvM1dBk9A1Om21: $uri = get_page_uris(); goto ge3R5ErcAkE0lgI; pazotPCDQ3pqfLt: if (!($this->player === "jwplayer_latest")) { goto IxCjS5U9bqx2Fk0; } goto QjBWdwmAb_uR4Rb; gyAmvo8xj5SoTOx: session_write_close(); goto zGfkRSJmAeue8YZ; rxavm_Nobxo7zf7: IxCjS5U9bqx2Fk0: goto MUgxBh5Rw_iSqAX; IyLSx2xxwOtwFB5: $this->isError = true; goto w5LJAFpXNUN5kC1; zrr6T8duu4qfIuK: session_write_close(); goto L7nwPuHiiieFPB1; xzqngFle4mAbW4Q: goto y9IJAohhqOFK6gG; goto bTetlRMxUZFe2TF; NfaWcA0y9bbj6JF: if (is_file($fileGeneralBackground)) { goto i3P_HKFDWDFjrkH; } goto gaVqr8ojkVT5ikF; d4wApLZXylN0Ri9: $this->supportedSites = $this->hosting->supportedSites(); goto ETiWpWj_wK97utB; i1ANHX0LVHqdjW2: $this->videoPoster = sanitize_url(get_option("poster")); goto FobsFztXHolx9SU; CXL0kU1ShV2rMik: $keys = array_keys($qry); goto cfxyGCln8iLhNup; I4M6I8dfNWaVnnX: parse_str($decrypt, $qryParser); goto prskqd_cC_O59tR; U_anFoq6kDm3miv: if (!empty($uri[0])) { goto XL0AZqXc6BIR7ms; } goto TuhYB5u3wm_LgY9; hLxkT73sm9bHJpS: if (empty($_SERVER["QUERY_STRING"])) { goto Jx0KACLr9G05Pss; } goto g8M9nbOd_i1eOlo; e6ivdQ9uJ0WsPtD: $rgbColor = hex2RGB($this->playerColor, true, ","); goto Uykd0J_bwAolev2; Qfajog6IPUv3ztc: KM3cPak7ZxC9ztI: goto thl2_9o30Kbekp_; zGfkRSJmAeue8YZ: $this->messageText = $messageText; goto B5XHvknnJkBS1ng; yK0gbe7_jHXDcze: session_write_close(); goto WxCceFfNjqK24Vi; fgYLRk_YCg__PSf: parse_str($decrypt2, $qryParser); goto yE2IqJTK0vzsDGG; bTetlRMxUZFe2TF: XL0AZqXc6BIR7ms: goto yK0gbe7_jHXDcze; BN3M484_JBNmJf0: $this->core = new Core(); goto JcaHCIKBwBDtwyv; FIoT4RdNGvf_z32: $this->getVideoByCustomSlug(); goto DuAWKJYI7vZDCQc; prskqd_cC_O59tR: goto fZDoZVdDkxxcmyo; goto Qfajog6IPUv3ztc; BcMCkmPgog8DvWD: $this->embedURL .= $uri[0] . "?"; goto FIoT4RdNGvf_z32; lCb44UEkb1FHYPH: KzBCFNbLbyxjwYI: goto JJvaggfb_r4xI1V; ge3R5ErcAkE0lgI: $this->embedSlug = $uri[0]; goto EyKT7DmpILUCrgO; g8M9nbOd_i1eOlo: session_write_close(); goto DVX55AC3fMLw2ys; DVX55AC3fMLw2ys: parse_str($_SERVER["QUERY_STRING"], $qry); goto CXL0kU1ShV2rMik; WxCceFfNjqK24Vi: $this->videoCustomSlug = $uri[0]; goto BcMCkmPgog8DvWD; loW8iJxnV4KB3Qg: vW2dvY0_sf9dEnU: goto KYoSqOwnMtVRQ5M; w3aq5ZwOteMctDp: if (empty($this)) { goto I6VXKcfkVnQh_vO; } goto gyAmvo8xj5SoTOx; oHlaa6qt5jzD6L0: MXSrwjVSJxFEgjY: goto Rx6BWUu2Yoiq6CH; QQBMX8G30V7Ddij: $decrypt2 = $this->security->decryptURL($keys[0]); goto x98MpKtaJ0nG8Lh; thl2_9o30Kbekp_: session_write_close(); goto fgYLRk_YCg__PSf; yE2IqJTK0vzsDGG: fZDoZVdDkxxcmyo: goto Xtj7EA24leF12Yc; J4X0BzaErsp88TJ: $this->selectedServer = intval($_GET["alt"]); goto ThzANXqJlh3xYmA; hpMXI88hcG9wN8K: if (empty($_SERVER["HTTP_ACCEPT_LANGUAGE"])) { goto vW2dvY0_sf9dEnU; } goto zrr6T8duu4qfIuK; DuAWKJYI7vZDCQc: goto y9IJAohhqOFK6gG; goto shxc2niWkMD0IUK; A8NzgPI6_Y06_kR: session_write_close(); goto y8vg0tMMG7qrUUG; Rx6BWUu2Yoiq6CH: session_write_close(); goto I4M6I8dfNWaVnnX; eCHS2e988TwqyyR: $this->defaultContext = ["lang" => $this->browserLanguage, "baseURL" => sanitize_url(BASE_URL), "themeColor" => $this->themeColor, "siteName" => sitename(), "title" => $this->videoTitle, "isError" => $this->isError, "message" => $this->messageText, "GA" => $this->html->google_alaytics(), "GTM_Head" => $this->html->GTM_head(), "GTM_body" => $this->html->GTM_body(), "PopupAds" => $this->html->popupads(), "Histats" => $this->html->histats()]; goto d4wApLZXylN0Ri9; u3W6mlY3SXYT1jU: $this->themeColor = "#" . sanitize_html(get_option("pwa_themecolor")); goto i1ANHX0LVHqdjW2; vZENuhizWMaBHBL: session_write_close(); goto MoXHP0xPG7EoL6b; f1XTLddK7BDGtmg: i3P_HKFDWDFjrkH: goto XB7QOybmzSTT_tQ; ThzANXqJlh3xYmA: $this->apiQuery["alt"] = $this->selectedServer; goto lCb44UEkb1FHYPH; L7nwPuHiiieFPB1: $ex = explode(",", $_SERVER["HTTP_ACCEPT_LANGUAGE"]); goto q2CdY2vGxeBWt3W; XB7QOybmzSTT_tQ: $this->isSafariBrowser = isset($_SERVER["HTTP_USER_AGENT"]) && stripos($_SERVER["HTTP_USER_AGENT"], "Version/") !== false && stripos($_SERVER["HTTP_USER_AGENT"], "Safari/") !== false; goto hpMXI88hcG9wN8K; frCSi0d7x4uLgKQ: goto fZDoZVdDkxxcmyo; goto oHlaa6qt5jzD6L0; fZDaeYUaGuQcXfM: $this->vShort = new VideoShort(); goto SBkgmgzG1OnmmSl; Mba6yngqiZm17og: $this->originalQry = array_filter($this->apiQuery, function ($key) { session_write_close(); return in_array($key, $this->allowedQueries); }, ARRAY_FILTER_USE_KEY); goto sjqNYPxauLepl6q; KYoSqOwnMtVRQ5M: $messageText = sanitize_html(get_option("text_loading")); goto w3aq5ZwOteMctDp; q2CdY2vGxeBWt3W: $this->browserLanguage = sanitize_html($ex[0]); goto loW8iJxnV4KB3Qg; B5XHvknnJkBS1ng: I6VXKcfkVnQh_vO: goto u3W6mlY3SXYT1jU; EyKT7DmpILUCrgO: $this->embedURL = BASE_URL . $this->embedSlug . "/"; goto hLxkT73sm9bHJpS; FobsFztXHolx9SU: $this->player = sanitize_html(get_option("player")); goto pazotPCDQ3pqfLt; sjqNYPxauLepl6q: Jx0KACLr9G05Pss: goto ifR8gB3PpV6UEKu; cozgOVGCK0KBlDk: $this->playerColor = $this->getPlayerColor($this->playerSkin); goto e6ivdQ9uJ0WsPtD; X_faLaNW0Gqz7Ru: $this->hosting = new Hosting(); goto VuSZmlgwpyC6NYI; JcaHCIKBwBDtwyv: $this->helper = new Helper(); goto QcNGmnHQuGNnak6; y8vg0tMMG7qrUUG: $qryParser = $qry; goto frCSi0d7x4uLgKQ; Gd596oBlKY5onrU: ppjmnHsn70c6Oc2: goto BMvM1dBk9A1Om21; JkWwSU0bG5GEtlK: $this->playerVersion = "latest"; goto rxavm_Nobxo7zf7; JJvaggfb_r4xI1V: array_splice($uri, 0, 1); goto U_anFoq6kDm3miv; G1VMZcC0bG5gmmK: $fileGeneralBackground = replaceSeparator(BASE_DIR . "includes/bg_general.php"); goto NfaWcA0y9bbj6JF; XH2350opvDF58vH: $this->playerSkin = sanitize_html(get_option("player_skin")); goto cozgOVGCK0KBlDk; BP4gp9JFPOL1ELu: session_write_close(); goto J4X0BzaErsp88TJ; TKOd72os5DkJHgO: if ($decrypt2) { goto KM3cPak7ZxC9ztI; } goto A8NzgPI6_Y06_kR; zOkdVMISXHw0k7m: session_write_close(); goto hm00sFDtASVJXFu; QjBWdwmAb_uR4Rb: session_write_close(); goto RrXQ_ouLhhhMcfn; Uykd0J_bwAolev2: if (!$rgbColor) { goto ppjmnHsn70c6Oc2; } goto zOkdVMISXHw0k7m; Xtj7EA24leF12Yc: $this->apiQuery = array_filter($qry, function ($val) { session_write_close(); return is_numeric($val) || !empty($val); }); goto VnahZrtdpdUkdWG; VuSZmlgwpyC6NYI: $this->videos = new Videos(); goto fZDaeYUaGuQcXfM; MoXHP0xPG7EoL6b: $this->embedURL .= "?" . $this->security->encryptURL(http_build_query($this->originalQry)) . "&"; goto af7q9HqvPd2eRwz; SBkgmgzG1OnmmSl: $this->vAlt = new VideosAlternatives(); goto SWDa9aC5V9mwVwv; KKbuZR03P6t7wwU: session_write_close(); goto BN3M484_JBNmJf0; QcNGmnHQuGNnak6: $this->html = new HTML(); goto ZHNzujopQpK28kL; ifR8gB3PpV6UEKu: if (!isset($_GET["alt"])) { goto KzBCFNbLbyxjwYI; } goto BP4gp9JFPOL1ELu; gaVqr8ojkVT5ikF: session_write_close(); goto IyLSx2xxwOtwFB5; shxc2niWkMD0IUK: QvN15jsafWM4Cmm: goto vZENuhizWMaBHBL; VnahZrtdpdUkdWG: $this->apiQuery = array_merge($qryParser, $qry); goto Mba6yngqiZm17og; hm00sFDtASVJXFu: $this->playerColorRGB = $rgbColor; goto Gd596oBlKY5onrU; TuhYB5u3wm_LgY9: if (!empty($this->originalQry)) { goto QvN15jsafWM4Cmm; } goto xzqngFle4mAbW4Q; SWDa9aC5V9mwVwv: $this->vSources = new VideoSources(); goto FWyyIunwsZKZ5X_; af7q9HqvPd2eRwz: y9IJAohhqOFK6gG: goto eCHS2e988TwqyyR; MUgxBh5Rw_iSqAX: $this->playerTemplate = "embed-" . $this->player . ".html.twig"; goto XH2350opvDF58vH; RrXQ_ouLhhhMcfn: $this->player = "jwplayer"; goto JkWwSU0bG5GEtlK; x98MpKtaJ0nG8Lh: if ($decrypt) { goto MXSrwjVSJxFEgjY; } goto TKOd72os5DkJHgO; ZHNzujopQpK28kL: $this->security = new Security(); goto X_faLaNW0Gqz7Ru; cfxyGCln8iLhNup: $decrypt = decode($keys[0]); goto QQBMX8G30V7Ddij; FWyyIunwsZKZ5X_: $this->balancer = new LoadBalancers(); goto G1VMZcC0bG5gmmK; w5LJAFpXNUN5kC1: $this->messageText = "Site not available. Please contact Admin!"; goto f1XTLddK7BDGtmg; ETiWpWj_wK97utB: } private function getPlayerColor(string $skin = "default") { goto sDUAQCS1uaSnFig; TtSQKyTei1ojdN1: $result = $playersColors[$skin]; goto Rd8DUgZhGuHOYW1; Rd8DUgZhGuHOYW1: LfKdocHNLGnQRAT: goto Jhd3zUe73Fs4vnq; YDRNTj2KflzIl7N: session_write_close(); goto TtSQKyTei1ojdN1; gtJxKVWm5o1lt54: $result = $playersColors["default"]; goto SuYchROwooXRVMw; sDUAQCS1uaSnFig: session_write_close(); goto UVtXKkCsxwYO02p; SuYchROwooXRVMw: if (!isset($playersColors[$skin])) { goto LfKdocHNLGnQRAT; } goto YDRNTj2KflzIl7N; Jhd3zUe73Fs4vnq: return $result; goto P1SHM1WwtcV1jJX; UVtXKkCsxwYO02p: $playersColors = ["netflix" => "e50914", "hotstar" => "1f80e0", "iqiyi" => "00c234", "default" => sanitize_html(get_option("player_color") ?? "673ab7")]; goto gtJxKVWm5o1lt54; P1SHM1WwtcV1jJX: } private function getVideoByCustomSlug() { goto MFQgm2aJ7WN5u91; eaLfoOLW5xf9t73: session_write_close(); goto ZMZQjfmqGM6Luk6; VKKFgb6FKRiSi0T: $this->apiQuery["id"] = $data["vid"]; goto udF4SJfgGwo7wZE; udF4SJfgGwo7wZE: g8M_TWg2G6n0VFH: goto jY2b4mestCplWuS; MFQgm2aJ7WN5u91: session_write_close(); goto Ozu8AnLUrxyUKC0; QHFydXTW7pKR0_h: session_write_close(); goto oLkn5dJCUZPqr0v; ZMZQjfmqGM6Luk6: $this->apiQuery["source"] = "db"; goto VKKFgb6FKRiSi0T; Ozu8AnLUrxyUKC0: $this->vShort->setCriteria("key", rawurldecode($this->videoCustomSlug)); goto um0C13l03A6YEW0; mVyw8UeuhpR5Uws: goto g8M_TWg2G6n0VFH; goto FtA3IyE_RCSJNYG; DyiTsMJHFTOqja9: if ($data) { goto BAH5BOJi3n26pjx; } goto QHFydXTW7pKR0_h; oLkn5dJCUZPqr0v: $this->isError = true; goto mVyw8UeuhpR5Uws; um0C13l03A6YEW0: $data = $this->vShort->getOne(["vid"]); goto DyiTsMJHFTOqja9; FtA3IyE_RCSJNYG: BAH5BOJi3n26pjx: goto eaLfoOLW5xf9t73; jY2b4mestCplWuS: } private function getServers() { goto yNpuhYQULOP9QVi; aGOMFegubklk5mk: $host = ''; goto Ga8R77gpaOosus9; ax80xbAjuArHkMf: $host = $this->apiQuery["host"]; goto DcBT0nU70LvOryQ; AoCN6toNVAEjpDi: session_write_close(); goto iFf_ZnXJTFyPD2w; H41R886Em2l2ma0: session_write_close(); goto S6BlrB4L1psM3ZD; oXnf2ISnIDpVeEZ: goto mIodyETDtCQGGjC; goto Kp2fc0Jm82DKcux; LAmnuMWquiz5I04: $servers[] = ["host" => $host, "host_id" => $host_id, "name" => strtr($hostname, self::REMOVE_NAMESERVER), "url" => $this->embedURL . "alt=0", "active" => $this->selectedServer === 0]; goto hia23My6K3M1MIW; TMMxKoKONXmtojB: $this->hosting->setURL($this->apiQuery["id"]); goto IOmi5RlXzAoUYpK; iFf_ZnXJTFyPD2w: $hostname = $this->supportedSites[$host] ?? $this->defaultHostLabel; goto LAmnuMWquiz5I04; ydypqF3EZqh4aDx: biBCbotxo6Sw0Ja: goto gJMAgzNX79VOehe; DW2AAVuho0dsfnx: session_write_close(); goto OC2HVFAiJskUyNB; yACwMud35JGxj7F: $this->hosting->setURL($this->apiQuery["aid"]); goto ydhWi1YWYaxzhY_; f4etOMXtivyizJl: $servers = []; goto isobI7N4jpmAPu8; Ny2D1eZ4oy03Lv6: if (!empty($this->apiQuery["ahost"])) { goto O0QqvUzSX9Jtyxy; } goto cAanlgVXxTxY4DF; kJF2XY7brA_AITT: K33VNmrVEEh4Kux: goto PdnBWnX0v3SGJJa; b0uf972nlZDCHWR: if (empty($host)) { goto KYvYLfig21oG7Jc; } goto AoCN6toNVAEjpDi; S6BlrB4L1psM3ZD: $host = $this->apiQuery["ahost"]; goto CSeLO9M9UeC_ipl; y2TKgxsgUx6mDl0: $host_id = $this->hosting->getID(); goto oXnf2ISnIDpVeEZ; ZQzBcFuhUhohsA4: if (empty($host)) { goto biBCbotxo6Sw0Ja; } goto DD7zj9PrY8pv9rd; LYwNk0rVA3IT4ZK: if (empty($this->apiQuery["aid"])) { goto iprJAa4UY7NtZku; } goto TuyP9zx8NcYZxrq; OC2HVFAiJskUyNB: if (validate_url($this->apiQuery["id"])) { goto F290wEZeR75Tuj0; } goto XUAAcOdTQwuLK_s; jRZvL38Zb1J8O8O: R6E7_RmA0iBNshh: goto Jg6RjVPpapKZCJi; TuyP9zx8NcYZxrq: session_write_close(); goto up0darCE0QPV79n; Jg6RjVPpapKZCJi: session_write_close(); goto yACwMud35JGxj7F; IOmi5RlXzAoUYpK: $host = $this->hosting->getHost(); goto q2FmM8XU5XJKePx; jSY4aTuu7jEdvrA: return $servers; goto eHPOC4rD2GXixgW; ydhWi1YWYaxzhY_: $host = $this->hosting->getHost(); goto y2TKgxsgUx6mDl0; xopuqjfQ0fNasTZ: iprJAa4UY7NtZku: goto jSY4aTuu7jEdvrA; QTHHtShWdPLfcvT: goto yoAAoHrcg2UlWzR; goto kJF2XY7brA_AITT; KquM0S1Cx6XfmJ6: yoAAoHrcg2UlWzR: goto ZQzBcFuhUhohsA4; DcBT0nU70LvOryQ: $host_id = $this->apiQuery["id"]; goto KquM0S1Cx6XfmJ6; lg_imA_G41NH4Sb: F290wEZeR75Tuj0: goto VVzm4Bl4CfAG_x3; XUAAcOdTQwuLK_s: if (!empty($this->apiQuery["host"])) { goto K33VNmrVEEh4Kux; } goto apqThTTK_qRDFRX; isobI7N4jpmAPu8: if (empty($this->apiQuery["id"])) { goto J727j4Ps5WW6O6j; } goto DW2AAVuho0dsfnx; jMP7mnA1rmxBeUI: $hostname = $this->supportedSites[$host] ?? $this->defaultHostLabel; goto f7QrWhNpiNBdr2H; gJMAgzNX79VOehe: J727j4Ps5WW6O6j: goto LYwNk0rVA3IT4ZK; up0darCE0QPV79n: if (validate_url($this->apiQuery["aid"])) { goto R6E7_RmA0iBNshh; } goto Ny2D1eZ4oy03Lv6; qHmBZI5yclnmyp9: mIodyETDtCQGGjC: goto b0uf972nlZDCHWR; DD7zj9PrY8pv9rd: session_write_close(); goto jMP7mnA1rmxBeUI; q2FmM8XU5XJKePx: $host_id = $this->hosting->getID(); goto QTHHtShWdPLfcvT; Ga8R77gpaOosus9: $host_id = ''; goto f4etOMXtivyizJl; PdnBWnX0v3SGJJa: session_write_close(); goto ax80xbAjuArHkMf; f7QrWhNpiNBdr2H: $servers[] = ["host" => $host, "host_id" => $host_id, "name" => strtr($hostname, self::REMOVE_NAMESERVER), "url" => $this->embedURL . $this->defaultAlternative, "active" => $defaultServer]; goto ydypqF3EZqh4aDx; hia23My6K3M1MIW: KYvYLfig21oG7Jc: goto xopuqjfQ0fNasTZ; Kp2fc0Jm82DKcux: O0QqvUzSX9Jtyxy: goto H41R886Em2l2ma0; OaOQg9tohBwFHsI: $defaultServer = $this->selectedServer < 0; goto aGOMFegubklk5mk; cAanlgVXxTxY4DF: goto mIodyETDtCQGGjC; goto jRZvL38Zb1J8O8O; yNpuhYQULOP9QVi: session_write_close(); goto OaOQg9tohBwFHsI; CSeLO9M9UeC_ipl: $host_id = $this->apiQuery["aid"]; goto qHmBZI5yclnmyp9; VVzm4Bl4CfAG_x3: session_write_close(); goto TMMxKoKONXmtojB; apqThTTK_qRDFRX: goto yoAAoHrcg2UlWzR; goto lg_imA_G41NH4Sb; eHPOC4rD2GXixgW: } private function getAPISourcesURL(string $host = '', string $host_id = '') { goto UnymJZTPomOcVJu; xVYXQc9M4oiTmYv: $this->vSources->setCriteria("host_id", $host_id, "=", "AND"); goto FG55a2T6PDnf6J5; CaoSTp231Hg3GX_: if (!(!empty($data["link"]) && validate_url($data["link"]))) { goto LpX02GiVFUJ4Yk8; } goto ySuma5vBLs__3Q5; UnymJZTPomOcVJu: session_write_close(); goto vzebrgZ6kC6fGhW; S9STU5jeVtosZ5q: $data = $this->balancer->getOne(["link"]); goto CaoSTp231Hg3GX_; ySuma5vBLs__3Q5: session_write_close(); goto A8182ma5y8pylmm; gAdfNZIz_l63hUF: $this->vSources->setCriteria("host", $host, "="); goto xVYXQc9M4oiTmYv; M8_1oYBgEBrmJBr: session_write_close(); goto Pnxt4RkO8e0vtwt; MhbFQ2FsQr6qxVh: if (!(empty($host) || empty($host_id) || in_array($host, $this->core->bad_hosts()))) { goto Hr0TWsaZDoOGXja; } goto YaP8DgEQMqOMBJ6; Pnxt4RkO8e0vtwt: $this->balancer->setCriteria("id", $data["sid"], "="); goto N5ij2zC2QotHLK8; FG55a2T6PDnf6J5: $this->vSources->setCriteria("expired", time(), "<", "AND"); goto hl9UN6uFwZBhkBR; vzebrgZ6kC6fGhW: $result = false; goto MhbFQ2FsQr6qxVh; A8182ma5y8pylmm: $result = (string) $data["link"]; goto WKTudOujWlvn6hi; N5ij2zC2QotHLK8: $this->balancer->setCriteria("status", 1, "=", "AND"); goto S9STU5jeVtosZ5q; QT398WoHUNhQ9_v: return $result; goto YexjOZDXYHm3E4D; WKTudOujWlvn6hi: LpX02GiVFUJ4Yk8: goto JK3HopbI7eJgVjJ; R61QLiZuEjjY2QW: return $result; goto hosf1bOLniF0vf7; hl9UN6uFwZBhkBR: $data = $this->vSources->getOne(["sid"]); goto cUOuXhag3_yYl6X; YexjOZDXYHm3E4D: Hr0TWsaZDoOGXja: goto gAdfNZIz_l63hUF; JK3HopbI7eJgVjJ: oMzB_56SaloUg4f: goto R61QLiZuEjjY2QW; YaP8DgEQMqOMBJ6: session_write_close(); goto QT398WoHUNhQ9_v; cUOuXhag3_yYl6X: if (empty($data["sid"])) { goto oMzB_56SaloUg4f; } goto M8_1oYBgEBrmJBr; hosf1bOLniF0vf7: } private function getVideoInfo() { goto CfXnlWyKpOaWdpw; YQ6OuZOU70uEfGB: $this->videos->setCriteria("id", $this->apiQuery["id"]); goto kPgYe4Ia8JHaDR6; lNTL8Okphi5I7tU: if (!is_numeric($this->apiQuery["id"])) { goto zNgUBOaFlxbFZyH; } goto SS19gfviUYTL0RU; xNpHsZ6Qapx1p52: zNgUBOaFlxbFZyH: goto wIvmSXelpmkAYkD; CfXnlWyKpOaWdpw: session_write_close(); goto ELr9hdSioPo1H2L; wIvmSXelpmkAYkD: return $data; goto eJuoVTImjpa1TUJ; SS19gfviUYTL0RU: session_write_close(); goto YQ6OuZOU70uEfGB; ELr9hdSioPo1H2L: $data = false; goto lNTL8Okphi5I7tU; kPgYe4Ia8JHaDR6: $data = $this->videos->getOne(["title", "poster", "dmca", "host", "host_id"]); goto xNpHsZ6Qapx1p52; eJuoVTImjpa1TUJ: } private function getVideoAlternatives(int $id = 0) { goto YxJCIi8jeOuozCa; i9K20u6FjBLWVzj: $this->vAlt->setCriteria("vid", $id); goto mc462TmdAwGZzFj; mc462TmdAwGZzFj: $this->vAlt->setOrderBy("order"); goto MDcoFV6HUFNverF; MDcoFV6HUFNverF: $list = $this->vAlt->get(["id", "host", "host_id"]); goto ogHBFjoT3HqvFMF; EUWAhs6o6MUwKqU: $result = []; goto i9K20u6FjBLWVzj; YxJCIi8jeOuozCa: session_write_close(); goto EUWAhs6o6MUwKqU; ew_5KiUZkyrv2qL: foreach ($list as $dt) { goto rJcIFGnVhLEbsz9; rJcIFGnVhLEbsz9: session_write_close(); goto v7Wtoc01U32q3pi; R10PnKuoEqs2q6J: VsG7ZoeHN4bUNjo: goto z1Wj3kBxV85mOHW; v7Wtoc01U32q3pi: $hostname = $this->supportedSites[$dt["host"]] ?? $this->defaultHostLabel; goto qAeWyy28kXEng6C; qAeWyy28kXEng6C: $result[] = ["host" => $dt["host"], "host_id" => $dt["host_id"], "name" => strtr($hostname, self::REMOVE_NAMESERVER), "url" => $this->embedURL . "alt=" . $dt["id"], "active" => $this->selectedServer === intval($dt["id"])]; goto R10PnKuoEqs2q6J; z1Wj3kBxV85mOHW: } goto G27kgp3ZHQBZzUi; G27kgp3ZHQBZzUi: TKvzHcF5GFyUvQ2: goto nq68oNLxfFK8XR7; ogHBFjoT3HqvFMF: if (!$list) { goto HTn6cV4RdZQmme2; } goto pVcCJfLJ8QhUtO8; nq68oNLxfFK8XR7: HTn6cV4RdZQmme2: goto mJqp6qsx65q2VBn; mJqp6qsx65q2VBn: return $result; goto GIykVYX3XY17dd3; pVcCJfLJ8QhUtO8: session_write_close(); goto ew_5KiUZkyrv2qL; GIykVYX3XY17dd3: } public function getAccessDeniedPage(bool $download = false) { goto uhxi931CSCzkkFv; BHYSY2umNf8ynxM: WveRXI1yXU3wSJ1: goto riHkzP3yyY9UPAA; riHkzP3yyY9UPAA: session_write_close(); goto u2_cg6sPGSUXAnW; u2_cg6sPGSUXAnW: return $this->html->renderTemplate($this->downloadErrorTemplate, $this->defaultContext); goto dQohwXJ4Y6J2cL3; w2Xflvb2830Az0p: $this->defaultContext["isError"] = true; goto HN_xDOkFsJGAHYY; dQohwXJ4Y6J2cL3: Zbu6IJg8Vf8f9Iq: goto QUgzvyx5tdshXOd; uhxi931CSCzkkFv: session_write_close(); goto w2Xflvb2830Az0p; HN_xDOkFsJGAHYY: $this->defaultContext["title"] = self::MESSAGE_ACCESS_DENIED; goto Jy5kX2GNMALfCPp; YJnI9U4GH9fAaj7: return $this->html->renderTemplate($this->errorTemplate, $this->defaultContext); goto B3wupInxEXEUnfB; DwEA4bcDa2eYSam: session_write_close(); goto YJnI9U4GH9fAaj7; Jy5kX2GNMALfCPp: $this->defaultContext["message"] = self::MESSAGE_ACCESS_DENIED; goto R9K27BnaZfgJQUz; B3wupInxEXEUnfB: goto Zbu6IJg8Vf8f9Iq; goto BHYSY2umNf8ynxM; R9K27BnaZfgJQUz: if ($download) { goto WveRXI1yXU3wSJ1; } goto DwEA4bcDa2eYSam; QUgzvyx5tdshXOd: } public function getDownloadPage() { goto E62e1jU3s6vg5Xg; URvT282W6k2kP4O: $this->defaultContext["message"] = self::MESSAGE_TAKEDOWN; goto fgXZ8rjZXpqXj6S; CXBI03wK0cbDIrH: $servers[] = ["host" => $videoInfo["host"], "host_id" => $videoInfo["host_id"], "name" => strtr($hostname, self::REMOVE_NAMESERVER), "url" => $this->embedURL . $this->defaultAlternative, "active" => $this->selectedServer === -1]; goto uWayPEB8LqFNrVu; lEUYOqYgKmamp1s: $this->defaultContext["title"] = self::MESSAGE_TAKEDOWN; goto URvT282W6k2kP4O; Hz33CRSlpdlCciQ: $this->apiQuery = array_filter($this->apiQuery, function ($val, $key) { session_write_close(); return !empty($val) && !empty($key); }, ARRAY_FILTER_USE_BOTH); goto JBxO3gsGsVBp_5L; T9_Ju7__ubK3Bnb: if (!empty($this->apiQuery["id"])) { goto NwEEr4R8UfABvYJ; } goto tG1ec9AlJYhuoaE; fgXZ8rjZXpqXj6S: return $this->html->renderTemplate($this->downloadErrorTemplate, $this->defaultContext); goto qAJZ0BO50iuOydD; k2VNmMsNinE2rav: if (!$this->isTakedown) { goto kDy7d30wP0yDikn; } goto r3pnhiCvt2td3nT; EhFAt26OeBYIjEA: $this->videoTitle = sanitize_html($videoInfo["title"]); goto psJU_1prXbhoPLJ; vuxI5wr6YTQ9tnY: $playerConfig = $this->security->kirimData($playerConfig); goto KvXmUzJR2Vg5W4J; ZshI3kYSrMXEtkk: if (!isset($servers[$serverActive])) { goto hRlnaBiHKu8DGlW; } goto Gqw7dGJ_DMCZzWS; qAJZ0BO50iuOydD: kDy7d30wP0yDikn: goto yPspFF9DrEOY5Cj; gVK8QhSbapbPDgA: $this->videoPoster = $this->helper->posterParser($videoInfo["poster"]); goto OuYN5uYdlm2002w; OuYN5uYdlm2002w: $hostname = $this->supportedSites[$videoInfo["host"]] ?? $this->defaultHostLabel; goto CXBI03wK0cbDIrH; OQGapYbdVahyvZA: $isDirectHost = $servers[$serverActive]["host"] === "direct" || $this->isSafariBrowser; goto a0eqnv9QpTPv1mK; E_0v__rYC6PJXni: $this->defaultContext["isError"] = true; goto xd0LkDUP0zcy0vC; dWxUIy0u0yRoHlr: $apiURL = BASE_URL; goto DMM9XXUHSm3Qz0w; qGcqKeH0awVI9Na: NwEEr4R8UfABvYJ: goto AsKUTu8P54xOCr5; HlE5b0PnntCTvD3: session_write_close(); goto EhFAt26OeBYIjEA; psJU_1prXbhoPLJ: $this->isTakedown = intval($videoInfo["dmca"]) > 0 || is_title_blacklisted($videoInfo["title"]); goto gVK8QhSbapbPDgA; uWayPEB8LqFNrVu: $servers = array_merge($servers, $this->getVideoAlternatives($this->apiQuery["id"])); goto dGw2GdHavwRWr19; HRzItTkinDswAMg: $this->apiQuery["token"] = $this->security->encryptURL(getUserIP()); goto Hz33CRSlpdlCciQ; UZeTY9GcCZPKRHO: $productionMode = validate_boolean(get_option("production_mode")); goto TJUPKrLcSCj5xXA; Gi3y12tTH2ZRcie: $servers = []; goto Y7pjMHT3V0bZ4Ny; dGw2GdHavwRWr19: IBESRI7qcwUXtY0: goto k2VNmMsNinE2rav; Gqw7dGJ_DMCZzWS: session_write_close(); goto OQGapYbdVahyvZA; R58GB6NPsBUV8Ky: if (is_load_balancer()) { goto eH1S7Xq8fQpmLIM; } goto M03hRagEEiV90S7; KvXmUzJR2Vg5W4J: $context = ["isSSL" => isSSL(), "isDirectHost" => $isDirectHost, "text_title" => "Download {title} - {siteName}", "isError" => $this->isError, "message" => $this->messageText, "title" => $this->videoTitle, "poster" => $this->videoPoster, "embedLink" => $embedLink, "servers" => $servers, "productionMode" => $productionMode, "topBanner" => get_option("dl_banner_top"), "bottomBanner" => get_option("dl_banner_bottom"), "playerConfig" => $playerConfig]; goto er1gbECsQ9df8s2; bpFOS6t5Ia1FWej: $isDirectHost = false; goto sHjpwaNBNuPfi6K; HZhG75iH2ZDeHlF: $this->defaultContext["isError"] = $this->isTakedown; goto lEUYOqYgKmamp1s; sHjpwaNBNuPfi6K: $serverActive = array_search(true, array_column($servers, "active")); goto ZshI3kYSrMXEtkk; ob7rc1m0fLIb0qS: $apiSourceURL = $this->getAPISourcesURL($servers[$serverActive]["host"], $servers[$serverActive]["host_id"]); goto nngI_oZyPSARuHg; nngI_oZyPSARuHg: $selectedHosts[] = $servers[$serverActive]["host"]; goto jd4yJk1kk4BxzrX; M03hRagEEiV90S7: session_write_close(); goto ob7rc1m0fLIb0qS; DMM9XXUHSm3Qz0w: $servers = array_merge($servers, $this->getServers()); goto bpFOS6t5Ia1FWej; KNFEVXuyGdg_Lj5: eH1S7Xq8fQpmLIM: goto b2J7XOO7d7Y5NXr; b2J7XOO7d7Y5NXr: hRlnaBiHKu8DGlW: goto j2tiEQnVd52F8Pf; Y7pjMHT3V0bZ4Ny: if (!$videoInfo) { goto IBESRI7qcwUXtY0; } goto HlE5b0PnntCTvD3; j2tiEQnVd52F8Pf: $embedLink = sanitize_url(strtr($_SERVER["REQUEST_URI"], ["/" . $this->downloadSlug . "/" => "/" . get_option("slug_embed") . "/"])); goto UZeTY9GcCZPKRHO; xd0LkDUP0zcy0vC: $this->defaultContext["message"] = self::MESSAGE_UNAVAILABLE; goto ozTY4tk2M8KY33G; yPspFF9DrEOY5Cj: $context = []; goto dWxUIy0u0yRoHlr; JBxO3gsGsVBp_5L: $playerConfig = array("baseURL" => sanitize_url(BASE_URL), "player" => $this->player, "message" => $this->messageText, "hosts" => array_column($servers, "host"), "blockADB" => validate_boolean(get_option("block_adblocker")), "enableShare" => validate_boolean(get_option("enable_share_button")), "apiURL" => sanitize_url($apiURL), "query" => $this->security->encryptURL(http_build_query($this->apiQuery)), "disableDirectAds" => validate_boolean(get_option("disable_direct_ads")), "directAdsLink" => sanitize_url(get_option("direct_ads_link")), "embedLink" => $embedLink, "productionMode" => $productionMode); goto vuxI5wr6YTQ9tnY; ozTY4tk2M8KY33G: return $this->html->renderTemplate($this->downloadErrorTemplate, $this->defaultContext); goto qGcqKeH0awVI9Na; jd4yJk1kk4BxzrX: $apiURL = $apiSourceURL ? $apiSourceURL : get_load_balancer_rand($selectedHosts); goto KNFEVXuyGdg_Lj5; TJUPKrLcSCj5xXA: $this->apiQuery["download"] = true; goto HRzItTkinDswAMg; r3pnhiCvt2td3nT: session_write_close(); goto HZhG75iH2ZDeHlF; a0eqnv9QpTPv1mK: $selectedHosts = []; goto R58GB6NPsBUV8Ky; tG1ec9AlJYhuoaE: session_write_close(); goto E_0v__rYC6PJXni; E62e1jU3s6vg5Xg: session_write_close(); goto T9_Ju7__ubK3Bnb; er1gbECsQ9df8s2: return $this->html->renderTemplate($this->downloadTemplate, array_merge($this->defaultContext, $context)); goto p0wejCPi2g6mNf6; AsKUTu8P54xOCr5: $videoInfo = $this->getVideoInfo(); goto Gi3y12tTH2ZRcie; p0wejCPi2g6mNf6: } private function embedPageData() { goto RlBnYVJFv0ITeDq; aCB28H1X6VPN1c9: a_XpNAXt74WRvPQ: goto yKHqEO4cy8wRYRM; Ep1Lukz7d3Sy0yP: jxdbRTGesXuFhGY: goto yGoFitKau2fJ_64; VlgVt5j2iHl_PaD: $query = $this->apiQuery; goto h3FI2SCJsOQTvOb; SaJAuR55hwxZYR4: return $this->html->renderTemplate($this->playerTemplate, array_merge($this->defaultContext, $context)); goto lOdG80Afk0Ub6Pc; hvQQfqsGC3M31B5: $preload = get_option("preload") ?? "auto"; goto t3noLOkUnLarsQo; KTZG7ONkAcFbuqN: if (!isset($_GET["mute"])) { goto tBd3tDxBw9Xj4ol; } goto xHTwLnCF9LSXugD; Bt62MkNVVEeWc2J: NKHkJE9NizV2O3N: goto M0Ur05Mt2gZkD5c; fqXO6TVdd7rWvJo: $this->videoPoster = $this->helper->posterParser($videoInfo["poster"]); goto iUgCE5wpelNlbBR; xJkS7aDDYVKYAOQ: zCF23TkJdYBkRBn: goto Bt62MkNVVEeWc2J; XMDjr7dGXsP6cwE: $context = ["isSSL" => isSSL(), "isDirectHost" => $isDirectHost, "text_title" => sanitize_html(get_option("text_title") ?? "Watch {title} - {siteName}"), "text_resume" => sanitize_html(get_option("text_resume") ?? "Welcome back! You left off at hh:mm:ss. Would you like to resume watching?"), "text_resume_no" => sanitize_html(get_option("text_resume_no") ?? "No, Thanks"), "text_resume_yes" => sanitize_html(get_option("text_resume_yes") ?? "Yes, Please"), "text_close_ads" => sanitize_html(get_option("text_close_ads") ?? "Close Ads"), "isError" => $this->isError, "message" => $this->messageText, "title" => $this->videoTitle, "poster" => $this->videoPoster, "randomSource" => validate_boolean(get_option("load_balancer_rand")), "servers" => $servers, "enableP2P" => $enableP2P, "playerVersion" => $this->playerVersion, "playerColor" => "#" . $this->playerColor, "productionMode" => $productionMode, "preload" => $preload, "playerConfig" => $playerConfig]; goto SaJAuR55hwxZYR4; STHHiCw8a3z803M: $servers[] = ["host" => $videoInfo["host"], "host_id" => $videoInfo["host_id"], "name" => strtr($hostname, self::REMOVE_NAMESERVER), "url" => $this->embedURL . $this->defaultAlternative, "active" => $this->selectedServer === -1]; goto ad2W26syJ0z7bvF; hwZGrVJwR5A3604: $autoplay = $_GET["autoplay"]; goto Ep1Lukz7d3Sy0yP; gPKvpzEYwNrFIUI: $selectedHosts = []; goto XXzOEqwNoPBx83h; B0hsDlJjrN3KY6k: $playerConfig = $this->security->kirimData($playerConfig); goto XMDjr7dGXsP6cwE; lf8UKzVoeuNpIju: $videoInfo = $this->getVideoInfo(); goto FeSLqbYRvFzsN_U; t3noLOkUnLarsQo: $this->apiQuery["token"] = $this->security->encryptURL(getUserIP()); goto rgUo0FMr12FXbiS; kZwcWlPcEoe4MVR: $enableP2P = validate_boolean(get_option("p2p")) && !$this->isSafariBrowser; goto WOd28nzqvFBry6o; KHC3_hrM7l3ehI1: $selectedHosts[] = $servers[$serverActive]["host"]; goto seqLFDUVoB9piiO; lGQ4kEEc0CH7yqF: $this->isTakedown = intval($videoInfo["dmca"]) > 0 || is_title_blacklisted($videoInfo["title"]); goto fqXO6TVdd7rWvJo; H2Y8DFoftb2S1T3: $serverActive = array_search(true, array_column($servers, "active")); goto f_1ojIHWxv46B6_; XXzOEqwNoPBx83h: if (is_load_balancer()) { goto zCF23TkJdYBkRBn; } goto GiuwXK875k8Ffl_; IahFC287rNzpTQn: if (!isset($_GET["autoplay"])) { goto jxdbRTGesXuFhGY; } goto jmKl4qJO2K8qdPH; DjScv26h1wyMGMe: $context = []; goto gxBAw6oT8LB4970; R0087LpKu0O8f6o: $this->defaultContext["message"] = self::MESSAGE_TAKEDOWN; goto HkRLMYVsfDeGFSJ; qGQkqGzxX2S3a6M: if (!$videoInfo) { goto a_XpNAXt74WRvPQ; } goto SYEi8IxRyx3RGat; FeSLqbYRvFzsN_U: $servers = []; goto qGQkqGzxX2S3a6M; cJP0M7NW3k6QNIh: $this->videoTitle = sanitize_html($videoInfo["title"]); goto lGQ4kEEc0CH7yqF; M0Ur05Mt2gZkD5c: $productionMode = validate_boolean(get_option("production_mode")); goto kZwcWlPcEoe4MVR; HL9zA7fnlaidnDU: P_yICVytmJlKn9r: goto DjScv26h1wyMGMe; vQZQvOK1n9O2HXp: $this->defaultContext["title"] = self::MESSAGE_TAKEDOWN; goto R0087LpKu0O8f6o; SYEi8IxRyx3RGat: session_write_close(); goto cJP0M7NW3k6QNIh; Ok9AGc46TXfe6Mp: $playerConfig = array("baseURL" => sanitize_url(BASE_URL), "player" => $this->player, "message" => $this->messageText, "enableP2P" => $enableP2P, "hosts" => array_column($servers, "host"), "autoplay" => validate_boolean($autoplay), "mute" => validate_boolean($mute), "preload" => $preload, "repeat" => validate_boolean(get_option("repeat")), "stretching" => sanitize_html(get_option("stretching")), "displayTitle" => validate_boolean(get_option("display_title")), "displayRateControls" => validate_boolean(get_option("playback_rate")), "captionsColor" => "#" . sanitize_html(get_option("subtitle_color")), "playerSkin" => $this->playerSkin, "vastAds" => get_vast(), "localKey" => hash_hmac("sha256", trim($this->embedURL, "?#"), SECURE_SALT), "blockADB" => validate_boolean(get_option("block_adblocker")), "enableShare" => validate_boolean(get_option("enable_share_button")), "logoHide" => validate_boolean(get_option("logo_hide")), "logoPosition" => sanitize_html(get_option("logo_position")), "visitAdsOnplay" => validate_boolean(get_option("visitads_onplay")), "logoImage" => sanitize_url(get_option("logo_file")), "logoLink" => sanitize_url(get_option("logo_open_link")), "torrentList" => explode("\xa", strtr(get_option("torrent_tracker"), [" 
" => " 
"])), "apiURL" => sanitize_url($apiURL), "apiQuery" => $this->security->encryptURL(http_build_query($this->apiQuery)), "query" => $this->security->encryptURL(http_build_query($query)), "token" => $this->apiQuery["token"], "disableDirectAds" => validate_boolean(get_option("disable_direct_ads")), "directAdsLink" => sanitize_url(get_option("direct_ads_link")), "smallLogoFile" => sanitize_url(get_option("small_logo_file")), "smallLogoLink" => sanitize_url(get_option("small_logo_link")), "playerColor" => "#" . $this->playerColor, "rgbColor" => $this->playerColorRGB, "text_rewind" => sanitize_html(get_option("text_rewind") ?? "Rewind 10 Seconds"), "text_forward" => sanitize_html(get_option("text_forward") ?? "Forward 10 Seconds"), "text_download" => sanitize_html(strtr(get_option("text_download"), ["{title}" => $this->videoTitle]) ?? "Download " . $this->videoTitle), "downloadLink" => sanitize_url(strtr($_SERVER["REQUEST_URI"], ["/" . $this->embedSlug . "/" => "/" . get_option("slug_download") . "/"])), "productionMode" => $productionMode, "resumePlayback" => validate_boolean(get_option("continue_watching")), "statCounterRuntime" => intval(get_option("visit_counter_runtime")), "showDownloadButton" => validate_boolean(get_option("enable_download_button")), "enableDownloadPage" => validate_boolean(get_option("enable_download_page")), "defaultResolution" => intval(get_option("default_resolution")), "logoMargin" => intval(get_option("logo_margin")), "pauseOnLeft" => validate_boolean(get_option("pause_on_left"))); goto B0hsDlJjrN3KY6k; gxBAw6oT8LB4970: $apiURL = BASE_URL; goto M9ynAAYBlx6UOjD; ad2W26syJ0z7bvF: $servers = array_merge($servers, $this->getVideoAlternatives($this->apiQuery["id"])); goto aCB28H1X6VPN1c9; ljGQFGb0BpVPmmE: $isDirectHost = false; goto H2Y8DFoftb2S1T3; BFKnZg3p7jiy5wq: session_write_close(); goto AlmFTgI0XmS70ib; h3FI2SCJsOQTvOb: unset($query["token"]); goto Ok9AGc46TXfe6Mp; yKHqEO4cy8wRYRM: if (!$this->isTakedown) { goto P_yICVytmJlKn9r; } goto RSsN4mBXuoYfYiF; iUgCE5wpelNlbBR: $hostname = $this->supportedSites[$videoInfo["host"]] ?? $this->defaultHostLabel; goto STHHiCw8a3z803M; Cau4e0f0NTw_tY9: $this->defaultContext["isError"] = $this->isTakedown; goto vQZQvOK1n9O2HXp; jmKl4qJO2K8qdPH: session_write_close(); goto hwZGrVJwR5A3604; f_1ojIHWxv46B6_: if (!isset($servers[$serverActive])) { goto NKHkJE9NizV2O3N; } goto BFKnZg3p7jiy5wq; yGoFitKau2fJ_64: $mute = get_option("mute"); goto KTZG7ONkAcFbuqN; GiuwXK875k8Ffl_: session_write_close(); goto nHFVEI2nfVandQ4; rgUo0FMr12FXbiS: $this->apiQuery = array_filter($this->apiQuery, function ($val, $key) { session_write_close(); return !empty($val) && !empty($key); }, ARRAY_FILTER_USE_BOTH); goto VlgVt5j2iHl_PaD; HkRLMYVsfDeGFSJ: return $this->html->renderTemplate($this->errorTemplate, $this->defaultContext); goto HL9zA7fnlaidnDU; seqLFDUVoB9piiO: $apiURL = $apiSourceURL ? $apiSourceURL : get_load_balancer_rand($selectedHosts); goto xJkS7aDDYVKYAOQ; RlBnYVJFv0ITeDq: session_write_close(); goto lf8UKzVoeuNpIju; AlmFTgI0XmS70ib: $isDirectHost = $servers[$serverActive]["host"] === "direct" || $this->isSafariBrowser; goto gPKvpzEYwNrFIUI; WOd28nzqvFBry6o: $autoplay = get_option("autoplay"); goto IahFC287rNzpTQn; C1S_N4LBBI4F_eb: $mute = $_GET["mute"]; goto mrGfmS5ZzWfdTNh; RSsN4mBXuoYfYiF: session_write_close(); goto Cau4e0f0NTw_tY9; nHFVEI2nfVandQ4: $apiSourceURL = $this->getAPISourcesURL($servers[$serverActive]["host"], $servers[$serverActive]["host_id"]); goto KHC3_hrM7l3ehI1; M9ynAAYBlx6UOjD: $servers = array_merge($servers, $this->getServers()); goto ljGQFGb0BpVPmmE; mrGfmS5ZzWfdTNh: tBd3tDxBw9Xj4ol: goto hvQQfqsGC3M31B5; xHTwLnCF9LSXugD: session_write_close(); goto C1S_N4LBBI4F_eb; lOdG80Afk0Ub6Pc: } public function getEmbedPage() { goto pxckVEwiACHr53F; fbZT_vkUnb62W9m: $this->defaultContext["title"] = self::MESSAGE_UNAVAILABLE; goto sx5qP2PJLcruvBD; SYl_V0Dlxb7HzkN: $this->defaultContext["message"] = self::MESSAGE_PLAYER_EMPTY; goto plTY5YvW1lXVS80; OOEYIIZQoDfCHAS: session_write_close(); goto vE_sB_HRPRf0hnz; c9AaAFKO3SIVpjm: session_write_close(); goto XZZsg_2fCF19yI3; vE_sB_HRPRf0hnz: $this->defaultContext["isError"] = true; goto Amj9iDL5csgJv8x; Ng7wJkgb_lp8omo: goto evNlCI3u9NrCFJx; goto E6TNyOR3Ity8UQA; pxckVEwiACHr53F: session_write_close(); goto lf77QZe0fAHDfa2; bS5YZFxP9f4jqdF: MJVnmr3ywaF2q_g: goto ZzuKQbBNTCsE2HA; ryZ378kUJoxhcsp: if (empty($this->apiQuery["id"])) { goto MJVnmr3ywaF2q_g; } goto wbWD24GOVQOmvXV; XZZsg_2fCF19yI3: $result = $this->getAccessDeniedPage(false); goto Ng7wJkgb_lp8omo; sx5qP2PJLcruvBD: $this->defaultContext["message"] = self::MESSAGE_UNAVAILABLE; goto QKduDu9nsKeQ01n; wbWD24GOVQOmvXV: if (validate_boolean(get_option("embed_only")) && empty($_SERVER["HTTP_REFERER"])) { goto adM14guBjW3Gige; } goto lUJkKu4clZdzJaP; QFIGeoHiQIl1SL7: adM14guBjW3Gige: goto c9AaAFKO3SIVpjm; FFlmJ5o3xMksaBW: $result = $this->embedPageData(); goto dXS_MVfNiaCVK3d; dXS_MVfNiaCVK3d: goto evNlCI3u9NrCFJx; goto bS5YZFxP9f4jqdF; RukL0pNm21d3nnL: session_write_close(); goto FFlmJ5o3xMksaBW; plTY5YvW1lXVS80: $result = $this->html->renderTemplate($this->errorTemplate, $this->defaultContext); goto ORMhYSc0zrMHG6I; lf77QZe0fAHDfa2: $result = ''; goto ryZ378kUJoxhcsp; ZzuKQbBNTCsE2HA: session_write_close(); goto aSL8d1LQs_1Nn1I; AONl0a7aE4lR1C1: return $result; goto AoD4WrWBJY56oXp; QKduDu9nsKeQ01n: $result = $this->html->renderTemplate($this->errorTemplate, $this->defaultContext); goto nbuMakBSX1eJkGw; E6TNyOR3Ity8UQA: sMzhNAoTx6tJusH: goto OOEYIIZQoDfCHAS; lUJkKu4clZdzJaP: if (empty($this->player)) { goto sMzhNAoTx6tJusH; } goto RukL0pNm21d3nnL; Amj9iDL5csgJv8x: $this->defaultContext["title"] = self::MESSAGE_PLAYER_EMPTY; goto SYl_V0Dlxb7HzkN; ORMhYSc0zrMHG6I: evNlCI3u9NrCFJx: goto AONl0a7aE4lR1C1; aSL8d1LQs_1Nn1I: $this->defaultContext["isError"] = true; goto fbZT_vkUnb62W9m; nbuMakBSX1eJkGw: goto evNlCI3u9NrCFJx; goto QFIGeoHiQIl1SL7; AoD4WrWBJY56oXp: } }  ?>

Did this file decode correctly?

Original Code

<?php 
/*   __________________________________________________ 
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.14  | 
    |              on 2023-01-07 09:41:40              | 
    |    GitHub: https://github.com/pk-fr/yakpro-po    | 
    |__________________________________________________| 
*/ 
 namespace GDPlayer; use GDPlayer\Core; use GDPlayer\Security; use GDPlayer\HTML; use GDPlayer\Hosting; use GDPlayer\Helper; use GDPlayer\Model\Videos; use GDPlayer\Model\VideoShort; use GDPlayer\Model\VideosAlternatives; use GDPlayer\Model\VideoSources; use GDPlayer\Model\LoadBalancers; class Player { const MESSAGE_ACCESS_DENIED = "Access Denied"; const MESSAGE_UNAVAILABLE = "Sorry this videos is unavailable"; const MESSAGE_TAKEDOWN = "DMCA Takedown"; const MESSAGE_PLAYER_EMPTY = "Please set the video player first"; const REMOVE_NAMESERVER = ["|New" => '', "|Additional Host" => '']; private $core; private $html; private $security; private $hosting; private $videos; private $vShort; private $vAlt; private $vSources; private $balancer; private $helper; private $defaultContext = []; private $isTakedown = false; private $isError = false; private $errorTemplate = "embed-error.html.twig"; private $downloadErrorTemplate = "download-error.html.twig"; private $browserLanguage = "en"; private $themeColor = "#673ab7"; private $videoTitle = ''; private $videoPoster = ''; private $player = "plyr"; private $playerSkin = "default"; private $playerTemplate = "embed-plyr.html.twig"; private $downloadTemplate = "download.html.twig"; private $playerVersion = "8.9.5"; private $playerColor = "673ab7"; private $playerColorRGB = "103, 58, 183"; private $embedURL = ''; private $embedSlug = "embed"; private $downloadSlug = "download"; private $videoCustomSlug = ''; private $originalQry = []; private $apiQuery = []; private $allowedQueries = ["host", "ahost", "id", "aid", "poster", "sub", "lang", "source"]; private $supportedSites = []; private $selectedServer = -1; private $messageText = "Please wait..."; private $defaultAlternative = "alt=-1"; private $defaultHostLabel = "Direct Link"; private $isSafariBrowser = false; public function __construct() { goto KKbuZR03P6t7wwU; BMvM1dBk9A1Om21: $uri = get_page_uris(); goto ge3R5ErcAkE0lgI; pazotPCDQ3pqfLt: if (!($this->player === "jwplayer_latest")) { goto IxCjS5U9bqx2Fk0; } goto QjBWdwmAb_uR4Rb; gyAmvo8xj5SoTOx: session_write_close(); goto zGfkRSJmAeue8YZ; rxavm_Nobxo7zf7: IxCjS5U9bqx2Fk0: goto MUgxBh5Rw_iSqAX; IyLSx2xxwOtwFB5: $this->isError = true; goto w5LJAFpXNUN5kC1; zrr6T8duu4qfIuK: session_write_close(); goto L7nwPuHiiieFPB1; xzqngFle4mAbW4Q: goto y9IJAohhqOFK6gG; goto bTetlRMxUZFe2TF; NfaWcA0y9bbj6JF: if (is_file($fileGeneralBackground)) { goto i3P_HKFDWDFjrkH; } goto gaVqr8ojkVT5ikF; d4wApLZXylN0Ri9: $this->supportedSites = $this->hosting->supportedSites(); goto ETiWpWj_wK97utB; i1ANHX0LVHqdjW2: $this->videoPoster = sanitize_url(get_option("poster")); goto FobsFztXHolx9SU; CXL0kU1ShV2rMik: $keys = array_keys($qry); goto cfxyGCln8iLhNup; I4M6I8dfNWaVnnX: parse_str($decrypt, $qryParser); goto prskqd_cC_O59tR; U_anFoq6kDm3miv: if (!empty($uri[0])) { goto XL0AZqXc6BIR7ms; } goto TuhYB5u3wm_LgY9; hLxkT73sm9bHJpS: if (empty($_SERVER["QUERY_STRING"])) { goto Jx0KACLr9G05Pss; } goto g8M9nbOd_i1eOlo; e6ivdQ9uJ0WsPtD: $rgbColor = hex2RGB($this->playerColor, true, ","); goto Uykd0J_bwAolev2; Qfajog6IPUv3ztc: KM3cPak7ZxC9ztI: goto thl2_9o30Kbekp_; zGfkRSJmAeue8YZ: $this->messageText = $messageText; goto B5XHvknnJkBS1ng; yK0gbe7_jHXDcze: session_write_close(); goto WxCceFfNjqK24Vi; fgYLRk_YCg__PSf: parse_str($decrypt2, $qryParser); goto yE2IqJTK0vzsDGG; bTetlRMxUZFe2TF: XL0AZqXc6BIR7ms: goto yK0gbe7_jHXDcze; BN3M484_JBNmJf0: $this->core = new Core(); goto JcaHCIKBwBDtwyv; FIoT4RdNGvf_z32: $this->getVideoByCustomSlug(); goto DuAWKJYI7vZDCQc; prskqd_cC_O59tR: goto fZDoZVdDkxxcmyo; goto Qfajog6IPUv3ztc; BcMCkmPgog8DvWD: $this->embedURL .= $uri[0] . "?"; goto FIoT4RdNGvf_z32; lCb44UEkb1FHYPH: KzBCFNbLbyxjwYI: goto JJvaggfb_r4xI1V; ge3R5ErcAkE0lgI: $this->embedSlug = $uri[0]; goto EyKT7DmpILUCrgO; g8M9nbOd_i1eOlo: session_write_close(); goto DVX55AC3fMLw2ys; DVX55AC3fMLw2ys: parse_str($_SERVER["QUERY_STRING"], $qry); goto CXL0kU1ShV2rMik; WxCceFfNjqK24Vi: $this->videoCustomSlug = $uri[0]; goto BcMCkmPgog8DvWD; loW8iJxnV4KB3Qg: vW2dvY0_sf9dEnU: goto KYoSqOwnMtVRQ5M; w3aq5ZwOteMctDp: if (empty($this)) { goto I6VXKcfkVnQh_vO; } goto gyAmvo8xj5SoTOx; oHlaa6qt5jzD6L0: MXSrwjVSJxFEgjY: goto Rx6BWUu2Yoiq6CH; QQBMX8G30V7Ddij: $decrypt2 = $this->security->decryptURL($keys[0]); goto x98MpKtaJ0nG8Lh; thl2_9o30Kbekp_: session_write_close(); goto fgYLRk_YCg__PSf; yE2IqJTK0vzsDGG: fZDoZVdDkxxcmyo: goto Xtj7EA24leF12Yc; J4X0BzaErsp88TJ: $this->selectedServer = intval($_GET["alt"]); goto ThzANXqJlh3xYmA; hpMXI88hcG9wN8K: if (empty($_SERVER["HTTP_ACCEPT_LANGUAGE"])) { goto vW2dvY0_sf9dEnU; } goto zrr6T8duu4qfIuK; DuAWKJYI7vZDCQc: goto y9IJAohhqOFK6gG; goto shxc2niWkMD0IUK; A8NzgPI6_Y06_kR: session_write_close(); goto y8vg0tMMG7qrUUG; Rx6BWUu2Yoiq6CH: session_write_close(); goto I4M6I8dfNWaVnnX; eCHS2e988TwqyyR: $this->defaultContext = ["lang" => $this->browserLanguage, "baseURL" => sanitize_url(BASE_URL), "themeColor" => $this->themeColor, "siteName" => sitename(), "title" => $this->videoTitle, "isError" => $this->isError, "message" => $this->messageText, "GA" => $this->html->google_alaytics(), "GTM_Head" => $this->html->GTM_head(), "GTM_body" => $this->html->GTM_body(), "PopupAds" => $this->html->popupads(), "Histats" => $this->html->histats()]; goto d4wApLZXylN0Ri9; u3W6mlY3SXYT1jU: $this->themeColor = "#" . sanitize_html(get_option("pwa_themecolor")); goto i1ANHX0LVHqdjW2; vZENuhizWMaBHBL: session_write_close(); goto MoXHP0xPG7EoL6b; f1XTLddK7BDGtmg: i3P_HKFDWDFjrkH: goto XB7QOybmzSTT_tQ; ThzANXqJlh3xYmA: $this->apiQuery["alt"] = $this->selectedServer; goto lCb44UEkb1FHYPH; L7nwPuHiiieFPB1: $ex = explode(",", $_SERVER["HTTP_ACCEPT_LANGUAGE"]); goto q2CdY2vGxeBWt3W; XB7QOybmzSTT_tQ: $this->isSafariBrowser = isset($_SERVER["HTTP_USER_AGENT"]) && stripos($_SERVER["HTTP_USER_AGENT"], "Version/") !== false && stripos($_SERVER["HTTP_USER_AGENT"], "Safari/") !== false; goto hpMXI88hcG9wN8K; frCSi0d7x4uLgKQ: goto fZDoZVdDkxxcmyo; goto oHlaa6qt5jzD6L0; fZDaeYUaGuQcXfM: $this->vShort = new VideoShort(); goto SBkgmgzG1OnmmSl; Mba6yngqiZm17og: $this->originalQry = array_filter($this->apiQuery, function ($key) { session_write_close(); return in_array($key, $this->allowedQueries); }, ARRAY_FILTER_USE_KEY); goto sjqNYPxauLepl6q; KYoSqOwnMtVRQ5M: $messageText = sanitize_html(get_option("text_loading")); goto w3aq5ZwOteMctDp; q2CdY2vGxeBWt3W: $this->browserLanguage = sanitize_html($ex[0]); goto loW8iJxnV4KB3Qg; B5XHvknnJkBS1ng: I6VXKcfkVnQh_vO: goto u3W6mlY3SXYT1jU; EyKT7DmpILUCrgO: $this->embedURL = BASE_URL . $this->embedSlug . "/"; goto hLxkT73sm9bHJpS; FobsFztXHolx9SU: $this->player = sanitize_html(get_option("player")); goto pazotPCDQ3pqfLt; sjqNYPxauLepl6q: Jx0KACLr9G05Pss: goto ifR8gB3PpV6UEKu; cozgOVGCK0KBlDk: $this->playerColor = $this->getPlayerColor($this->playerSkin); goto e6ivdQ9uJ0WsPtD; X_faLaNW0Gqz7Ru: $this->hosting = new Hosting(); goto VuSZmlgwpyC6NYI; JcaHCIKBwBDtwyv: $this->helper = new Helper(); goto QcNGmnHQuGNnak6; y8vg0tMMG7qrUUG: $qryParser = $qry; goto frCSi0d7x4uLgKQ; Gd596oBlKY5onrU: ppjmnHsn70c6Oc2: goto BMvM1dBk9A1Om21; JkWwSU0bG5GEtlK: $this->playerVersion = "latest"; goto rxavm_Nobxo7zf7; JJvaggfb_r4xI1V: array_splice($uri, 0, 1); goto U_anFoq6kDm3miv; G1VMZcC0bG5gmmK: $fileGeneralBackground = replaceSeparator(BASE_DIR . "includes/bg_general.php"); goto NfaWcA0y9bbj6JF; XH2350opvDF58vH: $this->playerSkin = sanitize_html(get_option("player_skin")); goto cozgOVGCK0KBlDk; BP4gp9JFPOL1ELu: session_write_close(); goto J4X0BzaErsp88TJ; TKOd72os5DkJHgO: if ($decrypt2) { goto KM3cPak7ZxC9ztI; } goto A8NzgPI6_Y06_kR; zOkdVMISXHw0k7m: session_write_close(); goto hm00sFDtASVJXFu; QjBWdwmAb_uR4Rb: session_write_close(); goto RrXQ_ouLhhhMcfn; Uykd0J_bwAolev2: if (!$rgbColor) { goto ppjmnHsn70c6Oc2; } goto zOkdVMISXHw0k7m; Xtj7EA24leF12Yc: $this->apiQuery = array_filter($qry, function ($val) { session_write_close(); return is_numeric($val) || !empty($val); }); goto VnahZrtdpdUkdWG; VuSZmlgwpyC6NYI: $this->videos = new Videos(); goto fZDaeYUaGuQcXfM; MoXHP0xPG7EoL6b: $this->embedURL .= "?" . $this->security->encryptURL(http_build_query($this->originalQry)) . "&"; goto af7q9HqvPd2eRwz; SBkgmgzG1OnmmSl: $this->vAlt = new VideosAlternatives(); goto SWDa9aC5V9mwVwv; KKbuZR03P6t7wwU: session_write_close(); goto BN3M484_JBNmJf0; QcNGmnHQuGNnak6: $this->html = new HTML(); goto ZHNzujopQpK28kL; ifR8gB3PpV6UEKu: if (!isset($_GET["alt"])) { goto KzBCFNbLbyxjwYI; } goto BP4gp9JFPOL1ELu; gaVqr8ojkVT5ikF: session_write_close(); goto IyLSx2xxwOtwFB5; shxc2niWkMD0IUK: QvN15jsafWM4Cmm: goto vZENuhizWMaBHBL; VnahZrtdpdUkdWG: $this->apiQuery = array_merge($qryParser, $qry); goto Mba6yngqiZm17og; hm00sFDtASVJXFu: $this->playerColorRGB = $rgbColor; goto Gd596oBlKY5onrU; TuhYB5u3wm_LgY9: if (!empty($this->originalQry)) { goto QvN15jsafWM4Cmm; } goto xzqngFle4mAbW4Q; SWDa9aC5V9mwVwv: $this->vSources = new VideoSources(); goto FWyyIunwsZKZ5X_; af7q9HqvPd2eRwz: y9IJAohhqOFK6gG: goto eCHS2e988TwqyyR; MUgxBh5Rw_iSqAX: $this->playerTemplate = "embed-" . $this->player . ".html.twig"; goto XH2350opvDF58vH; RrXQ_ouLhhhMcfn: $this->player = "jwplayer"; goto JkWwSU0bG5GEtlK; x98MpKtaJ0nG8Lh: if ($decrypt) { goto MXSrwjVSJxFEgjY; } goto TKOd72os5DkJHgO; ZHNzujopQpK28kL: $this->security = new Security(); goto X_faLaNW0Gqz7Ru; cfxyGCln8iLhNup: $decrypt = decode($keys[0]); goto QQBMX8G30V7Ddij; FWyyIunwsZKZ5X_: $this->balancer = new LoadBalancers(); goto G1VMZcC0bG5gmmK; w5LJAFpXNUN5kC1: $this->messageText = "Site not available. Please contact Admin!"; goto f1XTLddK7BDGtmg; ETiWpWj_wK97utB: } private function getPlayerColor(string $skin = "default") { goto sDUAQCS1uaSnFig; TtSQKyTei1ojdN1: $result = $playersColors[$skin]; goto Rd8DUgZhGuHOYW1; Rd8DUgZhGuHOYW1: LfKdocHNLGnQRAT: goto Jhd3zUe73Fs4vnq; YDRNTj2KflzIl7N: session_write_close(); goto TtSQKyTei1ojdN1; gtJxKVWm5o1lt54: $result = $playersColors["default"]; goto SuYchROwooXRVMw; sDUAQCS1uaSnFig: session_write_close(); goto UVtXKkCsxwYO02p; SuYchROwooXRVMw: if (!isset($playersColors[$skin])) { goto LfKdocHNLGnQRAT; } goto YDRNTj2KflzIl7N; Jhd3zUe73Fs4vnq: return $result; goto P1SHM1WwtcV1jJX; UVtXKkCsxwYO02p: $playersColors = ["netflix" => "e50914", "hotstar" => "1f80e0", "iqiyi" => "00c234", "default" => sanitize_html(get_option("player_color") ?? "673ab7")]; goto gtJxKVWm5o1lt54; P1SHM1WwtcV1jJX: } private function getVideoByCustomSlug() { goto MFQgm2aJ7WN5u91; eaLfoOLW5xf9t73: session_write_close(); goto ZMZQjfmqGM6Luk6; VKKFgb6FKRiSi0T: $this->apiQuery["id"] = $data["vid"]; goto udF4SJfgGwo7wZE; udF4SJfgGwo7wZE: g8M_TWg2G6n0VFH: goto jY2b4mestCplWuS; MFQgm2aJ7WN5u91: session_write_close(); goto Ozu8AnLUrxyUKC0; QHFydXTW7pKR0_h: session_write_close(); goto oLkn5dJCUZPqr0v; ZMZQjfmqGM6Luk6: $this->apiQuery["source"] = "db"; goto VKKFgb6FKRiSi0T; Ozu8AnLUrxyUKC0: $this->vShort->setCriteria("key", rawurldecode($this->videoCustomSlug)); goto um0C13l03A6YEW0; mVyw8UeuhpR5Uws: goto g8M_TWg2G6n0VFH; goto FtA3IyE_RCSJNYG; DyiTsMJHFTOqja9: if ($data) { goto BAH5BOJi3n26pjx; } goto QHFydXTW7pKR0_h; oLkn5dJCUZPqr0v: $this->isError = true; goto mVyw8UeuhpR5Uws; um0C13l03A6YEW0: $data = $this->vShort->getOne(["vid"]); goto DyiTsMJHFTOqja9; FtA3IyE_RCSJNYG: BAH5BOJi3n26pjx: goto eaLfoOLW5xf9t73; jY2b4mestCplWuS: } private function getServers() { goto yNpuhYQULOP9QVi; aGOMFegubklk5mk: $host = ''; goto Ga8R77gpaOosus9; ax80xbAjuArHkMf: $host = $this->apiQuery["host"]; goto DcBT0nU70LvOryQ; AoCN6toNVAEjpDi: session_write_close(); goto iFf_ZnXJTFyPD2w; H41R886Em2l2ma0: session_write_close(); goto S6BlrB4L1psM3ZD; oXnf2ISnIDpVeEZ: goto mIodyETDtCQGGjC; goto Kp2fc0Jm82DKcux; LAmnuMWquiz5I04: $servers[] = ["host" => $host, "host_id" => $host_id, "name" => strtr($hostname, self::REMOVE_NAMESERVER), "url" => $this->embedURL . "alt=0", "active" => $this->selectedServer === 0]; goto hia23My6K3M1MIW; TMMxKoKONXmtojB: $this->hosting->setURL($this->apiQuery["id"]); goto IOmi5RlXzAoUYpK; iFf_ZnXJTFyPD2w: $hostname = $this->supportedSites[$host] ?? $this->defaultHostLabel; goto LAmnuMWquiz5I04; ydypqF3EZqh4aDx: biBCbotxo6Sw0Ja: goto gJMAgzNX79VOehe; DW2AAVuho0dsfnx: session_write_close(); goto OC2HVFAiJskUyNB; yACwMud35JGxj7F: $this->hosting->setURL($this->apiQuery["aid"]); goto ydhWi1YWYaxzhY_; f4etOMXtivyizJl: $servers = []; goto isobI7N4jpmAPu8; Ny2D1eZ4oy03Lv6: if (!empty($this->apiQuery["ahost"])) { goto O0QqvUzSX9Jtyxy; } goto cAanlgVXxTxY4DF; kJF2XY7brA_AITT: K33VNmrVEEh4Kux: goto PdnBWnX0v3SGJJa; b0uf972nlZDCHWR: if (empty($host)) { goto KYvYLfig21oG7Jc; } goto AoCN6toNVAEjpDi; S6BlrB4L1psM3ZD: $host = $this->apiQuery["ahost"]; goto CSeLO9M9UeC_ipl; y2TKgxsgUx6mDl0: $host_id = $this->hosting->getID(); goto oXnf2ISnIDpVeEZ; ZQzBcFuhUhohsA4: if (empty($host)) { goto biBCbotxo6Sw0Ja; } goto DD7zj9PrY8pv9rd; LYwNk0rVA3IT4ZK: if (empty($this->apiQuery["aid"])) { goto iprJAa4UY7NtZku; } goto TuyP9zx8NcYZxrq; OC2HVFAiJskUyNB: if (validate_url($this->apiQuery["id"])) { goto F290wEZeR75Tuj0; } goto XUAAcOdTQwuLK_s; jRZvL38Zb1J8O8O: R6E7_RmA0iBNshh: goto Jg6RjVPpapKZCJi; TuyP9zx8NcYZxrq: session_write_close(); goto up0darCE0QPV79n; Jg6RjVPpapKZCJi: session_write_close(); goto yACwMud35JGxj7F; IOmi5RlXzAoUYpK: $host = $this->hosting->getHost(); goto q2FmM8XU5XJKePx; jSY4aTuu7jEdvrA: return $servers; goto eHPOC4rD2GXixgW; ydhWi1YWYaxzhY_: $host = $this->hosting->getHost(); goto y2TKgxsgUx6mDl0; xopuqjfQ0fNasTZ: iprJAa4UY7NtZku: goto jSY4aTuu7jEdvrA; QTHHtShWdPLfcvT: goto yoAAoHrcg2UlWzR; goto kJF2XY7brA_AITT; KquM0S1Cx6XfmJ6: yoAAoHrcg2UlWzR: goto ZQzBcFuhUhohsA4; DcBT0nU70LvOryQ: $host_id = $this->apiQuery["id"]; goto KquM0S1Cx6XfmJ6; lg_imA_G41NH4Sb: F290wEZeR75Tuj0: goto VVzm4Bl4CfAG_x3; XUAAcOdTQwuLK_s: if (!empty($this->apiQuery["host"])) { goto K33VNmrVEEh4Kux; } goto apqThTTK_qRDFRX; isobI7N4jpmAPu8: if (empty($this->apiQuery["id"])) { goto J727j4Ps5WW6O6j; } goto DW2AAVuho0dsfnx; jMP7mnA1rmxBeUI: $hostname = $this->supportedSites[$host] ?? $this->defaultHostLabel; goto f7QrWhNpiNBdr2H; gJMAgzNX79VOehe: J727j4Ps5WW6O6j: goto LYwNk0rVA3IT4ZK; up0darCE0QPV79n: if (validate_url($this->apiQuery["aid"])) { goto R6E7_RmA0iBNshh; } goto Ny2D1eZ4oy03Lv6; qHmBZI5yclnmyp9: mIodyETDtCQGGjC: goto b0uf972nlZDCHWR; DD7zj9PrY8pv9rd: session_write_close(); goto jMP7mnA1rmxBeUI; q2FmM8XU5XJKePx: $host_id = $this->hosting->getID(); goto QTHHtShWdPLfcvT; Ga8R77gpaOosus9: $host_id = ''; goto f4etOMXtivyizJl; PdnBWnX0v3SGJJa: session_write_close(); goto ax80xbAjuArHkMf; f7QrWhNpiNBdr2H: $servers[] = ["host" => $host, "host_id" => $host_id, "name" => strtr($hostname, self::REMOVE_NAMESERVER), "url" => $this->embedURL . $this->defaultAlternative, "active" => $defaultServer]; goto ydypqF3EZqh4aDx; hia23My6K3M1MIW: KYvYLfig21oG7Jc: goto xopuqjfQ0fNasTZ; Kp2fc0Jm82DKcux: O0QqvUzSX9Jtyxy: goto H41R886Em2l2ma0; OaOQg9tohBwFHsI: $defaultServer = $this->selectedServer < 0; goto aGOMFegubklk5mk; cAanlgVXxTxY4DF: goto mIodyETDtCQGGjC; goto jRZvL38Zb1J8O8O; yNpuhYQULOP9QVi: session_write_close(); goto OaOQg9tohBwFHsI; CSeLO9M9UeC_ipl: $host_id = $this->apiQuery["aid"]; goto qHmBZI5yclnmyp9; VVzm4Bl4CfAG_x3: session_write_close(); goto TMMxKoKONXmtojB; apqThTTK_qRDFRX: goto yoAAoHrcg2UlWzR; goto lg_imA_G41NH4Sb; eHPOC4rD2GXixgW: } private function getAPISourcesURL(string $host = '', string $host_id = '') { goto UnymJZTPomOcVJu; xVYXQc9M4oiTmYv: $this->vSources->setCriteria("host_id", $host_id, "=", "AND"); goto FG55a2T6PDnf6J5; CaoSTp231Hg3GX_: if (!(!empty($data["link"]) && validate_url($data["link"]))) { goto LpX02GiVFUJ4Yk8; } goto ySuma5vBLs__3Q5; UnymJZTPomOcVJu: session_write_close(); goto vzebrgZ6kC6fGhW; S9STU5jeVtosZ5q: $data = $this->balancer->getOne(["link"]); goto CaoSTp231Hg3GX_; ySuma5vBLs__3Q5: session_write_close(); goto A8182ma5y8pylmm; gAdfNZIz_l63hUF: $this->vSources->setCriteria("host", $host, "="); goto xVYXQc9M4oiTmYv; M8_1oYBgEBrmJBr: session_write_close(); goto Pnxt4RkO8e0vtwt; MhbFQ2FsQr6qxVh: if (!(empty($host) || empty($host_id) || in_array($host, $this->core->bad_hosts()))) { goto Hr0TWsaZDoOGXja; } goto YaP8DgEQMqOMBJ6; Pnxt4RkO8e0vtwt: $this->balancer->setCriteria("id", $data["sid"], "="); goto N5ij2zC2QotHLK8; FG55a2T6PDnf6J5: $this->vSources->setCriteria("expired", time(), "<", "AND"); goto hl9UN6uFwZBhkBR; vzebrgZ6kC6fGhW: $result = false; goto MhbFQ2FsQr6qxVh; A8182ma5y8pylmm: $result = (string) $data["link"]; goto WKTudOujWlvn6hi; N5ij2zC2QotHLK8: $this->balancer->setCriteria("status", 1, "=", "AND"); goto S9STU5jeVtosZ5q; QT398WoHUNhQ9_v: return $result; goto YexjOZDXYHm3E4D; WKTudOujWlvn6hi: LpX02GiVFUJ4Yk8: goto JK3HopbI7eJgVjJ; R61QLiZuEjjY2QW: return $result; goto hosf1bOLniF0vf7; hl9UN6uFwZBhkBR: $data = $this->vSources->getOne(["sid"]); goto cUOuXhag3_yYl6X; YexjOZDXYHm3E4D: Hr0TWsaZDoOGXja: goto gAdfNZIz_l63hUF; JK3HopbI7eJgVjJ: oMzB_56SaloUg4f: goto R61QLiZuEjjY2QW; YaP8DgEQMqOMBJ6: session_write_close(); goto QT398WoHUNhQ9_v; cUOuXhag3_yYl6X: if (empty($data["sid"])) { goto oMzB_56SaloUg4f; } goto M8_1oYBgEBrmJBr; hosf1bOLniF0vf7: } private function getVideoInfo() { goto CfXnlWyKpOaWdpw; YQ6OuZOU70uEfGB: $this->videos->setCriteria("id", $this->apiQuery["id"]); goto kPgYe4Ia8JHaDR6; lNTL8Okphi5I7tU: if (!is_numeric($this->apiQuery["id"])) { goto zNgUBOaFlxbFZyH; } goto SS19gfviUYTL0RU; xNpHsZ6Qapx1p52: zNgUBOaFlxbFZyH: goto wIvmSXelpmkAYkD; CfXnlWyKpOaWdpw: session_write_close(); goto ELr9hdSioPo1H2L; wIvmSXelpmkAYkD: return $data; goto eJuoVTImjpa1TUJ; SS19gfviUYTL0RU: session_write_close(); goto YQ6OuZOU70uEfGB; ELr9hdSioPo1H2L: $data = false; goto lNTL8Okphi5I7tU; kPgYe4Ia8JHaDR6: $data = $this->videos->getOne(["title", "poster", "dmca", "host", "host_id"]); goto xNpHsZ6Qapx1p52; eJuoVTImjpa1TUJ: } private function getVideoAlternatives(int $id = 0) { goto YxJCIi8jeOuozCa; i9K20u6FjBLWVzj: $this->vAlt->setCriteria("vid", $id); goto mc462TmdAwGZzFj; mc462TmdAwGZzFj: $this->vAlt->setOrderBy("order"); goto MDcoFV6HUFNverF; MDcoFV6HUFNverF: $list = $this->vAlt->get(["id", "host", "host_id"]); goto ogHBFjoT3HqvFMF; EUWAhs6o6MUwKqU: $result = []; goto i9K20u6FjBLWVzj; YxJCIi8jeOuozCa: session_write_close(); goto EUWAhs6o6MUwKqU; ew_5KiUZkyrv2qL: foreach ($list as $dt) { goto rJcIFGnVhLEbsz9; rJcIFGnVhLEbsz9: session_write_close(); goto v7Wtoc01U32q3pi; R10PnKuoEqs2q6J: VsG7ZoeHN4bUNjo: goto z1Wj3kBxV85mOHW; v7Wtoc01U32q3pi: $hostname = $this->supportedSites[$dt["host"]] ?? $this->defaultHostLabel; goto qAeWyy28kXEng6C; qAeWyy28kXEng6C: $result[] = ["host" => $dt["host"], "host_id" => $dt["host_id"], "name" => strtr($hostname, self::REMOVE_NAMESERVER), "url" => $this->embedURL . "alt=" . $dt["id"], "active" => $this->selectedServer === intval($dt["id"])]; goto R10PnKuoEqs2q6J; z1Wj3kBxV85mOHW: } goto G27kgp3ZHQBZzUi; G27kgp3ZHQBZzUi: TKvzHcF5GFyUvQ2: goto nq68oNLxfFK8XR7; ogHBFjoT3HqvFMF: if (!$list) { goto HTn6cV4RdZQmme2; } goto pVcCJfLJ8QhUtO8; nq68oNLxfFK8XR7: HTn6cV4RdZQmme2: goto mJqp6qsx65q2VBn; mJqp6qsx65q2VBn: return $result; goto GIykVYX3XY17dd3; pVcCJfLJ8QhUtO8: session_write_close(); goto ew_5KiUZkyrv2qL; GIykVYX3XY17dd3: } public function getAccessDeniedPage(bool $download = false) { goto uhxi931CSCzkkFv; BHYSY2umNf8ynxM: WveRXI1yXU3wSJ1: goto riHkzP3yyY9UPAA; riHkzP3yyY9UPAA: session_write_close(); goto u2_cg6sPGSUXAnW; u2_cg6sPGSUXAnW: return $this->html->renderTemplate($this->downloadErrorTemplate, $this->defaultContext); goto dQohwXJ4Y6J2cL3; w2Xflvb2830Az0p: $this->defaultContext["isError"] = true; goto HN_xDOkFsJGAHYY; dQohwXJ4Y6J2cL3: Zbu6IJg8Vf8f9Iq: goto QUgzvyx5tdshXOd; uhxi931CSCzkkFv: session_write_close(); goto w2Xflvb2830Az0p; HN_xDOkFsJGAHYY: $this->defaultContext["title"] = self::MESSAGE_ACCESS_DENIED; goto Jy5kX2GNMALfCPp; YJnI9U4GH9fAaj7: return $this->html->renderTemplate($this->errorTemplate, $this->defaultContext); goto B3wupInxEXEUnfB; DwEA4bcDa2eYSam: session_write_close(); goto YJnI9U4GH9fAaj7; Jy5kX2GNMALfCPp: $this->defaultContext["message"] = self::MESSAGE_ACCESS_DENIED; goto R9K27BnaZfgJQUz; B3wupInxEXEUnfB: goto Zbu6IJg8Vf8f9Iq; goto BHYSY2umNf8ynxM; R9K27BnaZfgJQUz: if ($download) { goto WveRXI1yXU3wSJ1; } goto DwEA4bcDa2eYSam; QUgzvyx5tdshXOd: } public function getDownloadPage() { goto E62e1jU3s6vg5Xg; URvT282W6k2kP4O: $this->defaultContext["message"] = self::MESSAGE_TAKEDOWN; goto fgXZ8rjZXpqXj6S; CXBI03wK0cbDIrH: $servers[] = ["host" => $videoInfo["host"], "host_id" => $videoInfo["host_id"], "name" => strtr($hostname, self::REMOVE_NAMESERVER), "url" => $this->embedURL . $this->defaultAlternative, "active" => $this->selectedServer === -1]; goto uWayPEB8LqFNrVu; lEUYOqYgKmamp1s: $this->defaultContext["title"] = self::MESSAGE_TAKEDOWN; goto URvT282W6k2kP4O; Hz33CRSlpdlCciQ: $this->apiQuery = array_filter($this->apiQuery, function ($val, $key) { session_write_close(); return !empty($val) && !empty($key); }, ARRAY_FILTER_USE_BOTH); goto JBxO3gsGsVBp_5L; T9_Ju7__ubK3Bnb: if (!empty($this->apiQuery["id"])) { goto NwEEr4R8UfABvYJ; } goto tG1ec9AlJYhuoaE; fgXZ8rjZXpqXj6S: return $this->html->renderTemplate($this->downloadErrorTemplate, $this->defaultContext); goto qAJZ0BO50iuOydD; k2VNmMsNinE2rav: if (!$this->isTakedown) { goto kDy7d30wP0yDikn; } goto r3pnhiCvt2td3nT; EhFAt26OeBYIjEA: $this->videoTitle = sanitize_html($videoInfo["title"]); goto psJU_1prXbhoPLJ; vuxI5wr6YTQ9tnY: $playerConfig = $this->security->kirimData($playerConfig); goto KvXmUzJR2Vg5W4J; ZshI3kYSrMXEtkk: if (!isset($servers[$serverActive])) { goto hRlnaBiHKu8DGlW; } goto Gqw7dGJ_DMCZzWS; qAJZ0BO50iuOydD: kDy7d30wP0yDikn: goto yPspFF9DrEOY5Cj; gVK8QhSbapbPDgA: $this->videoPoster = $this->helper->posterParser($videoInfo["poster"]); goto OuYN5uYdlm2002w; OuYN5uYdlm2002w: $hostname = $this->supportedSites[$videoInfo["host"]] ?? $this->defaultHostLabel; goto CXBI03wK0cbDIrH; OQGapYbdVahyvZA: $isDirectHost = $servers[$serverActive]["host"] === "direct" || $this->isSafariBrowser; goto a0eqnv9QpTPv1mK; E_0v__rYC6PJXni: $this->defaultContext["isError"] = true; goto xd0LkDUP0zcy0vC; dWxUIy0u0yRoHlr: $apiURL = BASE_URL; goto DMM9XXUHSm3Qz0w; qGcqKeH0awVI9Na: NwEEr4R8UfABvYJ: goto AsKUTu8P54xOCr5; HlE5b0PnntCTvD3: session_write_close(); goto EhFAt26OeBYIjEA; psJU_1prXbhoPLJ: $this->isTakedown = intval($videoInfo["dmca"]) > 0 || is_title_blacklisted($videoInfo["title"]); goto gVK8QhSbapbPDgA; uWayPEB8LqFNrVu: $servers = array_merge($servers, $this->getVideoAlternatives($this->apiQuery["id"])); goto dGw2GdHavwRWr19; HRzItTkinDswAMg: $this->apiQuery["token"] = $this->security->encryptURL(getUserIP()); goto Hz33CRSlpdlCciQ; UZeTY9GcCZPKRHO: $productionMode = validate_boolean(get_option("production_mode")); goto TJUPKrLcSCj5xXA; Gi3y12tTH2ZRcie: $servers = []; goto Y7pjMHT3V0bZ4Ny; dGw2GdHavwRWr19: IBESRI7qcwUXtY0: goto k2VNmMsNinE2rav; Gqw7dGJ_DMCZzWS: session_write_close(); goto OQGapYbdVahyvZA; R58GB6NPsBUV8Ky: if (is_load_balancer()) { goto eH1S7Xq8fQpmLIM; } goto M03hRagEEiV90S7; KvXmUzJR2Vg5W4J: $context = ["isSSL" => isSSL(), "isDirectHost" => $isDirectHost, "text_title" => "Download {title} - {siteName}", "isError" => $this->isError, "message" => $this->messageText, "title" => $this->videoTitle, "poster" => $this->videoPoster, "embedLink" => $embedLink, "servers" => $servers, "productionMode" => $productionMode, "topBanner" => get_option("dl_banner_top"), "bottomBanner" => get_option("dl_banner_bottom"), "playerConfig" => $playerConfig]; goto er1gbECsQ9df8s2; bpFOS6t5Ia1FWej: $isDirectHost = false; goto sHjpwaNBNuPfi6K; HZhG75iH2ZDeHlF: $this->defaultContext["isError"] = $this->isTakedown; goto lEUYOqYgKmamp1s; sHjpwaNBNuPfi6K: $serverActive = array_search(true, array_column($servers, "active")); goto ZshI3kYSrMXEtkk; ob7rc1m0fLIb0qS: $apiSourceURL = $this->getAPISourcesURL($servers[$serverActive]["host"], $servers[$serverActive]["host_id"]); goto nngI_oZyPSARuHg; nngI_oZyPSARuHg: $selectedHosts[] = $servers[$serverActive]["host"]; goto jd4yJk1kk4BxzrX; M03hRagEEiV90S7: session_write_close(); goto ob7rc1m0fLIb0qS; DMM9XXUHSm3Qz0w: $servers = array_merge($servers, $this->getServers()); goto bpFOS6t5Ia1FWej; KNFEVXuyGdg_Lj5: eH1S7Xq8fQpmLIM: goto b2J7XOO7d7Y5NXr; b2J7XOO7d7Y5NXr: hRlnaBiHKu8DGlW: goto j2tiEQnVd52F8Pf; Y7pjMHT3V0bZ4Ny: if (!$videoInfo) { goto IBESRI7qcwUXtY0; } goto HlE5b0PnntCTvD3; j2tiEQnVd52F8Pf: $embedLink = sanitize_url(strtr($_SERVER["REQUEST_URI"], ["/" . $this->downloadSlug . "/" => "/" . get_option("slug_embed") . "/"])); goto UZeTY9GcCZPKRHO; xd0LkDUP0zcy0vC: $this->defaultContext["message"] = self::MESSAGE_UNAVAILABLE; goto ozTY4tk2M8KY33G; yPspFF9DrEOY5Cj: $context = []; goto dWxUIy0u0yRoHlr; JBxO3gsGsVBp_5L: $playerConfig = array("baseURL" => sanitize_url(BASE_URL), "player" => $this->player, "message" => $this->messageText, "hosts" => array_column($servers, "host"), "blockADB" => validate_boolean(get_option("block_adblocker")), "enableShare" => validate_boolean(get_option("enable_share_button")), "apiURL" => sanitize_url($apiURL), "query" => $this->security->encryptURL(http_build_query($this->apiQuery)), "disableDirectAds" => validate_boolean(get_option("disable_direct_ads")), "directAdsLink" => sanitize_url(get_option("direct_ads_link")), "embedLink" => $embedLink, "productionMode" => $productionMode); goto vuxI5wr6YTQ9tnY; ozTY4tk2M8KY33G: return $this->html->renderTemplate($this->downloadErrorTemplate, $this->defaultContext); goto qGcqKeH0awVI9Na; jd4yJk1kk4BxzrX: $apiURL = $apiSourceURL ? $apiSourceURL : get_load_balancer_rand($selectedHosts); goto KNFEVXuyGdg_Lj5; TJUPKrLcSCj5xXA: $this->apiQuery["download"] = true; goto HRzItTkinDswAMg; r3pnhiCvt2td3nT: session_write_close(); goto HZhG75iH2ZDeHlF; a0eqnv9QpTPv1mK: $selectedHosts = []; goto R58GB6NPsBUV8Ky; tG1ec9AlJYhuoaE: session_write_close(); goto E_0v__rYC6PJXni; E62e1jU3s6vg5Xg: session_write_close(); goto T9_Ju7__ubK3Bnb; er1gbECsQ9df8s2: return $this->html->renderTemplate($this->downloadTemplate, array_merge($this->defaultContext, $context)); goto p0wejCPi2g6mNf6; AsKUTu8P54xOCr5: $videoInfo = $this->getVideoInfo(); goto Gi3y12tTH2ZRcie; p0wejCPi2g6mNf6: } private function embedPageData() { goto RlBnYVJFv0ITeDq; aCB28H1X6VPN1c9: a_XpNAXt74WRvPQ: goto yKHqEO4cy8wRYRM; Ep1Lukz7d3Sy0yP: jxdbRTGesXuFhGY: goto yGoFitKau2fJ_64; VlgVt5j2iHl_PaD: $query = $this->apiQuery; goto h3FI2SCJsOQTvOb; SaJAuR55hwxZYR4: return $this->html->renderTemplate($this->playerTemplate, array_merge($this->defaultContext, $context)); goto lOdG80Afk0Ub6Pc; hvQQfqsGC3M31B5: $preload = get_option("preload") ?? "auto"; goto t3noLOkUnLarsQo; KTZG7ONkAcFbuqN: if (!isset($_GET["mute"])) { goto tBd3tDxBw9Xj4ol; } goto xHTwLnCF9LSXugD; Bt62MkNVVEeWc2J: NKHkJE9NizV2O3N: goto M0Ur05Mt2gZkD5c; fqXO6TVdd7rWvJo: $this->videoPoster = $this->helper->posterParser($videoInfo["poster"]); goto iUgCE5wpelNlbBR; xJkS7aDDYVKYAOQ: zCF23TkJdYBkRBn: goto Bt62MkNVVEeWc2J; XMDjr7dGXsP6cwE: $context = ["isSSL" => isSSL(), "isDirectHost" => $isDirectHost, "text_title" => sanitize_html(get_option("text_title") ?? "Watch {title} - {siteName}"), "text_resume" => sanitize_html(get_option("text_resume") ?? "Welcome back! You left off at hh:mm:ss. Would you like to resume watching?"), "text_resume_no" => sanitize_html(get_option("text_resume_no") ?? "No, Thanks"), "text_resume_yes" => sanitize_html(get_option("text_resume_yes") ?? "Yes, Please"), "text_close_ads" => sanitize_html(get_option("text_close_ads") ?? "Close Ads"), "isError" => $this->isError, "message" => $this->messageText, "title" => $this->videoTitle, "poster" => $this->videoPoster, "randomSource" => validate_boolean(get_option("load_balancer_rand")), "servers" => $servers, "enableP2P" => $enableP2P, "playerVersion" => $this->playerVersion, "playerColor" => "#" . $this->playerColor, "productionMode" => $productionMode, "preload" => $preload, "playerConfig" => $playerConfig]; goto SaJAuR55hwxZYR4; STHHiCw8a3z803M: $servers[] = ["host" => $videoInfo["host"], "host_id" => $videoInfo["host_id"], "name" => strtr($hostname, self::REMOVE_NAMESERVER), "url" => $this->embedURL . $this->defaultAlternative, "active" => $this->selectedServer === -1]; goto ad2W26syJ0z7bvF; hwZGrVJwR5A3604: $autoplay = $_GET["autoplay"]; goto Ep1Lukz7d3Sy0yP; gPKvpzEYwNrFIUI: $selectedHosts = []; goto XXzOEqwNoPBx83h; B0hsDlJjrN3KY6k: $playerConfig = $this->security->kirimData($playerConfig); goto XMDjr7dGXsP6cwE; lf8UKzVoeuNpIju: $videoInfo = $this->getVideoInfo(); goto FeSLqbYRvFzsN_U; t3noLOkUnLarsQo: $this->apiQuery["token"] = $this->security->encryptURL(getUserIP()); goto rgUo0FMr12FXbiS; kZwcWlPcEoe4MVR: $enableP2P = validate_boolean(get_option("p2p")) && !$this->isSafariBrowser; goto WOd28nzqvFBry6o; KHC3_hrM7l3ehI1: $selectedHosts[] = $servers[$serverActive]["host"]; goto seqLFDUVoB9piiO; lGQ4kEEc0CH7yqF: $this->isTakedown = intval($videoInfo["dmca"]) > 0 || is_title_blacklisted($videoInfo["title"]); goto fqXO6TVdd7rWvJo; H2Y8DFoftb2S1T3: $serverActive = array_search(true, array_column($servers, "active")); goto f_1ojIHWxv46B6_; XXzOEqwNoPBx83h: if (is_load_balancer()) { goto zCF23TkJdYBkRBn; } goto GiuwXK875k8Ffl_; IahFC287rNzpTQn: if (!isset($_GET["autoplay"])) { goto jxdbRTGesXuFhGY; } goto jmKl4qJO2K8qdPH; DjScv26h1wyMGMe: $context = []; goto gxBAw6oT8LB4970; R0087LpKu0O8f6o: $this->defaultContext["message"] = self::MESSAGE_TAKEDOWN; goto HkRLMYVsfDeGFSJ; qGQkqGzxX2S3a6M: if (!$videoInfo) { goto a_XpNAXt74WRvPQ; } goto SYEi8IxRyx3RGat; FeSLqbYRvFzsN_U: $servers = []; goto qGQkqGzxX2S3a6M; cJP0M7NW3k6QNIh: $this->videoTitle = sanitize_html($videoInfo["title"]); goto lGQ4kEEc0CH7yqF; M0Ur05Mt2gZkD5c: $productionMode = validate_boolean(get_option("production_mode")); goto kZwcWlPcEoe4MVR; HL9zA7fnlaidnDU: P_yICVytmJlKn9r: goto DjScv26h1wyMGMe; vQZQvOK1n9O2HXp: $this->defaultContext["title"] = self::MESSAGE_TAKEDOWN; goto R0087LpKu0O8f6o; SYEi8IxRyx3RGat: session_write_close(); goto cJP0M7NW3k6QNIh; Ok9AGc46TXfe6Mp: $playerConfig = array("baseURL" => sanitize_url(BASE_URL), "player" => $this->player, "message" => $this->messageText, "enableP2P" => $enableP2P, "hosts" => array_column($servers, "host"), "autoplay" => validate_boolean($autoplay), "mute" => validate_boolean($mute), "preload" => $preload, "repeat" => validate_boolean(get_option("repeat")), "stretching" => sanitize_html(get_option("stretching")), "displayTitle" => validate_boolean(get_option("display_title")), "displayRateControls" => validate_boolean(get_option("playback_rate")), "captionsColor" => "#" . sanitize_html(get_option("subtitle_color")), "playerSkin" => $this->playerSkin, "vastAds" => get_vast(), "localKey" => hash_hmac("sha256", trim($this->embedURL, "?#"), SECURE_SALT), "blockADB" => validate_boolean(get_option("block_adblocker")), "enableShare" => validate_boolean(get_option("enable_share_button")), "logoHide" => validate_boolean(get_option("logo_hide")), "logoPosition" => sanitize_html(get_option("logo_position")), "visitAdsOnplay" => validate_boolean(get_option("visitads_onplay")), "logoImage" => sanitize_url(get_option("logo_file")), "logoLink" => sanitize_url(get_option("logo_open_link")), "torrentList" => explode("\xa", strtr(get_option("torrent_tracker"), ["
" => "
"])), "apiURL" => sanitize_url($apiURL), "apiQuery" => $this->security->encryptURL(http_build_query($this->apiQuery)), "query" => $this->security->encryptURL(http_build_query($query)), "token" => $this->apiQuery["token"], "disableDirectAds" => validate_boolean(get_option("disable_direct_ads")), "directAdsLink" => sanitize_url(get_option("direct_ads_link")), "smallLogoFile" => sanitize_url(get_option("small_logo_file")), "smallLogoLink" => sanitize_url(get_option("small_logo_link")), "playerColor" => "#" . $this->playerColor, "rgbColor" => $this->playerColorRGB, "text_rewind" => sanitize_html(get_option("text_rewind") ?? "Rewind 10 Seconds"), "text_forward" => sanitize_html(get_option("text_forward") ?? "Forward 10 Seconds"), "text_download" => sanitize_html(strtr(get_option("text_download"), ["{title}" => $this->videoTitle]) ?? "Download " . $this->videoTitle), "downloadLink" => sanitize_url(strtr($_SERVER["REQUEST_URI"], ["/" . $this->embedSlug . "/" => "/" . get_option("slug_download") . "/"])), "productionMode" => $productionMode, "resumePlayback" => validate_boolean(get_option("continue_watching")), "statCounterRuntime" => intval(get_option("visit_counter_runtime")), "showDownloadButton" => validate_boolean(get_option("enable_download_button")), "enableDownloadPage" => validate_boolean(get_option("enable_download_page")), "defaultResolution" => intval(get_option("default_resolution")), "logoMargin" => intval(get_option("logo_margin")), "pauseOnLeft" => validate_boolean(get_option("pause_on_left"))); goto B0hsDlJjrN3KY6k; gxBAw6oT8LB4970: $apiURL = BASE_URL; goto M9ynAAYBlx6UOjD; ad2W26syJ0z7bvF: $servers = array_merge($servers, $this->getVideoAlternatives($this->apiQuery["id"])); goto aCB28H1X6VPN1c9; ljGQFGb0BpVPmmE: $isDirectHost = false; goto H2Y8DFoftb2S1T3; BFKnZg3p7jiy5wq: session_write_close(); goto AlmFTgI0XmS70ib; h3FI2SCJsOQTvOb: unset($query["token"]); goto Ok9AGc46TXfe6Mp; yKHqEO4cy8wRYRM: if (!$this->isTakedown) { goto P_yICVytmJlKn9r; } goto RSsN4mBXuoYfYiF; iUgCE5wpelNlbBR: $hostname = $this->supportedSites[$videoInfo["host"]] ?? $this->defaultHostLabel; goto STHHiCw8a3z803M; Cau4e0f0NTw_tY9: $this->defaultContext["isError"] = $this->isTakedown; goto vQZQvOK1n9O2HXp; jmKl4qJO2K8qdPH: session_write_close(); goto hwZGrVJwR5A3604; f_1ojIHWxv46B6_: if (!isset($servers[$serverActive])) { goto NKHkJE9NizV2O3N; } goto BFKnZg3p7jiy5wq; yGoFitKau2fJ_64: $mute = get_option("mute"); goto KTZG7ONkAcFbuqN; GiuwXK875k8Ffl_: session_write_close(); goto nHFVEI2nfVandQ4; rgUo0FMr12FXbiS: $this->apiQuery = array_filter($this->apiQuery, function ($val, $key) { session_write_close(); return !empty($val) && !empty($key); }, ARRAY_FILTER_USE_BOTH); goto VlgVt5j2iHl_PaD; HkRLMYVsfDeGFSJ: return $this->html->renderTemplate($this->errorTemplate, $this->defaultContext); goto HL9zA7fnlaidnDU; seqLFDUVoB9piiO: $apiURL = $apiSourceURL ? $apiSourceURL : get_load_balancer_rand($selectedHosts); goto xJkS7aDDYVKYAOQ; RlBnYVJFv0ITeDq: session_write_close(); goto lf8UKzVoeuNpIju; AlmFTgI0XmS70ib: $isDirectHost = $servers[$serverActive]["host"] === "direct" || $this->isSafariBrowser; goto gPKvpzEYwNrFIUI; WOd28nzqvFBry6o: $autoplay = get_option("autoplay"); goto IahFC287rNzpTQn; C1S_N4LBBI4F_eb: $mute = $_GET["mute"]; goto mrGfmS5ZzWfdTNh; RSsN4mBXuoYfYiF: session_write_close(); goto Cau4e0f0NTw_tY9; nHFVEI2nfVandQ4: $apiSourceURL = $this->getAPISourcesURL($servers[$serverActive]["host"], $servers[$serverActive]["host_id"]); goto KHC3_hrM7l3ehI1; M9ynAAYBlx6UOjD: $servers = array_merge($servers, $this->getServers()); goto ljGQFGb0BpVPmmE; mrGfmS5ZzWfdTNh: tBd3tDxBw9Xj4ol: goto hvQQfqsGC3M31B5; xHTwLnCF9LSXugD: session_write_close(); goto C1S_N4LBBI4F_eb; lOdG80Afk0Ub6Pc: } public function getEmbedPage() { goto pxckVEwiACHr53F; fbZT_vkUnb62W9m: $this->defaultContext["title"] = self::MESSAGE_UNAVAILABLE; goto sx5qP2PJLcruvBD; SYl_V0Dlxb7HzkN: $this->defaultContext["message"] = self::MESSAGE_PLAYER_EMPTY; goto plTY5YvW1lXVS80; OOEYIIZQoDfCHAS: session_write_close(); goto vE_sB_HRPRf0hnz; c9AaAFKO3SIVpjm: session_write_close(); goto XZZsg_2fCF19yI3; vE_sB_HRPRf0hnz: $this->defaultContext["isError"] = true; goto Amj9iDL5csgJv8x; Ng7wJkgb_lp8omo: goto evNlCI3u9NrCFJx; goto E6TNyOR3Ity8UQA; pxckVEwiACHr53F: session_write_close(); goto lf77QZe0fAHDfa2; bS5YZFxP9f4jqdF: MJVnmr3ywaF2q_g: goto ZzuKQbBNTCsE2HA; ryZ378kUJoxhcsp: if (empty($this->apiQuery["id"])) { goto MJVnmr3ywaF2q_g; } goto wbWD24GOVQOmvXV; XZZsg_2fCF19yI3: $result = $this->getAccessDeniedPage(false); goto Ng7wJkgb_lp8omo; sx5qP2PJLcruvBD: $this->defaultContext["message"] = self::MESSAGE_UNAVAILABLE; goto QKduDu9nsKeQ01n; wbWD24GOVQOmvXV: if (validate_boolean(get_option("embed_only")) && empty($_SERVER["HTTP_REFERER"])) { goto adM14guBjW3Gige; } goto lUJkKu4clZdzJaP; QFIGeoHiQIl1SL7: adM14guBjW3Gige: goto c9AaAFKO3SIVpjm; FFlmJ5o3xMksaBW: $result = $this->embedPageData(); goto dXS_MVfNiaCVK3d; dXS_MVfNiaCVK3d: goto evNlCI3u9NrCFJx; goto bS5YZFxP9f4jqdF; RukL0pNm21d3nnL: session_write_close(); goto FFlmJ5o3xMksaBW; plTY5YvW1lXVS80: $result = $this->html->renderTemplate($this->errorTemplate, $this->defaultContext); goto ORMhYSc0zrMHG6I; lf77QZe0fAHDfa2: $result = ''; goto ryZ378kUJoxhcsp; ZzuKQbBNTCsE2HA: session_write_close(); goto aSL8d1LQs_1Nn1I; AONl0a7aE4lR1C1: return $result; goto AoD4WrWBJY56oXp; QKduDu9nsKeQ01n: $result = $this->html->renderTemplate($this->errorTemplate, $this->defaultContext); goto nbuMakBSX1eJkGw; E6TNyOR3Ity8UQA: sMzhNAoTx6tJusH: goto OOEYIIZQoDfCHAS; lUJkKu4clZdzJaP: if (empty($this->player)) { goto sMzhNAoTx6tJusH; } goto RukL0pNm21d3nnL; Amj9iDL5csgJv8x: $this->defaultContext["title"] = self::MESSAGE_PLAYER_EMPTY; goto SYl_V0Dlxb7HzkN; ORMhYSc0zrMHG6I: evNlCI3u9NrCFJx: goto AONl0a7aE4lR1C1; aSL8d1LQs_1Nn1I: $this->defaultContext["isError"] = true; goto fbZT_vkUnb62W9m; nbuMakBSX1eJkGw: goto evNlCI3u9NrCFJx; goto QFIGeoHiQIl1SL7; AoD4WrWBJY56oXp: } } 

Function Calls

None

Variables

None

Stats

MD5 7351ea58922f4ff1b7f553d2fbb56eb6
Eval Count 0
Decode Time 86 ms