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 goto C82a5f70826c295b; b5599786b5de97ce: generateError("PROXY_DETECT"); E0ce5824..

Decoded Output download

<?php 
goto C82a5f70826c295b; 
b5599786b5de97ce: 
generateError("PROXY_DETECT"); 
E0ce5824aa17a8a0: 
fc017c1323fd9d7a: 
Cc7262628a143c9b: 
if (!$Ab1eff6ccfa398f6) { 
    goto D70fdc13e2b31c39; 
} 
goto e0ba7b6a7464cb12; 
C33cb7215a166df4: 
d473a9041305dbed: 
if ( 
    !( 
        $F7f24b19c4fe2e7a["is_stalker"] && 
        in_array($f8cd97817c6cbdb2, ["live", "movie", "series", "timeshift"]) 
    ) 
) { 
    goto B0a6922fb9fcda46; 
} 
if (!(empty(XUI::$rRequest["stalker_key"]) || $f436329234033eb2 != "ts")) { 
    goto Fd3afd306e93b5d9; 
} 
generateError("STALKER_INVALID_KEY"); 
Fd3afd306e93b5d9: 
goto Bd06b4cef1c8ad13; 
C92768a586bf76a1: 
require_once INCLUDES_PATH . "streaming.php"; 
XUI::$rAccess = "auth"; 
XUI::$rSettings = $E4e6c93eb2386bc9; 
XUI::init(false); 
if (XUI::$rCached) { 
    goto F720f08e63f19532; 
} 
goto e162b14c5a15d686; 
e05c7e9f2112879b: 
Cb94c475edfec9c9: 
if ( 
    !( 
        $f8cd97817c6cbdb2 == "live" && 
        XUI::$rSettings["show_expiring_video"] && 
        !$F7f24b19c4fe2e7a["is_trial"] && 
        (!is_null($F7f24b19c4fe2e7a["exp_date"]) && 
            time() >= $F7f24b19c4fe2e7a["exp_date"] - 86400 * 7) && 
        (time() - $F7f24b19c4fe2e7a["last_expiration_video"] >= 86400 or 
            !$F7f24b19c4fe2e7a["last_expiration_video"]) 
    ) 
) { 
    goto da88937d71abea46; 
} 
if (XUI::$rCached) { 
    goto fbc01f2be0d57f09; 
} 
$d7c7502b3f9833d5->query( 
    "UPDATE `lines` SET `last_expiration_video` = ? WHERE `id` = ?;", 
    time(), 
    $F7f24b19c4fe2e7a["id"] 
); 
goto f0e763f0aebba142; 
goto b1ce8e17a54d76e4; 
C8709ffc15353def: 
$c992f743f93e6bff = true; 
F3ce2b966b168b34: 
if (!isset($B6221fca9e056317)) { 
    goto E1e94b58ae8cb07e; 
} 
$fa431415ab2a46b9 = $F7f24b19c4fe2e7a["username"]; 
$a38e7b338168909c = $F7f24b19c4fe2e7a["password"]; 
goto e63fcfc3ecb5ebe5; 
D955f866e92bcb9b: 
if (!($a44b87f64244d629 && time() > $a44b87f64244d629)) { 
    goto Ebc28b55434e9f38; 
} 
$Db2e4b9590962bf2 = false; 
generateError("TOKEN_EXPIRED"); 
Ebc28b55434e9f38: 
$ae8c1b90a1b3c353 = XUI::D966E81E7dd6A3AF( 
    XUI::$rRequest["hmac"], 
    $a44b87f64244d629, 
    $Cb0e6b6bea608281, 
    $f436329234033eb2, 
    $C85a9af7d2969dae, 
    $F6969dc92f90fb0f, 
    $Fe2c987b3598866e, 
    $E2980ebe5cbe3370 
); 
goto Cc5d39ba5fc31726; 
ecf7c88576eb7603: 
$_GET["extension"] = $Df391c1205663254[4]; 
a34353543181a973: 
if (!(count($Df391c1205663254) == 6)) { 
    goto f709709ba9230241; 
} 
if ($dcfdda514dd6436e) { 
    goto c627bf7524970d40; 
} 
$a44b87f64244d629 = $Df391c1205663254[5]; 
goto da648c73e583e208; 
Dcf14cc3ae8adf07: 
generateError("TOKEN_EXPIRED"); 
dfa1b998153e6b25: 
goto B2d7c354a634f9ba; 
E830ffc8f1c21f8f: 
generateError("TOKEN_EXPIRED"); 
goto D543cd2b1755d36e; 
c8cee4b8970e6417: 
generateError("INVALID_CREDENTIALS"); 
A4cb5bde12a011d4: 
baa50e29491becff: 
goto E99539e48b4c7bf3; 
F2a69b13d5876f9d: 
goto aba783cd9a48a759; 
e15c005753de82f8: 
XUI::F5216B1c66461d02( 
    $Cb0e6b6bea608281, 
    $F7f24b19c4fe2e7a["id"], 
    "COUNTRY_DISALLOW", 
    $C85a9af7d2969dae 
); 
generateError("FORCED_COUNTRY_INVALID"); 
D97601b60071f573: 
if ( 
    !( 
        !$Af7f102da11bef04 && 
        !in_array("ALL", XUI::$rSettings["allow_countries"]) && 
        !in_array($C9502b7846a61338, XUI::$rSettings["allow_countries"]) 
    ) 
) { 
    goto e0f3a34c6ab2806b; 
} 
XUI::f5216b1C66461d02( 
    $Cb0e6b6bea608281, 
    $F7f24b19c4fe2e7a["id"], 
    "COUNTRY_DISALLOW", 
    $C85a9af7d2969dae 
); 
goto A807dbc9ab34c359; 
Acb843a5bf805c38: 
e8427491e1174e7f: 
Dc4d10a74f8fafc1: 
if ($dcfdda514dd6436e) { 
    goto b9b0bbd62e6ed893; 
} 
if ($c992f743f93e6bff) { 
    goto e343556e337ba0d2; 
} 
$E5919683463edb69 = false; 
goto bf679fa6e177f096; 
fee45acf5c8a2a47: 
if ( 
    !( 
        !is_null($F7f24b19c4fe2e7a["exp_date"]) && 
        time() >= $F7f24b19c4fe2e7a["exp_date"] 
    ) 
) { 
    goto fa3d992fee95856f; 
} 
$Db2e4b9590962bf2 = false; 
XUI::F5216b1C66461D02( 
    $Cb0e6b6bea608281, 
    $F7f24b19c4fe2e7a["id"], 
    "USER_EXPIRED", 
    $C85a9af7d2969dae 
); 
if (in_array($f8cd97817c6cbdb2, ["live", "timeshift"])) { 
    goto Bd685948367dc416; 
} 
if (in_array($f8cd97817c6cbdb2, ["movie", "series"])) { 
    goto fe774e4ff17b389c; 
} 
goto E8abebecc165bf0d; 
d3e7b6e92743ded4: 
unset($_GET["token"]); 
unset($Df391c1205663254); 
a74fc4843b202a1a: 
if (!isset($_GET["utc"])) { 
    goto A86bbba1ba5f5214; 
} 
$_GET["type"] = "timeshift"; 
goto C22b197ddc237d8f; 
e68e3371fd06e61f: 
XUI::E9070c2A08153639( 
    "show_banned_video", 
    "banned_video_path", 
    $f436329234033eb2, 
    $F7f24b19c4fe2e7a, 
    $C85a9af7d2969dae, 
    $C9502b7846a61338, 
    $F7f24b19c4fe2e7a["con_isp_name"] 
); 
a17418ac80d8ff1c: 
D70fdf61d649c8aa: 
if (!($f8cd97817c6cbdb2 != "subtitle")) { 
    goto d473a9041305dbed; 
} 
if (!($F7f24b19c4fe2e7a["bypass_ua"] == 0)) { 
    goto Cf60833dfd63a151; 
} 
goto Aa1ccf26bfe37724; 
D038daafd02fc470: 
$f0427fc826dd3997 = explode("::", $_GET["type"]); 
if (!(count($f0427fc826dd3997) == 2)) { 
    goto bacd476d2736542b; 
} 
$_GET["type"] = $f0427fc826dd3997[1]; 
$dcfdda514dd6436e = true; 
bacd476d2736542b: 
goto A49e7339d090bf83; 
E2b29bc2243ec520: 
$Cb0e6b6bea608281 = intval($_GET["stream"]); 
$f436329234033eb2 = isset($_GET["extension"]) 
    ? strtolower(preg_replace("/[^A-Za-z0-9 ]/", "", trim($_GET["extension"]))) 
    : null; 
if ( 
    !( 
        !$f436329234033eb2 && 
        in_array($f8cd97817c6cbdb2, ["movie", "series", "subtitle"]) 
    ) 
) { 
    goto d9da1aa3690ac5aa; 
} 
$C39c0013253807a5 = pathinfo($_GET["stream"]); 
$Cb0e6b6bea608281 = intval($C39c0013253807a5["filename"]); 
goto a74f414f375b8da2; 
a74f414f375b8da2: 
$f436329234033eb2 = strtolower( 
    preg_replace("/[^A-Za-z0-9 ]/", "", trim($C39c0013253807a5["extension"])) 
); 
d9da1aa3690ac5aa: 
if ($f436329234033eb2) { 
    goto D3067bf876b703a0; 
} 
switch ($f8cd97817c6cbdb2) { 
    case "timeshift": 
    case "live": 
        $f436329234033eb2 = "ts"; 
        goto eccf75e436881c22; 
    case "series": 
    case "movie": 
        $f436329234033eb2 = "mp4"; 
        goto eccf75e436881c22; 
} 
ede06fcca51cce20: 
goto ed6cdb2e4e19a9d5; 
ce89531e2f217dc0: 
b5d6abd90b277f45: 
$bed19f50f923723a = XUI::$rSettings["ip_subnet_match"] 
    ? implode(".", array_slice(explode(".", $f64406a9906c4321[1]), 0, -1)) == 
    implode(".", array_slice(explode(".", $C85a9af7d2969dae), 0, -1)) 
    : $f64406a9906c4321[1] == $C85a9af7d2969dae; 
if (!(!$bed19f50f923723a && XUI::$rSettings["restrict_same_ip"])) { 
    goto cda3045e845c79ac; 
} 
XUI::F5216B1c66461D02( 
    $Cb0e6b6bea608281, 
    $F7f24b19c4fe2e7a["id"], 
    "STALKER_IP_MISMATCH", 
    $C85a9af7d2969dae 
); 
generateError("STALKER_IP_MISMATCH"); 
goto c82ef389218ea964; 
Cc5d39ba5fc31726: 
if (!$ae8c1b90a1b3c353) { 
    goto eeda57d906c0a63a; 
} 
$F7f24b19c4fe2e7a = [ 
    "id" => null, 
    "is_restreamer" => 0, 
    "force_server_id" => 0, 
    "con_isp_name" => null, 
    "max_connections" => $E2980ebe5cbe3370, 
]; 
if (!XUI::$rSettings["show_isps"]) { 
    goto b9b7406e843e3a7b; 
} 
$D01c28ccad4e781b = XUI::a700d3Fb85E6f206($C85a9af7d2969dae); 
if (!is_array($D01c28ccad4e781b)) { 
    goto d3109e8cace91e7d; 
} 
goto D649bdb023278f09; 
C3f02e8baa95b5c1: 
a1ea6a84f220169b: 
$f64406a9906c4321 = explode("=", $b8baaa23b69fa6a7); 
if (!($f64406a9906c4321[2] != $Cb0e6b6bea608281)) { 
    goto b5d6abd90b277f45; 
} 
XUI::f5216b1C66461D02( 
    $Cb0e6b6bea608281, 
    $F7f24b19c4fe2e7a["id"], 
    "STALKER_CHANNEL_MISMATCH", 
    $C85a9af7d2969dae 
); 
generateError("STALKER_CHANNEL_MISMATCH"); 
goto ce89531e2f217dc0; 
b36f79a2527b30cb: 
ec7daf95a584f22b: 
goto Fd271e1316c5fd66; 
e162b14c5a15d686: 
XUI::a4AfcCda289F314e(); 
$d7c7502b3f9833d5 = &XUI::$db; 
F720f08e63f19532: 
header("Access-Control-Allow-Origin: *"); 
register_shutdown_function("shutdown"); 
goto e03591a1336f40ce; 
c9c2a1054bc85d58: 
eadab23527db819e: 
if ( 
    !($F7f24b19c4fe2e7a["isp_is_server"] && !$F7f24b19c4fe2e7a["is_restreamer"]) 
) { 
    goto E84e438125e83cc5; 
} 
XUI::F5216B1C66461D02( 
    $Cb0e6b6bea608281, 
    $F7f24b19c4fe2e7a["id"], 
    "BLOCKED_ASN", 
    $C85a9af7d2969dae, 
    json_encode([ 
        "user_agent" => $f089fd7362a9aa86, 
        "isp" => $F7f24b19c4fe2e7a["con_isp_name"], 
        "asn" => $F7f24b19c4fe2e7a["isp_asn"], 
    ]), 
    true 
); 
generateError("ASN_BLOCKED"); 
E84e438125e83cc5: 
goto a9b505568e82edd5; 
A8596b2d6f126029: 
if (!($f8cd97817c6cbdb2 == "live")) { 
    goto Cb94c475edfec9c9; 
} 
if (in_array($f436329234033eb2, $F7f24b19c4fe2e7a["output_formats"])) { 
    goto b47bfca032e0d658; 
} 
XUI::F5216B1c66461d02( 
    $Cb0e6b6bea608281, 
    $F7f24b19c4fe2e7a["id"], 
    "USER_DISALLOW_EXT", 
    $C85a9af7d2969dae 
); 
generateError("USER_DISALLOW_EXT"); 
b47bfca032e0d658: 
goto e05c7e9f2112879b; 
ebf5361f63c4ca25: 
if (isset(XUI::$rRequest["token"])) { 
    goto F7a07c5d9076dc3a; 
} 
if (isset(XUI::$rRequest["hmac"])) { 
    goto D6aac7d3415970c4; 
} 
$fa431415ab2a46b9 = XUI::$rRequest["username"]; 
$a38e7b338168909c = XUI::$rRequest["password"]; 
$F7f24b19c4fe2e7a = XUI::ee10A34E987e8ed2( 
    null, 
    $fa431415ab2a46b9, 
    $a38e7b338168909c, 
    false, 
    false, 
    $C85a9af7d2969dae 
); 
goto Fa6f0aa563a199c9; 
b05b6bd068c6da16: 
XUI::F5216b1c66461d02( 
    $Cb0e6b6bea608281, 
    $F7f24b19c4fe2e7a["id"], 
    "USER_DISABLED", 
    $C85a9af7d2969dae 
); 
if (in_array($f8cd97817c6cbdb2, ["live", "timeshift"])) { 
    goto Dd9344b282cc60d5; 
} 
if (in_array($f8cd97817c6cbdb2, ["movie", "series"])) { 
    goto Bbf331e2662b6cac; 
} 
generateError("DISABLED"); 
goto ca1362fa8630c189; 
goto C7f4f8af30c5bd3b; 
C2e4bee837830964: 
if (isset($_GET["extension"])) { 
    goto E22c6894e58f162e; 
} 
$_GET["extension"] = "ts"; 
E22c6894e58f162e: 
goto C73124b66a71a432; 
C36b289964da7489: 
goto fffdb90d96475c1f; 
Ad2a82edcd72376a: 
XUI::aEAE33917C37791A( 
    "restream_block_user/" . 
    $F7f24b19c4fe2e7a["id"] . 
    "/" . 
    $Cb0e6b6bea608281 . 
    "/" . 
    $C85a9af7d2969dae, 
    1 
); 
a0570ef5409233bd: 
F90fa995159de504: 
if ( 
    !( 
        XUI::$rSettings["restream_deny_unauthorised"] or 
        XUI::$rSettings["detect_restream_block_user"] 
    ) 
) { 
    goto b52b6ecdb926577e; 
} 
XUI::f5216b1C66461D02( 
    $Cb0e6b6bea608281, 
    $F7f24b19c4fe2e7a["id"], 
    "RESTREAM_DETECT", 
    $C85a9af7d2969dae, 
    json_encode([ 
        "user_agent" => $f089fd7362a9aa86, 
        "isp" => $F7f24b19c4fe2e7a["con_isp_name"], 
        "asn" => $F7f24b19c4fe2e7a["isp_asn"], 
    ]), 
    true 
); 
goto B8e99ed386a40caf; 
D649bdb023278f09: 
$F7f24b19c4fe2e7a["con_isp_name"] = $D01c28ccad4e781b["isp"]; 
d3109e8cace91e7d: 
b9b7406e843e3a7b: 
eeda57d906c0a63a: 
B51058773984c96a: 
goto A5a9663696323d27; 
fa6cfbe9d44022fc: 
E3723022a127fda6: 
$Fe2c987b3598866e = empty(XUI::$rRequest["identifier"]) 
    ? "" 
    : XUI::$rRequest["identifier"]; 
$F6969dc92f90fb0f = empty(XUI::$rRequest["ip"]) ? "" : XUI::$rRequest["ip"]; 
$E2980ebe5cbe3370 = isset(XUI::$rRequest["max"]) 
    ? intval(XUI::$rRequest["max"]) 
    : 0; 
$a44b87f64244d629 = isset(XUI::$rRequest["expiry"]) 
    ? XUI::$rRequest["expiry"] 
    : null; 
goto D955f866e92bcb9b; 
da090dc56bc87558: 
Aa9bbaa18aa2de65: 
if ( 
    !( 
        XUI::$rServers[SERVER_ID]["enable_proxy"] && 
        !XUI::c391E9C61d3dcC53($_SERVER["HTTP_X_IP"]) && 
        (!$F7f24b19c4fe2e7a["is_restreamer"] or 
            !XUI::$rSettings["restreamer_bypass_proxy"]) 
    ) 
) { 
    goto e30f9facd20c2621; 
} 
generateError("PROXY_ACCESS_DENIED"); 
e30f9facd20c2621: 
if (!$F7f24b19c4fe2e7a["is_e2"]) { 
    goto F3ce2b966b168b34; 
} 
goto C8709ffc15353def; 
A49e7339d090bf83: 
if ($_GET["type"] == "timeshift") { 
    goto C36b289964da7489; 
} 
$_GET["username"] = $Df391c1205663254[1]; 
$_GET["password"] = $Df391c1205663254[2]; 
$_GET["stream"] = $Df391c1205663254[3]; 
if (!(count($Df391c1205663254) >= 5)) { 
    goto a34353543181a973; 
} 
goto ecf7c88576eb7603; 
Bd06b4cef1c8ad13: 
$E5f89537623853c0 = base64_decode(urldecode(XUI::$rRequest["stalker_key"])); 
if ( 
    $b8baaa23b69fa6a7 = XUI::bCf4349bAeF245c4( 
        $E5f89537623853c0, 
        md5(XUI::$rSettings["live_streaming_pass"]) 
    ) 
) { 
    goto a1ea6a84f220169b; 
} 
XUI::F5216B1C66461D02( 
    $Cb0e6b6bea608281, 
    $F7f24b19c4fe2e7a["id"], 
    "STALKER_DECRYPT_FAILED", 
    $C85a9af7d2969dae 
); 
generateError("STALKER_DECRYPT_FAILED"); 
goto Bff7b5781e27d447; 
goto C3f02e8baa95b5c1; 
fffdb90d96475c1f: 
$_GET["username"] = $Df391c1205663254[1]; 
$_GET["password"] = $Df391c1205663254[2]; 
$_GET["duration"] = $Df391c1205663254[3]; 
$_GET["start"] = $Df391c1205663254[4]; 
$_GET["stream"] = $Df391c1205663254[5]; 
goto fbdded4da9ae9ce3; 
ffa0311f0e048922: 
generateError("NOT_IN_ALLOWED_UAS"); 
Dc90130de584e2a9: 
if (!$F7f24b19c4fe2e7a["isp_violate"]) { 
    goto eadab23527db819e; 
} 
XUI::f5216b1C66461d02( 
    $Cb0e6b6bea608281, 
    $F7f24b19c4fe2e7a["id"], 
    "ISP_LOCK_FAILED", 
    $C85a9af7d2969dae, 
    json_encode([ 
        "old" => $F7f24b19c4fe2e7a["isp_desc"], 
        "new" => $F7f24b19c4fe2e7a["con_isp_name"], 
    ]) 
); 
generateError("ISP_BLOCKED"); 
goto c9c2a1054bc85d58; 
b1ce8e17a54d76e4: 
fbc01f2be0d57f09: 
XUI::AeaE33917c37791A("expiring/" . $F7f24b19c4fe2e7a["id"], time()); 
f0e763f0aebba142: 
XUI::E9070c2A08153639( 
    "show_expiring_video", 
    "expiring_video_path", 
    $f436329234033eb2, 
    $F7f24b19c4fe2e7a, 
    $C85a9af7d2969dae, 
    $C9502b7846a61338, 
    $F7f24b19c4fe2e7a["con_isp_name"] 
); 
da88937d71abea46: 
goto Acb843a5bf805c38; 
ed6cdb2e4e19a9d5: 
eccf75e436881c22: 
D3067bf876b703a0: 
if ( 
    !( 
        !$Cb0e6b6bea608281 or 
        $E4e6c93eb2386bc9["enable_cache"] && 
        !file_exists(STREAMS_TMP_PATH . "stream_" . $Cb0e6b6bea608281) 
    ) 
) { 
    goto D805ca5f9df4ed83; 
} 
generateError("INVALID_STREAM_ID"); 
D805ca5f9df4ed83: 
goto D1aa6dc58469a107; 
E8abebecc165bf0d: 
generateError("EXPIRED"); 
goto A3428bed8cdcf3e7; 
fe774e4ff17b389c: 
XUI::E9070C2A08153639( 
    "show_expired_video", 
    "expired_video_path", 
    "ts", 
    $F7f24b19c4fe2e7a, 
    $C85a9af7d2969dae, 
    $C9502b7846a61338, 
    $F7f24b19c4fe2e7a["con_isp_name"] 
); 
A3428bed8cdcf3e7: 
goto c55c6a90f3265b57; 
C22b197ddc237d8f: 
$_GET["start"] = $_GET["utc"]; 
$_GET["duration"] = 3600 * 6; 
unset($_GET["utc"]); 
A86bbba1ba5f5214: 
$f8cd97817c6cbdb2 = $_GET["type"] ?? "live"; 
goto E2b29bc2243ec520; 
aba783cd9a48a759: 
if (file_exists(LINES_TMP_PATH . "line_t_" . $_GET["token"])) { 
    goto Bc0bc2d7717db264; 
} 
generateError("INVALID_CREDENTIALS"); 
Bc0bc2d7717db264: 
E99539e48b4c7bf3: 
cd117d4817e2e681: 
goto C92768a586bf76a1; 
B8e99ed386a40caf: 
generateError("RESTREAM_DETECT"); 
b52b6ecdb926577e: 
D70fdc13e2b31c39: 
C8fe46c3117c7e13: 
f1c2d894e24e0a59: 
goto A8596b2d6f126029; 
e03591a1336f40ce: 
function cF4F35827303f315($efa5d8ec8efb3ab5 = null, $E5919683463edb69 = false) 
{ 
    goto e787665ee76f345b; 
    adbb722103cdfa2d: 
    goto D77481e3b6f4cbfd; 
    c2126f51ebe73649: 
    $e5a66a4085dbbbbf = "http"; 
    D77481e3b6f4cbfd: 
    $fdf2284df72d7b09 = null; 
    goto A2824c067cabdce3; 
    A2824c067cabdce3: 
    if ( 
        strlen(HOST) > 0 && 
        in_array( 
            strtolower(HOST), 
            array_map( 
                "strtolower", 
                XUI::$rServers[$efa5d8ec8efb3ab5]["domains"]["urls"] 
            ) 
        ) 
    ) { 
        goto F5fd76a0df5bdf43; 
    } 
    if ( 
        !( 
            XUI::$rServers[$efa5d8ec8efb3ab5]["random_ip"] && 
            count(XUI::$rServers[$efa5d8ec8efb3ab5]["domains"]["urls"]) > 0 
        ) 
    ) { 
        goto ba26741f0e73c068; 
    } 
    $fdf2284df72d7b09 = 
        XUI::$rServers[$efa5d8ec8efb3ab5]["domains"]["urls"][ 
        array_rand(XUI::$rServers[$efa5d8ec8efb3ab5]["domains"]["urls"]) 
        ]; 
    ba26741f0e73c068: 
    goto Aa5d20af1e7c6ba8; 
    goto Ebb171c595a43762; 
    e787665ee76f345b: 
    if (isset($efa5d8ec8efb3ab5)) { 
        goto E350a08fece66efb; 
    } 
    $efa5d8ec8efb3ab5 = SERVER_ID; 
    E350a08fece66efb: 
    if ($E5919683463edb69) { 
        goto c2126f51ebe73649; 
    } 
    if (XUI::$rSettings["keep_protocol"]) { 
        goto d2a4675ced79f03e; 
    } 
    goto eed6abfed06b5770; 
    eed6abfed06b5770: 
    $e5a66a4085dbbbbf = XUI::$rServers[$efa5d8ec8efb3ab5]["server_protocol"]; 
    goto fa4dbb4571683415; 
    d2a4675ced79f03e: 
    $e5a66a4085dbbbbf = 
        (!empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] !== "off") || 
        $_SERVER["SERVER_PORT"] == 443 
            ? "https" 
            : "http"; 
    fa4dbb4571683415: 
    goto adbb722103cdfa2d; 
    F0d294d299c67d2f: 
    goto a19e74a62b2c070b; 
    bd03b61cb0f38a3e: 
    $d6187f170811b28b = 
        $e5a66a4085dbbbbf . 
        "://" . 
        $fdf2284df72d7b09 . 
        ":" . 
        XUI::$rServers[$efa5d8ec8efb3ab5][ 
        $e5a66a4085dbbbbf . "_broadcast_port" 
        ]; 
    a19e74a62b2c070b: 
    return $d6187f170811b28b; 
    goto D2fa88618aeb3dd8; 
    Ebb171c595a43762: 
    F5fd76a0df5bdf43: 
    $fdf2284df72d7b09 = HOST; 
    Aa5d20af1e7c6ba8: 
    if ($fdf2284df72d7b09) { 
        goto bd03b61cb0f38a3e; 
    } 
    $d6187f170811b28b = rtrim( 
        XUI::$rServers[$efa5d8ec8efb3ab5][$e5a66a4085dbbbbf . "_url"], 
        "/" 
    ); 
    goto F0d294d299c67d2f; 
    D2fa88618aeb3dd8: 
} 
$Ab1eff6ccfa398f6 = false; 
$bb5a581f12329951 = isset(XUI::$rRequest["prebuffer"]); 
foreach (getallheaders() as $F7f500299cf19408 => $a1f1ec7f4bb1f6e4) { 
    if (strtoupper($F7f500299cf19408) == "X-XUI-DETECT") { 
        goto B11f8747905dc7b1; 
    } 
    if (!(strtoupper($F7f500299cf19408) == "X-XUI-PREBUFFER")) { 
        goto E617e49053b742f4; 
    } 
    $bb5a581f12329951 = true; 
    E617e49053b742f4: 
    goto b9e6f5337ef80487; 
    B11f8747905dc7b1: 
    $Ab1eff6ccfa398f6 = true; 
    b9e6f5337ef80487: 
    B761a109fb9a483e: 
} 
A1ff0dcc69201e39: 
goto dfbdaa28bc408081; 
F8f6ea8db9a608f0: 
goto f20e5dc2a9ff97bc; 
aa68747257eee2cf: 
$Bdfb9582c2a9e0da = 
    LINES_TMP_PATH . "line_c_" . $_GET["username"] . "_" . $_GET["password"]; 
f20e5dc2a9ff97bc: 
if (file_exists($Bdfb9582c2a9e0da)) { 
    goto A4cb5bde12a011d4; 
} 
goto c8cee4b8970e6417; 
a663891d4035c06b: 
goto A03c234e250ac1fc; 
aeca8c52c01194f8: 
XUI::e9070c2A08153639( 
    "show_banned_video", 
    "banned_video_path", 
    "ts", 
    $F7f24b19c4fe2e7a, 
    $C85a9af7d2969dae, 
    $C9502b7846a61338, 
    $F7f24b19c4fe2e7a["con_isp_name"] 
); 
A03c234e250ac1fc: 
goto C0fa148796cc8876; 
goto E47e2414c93bd04d; 
C7f4f8af30c5bd3b: 
Bbf331e2662b6cac: 
XUI::E9070c2A08153639( 
    "show_banned_video", 
    "banned_video_path", 
    "ts", 
    $F7f24b19c4fe2e7a, 
    $C85a9af7d2969dae, 
    $C9502b7846a61338, 
    $F7f24b19c4fe2e7a["con_isp_name"] 
); 
ca1362fa8630c189: 
goto a17418ac80d8ff1c; 
Dd9344b282cc60d5: 
goto e68e3371fd06e61f; 
dfbdaa28bc408081: 
$c992f743f93e6bff = false; 
$F7f24b19c4fe2e7a = null; 
$ae8c1b90a1b3c353 = null; 
$Fe2c987b3598866e = ""; 
$Dca59bd0cc2fb95b = getmypid(); 
goto be2c82d321b1be47; 
da648c73e583e208: 
goto d3cf64157a206d68; 
c627bf7524970d40: 
$ad2f53924d647720 = $Df391c1205663254[5]; 
d3cf64157a206d68: 
f709709ba9230241: 
goto C2e4bee837830964; 
e63fcfc3ecb5ebe5: 
E1e94b58ae8cb07e: 
if (!$ae8c1b90a1b3c353) { 
    goto E412258c2b670151; 
} 
$Db2e4b9590962bf2 = false; 
goto e8427491e1174e7f; 
E412258c2b670151: 
goto fee45acf5c8a2a47; 
Ce9bf20c9dbc3ced: 
F0a44cca4de7ab2d: 
$D04713972bce545c = $f64406a9906c4321[0]; 
Bff7b5781e27d447: 
B0a6922fb9fcda46: 
if (in_array($f8cd97817c6cbdb2, ["thumb", "subtitle"])) { 
    goto f1c2d894e24e0a59; 
} 
goto c78c72d5c0d31f0c; 
A807dbc9ab34c359: 
generateError("NOT_IN_ALLOWED_COUNTRY"); 
e0f3a34c6ab2806b: 
b2c6a1de5116d02c: 
if ( 
    !( 
        !empty($F7f24b19c4fe2e7a["allowed_ua"]) && 
        !in_array($f089fd7362a9aa86, $F7f24b19c4fe2e7a["allowed_ua"]) 
    ) 
) { 
    goto Dc90130de584e2a9; 
} 
XUI::f5216b1c66461d02( 
    $Cb0e6b6bea608281, 
    $F7f24b19c4fe2e7a["id"], 
    "USER_AGENT_BAN", 
    $C85a9af7d2969dae 
); 
goto ffa0311f0e048922; 
a9b505568e82edd5: 
$Db2e4b9590962bf2 = false; 
if ($F7f24b19c4fe2e7a["is_mag"] && !$dcfdda514dd6436e) { 
    goto D8e6b0476e18aac5; 
} 
if ( 
    $dcfdda514dd6436e && 
    !XUI::$rSettings["disable_mag_token"] && 
    (!$ad2f53924d647720 or $ad2f53924d647720 != $F7f24b19c4fe2e7a["mag_token"]) 
) { 
    goto E830ffc8f1c21f8f; 
} 
if (!($a44b87f64244d629 && time() > $a44b87f64244d629)) { 
    goto dfa1b998153e6b25; 
} 
XUI::F5216b1c66461D02( 
    $Cb0e6b6bea608281, 
    $F7f24b19c4fe2e7a["id"], 
    "TOKEN_EXPIRED", 
    $C85a9af7d2969dae 
); 
goto Dcf14cc3ae8adf07; 
c82ef389218ea964: 
cda3045e845c79ac: 
$D9ba2df3670bbac9 = XUI::$rSettings["create_expiration"] ?: 5; 
if (!(time() - $D9ba2df3670bbac9 > $f64406a9906c4321[3])) { 
    goto F0a44cca4de7ab2d; 
} 
XUI::F5216b1c66461d02( 
    $Cb0e6b6bea608281, 
    $F7f24b19c4fe2e7a["id"], 
    "STALKER_KEY_EXPIRED", 
    $C85a9af7d2969dae 
); 
generateError("STALKER_KEY_EXPIRED"); 
goto Ce9bf20c9dbc3ced; 
Fa6f0aa563a199c9: 
goto B51058773984c96a; 
D6aac7d3415970c4: 
if (in_array($f8cd97817c6cbdb2, ["live", "movie", "series"])) { 
    goto E3723022a127fda6; 
} 
$Db2e4b9590962bf2 = false; 
generateError("INVALID_TYPE_TOKEN"); 
goto fa6cfbe9d44022fc; 
C82a5f70826c295b: 
header("Cache-Control: no-store, no-cache, must-revalidate"); 
require_once "init.php"; 
if ( 
    !( 
        $E4e6c93eb2386bc9["enable_cache"] && 
        !file_exists(CACHE_TMP_PATH . "cache_complete") or 
        empty($E4e6c93eb2386bc9["live_streaming_pass"]) 
    ) 
) { 
    goto d6d4696aaa3470d2; 
} 
generateError("CACHE_INCOMPLETE"); 
d6d4696aaa3470d2: 
goto f0053ca133eb748c; 
be2c82d321b1be47: 
$Faae14c064aabdac = md5(uniqid()); 
$C85a9af7d2969dae = XUI::CBe116DF36E3A66a(); 
$C9502b7846a61338 = XUI::DfdA3e1b2F0e99D2($C85a9af7d2969dae)["country"][ 
"iso_code" 
]; 
$f089fd7362a9aa86 = empty($_SERVER["HTTP_USER_AGENT"]) 
    ? "" 
    : htmlentities(trim($_SERVER["HTTP_USER_AGENT"])); 
$Db2e4b9590962bf2 = true; 
goto ca0589a2735fd603; 
fbeeeada56105509: 
if ($F7f24b19c4fe2e7a or $ae8c1b90a1b3c353) { 
    goto Aa9bbaa18aa2de65; 
} 
XUI::c1A8b55dE2643c7e($C85a9af7d2969dae, null, $fa431415ab2a46b9); 
XUI::f5216B1c66461d02($Cb0e6b6bea608281, 0, "AUTH_FAILED", $C85a9af7d2969dae); 
generateError("INVALID_CREDENTIALS"); 
goto Dc4d10a74f8fafc1; 
goto da090dc56bc87558; 
E47e2414c93bd04d: 
c0a164506e25e233: 
XUI::E9070c2a08153639( 
    "show_banned_video", 
    "banned_video_path", 
    $f436329234033eb2, 
    $F7f24b19c4fe2e7a, 
    $C85a9af7d2969dae, 
    $C9502b7846a61338, 
    $F7f24b19c4fe2e7a["con_isp_name"] 
); 
C0fa148796cc8876: 
F928c55e2c3277a7: 
if (!($F7f24b19c4fe2e7a["enabled"] == 0)) { 
    goto D70fdf61d649c8aa; 
} 
goto b05b6bd068c6da16; 
D1aa6dc58469a107: 
if ( 
    !( 
        $E4e6c93eb2386bc9["ignore_invalid_users"] && 
        $E4e6c93eb2386bc9["enable_cache"] 
    ) 
) { 
    goto cd117d4817e2e681; 
} 
if (isset($_GET["token"])) { 
    goto F2a69b13d5876f9d; 
} 
if (!(isset($_GET["username"]) && isset($_GET["password"]))) { 
    goto baa50e29491becff; 
} 
if ($E4e6c93eb2386bc9["case_sensitive_line"]) { 
    goto aa68747257eee2cf; 
} 
$Bdfb9582c2a9e0da = 
    LINES_TMP_PATH . 
    "line_c_" . 
    strtolower($_GET["username"]) . 
    "_" . 
    strtolower($_GET["password"]); 
goto F8f6ea8db9a608f0; 
bf679fa6e177f096: 
goto Dd73954601125468; 
e343556e337ba0d2: 
$E5919683463edb69 = true; 
Dd73954601125468: 
goto Ec2ae539c5e4e200; 
goto E596a6c08966310e; 
F3a846326a4bf4dd: 
XUI::F5216B1c66461d02( 
    $Cb0e6b6bea608281, 
    $F7f24b19c4fe2e7a["id"], 
    "EMPTY_UA", 
    $C85a9af7d2969dae 
); 
generateError("EMPTY_USER_AGENT"); 
E79399c9a2876c4e: 
if ( 
    !( 
        !empty($F7f24b19c4fe2e7a["allowed_ips"]) && 
        !in_array( 
            $C85a9af7d2969dae, 
            array_map("gethostbyname", $F7f24b19c4fe2e7a["allowed_ips"]) 
        ) 
    ) 
) { 
    goto d7fc9dd039fa1ca6; 
} 
XUI::f5216b1c66461d02( 
    $Cb0e6b6bea608281, 
    $F7f24b19c4fe2e7a["id"], 
    "IP_BAN", 
    $C85a9af7d2969dae 
); 
goto a2b1e04c663820ab; 
D543cd2b1755d36e: 
B2d7c354a634f9ba: 
goto Cc83635d584e37c2; 
D8e6b0476e18aac5: 
generateError("DEVICE_NOT_ALLOWED"); 
Cc83635d584e37c2: 
goto C33cb7215a166df4; 
e0ba7b6a7464cb12: 
if (!XUI::$rSettings["detect_restream_block_user"]) { 
    goto F90fa995159de504; 
} 
if (XUI::$rCached) { 
    goto E5d3284e95ac2465; 
} 
$d7c7502b3f9833d5->query( 
    "UPDATE `lines` SET `admin_enabled` = 0 WHERE `id` = ?;", 
    $F7f24b19c4fe2e7a["id"] 
); 
goto a0570ef5409233bd; 
E5d3284e95ac2465: 
goto Ad2a82edcd72376a; 
ca0589a2735fd603: 
$D04713972bce545c = null; 
$Bdcdfca4ee66b149 = time(); 
if (isset($a44b87f64244d629)) { 
    goto e7600a4edacea0ba; 
} 
$a44b87f64244d629 = null; 
e7600a4edacea0ba: 
goto ebf5361f63c4ca25; 
c78c72d5c0d31f0c: 
if ( 
    !( 
        !$F7f24b19c4fe2e7a["is_restreamer"] && 
        !in_array($C85a9af7d2969dae, XUI::$rAllowedIPs) 
    ) 
) { 
    goto C8fe46c3117c7e13; 
} 
if ( 
    !( 
        XUI::$rSettings["block_streaming_servers"] or 
        XUI::$rSettings["block_proxies"] 
    ) 
) { 
    goto Cc7262628a143c9b; 
} 
$f7017bd191b07ae7 = XUI::A933493fB671Cc37( 
    $F7f24b19c4fe2e7a["isp_asn"], 
    $C85a9af7d2969dae 
); 
if (!$f7017bd191b07ae7) { 
    goto fc017c1323fd9d7a; 
} 
if ( 
    !( 
        XUI::$rSettings["block_streaming_servers"] && 
        $f7017bd191b07ae7[3] && 
        !$f7017bd191b07ae7[4] 
    ) 
) { 
    goto Ecbf156e56043580; 
} 
goto C1f2a73cb5908245; 
f0053ca133eb748c: 
$dcfdda514dd6436e = false; 
$ad2f53924d647720 = null; 
if (!(isset($_GET["token"]) && !ctype_xdigit($_GET["token"]))) { 
    goto a74fc4843b202a1a; 
} 
$Df391c1205663254 = explode( 
    "/", 
    Xui\Functions::decrypt( 
        $_GET["token"], 
        $E4e6c93eb2386bc9["live_streaming_pass"], 
        OPENSSL_EXTRA 
    ) 
); 
$_GET["type"] = $Df391c1205663254[0]; 
goto D038daafd02fc470; 
c55c6a90f3265b57: 
goto f767a2dad67a41be; 
Bd685948367dc416: 
XUI::e9070C2a08153639( 
    "show_expired_video", 
    "expired_video_path", 
    $f436329234033eb2, 
    $F7f24b19c4fe2e7a, 
    $C85a9af7d2969dae, 
    $C9502b7846a61338, 
    $F7f24b19c4fe2e7a["con_isp_name"] 
); 
f767a2dad67a41be: 
fa3d992fee95856f: 
goto b41906eabdf747b7; 
Aa1ccf26bfe37724: 
if (!XUI::eACD3a80d47f1aD3($f089fd7362a9aa86)) { 
    goto a35685fa7cef5530; 
} 
generateError("BLOCKED_USER_AGENT"); 
a35685fa7cef5530: 
Cf60833dfd63a151: 
if ( 
    !(empty($f089fd7362a9aa86) && XUI::$rSettings["disallow_empty_user_agents"]) 
) { 
    goto E79399c9a2876c4e; 
} 
goto F3a846326a4bf4dd; 
fbdded4da9ae9ce3: 
if (!$dcfdda514dd6436e) { 
    goto E47ca4ecd8115109; 
} 
$ad2f53924d647720 = $Df391c1205663254[6]; 
E47ca4ecd8115109: 
$_GET["extension"] = "ts"; 
C73124b66a71a432: 
goto d3e7b6e92743ded4; 
C1f2a73cb5908245: 
XUI::f5216b1c66461d02( 
    $Cb0e6b6bea608281, 
    $F7f24b19c4fe2e7a["id"], 
    "HOSTING_DETECT", 
    $C85a9af7d2969dae, 
    json_encode([ 
        "user_agent" => $f089fd7362a9aa86, 
        "isp" => $F7f24b19c4fe2e7a["con_isp_name"], 
        "asn" => $F7f24b19c4fe2e7a["isp_asn"], 
    ]), 
    true 
); 
generateError("HOSTING_DETECT"); 
Ecbf156e56043580: 
if (!(XUI::$rSettings["block_proxies"] && $f7017bd191b07ae7[4])) { 
    goto E0ce5824aa17a8a0; 
} 
XUI::F5216B1c66461d02( 
    $Cb0e6b6bea608281, 
    $F7f24b19c4fe2e7a["id"], 
    "PROXY_DETECT", 
    $C85a9af7d2969dae, 
    json_encode([ 
        "user_agent" => $f089fd7362a9aa86, 
        "isp" => $F7f24b19c4fe2e7a["con_isp_name"], 
        "asn" => $F7f24b19c4fe2e7a["isp_asn"], 
    ]), 
    true 
); 
goto b5599786b5de97ce; 
A5a9663696323d27: 
goto C89e3e9162a48e71; 
F7a07c5d9076dc3a: 
$B6221fca9e056317 = XUI::$rRequest["token"]; 
$F7f24b19c4fe2e7a = XUI::eE10a34E987E8eD2( 
    null, 
    $B6221fca9e056317, 
    null, 
    false, 
    false, 
    $C85a9af7d2969dae 
); 
C89e3e9162a48e71: 
goto fbeeeada56105509; 
b41906eabdf747b7: 
if (!($F7f24b19c4fe2e7a["admin_enabled"] == 0)) { 
    goto F928c55e2c3277a7; 
} 
XUI::f5216B1c66461D02( 
    $Cb0e6b6bea608281, 
    $F7f24b19c4fe2e7a["id"], 
    "USER_BAN", 
    $C85a9af7d2969dae 
); 
if (in_array($f8cd97817c6cbdb2, ["live", "timeshift"])) { 
    goto c0a164506e25e233; 
} 
if (in_array($f8cd97817c6cbdb2, ["movie", "series"])) { 
    goto aeca8c52c01194f8; 
} 
generateError("BANNED"); 
goto a663891d4035c06b; 
E596a6c08966310e: 
b9b0bbd62e6ed893: 
$E5919683463edb69 = XUI::$rSettings["mag_disable_ssl"]; 
Ec2ae539c5e4e200: 
switch ($f8cd97817c6cbdb2) { 
    case "live": 
        goto E72c32c753fa8073; 
        aa86dfb68f47b694: 
        switch ($f436329234033eb2) { 
            case "m3u8": 
                goto b4bf64518fef1e78; 
                Cf8ca6374e437ae1: 
                B87cf1dd35e091e2: 
                $Cb626a6c8ac109eb = Xui\Functions::encrypt( 
                    json_encode($d1f773231c78cb1f), 
                    XUI::$rSettings["live_streaming_pass"], 
                    OPENSSL_EXTRA 
                ); 
                if (XUI::$rSettings["allow_cdn_access"]) { 
                    goto C442824b6873c223; 
                } 
                header( 
                    "Location: {$d6187f170811b28b}/auth/{$Cb626a6c8ac109eb}" 
                ); 
                exit(); 
                goto B0618f72700a6703; 
                bcb365a0e94dd08e: 
                if (!$ae8c1b90a1b3c353) { 
                    goto Aebec6b725496126; 
                } 
                $d1f773231c78cb1f = [ 
                    "stream_id" => $Cb0e6b6bea608281, 
                    "hmac_hash" => XUI::$rRequest["hmac"], 
                    "hmac_id" => $ae8c1b90a1b3c353, 
                    "identifier" => $Fe2c987b3598866e, 
                    "extension" => $f436329234033eb2, 
                    "channel_info" => [ 
                        "redirect_id" => $c4c684d64461b922["redirect_id"], 
                        "pid" => $c4c684d64461b922["pid"], 
                        "on_demand" => $c4c684d64461b922["on_demand"], 
                        "monitor_pid" => $c4c684d64461b922["monitor_pid"], 
                        "aes_pid" => $c4c684d64461b922["aes_pid"], 
                    ], 
                    "user_info" => $F7f24b19c4fe2e7a, 
                    "pid" => $Dca59bd0cc2fb95b, 
                    "external_device" => $D04713972bce545c, 
                    "activity_start" => $Bdcdfca4ee66b149, 
                    "country_code" => $C9502b7846a61338, 
                    "video_codec" => $cdf1f35176307859, 
                    "uuid" => $Faae14c064aabdac, 
                ]; 
                goto B87cf1dd35e091e2; 
                Aebec6b725496126: 
                $d1f773231c78cb1f = [ 
                    "stream_id" => $Cb0e6b6bea608281, 
                    "username" => $F7f24b19c4fe2e7a["username"], 
                    "password" => $F7f24b19c4fe2e7a["password"], 
                    "extension" => $f436329234033eb2, 
                    "pid" => $Dca59bd0cc2fb95b, 
                    "channel_info" => [ 
                        "redirect_id" => $c4c684d64461b922["redirect_id"], 
                        "pid" => $c4c684d64461b922["pid"], 
                        "on_demand" => $c4c684d64461b922["on_demand"], 
                        "monitor_pid" => $c4c684d64461b922["monitor_pid"], 
                        "aes_pid" => $c4c684d64461b922["aes_pid"], 
                    ], 
                    "user_info" => [ 
                        "id" => $F7f24b19c4fe2e7a["id"], 
                        "max_connections" => 
                            $F7f24b19c4fe2e7a["max_connections"], 
                        "pair_id" => $F7f24b19c4fe2e7a["pair_id"], 
                        "con_isp_name" => $F7f24b19c4fe2e7a["con_isp_name"], 
                        "is_restreamer" => $F7f24b19c4fe2e7a["is_restreamer"], 
                    ], 
                    "external_device" => $D04713972bce545c, 
                    "activity_start" => $Bdcdfca4ee66b149, 
                    "country_code" => $C9502b7846a61338, 
                    "video_codec" => $cdf1f35176307859, 
                    "uuid" => $Faae14c064aabdac, 
                ]; 
                goto Cf8ca6374e437ae1; 
                cbb50ee70e919052: 
                $f30074c06d442753 = 
                    "#EXTM3U 
" . 
                    implode( 
                        " 
", 
                        array_values($F67209aa5a187b0b) 
                    ); 
                ob_end_clean(); 
                header("Content-Type: application/x-mpegurl"); 
                header("Content-Length: " . strlen($f30074c06d442753)); 
                echo $f30074c06d442753; 
                goto Aab47fd4cbb0fb82; 
                C2e383d53652a363: 
                if (count($F67209aa5a187b0b) > 0) { 
                    goto F4a30184d26b447d; 
                } 
                XUI::E9070c2a08153639( 
                    "show_not_on_air_video", 
                    "not_on_air_video_path", 
                    "ts", 
                    $F7f24b19c4fe2e7a, 
                    $C85a9af7d2969dae, 
                    $C9502b7846a61338, 
                    $F7f24b19c4fe2e7a["con_isp_name"] 
                ); 
                goto Bdf7f5a4ccd44e96; 
                F4a30184d26b447d: 
                krsort($F67209aa5a187b0b); 
                goto cbb50ee70e919052; 
                Aab47fd4cbb0fb82: 
                exit(); 
                Bdf7f5a4ccd44e96: 
                Daad69b2cbc790cb: 
                exit(); 
                goto e88223f9e52f0ddb; 
                b4bf64518fef1e78: 
                if ( 
                    !( 
                        XUI::$rSettings["disable_hls"] && 
                        (!$F7f24b19c4fe2e7a["is_restreamer"] or 
                            !XUI::$rSettings["disable_hls_allow_restream"]) 
                    ) 
                ) { 
                    goto b0eab7033e099979; 
                } 
                generateError("HLS_DISABLED"); 
                b0eab7033e099979: 
                $ae8172f3441a35ea = json_decode( 
                    $c4c684d64461b922["adaptive_link"], 
                    true 
                ); 
                if ( 
                    !$ae8c1b90a1b3c353 && 
                    is_array($ae8172f3441a35ea) && 
                    count($ae8172f3441a35ea) > 0 
                ) { 
                    goto D9139e03f0abf78a; 
                } 
                goto bcb365a0e94dd08e; 
                D9d8bf1263c90b02: 
                goto Daad69b2cbc790cb; 
                D9139e03f0abf78a: 
                $F67209aa5a187b0b = []; 
                foreach ( 
                    array_merge([$Cb0e6b6bea608281], $ae8172f3441a35ea) 
                    as $e3515b9e776987c2 
                ) { 
                    goto F6a0094d6122fe9a; 
                    F6a0094d6122fe9a: 
                    if ($e3515b9e776987c2 != $Cb0e6b6bea608281) { 
                        goto Ffb6e5f9bac11eae; 
                    } 
                    $Db7b9c7c6d97e885 = $c4c684d64461b922; 
                    goto A4648c32d23173c2; 
                    Ffb6e5f9bac11eae: 
                    $Db7b9c7c6d97e885 = XUI::C7f9cb5481dCA329( 
                        $e3515b9e776987c2, 
                        $f436329234033eb2, 
                        $F7f24b19c4fe2e7a, 
                        $C9502b7846a61338, 
                        $F7f24b19c4fe2e7a["con_isp_name"], 
                        "live" 
                    ); 
                    goto e5934bd75559f436; 
                    e5934bd75559f436: 
                    A4648c32d23173c2: 
                    $E1dc28fe83690f7c = json_decode( 
                        $Db7b9c7c6d97e885["stream_info"], 
                        true 
                    ); 
                    $Ab985acb809850f0 = $E1dc28fe83690f7c["bitrate"] ?: 0; 
                    $e681839793100098 = 
                        $E1dc28fe83690f7c["codecs"]["video"]["width"] ?: 0; 
                    $c414efaf9cba0672 = 
                        $E1dc28fe83690f7c["codecs"]["video"]["height"] ?: 0; 
                    goto deea889ae2225386; 
                    a42edf9e5ef9d93e: 
                    e2d8b62601ff4e2b: 
                    fa2e0bc1b1dddd86: 
                    goto C4098eeb7292d218; 
                    deea889ae2225386: 
                    if ( 
                        !( 
                            $Ab985acb809850f0 > 0 && 
                            $c414efaf9cba0672 > 0 && 
                            $e681839793100098 > 0 
                        ) 
                    ) { 
                        goto e2d8b62601ff4e2b; 
                    } 
                    $d1f773231c78cb1f = [ 
                        "stream_id" => $e3515b9e776987c2, 
                        "username" => $F7f24b19c4fe2e7a["username"], 
                        "password" => $F7f24b19c4fe2e7a["password"], 
                        "extension" => $f436329234033eb2, 
                        "pid" => $Dca59bd0cc2fb95b, 
                        "channel_info" => [ 
                            "redirect_id" => $Db7b9c7c6d97e885["redirect_id"], 
                            "pid" => $Db7b9c7c6d97e885["pid"], 
                            "on_demand" => $Db7b9c7c6d97e885["on_demand"], 
                            "monitor_pid" => $Db7b9c7c6d97e885["monitor_pid"], 
                            "aes_pid" => $Db7b9c7c6d97e885["aes_pid"], 
                        ], 
                        "user_info" => [ 
                            "id" => $F7f24b19c4fe2e7a["id"], 
                            "max_connections" => 
                                $F7f24b19c4fe2e7a["max_connections"], 
                            "pair_id" => $F7f24b19c4fe2e7a["pair_id"], 
                            "con_isp_name" => $F7f24b19c4fe2e7a["con_isp_name"], 
                            "is_restreamer" => 
                                $F7f24b19c4fe2e7a["is_restreamer"], 
                        ], 
                        "external_device" => $D04713972bce545c, 
                        "activity_start" => $Bdcdfca4ee66b149, 
                        "country_code" => $C9502b7846a61338, 
                        "video_codec" => 
                            $E1dc28fe83690f7c["codecs"]["video"][ 
                            "codec_name" 
                            ] ?: 
                                "h264", 
                        "uuid" => $Faae14c064aabdac, 
                        "adaptive" => [ 
                            $c4c684d64461b922["redirect_id"], 
                            $Cb0e6b6bea608281, 
                        ], 
                    ]; 
                    $d6187f170811b28b = cf4F35827303F315( 
                        $Db7b9c7c6d97e885["redirect_id"], 
                        $E5919683463edb69 
                    ); 
                    $C1280d439929bfb3 = 
                        "{$d6187f170811b28b}/auth/" . 
                        Xui\Functions::encrypt( 
                            json_encode($d1f773231c78cb1f), 
                            XUI::$rSettings["live_streaming_pass"], 
                            OPENSSL_EXTRA 
                        ); 
                    $F67209aa5a187b0b[ 
                    $Ab985acb809850f0 
                    ] = "#EXT-X-STREAM-INF:BANDWIDTH={$Ab985acb809850f0},RESOLUTION={$e681839793100098}x{$c414efaf9cba0672} 
{$C1280d439929bfb3}"; 
                    goto a42edf9e5ef9d93e; 
                    C4098eeb7292d218: 
                } 
                E5c16e81713e25b9: 
                goto C2e383d53652a363; 
                B0618f72700a6703: 
                goto C106ad13e29f627d; 
                C442824b6873c223: 
                header( 
                    "Location: {$d6187f170811b28b}/auth/{$Cb0e6b6bea608281}.m3u8?token={$Cb626a6c8ac109eb}" 
                ); 
                exit(); 
                C106ad13e29f627d: 
                goto D9d8bf1263c90b02; 
                e88223f9e52f0ddb: 
            case "ts": 
                goto f9a0c8cde4dd157e; 
                e98018a1d46f0ac0: 
                if (XUI::$rSettings["allow_cdn_access"]) { 
                    goto e3785cfcdfa483ac; 
                } 
                header( 
                    "Location: {$d6187f170811b28b}/auth/{$Cb626a6c8ac109eb}" 
                ); 
                exit(); 
                goto f7dd882f4163ddd6; 
                e3785cfcdfa483ac: 
                goto E3073b9c114e7306; 
                f9a0c8cde4dd157e: 
                if ( 
                    !( 
                        XUI::$rSettings["disable_ts"] && 
                        (!$F7f24b19c4fe2e7a["is_restreamer"] or 
                            !XUI::$rSettings["disable_ts_allow_restream"]) 
                    ) 
                ) { 
                    goto B4772417f746fba6; 
                } 
                generateError("TS_DISABLED"); 
                B4772417f746fba6: 
                if (!$ae8c1b90a1b3c353) { 
                    goto b9c04c7813e5c11c; 
                } 
                $d1f773231c78cb1f = [ 
                    "stream_id" => $Cb0e6b6bea608281, 
                    "hmac_hash" => XUI::$rRequest["hmac"], 
                    "hmac_id" => $ae8c1b90a1b3c353, 
                    "identifier" => $Fe2c987b3598866e, 
                    "extension" => $f436329234033eb2, 
                    "channel_info" => [ 
                        "stream_id" => $c4c684d64461b922["stream_id"], 
                        "redirect_id" => 
                            $c4c684d64461b922["redirect_id"] ?: null, 
                        "pid" => $c4c684d64461b922["pid"], 
                        "on_demand" => $c4c684d64461b922["on_demand"], 
                        "monitor_pid" => $c4c684d64461b922["monitor_pid"], 
                        "aes_pid" => $c4c684d64461b922["aes_pid"], 
                    ], 
                    "user_info" => $F7f24b19c4fe2e7a, 
                    "pid" => $Dca59bd0cc2fb95b, 
                    "prebuffer" => $bb5a581f12329951, 
                    "country_code" => $C9502b7846a61338, 
                    "activity_start" => $Bdcdfca4ee66b149, 
                    "external_device" => $D04713972bce545c, 
                    "video_codec" => $cdf1f35176307859, 
                    "uuid" => $Faae14c064aabdac, 
                ]; 
                goto Cb0a2a1c540b89a3; 
                Cb0a2a1c540b89a3: 
                goto Ca9348b459181a20; 
                b9c04c7813e5c11c: 
                $d1f773231c78cb1f = [ 
                    "stream_id" => $Cb0e6b6bea608281, 
                    "username" => $F7f24b19c4fe2e7a["username"], 
                    "password" => $F7f24b19c4fe2e7a["password"], 
                    "extension" => $f436329234033eb2, 
                    "channel_info" => [ 
                        "stream_id" => $c4c684d64461b922["stream_id"], 
                        "redirect_id" => 
                            $c4c684d64461b922["redirect_id"] ?: null, 
                        "pid" => $c4c684d64461b922["pid"], 
                        "on_demand" => $c4c684d64461b922["on_demand"], 
                        "monitor_pid" => $c4c684d64461b922["monitor_pid"], 
                        "aes_pid" => $c4c684d64461b922["aes_pid"], 
                    ], 
                    "user_info" => [ 
                        "id" => $F7f24b19c4fe2e7a["id"], 
                        "max_connections" => 
                            $F7f24b19c4fe2e7a["max_connections"], 
                        "pair_id" => $F7f24b19c4fe2e7a["pair_id"], 
                        "con_isp_name" => $F7f24b19c4fe2e7a["con_isp_name"], 
                        "is_restreamer" => $F7f24b19c4fe2e7a["is_restreamer"], 
                    ], 
                    "pid" => $Dca59bd0cc2fb95b, 
                    "prebuffer" => $bb5a581f12329951, 
                    "country_code" => $C9502b7846a61338, 
                    "activity_start" => $Bdcdfca4ee66b149, 
                    "external_device" => $D04713972bce545c, 
                    "video_codec" => $cdf1f35176307859, 
                    "uuid" => $Faae14c064aabdac, 
                ]; 
                Ca9348b459181a20: 
                $Cb626a6c8ac109eb = Xui\Functions::encrypt( 
                    json_encode($d1f773231c78cb1f), 
                    XUI::$rSettings["live_streaming_pass"], 
                    OPENSSL_EXTRA 
                ); 
                goto e98018a1d46f0ac0; 
                E3073b9c114e7306: 
                header( 
                    "Location: {$d6187f170811b28b}/auth/{$Cb0e6b6bea608281}.ts?token={$Cb626a6c8ac109eb}" 
                ); 
                exit(); 
                f7dd882f4163ddd6: 
                goto a5a8e83d35e06d83; 
                a5a8e83d35e06d83: 
        } 
        a912bcced4762d38: 
        C84654b79bb52c75: 
        efcc9e9566229202: 
        goto ec7daf95a584f22b; 
        goto d741f2b517a6b09e; 
        F1db983ef456f414: 
        if (!(count(array_keys($c4c684d64461b922)) == 0)) { 
            goto ad9b4bef4eb0fa8e; 
        } 
        generateError("NO_SERVERS_AVAILABLE"); 
        ad9b4bef4eb0fa8e: 
        if ( 
            !empty( 
            array_intersect( 
                $F7f24b19c4fe2e7a["bouquet"], 
                $c4c684d64461b922["bouquets"] 
            ) 
            ) 
        ) { 
            goto b347ece690174a52; 
        } 
        $Db2e4b9590962bf2 = true; 
        goto D000c79c23fe19c2; 
        D000c79c23fe19c2: 
        generateError("NOT_IN_BOUQUET"); 
        b347ece690174a52: 
        $E1dc28fe83690f7c = json_decode($c4c684d64461b922["stream_info"], true); 
        $cdf1f35176307859 = 
            $E1dc28fe83690f7c["codecs"]["video"]["codec_name"] ?: "h264"; 
        $d6187f170811b28b = cF4f35827303F315( 
            $c4c684d64461b922["redirect_id"], 
            $E5919683463edb69 
        ); 
        goto aa86dfb68f47b694; 
        E72c32c753fa8073: 
        $c4c684d64461b922 = XUI::C7F9CB5481Dca329( 
            $Cb0e6b6bea608281, 
            $f436329234033eb2, 
            $F7f24b19c4fe2e7a, 
            $C9502b7846a61338, 
            $F7f24b19c4fe2e7a["con_isp_name"], 
            "live" 
        ); 
        if (is_array($c4c684d64461b922)) { 
            goto A939c2069a0e2a3c; 
        } 
        XUI::E9070C2a08153639( 
            "show_not_on_air_video", 
            "not_on_air_video_path", 
            $f436329234033eb2, 
            $F7f24b19c4fe2e7a, 
            $C85a9af7d2969dae, 
            $C9502b7846a61338, 
            $F7f24b19c4fe2e7a["con_isp_name"] 
        ); 
        goto efcc9e9566229202; 
        A939c2069a0e2a3c: 
        goto F1db983ef456f414; 
        d741f2b517a6b09e: 
    case "movie": 
    case "series": 
        goto fde5855d341496c7; 
        fde5855d341496c7: 
        $c4c684d64461b922 = XUI::c7f9cB5481DCa329( 
            $Cb0e6b6bea608281, 
            $f436329234033eb2, 
            $F7f24b19c4fe2e7a, 
            $C9502b7846a61338, 
            $F7f24b19c4fe2e7a["con_isp_name"], 
            "movie" 
        ); 
        if ($c4c684d64461b922) { 
            goto d4fd282d30b8ff01; 
        } 
        XUI::E9070c2A08153639( 
            "show_not_on_air_video", 
            "not_on_air_video_path", 
            "ts", 
            $F7f24b19c4fe2e7a, 
            $C85a9af7d2969dae, 
            $C9502b7846a61338, 
            $F7f24b19c4fe2e7a["con_isp_name"] 
        ); 
        goto a326ddf270bf9896; 
        d4fd282d30b8ff01: 
        goto f8bc960a0b0315cc; 
        b09d4e1622320bfb: 
        exit(); 
        goto c24e91029c6ef8dc; 
        fd391ca856c637a9: 
        header( 
            "Location: {$d6187f170811b28b}/vauth/{$Cb0e6b6bea608281}.{$f436329234033eb2}?token={$Cb626a6c8ac109eb}" 
        ); 
        exit(); 
        goto a4a0ffc313c2230f; 
        e5df3d60e339ee5c: 
        $d1f773231c78cb1f = [ 
            "stream_id" => $Cb0e6b6bea608281, 
            "username" => $F7f24b19c4fe2e7a["username"], 
            "password" => $F7f24b19c4fe2e7a["password"], 
            "extension" => $f436329234033eb2, 
            "type" => $f8cd97817c6cbdb2, 
            "pid" => $Dca59bd0cc2fb95b, 
            "channel_info" => [ 
                "stream_id" => $c4c684d64461b922["stream_id"], 
                "bitrate" => $c4c684d64461b922["bitrate"], 
                "target_container" => $c4c684d64461b922["target_container"], 
                "redirect_id" => $c4c684d64461b922["redirect_id"], 
                "pid" => $c4c684d64461b922["pid"], 
            ], 
            "user_info" => [ 
                "id" => $F7f24b19c4fe2e7a["id"], 
                "max_connections" => $F7f24b19c4fe2e7a["max_connections"], 
                "pair_id" => $F7f24b19c4fe2e7a["pair_id"], 
                "con_isp_name" => $F7f24b19c4fe2e7a["con_isp_name"], 
                "is_restreamer" => $F7f24b19c4fe2e7a["is_restreamer"], 
            ], 
            "country_code" => $C9502b7846a61338, 
            "activity_start" => $Bdcdfca4ee66b149, 
            "is_mag" => $dcfdda514dd6436e, 
            "uuid" => $Faae14c064aabdac, 
            "http_range" => isset($_SERVER["HTTP_RANGE"]) 
                ? $_SERVER["HTTP_RANGE"] 
                : null, 
        ]; 
        d44833b2a7c07931: 
        $Cb626a6c8ac109eb = Xui\Functions::encrypt( 
            json_encode($d1f773231c78cb1f), 
            XUI::$rSettings["live_streaming_pass"], 
            OPENSSL_EXTRA 
        ); 
        if (XUI::$rSettings["allow_cdn_access"]) { 
            goto fd391ca856c637a9; 
        } 
        header("Location: {$d6187f170811b28b}/vauth/{$Cb626a6c8ac109eb}"); 
        goto b09d4e1622320bfb; 
        a4a0ffc313c2230f: 
        c24e91029c6ef8dc: 
        a326ddf270bf9896: 
        goto ec7daf95a584f22b; 
        goto Ddf7c3f86038ead0; 
        f8bc960a0b0315cc: 
        $d6187f170811b28b = Cf4F35827303F315( 
            $c4c684d64461b922["redirect_id"], 
            $E5919683463edb69 
        ); 
        if (!$ae8c1b90a1b3c353) { 
            goto C2ea1fc26eb5dd07; 
        } 
        $d1f773231c78cb1f = [ 
            "stream_id" => $Cb0e6b6bea608281, 
            "hmac_hash" => XUI::$rRequest["hmac"], 
            "hmac_id" => $ae8c1b90a1b3c353, 
            "identifier" => $Fe2c987b3598866e, 
            "extension" => $f436329234033eb2, 
            "type" => $f8cd97817c6cbdb2, 
            "pid" => $Dca59bd0cc2fb95b, 
            "channel_info" => [ 
                "stream_id" => $c4c684d64461b922["stream_id"], 
                "bitrate" => $c4c684d64461b922["bitrate"], 
                "target_container" => $c4c684d64461b922["target_container"], 
                "redirect_id" => $c4c684d64461b922["redirect_id"], 
                "pid" => $c4c684d64461b922["pid"], 
            ], 
            "user_info" => $F7f24b19c4fe2e7a, 
            "country_code" => $C9502b7846a61338, 
            "activity_start" => $Bdcdfca4ee66b149, 
            "is_mag" => $dcfdda514dd6436e, 
            "uuid" => $Faae14c064aabdac, 
            "http_range" => isset($_SERVER["HTTP_RANGE"]) 
                ? $_SERVER["HTTP_RANGE"] 
                : null, 
        ]; 
        goto d44833b2a7c07931; 
        C2ea1fc26eb5dd07: 
        goto e5df3d60e339ee5c; 
        Ddf7c3f86038ead0: 
    case "timeshift": 
        goto D67de518b2c03d4c; 
        D67de518b2c03d4c: 
        $ba42a9eb9aacede2 = XUI::c7F9cB5481dca329( 
            $Cb0e6b6bea608281, 
            $f436329234033eb2, 
            $F7f24b19c4fe2e7a, 
            $C9502b7846a61338, 
            $F7f24b19c4fe2e7a["con_isp_name"], 
            "archive" 
        ); 
        if ($ba42a9eb9aacede2) { 
            goto Dcf137f814424e22; 
        } 
        XUI::E9070C2a08153639( 
            "show_not_on_air_video", 
            "not_on_air_video_path", 
            $f436329234033eb2, 
            $F7f24b19c4fe2e7a, 
            $C85a9af7d2969dae, 
            $C9502b7846a61338, 
            $F7f24b19c4fe2e7a["con_isp_name"] 
        ); 
        goto f0af89095986d8a6; 
        Dcf137f814424e22: 
        goto c447ff8da7bf14a6; 
        c447ff8da7bf14a6: 
        $d6187f170811b28b = CF4F35827303F315( 
            $ba42a9eb9aacede2, 
            $E5919683463edb69 
        ); 
        $c9b74765537d4746 = XUI::$rRequest["start"]; 
        $Aae35b764be6962e = intval(XUI::$rRequest["duration"]); 
        switch ($f436329234033eb2) { 
            case "m3u8": 
                goto D008e9d13848acb0; 
                D008e9d13848acb0: 
                if ( 
                    !( 
                        XUI::$rSettings["disable_hls"] && 
                        (!$F7f24b19c4fe2e7a["is_restreamer"] or 
                            !XUI::$rSettings["disable_hls_allow_restream"]) 
                    ) 
                ) { 
                    goto bb91e1afb579b01c; 
                } 
                generateError("HLS_DISABLED"); 
                bb91e1afb579b01c: 
                $d1f773231c78cb1f = [ 
                    "stream" => $Cb0e6b6bea608281, 
                    "username" => $F7f24b19c4fe2e7a["username"], 
                    "password" => $F7f24b19c4fe2e7a["password"], 
                    "extension" => $f436329234033eb2, 
                    "pid" => $Dca59bd0cc2fb95b, 
                    "start" => $c9b74765537d4746, 
                    "duration" => $Aae35b764be6962e, 
                    "redirect_id" => $ba42a9eb9aacede2, 
                    "user_info" => [ 
                        "id" => $F7f24b19c4fe2e7a["id"], 
                        "max_connections" => 
                            $F7f24b19c4fe2e7a["max_connections"], 
                        "pair_line_info" => $F7f24b19c4fe2e7a["pair_line_info"], 
                        "pair_id" => $F7f24b19c4fe2e7a["pair_id"], 
                        "active_cons" => $F7f24b19c4fe2e7a["active_cons"], 
                        "con_isp_name" => $F7f24b19c4fe2e7a["con_isp_name"], 
                        "is_restreamer" => $F7f24b19c4fe2e7a["is_restreamer"], 
                    ], 
                    "country_code" => $C9502b7846a61338, 
                    "activity_start" => $Bdcdfca4ee66b149, 
                    "uuid" => $Faae14c064aabdac, 
                    "http_range" => isset($_SERVER["HTTP_RANGE"]) 
                        ? $_SERVER["HTTP_RANGE"] 
                        : null, 
                ]; 
                $Cb626a6c8ac109eb = Xui\Functions::encrypt( 
                    json_encode($d1f773231c78cb1f), 
                    XUI::$rSettings["live_streaming_pass"], 
                    OPENSSL_EXTRA 
                ); 
                goto Dc7bef8659720234; 
                Dc7bef8659720234: 
                if (XUI::$rSettings["allow_cdn_access"]) { 
                    goto c10553f9a01f883b; 
                } 
                header( 
                    "Location: {$d6187f170811b28b}/tsauth/{$Cb626a6c8ac109eb}" 
                ); 
                exit(); 
                goto C2ce71855fbe0e86; 
                c10553f9a01f883b: 
                goto b1f13eb0796edeb2; 
                b1f13eb0796edeb2: 
                header( 
                    "Location: {$d6187f170811b28b}/tsauth/{$Cb0e6b6bea608281}_{$c9b74765537d4746}_{$Aae35b764be6962e}.m3u8?token={$Cb626a6c8ac109eb}" 
                ); 
                exit(); 
                C2ce71855fbe0e86: 
                goto fadcaf3e821cd6d7; 
                fadcaf3e821cd6d7: 
            default: 
                goto e245db648ca60418; 
                e245db648ca60418: 
                if ( 
                    !( 
                        XUI::$rSettings["disable_ts"] && 
                        (!$F7f24b19c4fe2e7a["is_restreamer"] or 
                            !XUI::$rSettings["disable_ts_allow_restream"]) 
                    ) 
                ) { 
                    goto edc3ab14e29b795b; 
                } 
                generateError("TS_DISABLED"); 
                edc3ab14e29b795b: 
                $Bdcdfca4ee66b149 = time(); 
                $d1f773231c78cb1f = [ 
                    "stream" => $Cb0e6b6bea608281, 
                    "username" => $F7f24b19c4fe2e7a["username"], 
                    "password" => $F7f24b19c4fe2e7a["password"], 
                    "extension" => $f436329234033eb2, 
                    "pid" => $Dca59bd0cc2fb95b, 
                    "start" => $c9b74765537d4746, 
                    "duration" => $Aae35b764be6962e, 
                    "redirect_id" => $ba42a9eb9aacede2, 
                    "user_info" => [ 
                        "id" => $F7f24b19c4fe2e7a["id"], 
                        "max_connections" => 
                            $F7f24b19c4fe2e7a["max_connections"], 
                        "pair_line_info" => $F7f24b19c4fe2e7a["pair_line_info"], 
                        "pair_id" => $F7f24b19c4fe2e7a["pair_id"], 
                        "active_cons" => $F7f24b19c4fe2e7a["active_cons"], 
                        "con_isp_name" => $F7f24b19c4fe2e7a["con_isp_name"], 
                        "is_restreamer" => $F7f24b19c4fe2e7a["is_restreamer"], 
                    ], 
                    "country_code" => $C9502b7846a61338, 
                    "activity_start" => $Bdcdfca4ee66b149, 
                    "uuid" => $Faae14c064aabdac, 
                    "http_range" => isset($_SERVER["HTTP_RANGE"]) 
                        ? $_SERVER["HTTP_RANGE"] 
                        : null, 
                ]; 
                goto F439b2808cfdd499; 
                b2a3833d86276074: 
                Fbcad269bbfad861: 
                header( 
                    "Location: {$d6187f170811b28b}/tsauth/{$Cb0e6b6bea608281}_{$c9b74765537d4746}_{$Aae35b764be6962e}.ts?token={$Cb626a6c8ac109eb}" 
                ); 
                exit(); 
                bb715098674d8e30: 
                goto E2e0bc3a94203878; 
                F439b2808cfdd499: 
                $Cb626a6c8ac109eb = Xui\Functions::encrypt( 
                    json_encode($d1f773231c78cb1f), 
                    XUI::$rSettings["live_streaming_pass"], 
                    OPENSSL_EXTRA 
                ); 
                if (XUI::$rSettings["allow_cdn_access"]) { 
                    goto Fbcad269bbfad861; 
                } 
                header( 
                    "Location: {$d6187f170811b28b}/tsauth/{$Cb626a6c8ac109eb}" 
                ); 
                exit(); 
                goto bb715098674d8e30; 
                goto b2a3833d86276074; 
                E2e0bc3a94203878: 
        } 
        F53c905345295dc1: 
        goto c9b57eb1b09366fd; 
        c9b57eb1b09366fd: 
        a44ed7085c7673c6: 
        f0af89095986d8a6: 
        goto ec7daf95a584f22b; 
        goto E364b1c25678f33d; 
        E364b1c25678f33d: 
    case "thumb": 
        goto A97e2a2af49f0420; 
        A97e2a2af49f0420: 
        $E1dc28fe83690f7c = null; 
        if (XUI::$rCached) { 
            goto F352f0f0158e5bd0; 
        } 
        $d7c7502b3f9833d5->query( 
            "SELECT * FROM `streams` t1 INNER JOIN `streams_types` t2 ON t2.type_id = t1.type AND t2.live = 1 LEFT JOIN `profiles` t4 ON t1.transcode_profile_id = t4.profile_id WHERE t1.direct_source = 0 AND t1.id = ?", 
            $Cb0e6b6bea608281 
        ); 
        if (!($d7c7502b3f9833d5->num_rows() > 0)) { 
            goto F2045ccbf14400f1; 
        } 
        $E1dc28fe83690f7c = ["info" => $d7c7502b3f9833d5->get_row()]; 
        goto Ddcc5fea335a11f1; 
        Ce534c378ddd67ba: 
        exit(); 
        goto d000e66c2dabc2e4; 
        Ddcc5fea335a11f1: 
        F2045ccbf14400f1: 
        goto Aa66aaffd52688ad; 
        F352f0f0158e5bd0: 
        $E1dc28fe83690f7c = igbinary_unserialize( 
            file_get_contents(STREAMS_TMP_PATH . "stream_" . $Cb0e6b6bea608281) 
        ); 
        Aa66aaffd52688ad: 
        goto a47fd0e8a6421407; 
        a47fd0e8a6421407: 
        if ($E1dc28fe83690f7c) { 
            goto f1c7fa136eb0cae4; 
        } 
        generateError("INVALID_STREAM_ID"); 
        f1c7fa136eb0cae4: 
        if (!($E1dc28fe83690f7c["info"]["vframes_server_id"] == 0)) { 
            goto d38778aafe666eb1; 
        } 
        generateError("THUMBNAILS_NOT_ENABLED"); 
        goto cc32ab1cafe5d390; 
        cc32ab1cafe5d390: 
        d38778aafe666eb1: 
        $d1f773231c78cb1f = [ 
            "stream" => $Cb0e6b6bea608281, 
            "expires" => time() + 5, 
        ]; 
        $d6187f170811b28b = CF4F35827303f315( 
            $E1dc28fe83690f7c["info"]["vframes_server_id"], 
            $E5919683463edb69 
        ); 
        $Cb626a6c8ac109eb = Xui\Functions::encrypt( 
            json_encode($d1f773231c78cb1f), 
            XUI::$rSettings["live_streaming_pass"], 
            OPENSSL_EXTRA 
        ); 
        header("Location: {$d6187f170811b28b}/thauth/{$Cb626a6c8ac109eb}"); 
        goto Ce534c378ddd67ba; 
        d000e66c2dabc2e4: 
    case "subtitle": 
        goto c6212a28917ea130; 
        c6212a28917ea130: 
        $c4c684d64461b922 = XUI::C7f9cb5481dcA329( 
            $Cb0e6b6bea608281, 
            "srt", 
            $F7f24b19c4fe2e7a, 
            $C9502b7846a61338, 
            $F7f24b19c4fe2e7a["con_isp_name"], 
            "movie" 
        ); 
        if ($c4c684d64461b922) { 
            goto B18a12cfbd76f7db; 
        } 
        generateError("INVALID_STREAM_ID"); 
        goto c25438c2713ce9f3; 
        B18a12cfbd76f7db: 
        goto Ff7e1a77184a5bce; 
        Ff7e1a77184a5bce: 
        $d6187f170811b28b = Cf4F35827303f315( 
            $c4c684d64461b922["redirect_id"], 
            $E5919683463edb69 
        ); 
        $d1f773231c78cb1f = [ 
            "stream_id" => $Cb0e6b6bea608281, 
            "sub_id" => intval(XUI::$rRequest["sid"]) ?: 0, 
            "webvtt" => intval(XUI::$rRequest["webvtt"]) ?: 0, 
            "expires" => time() + 5, 
        ]; 
        $Cb626a6c8ac109eb = Xui\Functions::encrypt( 
            json_encode($d1f773231c78cb1f), 
            XUI::$rSettings["live_streaming_pass"], 
            OPENSSL_EXTRA 
        ); 
        header("Location: {$d6187f170811b28b}/subauth/{$Cb626a6c8ac109eb}"); 
        exit(); 
        goto e5df1a567114c079; 
        e5df1a567114c079: 
        c25438c2713ce9f3: 
        goto ec7daf95a584f22b; 
        goto C444fedf34dc0838; 
        C444fedf34dc0838: 
} 
cc10a7b4a09d108b: 
goto b36f79a2527b30cb; 
a2b1e04c663820ab: 
generateError("NOT_IN_ALLOWED_IPS"); 
d7fc9dd039fa1ca6: 
if (empty($C9502b7846a61338)) { 
    goto b2c6a1de5116d02c; 
} 
$Af7f102da11bef04 = !empty($F7f24b19c4fe2e7a["forced_country"]); 
if ( 
    !( 
        $Af7f102da11bef04 && 
        $F7f24b19c4fe2e7a["forced_country"] != "ALL" && 
        $C9502b7846a61338 != $F7f24b19c4fe2e7a["forced_country"] 
    ) 
) { 
    goto D97601b60071f573; 
} 
goto e15c005753de82f8; 
Fd271e1316c5fd66: 
function shutdown() 
{ 
    global $Db2e4b9590962bf2, $d7c7502b3f9833d5; 
    if (!$Db2e4b9590962bf2) { 
        goto A39154dde5e7727b; 
    } 
    XUI::C6DD6C13912962A3(); 
    A39154dde5e7727b: 
    if (!is_object($d7c7502b3f9833d5)) { 
        goto d7f1b424c7f348a8; 
    } 
    $d7c7502b3f9833d5->close_mysql(); 
    d7f1b424c7f348a8: 
} ?> 

Did this file decode correctly?

Original Code

<?php
goto C82a5f70826c295b;
b5599786b5de97ce:
generateError("PROXY_DETECT");
E0ce5824aa17a8a0:
fc017c1323fd9d7a:
Cc7262628a143c9b:
if (!$Ab1eff6ccfa398f6) {
    goto D70fdc13e2b31c39;
}
goto e0ba7b6a7464cb12;
C33cb7215a166df4:
d473a9041305dbed:
if (
    !(
        $F7f24b19c4fe2e7a["is_stalker"] &&
        in_array($f8cd97817c6cbdb2, ["live", "movie", "series", "timeshift"])
    )
) {
    goto B0a6922fb9fcda46;
}
if (!(empty(XUI::$rRequest["stalker_key"]) || $f436329234033eb2 != "ts")) {
    goto Fd3afd306e93b5d9;
}
generateError("STALKER_INVALID_KEY");
Fd3afd306e93b5d9:
goto Bd06b4cef1c8ad13;
C92768a586bf76a1:
require_once INCLUDES_PATH . "streaming.php";
XUI::$rAccess = "auth";
XUI::$rSettings = $E4e6c93eb2386bc9;
XUI::init(false);
if (XUI::$rCached) {
    goto F720f08e63f19532;
}
goto e162b14c5a15d686;
e05c7e9f2112879b:
Cb94c475edfec9c9:
if (
    !(
        $f8cd97817c6cbdb2 == "live" &&
        XUI::$rSettings["show_expiring_video"] &&
        !$F7f24b19c4fe2e7a["is_trial"] &&
        (!is_null($F7f24b19c4fe2e7a["exp_date"]) &&
            time() >= $F7f24b19c4fe2e7a["exp_date"] - 86400 * 7) &&
        (time() - $F7f24b19c4fe2e7a["last_expiration_video"] >= 86400 or
            !$F7f24b19c4fe2e7a["last_expiration_video"])
    )
) {
    goto da88937d71abea46;
}
if (XUI::$rCached) {
    goto fbc01f2be0d57f09;
}
$d7c7502b3f9833d5->query(
    "UPDATE `lines` SET `last_expiration_video` = ? WHERE `id` = ?;",
    time(),
    $F7f24b19c4fe2e7a["id"]
);
goto f0e763f0aebba142;
goto b1ce8e17a54d76e4;
C8709ffc15353def:
$c992f743f93e6bff = true;
F3ce2b966b168b34:
if (!isset($B6221fca9e056317)) {
    goto E1e94b58ae8cb07e;
}
$fa431415ab2a46b9 = $F7f24b19c4fe2e7a["username"];
$a38e7b338168909c = $F7f24b19c4fe2e7a["password"];
goto e63fcfc3ecb5ebe5;
D955f866e92bcb9b:
if (!($a44b87f64244d629 && time() > $a44b87f64244d629)) {
    goto Ebc28b55434e9f38;
}
$Db2e4b9590962bf2 = false;
generateError("TOKEN_EXPIRED");
Ebc28b55434e9f38:
$ae8c1b90a1b3c353 = XUI::D966E81E7dd6A3AF(
    XUI::$rRequest["hmac"],
    $a44b87f64244d629,
    $Cb0e6b6bea608281,
    $f436329234033eb2,
    $C85a9af7d2969dae,
    $F6969dc92f90fb0f,
    $Fe2c987b3598866e,
    $E2980ebe5cbe3370
);
goto Cc5d39ba5fc31726;
ecf7c88576eb7603:
$_GET["extension"] = $Df391c1205663254[4];
a34353543181a973:
if (!(count($Df391c1205663254) == 6)) {
    goto f709709ba9230241;
}
if ($dcfdda514dd6436e) {
    goto c627bf7524970d40;
}
$a44b87f64244d629 = $Df391c1205663254[5];
goto da648c73e583e208;
Dcf14cc3ae8adf07:
generateError("TOKEN_EXPIRED");
dfa1b998153e6b25:
goto B2d7c354a634f9ba;
E830ffc8f1c21f8f:
generateError("TOKEN_EXPIRED");
goto D543cd2b1755d36e;
c8cee4b8970e6417:
generateError("INVALID_CREDENTIALS");
A4cb5bde12a011d4:
baa50e29491becff:
goto E99539e48b4c7bf3;
F2a69b13d5876f9d:
goto aba783cd9a48a759;
e15c005753de82f8:
XUI::F5216B1c66461d02(
    $Cb0e6b6bea608281,
    $F7f24b19c4fe2e7a["id"],
    "COUNTRY_DISALLOW",
    $C85a9af7d2969dae
);
generateError("FORCED_COUNTRY_INVALID");
D97601b60071f573:
if (
    !(
        !$Af7f102da11bef04 &&
        !in_array("ALL", XUI::$rSettings["allow_countries"]) &&
        !in_array($C9502b7846a61338, XUI::$rSettings["allow_countries"])
    )
) {
    goto e0f3a34c6ab2806b;
}
XUI::f5216b1C66461d02(
    $Cb0e6b6bea608281,
    $F7f24b19c4fe2e7a["id"],
    "COUNTRY_DISALLOW",
    $C85a9af7d2969dae
);
goto A807dbc9ab34c359;
Acb843a5bf805c38:
e8427491e1174e7f:
Dc4d10a74f8fafc1:
if ($dcfdda514dd6436e) {
    goto b9b0bbd62e6ed893;
}
if ($c992f743f93e6bff) {
    goto e343556e337ba0d2;
}
$E5919683463edb69 = false;
goto bf679fa6e177f096;
fee45acf5c8a2a47:
if (
    !(
        !is_null($F7f24b19c4fe2e7a["exp_date"]) &&
        time() >= $F7f24b19c4fe2e7a["exp_date"]
    )
) {
    goto fa3d992fee95856f;
}
$Db2e4b9590962bf2 = false;
XUI::F5216b1C66461D02(
    $Cb0e6b6bea608281,
    $F7f24b19c4fe2e7a["id"],
    "USER_EXPIRED",
    $C85a9af7d2969dae
);
if (in_array($f8cd97817c6cbdb2, ["live", "timeshift"])) {
    goto Bd685948367dc416;
}
if (in_array($f8cd97817c6cbdb2, ["movie", "series"])) {
    goto fe774e4ff17b389c;
}
goto E8abebecc165bf0d;
d3e7b6e92743ded4:
unset($_GET["token"]);
unset($Df391c1205663254);
a74fc4843b202a1a:
if (!isset($_GET["utc"])) {
    goto A86bbba1ba5f5214;
}
$_GET["type"] = "timeshift";
goto C22b197ddc237d8f;
e68e3371fd06e61f:
XUI::E9070c2A08153639(
    "show_banned_video",
    "banned_video_path",
    $f436329234033eb2,
    $F7f24b19c4fe2e7a,
    $C85a9af7d2969dae,
    $C9502b7846a61338,
    $F7f24b19c4fe2e7a["con_isp_name"]
);
a17418ac80d8ff1c:
D70fdf61d649c8aa:
if (!($f8cd97817c6cbdb2 != "subtitle")) {
    goto d473a9041305dbed;
}
if (!($F7f24b19c4fe2e7a["bypass_ua"] == 0)) {
    goto Cf60833dfd63a151;
}
goto Aa1ccf26bfe37724;
D038daafd02fc470:
$f0427fc826dd3997 = explode("::", $_GET["type"]);
if (!(count($f0427fc826dd3997) == 2)) {
    goto bacd476d2736542b;
}
$_GET["type"] = $f0427fc826dd3997[1];
$dcfdda514dd6436e = true;
bacd476d2736542b:
goto A49e7339d090bf83;
E2b29bc2243ec520:
$Cb0e6b6bea608281 = intval($_GET["stream"]);
$f436329234033eb2 = isset($_GET["extension"])
    ? strtolower(preg_replace("/[^A-Za-z0-9 ]/", "", trim($_GET["extension"])))
    : null;
if (
    !(
        !$f436329234033eb2 &&
        in_array($f8cd97817c6cbdb2, ["movie", "series", "subtitle"])
    )
) {
    goto d9da1aa3690ac5aa;
}
$C39c0013253807a5 = pathinfo($_GET["stream"]);
$Cb0e6b6bea608281 = intval($C39c0013253807a5["filename"]);
goto a74f414f375b8da2;
a74f414f375b8da2:
$f436329234033eb2 = strtolower(
    preg_replace("/[^A-Za-z0-9 ]/", "", trim($C39c0013253807a5["extension"]))
);
d9da1aa3690ac5aa:
if ($f436329234033eb2) {
    goto D3067bf876b703a0;
}
switch ($f8cd97817c6cbdb2) {
    case "timeshift":
    case "live":
        $f436329234033eb2 = "ts";
        goto eccf75e436881c22;
    case "series":
    case "movie":
        $f436329234033eb2 = "mp4";
        goto eccf75e436881c22;
}
ede06fcca51cce20:
goto ed6cdb2e4e19a9d5;
ce89531e2f217dc0:
b5d6abd90b277f45:
$bed19f50f923723a = XUI::$rSettings["ip_subnet_match"]
    ? implode(".", array_slice(explode(".", $f64406a9906c4321[1]), 0, -1)) ==
    implode(".", array_slice(explode(".", $C85a9af7d2969dae), 0, -1))
    : $f64406a9906c4321[1] == $C85a9af7d2969dae;
if (!(!$bed19f50f923723a && XUI::$rSettings["restrict_same_ip"])) {
    goto cda3045e845c79ac;
}
XUI::F5216B1c66461D02(
    $Cb0e6b6bea608281,
    $F7f24b19c4fe2e7a["id"],
    "STALKER_IP_MISMATCH",
    $C85a9af7d2969dae
);
generateError("STALKER_IP_MISMATCH");
goto c82ef389218ea964;
Cc5d39ba5fc31726:
if (!$ae8c1b90a1b3c353) {
    goto eeda57d906c0a63a;
}
$F7f24b19c4fe2e7a = [
    "id" => null,
    "is_restreamer" => 0,
    "force_server_id" => 0,
    "con_isp_name" => null,
    "max_connections" => $E2980ebe5cbe3370,
];
if (!XUI::$rSettings["show_isps"]) {
    goto b9b7406e843e3a7b;
}
$D01c28ccad4e781b = XUI::a700d3Fb85E6f206($C85a9af7d2969dae);
if (!is_array($D01c28ccad4e781b)) {
    goto d3109e8cace91e7d;
}
goto D649bdb023278f09;
C3f02e8baa95b5c1:
a1ea6a84f220169b:
$f64406a9906c4321 = explode("=", $b8baaa23b69fa6a7);
if (!($f64406a9906c4321[2] != $Cb0e6b6bea608281)) {
    goto b5d6abd90b277f45;
}
XUI::f5216b1C66461D02(
    $Cb0e6b6bea608281,
    $F7f24b19c4fe2e7a["id"],
    "STALKER_CHANNEL_MISMATCH",
    $C85a9af7d2969dae
);
generateError("STALKER_CHANNEL_MISMATCH");
goto ce89531e2f217dc0;
b36f79a2527b30cb:
ec7daf95a584f22b:
goto Fd271e1316c5fd66;
e162b14c5a15d686:
XUI::a4AfcCda289F314e();
$d7c7502b3f9833d5 = &XUI::$db;
F720f08e63f19532:
header("Access-Control-Allow-Origin: *");
register_shutdown_function("shutdown");
goto e03591a1336f40ce;
c9c2a1054bc85d58:
eadab23527db819e:
if (
    !($F7f24b19c4fe2e7a["isp_is_server"] && !$F7f24b19c4fe2e7a["is_restreamer"])
) {
    goto E84e438125e83cc5;
}
XUI::F5216B1C66461D02(
    $Cb0e6b6bea608281,
    $F7f24b19c4fe2e7a["id"],
    "BLOCKED_ASN",
    $C85a9af7d2969dae,
    json_encode([
        "user_agent" => $f089fd7362a9aa86,
        "isp" => $F7f24b19c4fe2e7a["con_isp_name"],
        "asn" => $F7f24b19c4fe2e7a["isp_asn"],
    ]),
    true
);
generateError("ASN_BLOCKED");
E84e438125e83cc5:
goto a9b505568e82edd5;
A8596b2d6f126029:
if (!($f8cd97817c6cbdb2 == "live")) {
    goto Cb94c475edfec9c9;
}
if (in_array($f436329234033eb2, $F7f24b19c4fe2e7a["output_formats"])) {
    goto b47bfca032e0d658;
}
XUI::F5216B1c66461d02(
    $Cb0e6b6bea608281,
    $F7f24b19c4fe2e7a["id"],
    "USER_DISALLOW_EXT",
    $C85a9af7d2969dae
);
generateError("USER_DISALLOW_EXT");
b47bfca032e0d658:
goto e05c7e9f2112879b;
ebf5361f63c4ca25:
if (isset(XUI::$rRequest["token"])) {
    goto F7a07c5d9076dc3a;
}
if (isset(XUI::$rRequest["hmac"])) {
    goto D6aac7d3415970c4;
}
$fa431415ab2a46b9 = XUI::$rRequest["username"];
$a38e7b338168909c = XUI::$rRequest["password"];
$F7f24b19c4fe2e7a = XUI::ee10A34E987e8ed2(
    null,
    $fa431415ab2a46b9,
    $a38e7b338168909c,
    false,
    false,
    $C85a9af7d2969dae
);
goto Fa6f0aa563a199c9;
b05b6bd068c6da16:
XUI::F5216b1c66461d02(
    $Cb0e6b6bea608281,
    $F7f24b19c4fe2e7a["id"],
    "USER_DISABLED",
    $C85a9af7d2969dae
);
if (in_array($f8cd97817c6cbdb2, ["live", "timeshift"])) {
    goto Dd9344b282cc60d5;
}
if (in_array($f8cd97817c6cbdb2, ["movie", "series"])) {
    goto Bbf331e2662b6cac;
}
generateError("DISABLED");
goto ca1362fa8630c189;
goto C7f4f8af30c5bd3b;
C2e4bee837830964:
if (isset($_GET["extension"])) {
    goto E22c6894e58f162e;
}
$_GET["extension"] = "ts";
E22c6894e58f162e:
goto C73124b66a71a432;
C36b289964da7489:
goto fffdb90d96475c1f;
Ad2a82edcd72376a:
XUI::aEAE33917C37791A(
    "restream_block_user/" .
    $F7f24b19c4fe2e7a["id"] .
    "/" .
    $Cb0e6b6bea608281 .
    "/" .
    $C85a9af7d2969dae,
    1
);
a0570ef5409233bd:
F90fa995159de504:
if (
    !(
        XUI::$rSettings["restream_deny_unauthorised"] or
        XUI::$rSettings["detect_restream_block_user"]
    )
) {
    goto b52b6ecdb926577e;
}
XUI::f5216b1C66461D02(
    $Cb0e6b6bea608281,
    $F7f24b19c4fe2e7a["id"],
    "RESTREAM_DETECT",
    $C85a9af7d2969dae,
    json_encode([
        "user_agent" => $f089fd7362a9aa86,
        "isp" => $F7f24b19c4fe2e7a["con_isp_name"],
        "asn" => $F7f24b19c4fe2e7a["isp_asn"],
    ]),
    true
);
goto B8e99ed386a40caf;
D649bdb023278f09:
$F7f24b19c4fe2e7a["con_isp_name"] = $D01c28ccad4e781b["isp"];
d3109e8cace91e7d:
b9b7406e843e3a7b:
eeda57d906c0a63a:
B51058773984c96a:
goto A5a9663696323d27;
fa6cfbe9d44022fc:
E3723022a127fda6:
$Fe2c987b3598866e = empty(XUI::$rRequest["identifier"])
    ? ""
    : XUI::$rRequest["identifier"];
$F6969dc92f90fb0f = empty(XUI::$rRequest["ip"]) ? "" : XUI::$rRequest["ip"];
$E2980ebe5cbe3370 = isset(XUI::$rRequest["max"])
    ? intval(XUI::$rRequest["max"])
    : 0;
$a44b87f64244d629 = isset(XUI::$rRequest["expiry"])
    ? XUI::$rRequest["expiry"]
    : null;
goto D955f866e92bcb9b;
da090dc56bc87558:
Aa9bbaa18aa2de65:
if (
    !(
        XUI::$rServers[SERVER_ID]["enable_proxy"] &&
        !XUI::c391E9C61d3dcC53($_SERVER["HTTP_X_IP"]) &&
        (!$F7f24b19c4fe2e7a["is_restreamer"] or
            !XUI::$rSettings["restreamer_bypass_proxy"])
    )
) {
    goto e30f9facd20c2621;
}
generateError("PROXY_ACCESS_DENIED");
e30f9facd20c2621:
if (!$F7f24b19c4fe2e7a["is_e2"]) {
    goto F3ce2b966b168b34;
}
goto C8709ffc15353def;
A49e7339d090bf83:
if ($_GET["type"] == "timeshift") {
    goto C36b289964da7489;
}
$_GET["username"] = $Df391c1205663254[1];
$_GET["password"] = $Df391c1205663254[2];
$_GET["stream"] = $Df391c1205663254[3];
if (!(count($Df391c1205663254) >= 5)) {
    goto a34353543181a973;
}
goto ecf7c88576eb7603;
Bd06b4cef1c8ad13:
$E5f89537623853c0 = base64_decode(urldecode(XUI::$rRequest["stalker_key"]));
if (
    $b8baaa23b69fa6a7 = XUI::bCf4349bAeF245c4(
        $E5f89537623853c0,
        md5(XUI::$rSettings["live_streaming_pass"])
    )
) {
    goto a1ea6a84f220169b;
}
XUI::F5216B1C66461D02(
    $Cb0e6b6bea608281,
    $F7f24b19c4fe2e7a["id"],
    "STALKER_DECRYPT_FAILED",
    $C85a9af7d2969dae
);
generateError("STALKER_DECRYPT_FAILED");
goto Bff7b5781e27d447;
goto C3f02e8baa95b5c1;
fffdb90d96475c1f:
$_GET["username"] = $Df391c1205663254[1];
$_GET["password"] = $Df391c1205663254[2];
$_GET["duration"] = $Df391c1205663254[3];
$_GET["start"] = $Df391c1205663254[4];
$_GET["stream"] = $Df391c1205663254[5];
goto fbdded4da9ae9ce3;
ffa0311f0e048922:
generateError("NOT_IN_ALLOWED_UAS");
Dc90130de584e2a9:
if (!$F7f24b19c4fe2e7a["isp_violate"]) {
    goto eadab23527db819e;
}
XUI::f5216b1C66461d02(
    $Cb0e6b6bea608281,
    $F7f24b19c4fe2e7a["id"],
    "ISP_LOCK_FAILED",
    $C85a9af7d2969dae,
    json_encode([
        "old" => $F7f24b19c4fe2e7a["isp_desc"],
        "new" => $F7f24b19c4fe2e7a["con_isp_name"],
    ])
);
generateError("ISP_BLOCKED");
goto c9c2a1054bc85d58;
b1ce8e17a54d76e4:
fbc01f2be0d57f09:
XUI::AeaE33917c37791A("expiring/" . $F7f24b19c4fe2e7a["id"], time());
f0e763f0aebba142:
XUI::E9070c2A08153639(
    "show_expiring_video",
    "expiring_video_path",
    $f436329234033eb2,
    $F7f24b19c4fe2e7a,
    $C85a9af7d2969dae,
    $C9502b7846a61338,
    $F7f24b19c4fe2e7a["con_isp_name"]
);
da88937d71abea46:
goto Acb843a5bf805c38;
ed6cdb2e4e19a9d5:
eccf75e436881c22:
D3067bf876b703a0:
if (
    !(
        !$Cb0e6b6bea608281 or
        $E4e6c93eb2386bc9["enable_cache"] &&
        !file_exists(STREAMS_TMP_PATH . "stream_" . $Cb0e6b6bea608281)
    )
) {
    goto D805ca5f9df4ed83;
}
generateError("INVALID_STREAM_ID");
D805ca5f9df4ed83:
goto D1aa6dc58469a107;
E8abebecc165bf0d:
generateError("EXPIRED");
goto A3428bed8cdcf3e7;
fe774e4ff17b389c:
XUI::E9070C2A08153639(
    "show_expired_video",
    "expired_video_path",
    "ts",
    $F7f24b19c4fe2e7a,
    $C85a9af7d2969dae,
    $C9502b7846a61338,
    $F7f24b19c4fe2e7a["con_isp_name"]
);
A3428bed8cdcf3e7:
goto c55c6a90f3265b57;
C22b197ddc237d8f:
$_GET["start"] = $_GET["utc"];
$_GET["duration"] = 3600 * 6;
unset($_GET["utc"]);
A86bbba1ba5f5214:
$f8cd97817c6cbdb2 = $_GET["type"] ?? "live";
goto E2b29bc2243ec520;
aba783cd9a48a759:
if (file_exists(LINES_TMP_PATH . "line_t_" . $_GET["token"])) {
    goto Bc0bc2d7717db264;
}
generateError("INVALID_CREDENTIALS");
Bc0bc2d7717db264:
E99539e48b4c7bf3:
cd117d4817e2e681:
goto C92768a586bf76a1;
B8e99ed386a40caf:
generateError("RESTREAM_DETECT");
b52b6ecdb926577e:
D70fdc13e2b31c39:
C8fe46c3117c7e13:
f1c2d894e24e0a59:
goto A8596b2d6f126029;
e03591a1336f40ce:
function cF4F35827303f315($efa5d8ec8efb3ab5 = null, $E5919683463edb69 = false)
{
    goto e787665ee76f345b;
    adbb722103cdfa2d:
    goto D77481e3b6f4cbfd;
    c2126f51ebe73649:
    $e5a66a4085dbbbbf = "http";
    D77481e3b6f4cbfd:
    $fdf2284df72d7b09 = null;
    goto A2824c067cabdce3;
    A2824c067cabdce3:
    if (
        strlen(HOST) > 0 &&
        in_array(
            strtolower(HOST),
            array_map(
                "strtolower",
                XUI::$rServers[$efa5d8ec8efb3ab5]["domains"]["urls"]
            )
        )
    ) {
        goto F5fd76a0df5bdf43;
    }
    if (
        !(
            XUI::$rServers[$efa5d8ec8efb3ab5]["random_ip"] &&
            count(XUI::$rServers[$efa5d8ec8efb3ab5]["domains"]["urls"]) > 0
        )
    ) {
        goto ba26741f0e73c068;
    }
    $fdf2284df72d7b09 =
        XUI::$rServers[$efa5d8ec8efb3ab5]["domains"]["urls"][
        array_rand(XUI::$rServers[$efa5d8ec8efb3ab5]["domains"]["urls"])
        ];
    ba26741f0e73c068:
    goto Aa5d20af1e7c6ba8;
    goto Ebb171c595a43762;
    e787665ee76f345b:
    if (isset($efa5d8ec8efb3ab5)) {
        goto E350a08fece66efb;
    }
    $efa5d8ec8efb3ab5 = SERVER_ID;
    E350a08fece66efb:
    if ($E5919683463edb69) {
        goto c2126f51ebe73649;
    }
    if (XUI::$rSettings["keep_protocol"]) {
        goto d2a4675ced79f03e;
    }
    goto eed6abfed06b5770;
    eed6abfed06b5770:
    $e5a66a4085dbbbbf = XUI::$rServers[$efa5d8ec8efb3ab5]["server_protocol"];
    goto fa4dbb4571683415;
    d2a4675ced79f03e:
    $e5a66a4085dbbbbf =
        (!empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] !== "off") ||
        $_SERVER["SERVER_PORT"] == 443
            ? "https"
            : "http";
    fa4dbb4571683415:
    goto adbb722103cdfa2d;
    F0d294d299c67d2f:
    goto a19e74a62b2c070b;
    bd03b61cb0f38a3e:
    $d6187f170811b28b =
        $e5a66a4085dbbbbf .
        "://" .
        $fdf2284df72d7b09 .
        ":" .
        XUI::$rServers[$efa5d8ec8efb3ab5][
        $e5a66a4085dbbbbf . "_broadcast_port"
        ];
    a19e74a62b2c070b:
    return $d6187f170811b28b;
    goto D2fa88618aeb3dd8;
    Ebb171c595a43762:
    F5fd76a0df5bdf43:
    $fdf2284df72d7b09 = HOST;
    Aa5d20af1e7c6ba8:
    if ($fdf2284df72d7b09) {
        goto bd03b61cb0f38a3e;
    }
    $d6187f170811b28b = rtrim(
        XUI::$rServers[$efa5d8ec8efb3ab5][$e5a66a4085dbbbbf . "_url"],
        "/"
    );
    goto F0d294d299c67d2f;
    D2fa88618aeb3dd8:
}
$Ab1eff6ccfa398f6 = false;
$bb5a581f12329951 = isset(XUI::$rRequest["prebuffer"]);
foreach (getallheaders() as $F7f500299cf19408 => $a1f1ec7f4bb1f6e4) {
    if (strtoupper($F7f500299cf19408) == "X-XUI-DETECT") {
        goto B11f8747905dc7b1;
    }
    if (!(strtoupper($F7f500299cf19408) == "X-XUI-PREBUFFER")) {
        goto E617e49053b742f4;
    }
    $bb5a581f12329951 = true;
    E617e49053b742f4:
    goto b9e6f5337ef80487;
    B11f8747905dc7b1:
    $Ab1eff6ccfa398f6 = true;
    b9e6f5337ef80487:
    B761a109fb9a483e:
}
A1ff0dcc69201e39:
goto dfbdaa28bc408081;
F8f6ea8db9a608f0:
goto f20e5dc2a9ff97bc;
aa68747257eee2cf:
$Bdfb9582c2a9e0da =
    LINES_TMP_PATH . "line_c_" . $_GET["username"] . "_" . $_GET["password"];
f20e5dc2a9ff97bc:
if (file_exists($Bdfb9582c2a9e0da)) {
    goto A4cb5bde12a011d4;
}
goto c8cee4b8970e6417;
a663891d4035c06b:
goto A03c234e250ac1fc;
aeca8c52c01194f8:
XUI::e9070c2A08153639(
    "show_banned_video",
    "banned_video_path",
    "ts",
    $F7f24b19c4fe2e7a,
    $C85a9af7d2969dae,
    $C9502b7846a61338,
    $F7f24b19c4fe2e7a["con_isp_name"]
);
A03c234e250ac1fc:
goto C0fa148796cc8876;
goto E47e2414c93bd04d;
C7f4f8af30c5bd3b:
Bbf331e2662b6cac:
XUI::E9070c2A08153639(
    "show_banned_video",
    "banned_video_path",
    "ts",
    $F7f24b19c4fe2e7a,
    $C85a9af7d2969dae,
    $C9502b7846a61338,
    $F7f24b19c4fe2e7a["con_isp_name"]
);
ca1362fa8630c189:
goto a17418ac80d8ff1c;
Dd9344b282cc60d5:
goto e68e3371fd06e61f;
dfbdaa28bc408081:
$c992f743f93e6bff = false;
$F7f24b19c4fe2e7a = null;
$ae8c1b90a1b3c353 = null;
$Fe2c987b3598866e = "";
$Dca59bd0cc2fb95b = getmypid();
goto be2c82d321b1be47;
da648c73e583e208:
goto d3cf64157a206d68;
c627bf7524970d40:
$ad2f53924d647720 = $Df391c1205663254[5];
d3cf64157a206d68:
f709709ba9230241:
goto C2e4bee837830964;
e63fcfc3ecb5ebe5:
E1e94b58ae8cb07e:
if (!$ae8c1b90a1b3c353) {
    goto E412258c2b670151;
}
$Db2e4b9590962bf2 = false;
goto e8427491e1174e7f;
E412258c2b670151:
goto fee45acf5c8a2a47;
Ce9bf20c9dbc3ced:
F0a44cca4de7ab2d:
$D04713972bce545c = $f64406a9906c4321[0];
Bff7b5781e27d447:
B0a6922fb9fcda46:
if (in_array($f8cd97817c6cbdb2, ["thumb", "subtitle"])) {
    goto f1c2d894e24e0a59;
}
goto c78c72d5c0d31f0c;
A807dbc9ab34c359:
generateError("NOT_IN_ALLOWED_COUNTRY");
e0f3a34c6ab2806b:
b2c6a1de5116d02c:
if (
    !(
        !empty($F7f24b19c4fe2e7a["allowed_ua"]) &&
        !in_array($f089fd7362a9aa86, $F7f24b19c4fe2e7a["allowed_ua"])
    )
) {
    goto Dc90130de584e2a9;
}
XUI::f5216b1c66461d02(
    $Cb0e6b6bea608281,
    $F7f24b19c4fe2e7a["id"],
    "USER_AGENT_BAN",
    $C85a9af7d2969dae
);
goto ffa0311f0e048922;
a9b505568e82edd5:
$Db2e4b9590962bf2 = false;
if ($F7f24b19c4fe2e7a["is_mag"] && !$dcfdda514dd6436e) {
    goto D8e6b0476e18aac5;
}
if (
    $dcfdda514dd6436e &&
    !XUI::$rSettings["disable_mag_token"] &&
    (!$ad2f53924d647720 or $ad2f53924d647720 != $F7f24b19c4fe2e7a["mag_token"])
) {
    goto E830ffc8f1c21f8f;
}
if (!($a44b87f64244d629 && time() > $a44b87f64244d629)) {
    goto dfa1b998153e6b25;
}
XUI::F5216b1c66461D02(
    $Cb0e6b6bea608281,
    $F7f24b19c4fe2e7a["id"],
    "TOKEN_EXPIRED",
    $C85a9af7d2969dae
);
goto Dcf14cc3ae8adf07;
c82ef389218ea964:
cda3045e845c79ac:
$D9ba2df3670bbac9 = XUI::$rSettings["create_expiration"] ?: 5;
if (!(time() - $D9ba2df3670bbac9 > $f64406a9906c4321[3])) {
    goto F0a44cca4de7ab2d;
}
XUI::F5216b1c66461d02(
    $Cb0e6b6bea608281,
    $F7f24b19c4fe2e7a["id"],
    "STALKER_KEY_EXPIRED",
    $C85a9af7d2969dae
);
generateError("STALKER_KEY_EXPIRED");
goto Ce9bf20c9dbc3ced;
Fa6f0aa563a199c9:
goto B51058773984c96a;
D6aac7d3415970c4:
if (in_array($f8cd97817c6cbdb2, ["live", "movie", "series"])) {
    goto E3723022a127fda6;
}
$Db2e4b9590962bf2 = false;
generateError("INVALID_TYPE_TOKEN");
goto fa6cfbe9d44022fc;
C82a5f70826c295b:
header("Cache-Control: no-store, no-cache, must-revalidate");
require_once "init.php";
if (
    !(
        $E4e6c93eb2386bc9["enable_cache"] &&
        !file_exists(CACHE_TMP_PATH . "cache_complete") or
        empty($E4e6c93eb2386bc9["live_streaming_pass"])
    )
) {
    goto d6d4696aaa3470d2;
}
generateError("CACHE_INCOMPLETE");
d6d4696aaa3470d2:
goto f0053ca133eb748c;
be2c82d321b1be47:
$Faae14c064aabdac = md5(uniqid());
$C85a9af7d2969dae = XUI::CBe116DF36E3A66a();
$C9502b7846a61338 = XUI::DfdA3e1b2F0e99D2($C85a9af7d2969dae)["country"][
"iso_code"
];
$f089fd7362a9aa86 = empty($_SERVER["HTTP_USER_AGENT"])
    ? ""
    : htmlentities(trim($_SERVER["HTTP_USER_AGENT"]));
$Db2e4b9590962bf2 = true;
goto ca0589a2735fd603;
fbeeeada56105509:
if ($F7f24b19c4fe2e7a or $ae8c1b90a1b3c353) {
    goto Aa9bbaa18aa2de65;
}
XUI::c1A8b55dE2643c7e($C85a9af7d2969dae, null, $fa431415ab2a46b9);
XUI::f5216B1c66461d02($Cb0e6b6bea608281, 0, "AUTH_FAILED", $C85a9af7d2969dae);
generateError("INVALID_CREDENTIALS");
goto Dc4d10a74f8fafc1;
goto da090dc56bc87558;
E47e2414c93bd04d:
c0a164506e25e233:
XUI::E9070c2a08153639(
    "show_banned_video",
    "banned_video_path",
    $f436329234033eb2,
    $F7f24b19c4fe2e7a,
    $C85a9af7d2969dae,
    $C9502b7846a61338,
    $F7f24b19c4fe2e7a["con_isp_name"]
);
C0fa148796cc8876:
F928c55e2c3277a7:
if (!($F7f24b19c4fe2e7a["enabled"] == 0)) {
    goto D70fdf61d649c8aa;
}
goto b05b6bd068c6da16;
D1aa6dc58469a107:
if (
    !(
        $E4e6c93eb2386bc9["ignore_invalid_users"] &&
        $E4e6c93eb2386bc9["enable_cache"]
    )
) {
    goto cd117d4817e2e681;
}
if (isset($_GET["token"])) {
    goto F2a69b13d5876f9d;
}
if (!(isset($_GET["username"]) && isset($_GET["password"]))) {
    goto baa50e29491becff;
}
if ($E4e6c93eb2386bc9["case_sensitive_line"]) {
    goto aa68747257eee2cf;
}
$Bdfb9582c2a9e0da =
    LINES_TMP_PATH .
    "line_c_" .
    strtolower($_GET["username"]) .
    "_" .
    strtolower($_GET["password"]);
goto F8f6ea8db9a608f0;
bf679fa6e177f096:
goto Dd73954601125468;
e343556e337ba0d2:
$E5919683463edb69 = true;
Dd73954601125468:
goto Ec2ae539c5e4e200;
goto E596a6c08966310e;
F3a846326a4bf4dd:
XUI::F5216B1c66461d02(
    $Cb0e6b6bea608281,
    $F7f24b19c4fe2e7a["id"],
    "EMPTY_UA",
    $C85a9af7d2969dae
);
generateError("EMPTY_USER_AGENT");
E79399c9a2876c4e:
if (
    !(
        !empty($F7f24b19c4fe2e7a["allowed_ips"]) &&
        !in_array(
            $C85a9af7d2969dae,
            array_map("gethostbyname", $F7f24b19c4fe2e7a["allowed_ips"])
        )
    )
) {
    goto d7fc9dd039fa1ca6;
}
XUI::f5216b1c66461d02(
    $Cb0e6b6bea608281,
    $F7f24b19c4fe2e7a["id"],
    "IP_BAN",
    $C85a9af7d2969dae
);
goto a2b1e04c663820ab;
D543cd2b1755d36e:
B2d7c354a634f9ba:
goto Cc83635d584e37c2;
D8e6b0476e18aac5:
generateError("DEVICE_NOT_ALLOWED");
Cc83635d584e37c2:
goto C33cb7215a166df4;
e0ba7b6a7464cb12:
if (!XUI::$rSettings["detect_restream_block_user"]) {
    goto F90fa995159de504;
}
if (XUI::$rCached) {
    goto E5d3284e95ac2465;
}
$d7c7502b3f9833d5->query(
    "UPDATE `lines` SET `admin_enabled` = 0 WHERE `id` = ?;",
    $F7f24b19c4fe2e7a["id"]
);
goto a0570ef5409233bd;
E5d3284e95ac2465:
goto Ad2a82edcd72376a;
ca0589a2735fd603:
$D04713972bce545c = null;
$Bdcdfca4ee66b149 = time();
if (isset($a44b87f64244d629)) {
    goto e7600a4edacea0ba;
}
$a44b87f64244d629 = null;
e7600a4edacea0ba:
goto ebf5361f63c4ca25;
c78c72d5c0d31f0c:
if (
    !(
        !$F7f24b19c4fe2e7a["is_restreamer"] &&
        !in_array($C85a9af7d2969dae, XUI::$rAllowedIPs)
    )
) {
    goto C8fe46c3117c7e13;
}
if (
    !(
        XUI::$rSettings["block_streaming_servers"] or
        XUI::$rSettings["block_proxies"]
    )
) {
    goto Cc7262628a143c9b;
}
$f7017bd191b07ae7 = XUI::A933493fB671Cc37(
    $F7f24b19c4fe2e7a["isp_asn"],
    $C85a9af7d2969dae
);
if (!$f7017bd191b07ae7) {
    goto fc017c1323fd9d7a;
}
if (
    !(
        XUI::$rSettings["block_streaming_servers"] &&
        $f7017bd191b07ae7[3] &&
        !$f7017bd191b07ae7[4]
    )
) {
    goto Ecbf156e56043580;
}
goto C1f2a73cb5908245;
f0053ca133eb748c:
$dcfdda514dd6436e = false;
$ad2f53924d647720 = null;
if (!(isset($_GET["token"]) && !ctype_xdigit($_GET["token"]))) {
    goto a74fc4843b202a1a;
}
$Df391c1205663254 = explode(
    "/",
    Xui\Functions::decrypt(
        $_GET["token"],
        $E4e6c93eb2386bc9["live_streaming_pass"],
        OPENSSL_EXTRA
    )
);
$_GET["type"] = $Df391c1205663254[0];
goto D038daafd02fc470;
c55c6a90f3265b57:
goto f767a2dad67a41be;
Bd685948367dc416:
XUI::e9070C2a08153639(
    "show_expired_video",
    "expired_video_path",
    $f436329234033eb2,
    $F7f24b19c4fe2e7a,
    $C85a9af7d2969dae,
    $C9502b7846a61338,
    $F7f24b19c4fe2e7a["con_isp_name"]
);
f767a2dad67a41be:
fa3d992fee95856f:
goto b41906eabdf747b7;
Aa1ccf26bfe37724:
if (!XUI::eACD3a80d47f1aD3($f089fd7362a9aa86)) {
    goto a35685fa7cef5530;
}
generateError("BLOCKED_USER_AGENT");
a35685fa7cef5530:
Cf60833dfd63a151:
if (
    !(empty($f089fd7362a9aa86) && XUI::$rSettings["disallow_empty_user_agents"])
) {
    goto E79399c9a2876c4e;
}
goto F3a846326a4bf4dd;
fbdded4da9ae9ce3:
if (!$dcfdda514dd6436e) {
    goto E47ca4ecd8115109;
}
$ad2f53924d647720 = $Df391c1205663254[6];
E47ca4ecd8115109:
$_GET["extension"] = "ts";
C73124b66a71a432:
goto d3e7b6e92743ded4;
C1f2a73cb5908245:
XUI::f5216b1c66461d02(
    $Cb0e6b6bea608281,
    $F7f24b19c4fe2e7a["id"],
    "HOSTING_DETECT",
    $C85a9af7d2969dae,
    json_encode([
        "user_agent" => $f089fd7362a9aa86,
        "isp" => $F7f24b19c4fe2e7a["con_isp_name"],
        "asn" => $F7f24b19c4fe2e7a["isp_asn"],
    ]),
    true
);
generateError("HOSTING_DETECT");
Ecbf156e56043580:
if (!(XUI::$rSettings["block_proxies"] && $f7017bd191b07ae7[4])) {
    goto E0ce5824aa17a8a0;
}
XUI::F5216B1c66461d02(
    $Cb0e6b6bea608281,
    $F7f24b19c4fe2e7a["id"],
    "PROXY_DETECT",
    $C85a9af7d2969dae,
    json_encode([
        "user_agent" => $f089fd7362a9aa86,
        "isp" => $F7f24b19c4fe2e7a["con_isp_name"],
        "asn" => $F7f24b19c4fe2e7a["isp_asn"],
    ]),
    true
);
goto b5599786b5de97ce;
A5a9663696323d27:
goto C89e3e9162a48e71;
F7a07c5d9076dc3a:
$B6221fca9e056317 = XUI::$rRequest["token"];
$F7f24b19c4fe2e7a = XUI::eE10a34E987E8eD2(
    null,
    $B6221fca9e056317,
    null,
    false,
    false,
    $C85a9af7d2969dae
);
C89e3e9162a48e71:
goto fbeeeada56105509;
b41906eabdf747b7:
if (!($F7f24b19c4fe2e7a["admin_enabled"] == 0)) {
    goto F928c55e2c3277a7;
}
XUI::f5216B1c66461D02(
    $Cb0e6b6bea608281,
    $F7f24b19c4fe2e7a["id"],
    "USER_BAN",
    $C85a9af7d2969dae
);
if (in_array($f8cd97817c6cbdb2, ["live", "timeshift"])) {
    goto c0a164506e25e233;
}
if (in_array($f8cd97817c6cbdb2, ["movie", "series"])) {
    goto aeca8c52c01194f8;
}
generateError("BANNED");
goto a663891d4035c06b;
E596a6c08966310e:
b9b0bbd62e6ed893:
$E5919683463edb69 = XUI::$rSettings["mag_disable_ssl"];
Ec2ae539c5e4e200:
switch ($f8cd97817c6cbdb2) {
    case "live":
        goto E72c32c753fa8073;
        aa86dfb68f47b694:
        switch ($f436329234033eb2) {
            case "m3u8":
                goto b4bf64518fef1e78;
                Cf8ca6374e437ae1:
                B87cf1dd35e091e2:
                $Cb626a6c8ac109eb = Xui\Functions::encrypt(
                    json_encode($d1f773231c78cb1f),
                    XUI::$rSettings["live_streaming_pass"],
                    OPENSSL_EXTRA
                );
                if (XUI::$rSettings["allow_cdn_access"]) {
                    goto C442824b6873c223;
                }
                header(
                    "Location: {$d6187f170811b28b}/auth/{$Cb626a6c8ac109eb}"
                );
                exit();
                goto B0618f72700a6703;
                bcb365a0e94dd08e:
                if (!$ae8c1b90a1b3c353) {
                    goto Aebec6b725496126;
                }
                $d1f773231c78cb1f = [
                    "stream_id" => $Cb0e6b6bea608281,
                    "hmac_hash" => XUI::$rRequest["hmac"],
                    "hmac_id" => $ae8c1b90a1b3c353,
                    "identifier" => $Fe2c987b3598866e,
                    "extension" => $f436329234033eb2,
                    "channel_info" => [
                        "redirect_id" => $c4c684d64461b922["redirect_id"],
                        "pid" => $c4c684d64461b922["pid"],
                        "on_demand" => $c4c684d64461b922["on_demand"],
                        "monitor_pid" => $c4c684d64461b922["monitor_pid"],
                        "aes_pid" => $c4c684d64461b922["aes_pid"],
                    ],
                    "user_info" => $F7f24b19c4fe2e7a,
                    "pid" => $Dca59bd0cc2fb95b,
                    "external_device" => $D04713972bce545c,
                    "activity_start" => $Bdcdfca4ee66b149,
                    "country_code" => $C9502b7846a61338,
                    "video_codec" => $cdf1f35176307859,
                    "uuid" => $Faae14c064aabdac,
                ];
                goto B87cf1dd35e091e2;
                Aebec6b725496126:
                $d1f773231c78cb1f = [
                    "stream_id" => $Cb0e6b6bea608281,
                    "username" => $F7f24b19c4fe2e7a["username"],
                    "password" => $F7f24b19c4fe2e7a["password"],
                    "extension" => $f436329234033eb2,
                    "pid" => $Dca59bd0cc2fb95b,
                    "channel_info" => [
                        "redirect_id" => $c4c684d64461b922["redirect_id"],
                        "pid" => $c4c684d64461b922["pid"],
                        "on_demand" => $c4c684d64461b922["on_demand"],
                        "monitor_pid" => $c4c684d64461b922["monitor_pid"],
                        "aes_pid" => $c4c684d64461b922["aes_pid"],
                    ],
                    "user_info" => [
                        "id" => $F7f24b19c4fe2e7a["id"],
                        "max_connections" =>
                            $F7f24b19c4fe2e7a["max_connections"],
                        "pair_id" => $F7f24b19c4fe2e7a["pair_id"],
                        "con_isp_name" => $F7f24b19c4fe2e7a["con_isp_name"],
                        "is_restreamer" => $F7f24b19c4fe2e7a["is_restreamer"],
                    ],
                    "external_device" => $D04713972bce545c,
                    "activity_start" => $Bdcdfca4ee66b149,
                    "country_code" => $C9502b7846a61338,
                    "video_codec" => $cdf1f35176307859,
                    "uuid" => $Faae14c064aabdac,
                ];
                goto Cf8ca6374e437ae1;
                cbb50ee70e919052:
                $f30074c06d442753 =
                    "#EXTM3U
" .
                    implode(
                        "
",
                        array_values($F67209aa5a187b0b)
                    );
                ob_end_clean();
                header("Content-Type: application/x-mpegurl");
                header("Content-Length: " . strlen($f30074c06d442753));
                echo $f30074c06d442753;
                goto Aab47fd4cbb0fb82;
                C2e383d53652a363:
                if (count($F67209aa5a187b0b) > 0) {
                    goto F4a30184d26b447d;
                }
                XUI::E9070c2a08153639(
                    "show_not_on_air_video",
                    "not_on_air_video_path",
                    "ts",
                    $F7f24b19c4fe2e7a,
                    $C85a9af7d2969dae,
                    $C9502b7846a61338,
                    $F7f24b19c4fe2e7a["con_isp_name"]
                );
                goto Bdf7f5a4ccd44e96;
                F4a30184d26b447d:
                krsort($F67209aa5a187b0b);
                goto cbb50ee70e919052;
                Aab47fd4cbb0fb82:
                exit();
                Bdf7f5a4ccd44e96:
                Daad69b2cbc790cb:
                exit();
                goto e88223f9e52f0ddb;
                b4bf64518fef1e78:
                if (
                    !(
                        XUI::$rSettings["disable_hls"] &&
                        (!$F7f24b19c4fe2e7a["is_restreamer"] or
                            !XUI::$rSettings["disable_hls_allow_restream"])
                    )
                ) {
                    goto b0eab7033e099979;
                }
                generateError("HLS_DISABLED");
                b0eab7033e099979:
                $ae8172f3441a35ea = json_decode(
                    $c4c684d64461b922["adaptive_link"],
                    true
                );
                if (
                    !$ae8c1b90a1b3c353 &&
                    is_array($ae8172f3441a35ea) &&
                    count($ae8172f3441a35ea) > 0
                ) {
                    goto D9139e03f0abf78a;
                }
                goto bcb365a0e94dd08e;
                D9d8bf1263c90b02:
                goto Daad69b2cbc790cb;
                D9139e03f0abf78a:
                $F67209aa5a187b0b = [];
                foreach (
                    array_merge([$Cb0e6b6bea608281], $ae8172f3441a35ea)
                    as $e3515b9e776987c2
                ) {
                    goto F6a0094d6122fe9a;
                    F6a0094d6122fe9a:
                    if ($e3515b9e776987c2 != $Cb0e6b6bea608281) {
                        goto Ffb6e5f9bac11eae;
                    }
                    $Db7b9c7c6d97e885 = $c4c684d64461b922;
                    goto A4648c32d23173c2;
                    Ffb6e5f9bac11eae:
                    $Db7b9c7c6d97e885 = XUI::C7f9cb5481dCA329(
                        $e3515b9e776987c2,
                        $f436329234033eb2,
                        $F7f24b19c4fe2e7a,
                        $C9502b7846a61338,
                        $F7f24b19c4fe2e7a["con_isp_name"],
                        "live"
                    );
                    goto e5934bd75559f436;
                    e5934bd75559f436:
                    A4648c32d23173c2:
                    $E1dc28fe83690f7c = json_decode(
                        $Db7b9c7c6d97e885["stream_info"],
                        true
                    );
                    $Ab985acb809850f0 = $E1dc28fe83690f7c["bitrate"] ?: 0;
                    $e681839793100098 =
                        $E1dc28fe83690f7c["codecs"]["video"]["width"] ?: 0;
                    $c414efaf9cba0672 =
                        $E1dc28fe83690f7c["codecs"]["video"]["height"] ?: 0;
                    goto deea889ae2225386;
                    a42edf9e5ef9d93e:
                    e2d8b62601ff4e2b:
                    fa2e0bc1b1dddd86:
                    goto C4098eeb7292d218;
                    deea889ae2225386:
                    if (
                        !(
                            $Ab985acb809850f0 > 0 &&
                            $c414efaf9cba0672 > 0 &&
                            $e681839793100098 > 0
                        )
                    ) {
                        goto e2d8b62601ff4e2b;
                    }
                    $d1f773231c78cb1f = [
                        "stream_id" => $e3515b9e776987c2,
                        "username" => $F7f24b19c4fe2e7a["username"],
                        "password" => $F7f24b19c4fe2e7a["password"],
                        "extension" => $f436329234033eb2,
                        "pid" => $Dca59bd0cc2fb95b,
                        "channel_info" => [
                            "redirect_id" => $Db7b9c7c6d97e885["redirect_id"],
                            "pid" => $Db7b9c7c6d97e885["pid"],
                            "on_demand" => $Db7b9c7c6d97e885["on_demand"],
                            "monitor_pid" => $Db7b9c7c6d97e885["monitor_pid"],
                            "aes_pid" => $Db7b9c7c6d97e885["aes_pid"],
                        ],
                        "user_info" => [
                            "id" => $F7f24b19c4fe2e7a["id"],
                            "max_connections" =>
                                $F7f24b19c4fe2e7a["max_connections"],
                            "pair_id" => $F7f24b19c4fe2e7a["pair_id"],
                            "con_isp_name" => $F7f24b19c4fe2e7a["con_isp_name"],
                            "is_restreamer" =>
                                $F7f24b19c4fe2e7a["is_restreamer"],
                        ],
                        "external_device" => $D04713972bce545c,
                        "activity_start" => $Bdcdfca4ee66b149,
                        "country_code" => $C9502b7846a61338,
                        "video_codec" =>
                            $E1dc28fe83690f7c["codecs"]["video"][
                            "codec_name"
                            ] ?:
                                "h264",
                        "uuid" => $Faae14c064aabdac,
                        "adaptive" => [
                            $c4c684d64461b922["redirect_id"],
                            $Cb0e6b6bea608281,
                        ],
                    ];
                    $d6187f170811b28b = cf4F35827303F315(
                        $Db7b9c7c6d97e885["redirect_id"],
                        $E5919683463edb69
                    );
                    $C1280d439929bfb3 =
                        "{$d6187f170811b28b}/auth/" .
                        Xui\Functions::encrypt(
                            json_encode($d1f773231c78cb1f),
                            XUI::$rSettings["live_streaming_pass"],
                            OPENSSL_EXTRA
                        );
                    $F67209aa5a187b0b[
                    $Ab985acb809850f0
                    ] = "#EXT-X-STREAM-INF:BANDWIDTH={$Ab985acb809850f0},RESOLUTION={$e681839793100098}x{$c414efaf9cba0672}
{$C1280d439929bfb3}";
                    goto a42edf9e5ef9d93e;
                    C4098eeb7292d218:
                }
                E5c16e81713e25b9:
                goto C2e383d53652a363;
                B0618f72700a6703:
                goto C106ad13e29f627d;
                C442824b6873c223:
                header(
                    "Location: {$d6187f170811b28b}/auth/{$Cb0e6b6bea608281}.m3u8?token={$Cb626a6c8ac109eb}"
                );
                exit();
                C106ad13e29f627d:
                goto D9d8bf1263c90b02;
                e88223f9e52f0ddb:
            case "ts":
                goto f9a0c8cde4dd157e;
                e98018a1d46f0ac0:
                if (XUI::$rSettings["allow_cdn_access"]) {
                    goto e3785cfcdfa483ac;
                }
                header(
                    "Location: {$d6187f170811b28b}/auth/{$Cb626a6c8ac109eb}"
                );
                exit();
                goto f7dd882f4163ddd6;
                e3785cfcdfa483ac:
                goto E3073b9c114e7306;
                f9a0c8cde4dd157e:
                if (
                    !(
                        XUI::$rSettings["disable_ts"] &&
                        (!$F7f24b19c4fe2e7a["is_restreamer"] or
                            !XUI::$rSettings["disable_ts_allow_restream"])
                    )
                ) {
                    goto B4772417f746fba6;
                }
                generateError("TS_DISABLED");
                B4772417f746fba6:
                if (!$ae8c1b90a1b3c353) {
                    goto b9c04c7813e5c11c;
                }
                $d1f773231c78cb1f = [
                    "stream_id" => $Cb0e6b6bea608281,
                    "hmac_hash" => XUI::$rRequest["hmac"],
                    "hmac_id" => $ae8c1b90a1b3c353,
                    "identifier" => $Fe2c987b3598866e,
                    "extension" => $f436329234033eb2,
                    "channel_info" => [
                        "stream_id" => $c4c684d64461b922["stream_id"],
                        "redirect_id" =>
                            $c4c684d64461b922["redirect_id"] ?: null,
                        "pid" => $c4c684d64461b922["pid"],
                        "on_demand" => $c4c684d64461b922["on_demand"],
                        "monitor_pid" => $c4c684d64461b922["monitor_pid"],
                        "aes_pid" => $c4c684d64461b922["aes_pid"],
                    ],
                    "user_info" => $F7f24b19c4fe2e7a,
                    "pid" => $Dca59bd0cc2fb95b,
                    "prebuffer" => $bb5a581f12329951,
                    "country_code" => $C9502b7846a61338,
                    "activity_start" => $Bdcdfca4ee66b149,
                    "external_device" => $D04713972bce545c,
                    "video_codec" => $cdf1f35176307859,
                    "uuid" => $Faae14c064aabdac,
                ];
                goto Cb0a2a1c540b89a3;
                Cb0a2a1c540b89a3:
                goto Ca9348b459181a20;
                b9c04c7813e5c11c:
                $d1f773231c78cb1f = [
                    "stream_id" => $Cb0e6b6bea608281,
                    "username" => $F7f24b19c4fe2e7a["username"],
                    "password" => $F7f24b19c4fe2e7a["password"],
                    "extension" => $f436329234033eb2,
                    "channel_info" => [
                        "stream_id" => $c4c684d64461b922["stream_id"],
                        "redirect_id" =>
                            $c4c684d64461b922["redirect_id"] ?: null,
                        "pid" => $c4c684d64461b922["pid"],
                        "on_demand" => $c4c684d64461b922["on_demand"],
                        "monitor_pid" => $c4c684d64461b922["monitor_pid"],
                        "aes_pid" => $c4c684d64461b922["aes_pid"],
                    ],
                    "user_info" => [
                        "id" => $F7f24b19c4fe2e7a["id"],
                        "max_connections" =>
                            $F7f24b19c4fe2e7a["max_connections"],
                        "pair_id" => $F7f24b19c4fe2e7a["pair_id"],
                        "con_isp_name" => $F7f24b19c4fe2e7a["con_isp_name"],
                        "is_restreamer" => $F7f24b19c4fe2e7a["is_restreamer"],
                    ],
                    "pid" => $Dca59bd0cc2fb95b,
                    "prebuffer" => $bb5a581f12329951,
                    "country_code" => $C9502b7846a61338,
                    "activity_start" => $Bdcdfca4ee66b149,
                    "external_device" => $D04713972bce545c,
                    "video_codec" => $cdf1f35176307859,
                    "uuid" => $Faae14c064aabdac,
                ];
                Ca9348b459181a20:
                $Cb626a6c8ac109eb = Xui\Functions::encrypt(
                    json_encode($d1f773231c78cb1f),
                    XUI::$rSettings["live_streaming_pass"],
                    OPENSSL_EXTRA
                );
                goto e98018a1d46f0ac0;
                E3073b9c114e7306:
                header(
                    "Location: {$d6187f170811b28b}/auth/{$Cb0e6b6bea608281}.ts?token={$Cb626a6c8ac109eb}"
                );
                exit();
                f7dd882f4163ddd6:
                goto a5a8e83d35e06d83;
                a5a8e83d35e06d83:
        }
        a912bcced4762d38:
        C84654b79bb52c75:
        efcc9e9566229202:
        goto ec7daf95a584f22b;
        goto d741f2b517a6b09e;
        F1db983ef456f414:
        if (!(count(array_keys($c4c684d64461b922)) == 0)) {
            goto ad9b4bef4eb0fa8e;
        }
        generateError("NO_SERVERS_AVAILABLE");
        ad9b4bef4eb0fa8e:
        if (
            !empty(
            array_intersect(
                $F7f24b19c4fe2e7a["bouquet"],
                $c4c684d64461b922["bouquets"]
            )
            )
        ) {
            goto b347ece690174a52;
        }
        $Db2e4b9590962bf2 = true;
        goto D000c79c23fe19c2;
        D000c79c23fe19c2:
        generateError("NOT_IN_BOUQUET");
        b347ece690174a52:
        $E1dc28fe83690f7c = json_decode($c4c684d64461b922["stream_info"], true);
        $cdf1f35176307859 =
            $E1dc28fe83690f7c["codecs"]["video"]["codec_name"] ?: "h264";
        $d6187f170811b28b = cF4f35827303F315(
            $c4c684d64461b922["redirect_id"],
            $E5919683463edb69
        );
        goto aa86dfb68f47b694;
        E72c32c753fa8073:
        $c4c684d64461b922 = XUI::C7F9CB5481Dca329(
            $Cb0e6b6bea608281,
            $f436329234033eb2,
            $F7f24b19c4fe2e7a,
            $C9502b7846a61338,
            $F7f24b19c4fe2e7a["con_isp_name"],
            "live"
        );
        if (is_array($c4c684d64461b922)) {
            goto A939c2069a0e2a3c;
        }
        XUI::E9070C2a08153639(
            "show_not_on_air_video",
            "not_on_air_video_path",
            $f436329234033eb2,
            $F7f24b19c4fe2e7a,
            $C85a9af7d2969dae,
            $C9502b7846a61338,
            $F7f24b19c4fe2e7a["con_isp_name"]
        );
        goto efcc9e9566229202;
        A939c2069a0e2a3c:
        goto F1db983ef456f414;
        d741f2b517a6b09e:
    case "movie":
    case "series":
        goto fde5855d341496c7;
        fde5855d341496c7:
        $c4c684d64461b922 = XUI::c7f9cB5481DCa329(
            $Cb0e6b6bea608281,
            $f436329234033eb2,
            $F7f24b19c4fe2e7a,
            $C9502b7846a61338,
            $F7f24b19c4fe2e7a["con_isp_name"],
            "movie"
        );
        if ($c4c684d64461b922) {
            goto d4fd282d30b8ff01;
        }
        XUI::E9070c2A08153639(
            "show_not_on_air_video",
            "not_on_air_video_path",
            "ts",
            $F7f24b19c4fe2e7a,
            $C85a9af7d2969dae,
            $C9502b7846a61338,
            $F7f24b19c4fe2e7a["con_isp_name"]
        );
        goto a326ddf270bf9896;
        d4fd282d30b8ff01:
        goto f8bc960a0b0315cc;
        b09d4e1622320bfb:
        exit();
        goto c24e91029c6ef8dc;
        fd391ca856c637a9:
        header(
            "Location: {$d6187f170811b28b}/vauth/{$Cb0e6b6bea608281}.{$f436329234033eb2}?token={$Cb626a6c8ac109eb}"
        );
        exit();
        goto a4a0ffc313c2230f;
        e5df3d60e339ee5c:
        $d1f773231c78cb1f = [
            "stream_id" => $Cb0e6b6bea608281,
            "username" => $F7f24b19c4fe2e7a["username"],
            "password" => $F7f24b19c4fe2e7a["password"],
            "extension" => $f436329234033eb2,
            "type" => $f8cd97817c6cbdb2,
            "pid" => $Dca59bd0cc2fb95b,
            "channel_info" => [
                "stream_id" => $c4c684d64461b922["stream_id"],
                "bitrate" => $c4c684d64461b922["bitrate"],
                "target_container" => $c4c684d64461b922["target_container"],
                "redirect_id" => $c4c684d64461b922["redirect_id"],
                "pid" => $c4c684d64461b922["pid"],
            ],
            "user_info" => [
                "id" => $F7f24b19c4fe2e7a["id"],
                "max_connections" => $F7f24b19c4fe2e7a["max_connections"],
                "pair_id" => $F7f24b19c4fe2e7a["pair_id"],
                "con_isp_name" => $F7f24b19c4fe2e7a["con_isp_name"],
                "is_restreamer" => $F7f24b19c4fe2e7a["is_restreamer"],
            ],
            "country_code" => $C9502b7846a61338,
            "activity_start" => $Bdcdfca4ee66b149,
            "is_mag" => $dcfdda514dd6436e,
            "uuid" => $Faae14c064aabdac,
            "http_range" => isset($_SERVER["HTTP_RANGE"])
                ? $_SERVER["HTTP_RANGE"]
                : null,
        ];
        d44833b2a7c07931:
        $Cb626a6c8ac109eb = Xui\Functions::encrypt(
            json_encode($d1f773231c78cb1f),
            XUI::$rSettings["live_streaming_pass"],
            OPENSSL_EXTRA
        );
        if (XUI::$rSettings["allow_cdn_access"]) {
            goto fd391ca856c637a9;
        }
        header("Location: {$d6187f170811b28b}/vauth/{$Cb626a6c8ac109eb}");
        goto b09d4e1622320bfb;
        a4a0ffc313c2230f:
        c24e91029c6ef8dc:
        a326ddf270bf9896:
        goto ec7daf95a584f22b;
        goto Ddf7c3f86038ead0;
        f8bc960a0b0315cc:
        $d6187f170811b28b = Cf4F35827303F315(
            $c4c684d64461b922["redirect_id"],
            $E5919683463edb69
        );
        if (!$ae8c1b90a1b3c353) {
            goto C2ea1fc26eb5dd07;
        }
        $d1f773231c78cb1f = [
            "stream_id" => $Cb0e6b6bea608281,
            "hmac_hash" => XUI::$rRequest["hmac"],
            "hmac_id" => $ae8c1b90a1b3c353,
            "identifier" => $Fe2c987b3598866e,
            "extension" => $f436329234033eb2,
            "type" => $f8cd97817c6cbdb2,
            "pid" => $Dca59bd0cc2fb95b,
            "channel_info" => [
                "stream_id" => $c4c684d64461b922["stream_id"],
                "bitrate" => $c4c684d64461b922["bitrate"],
                "target_container" => $c4c684d64461b922["target_container"],
                "redirect_id" => $c4c684d64461b922["redirect_id"],
                "pid" => $c4c684d64461b922["pid"],
            ],
            "user_info" => $F7f24b19c4fe2e7a,
            "country_code" => $C9502b7846a61338,
            "activity_start" => $Bdcdfca4ee66b149,
            "is_mag" => $dcfdda514dd6436e,
            "uuid" => $Faae14c064aabdac,
            "http_range" => isset($_SERVER["HTTP_RANGE"])
                ? $_SERVER["HTTP_RANGE"]
                : null,
        ];
        goto d44833b2a7c07931;
        C2ea1fc26eb5dd07:
        goto e5df3d60e339ee5c;
        Ddf7c3f86038ead0:
    case "timeshift":
        goto D67de518b2c03d4c;
        D67de518b2c03d4c:
        $ba42a9eb9aacede2 = XUI::c7F9cB5481dca329(
            $Cb0e6b6bea608281,
            $f436329234033eb2,
            $F7f24b19c4fe2e7a,
            $C9502b7846a61338,
            $F7f24b19c4fe2e7a["con_isp_name"],
            "archive"
        );
        if ($ba42a9eb9aacede2) {
            goto Dcf137f814424e22;
        }
        XUI::E9070C2a08153639(
            "show_not_on_air_video",
            "not_on_air_video_path",
            $f436329234033eb2,
            $F7f24b19c4fe2e7a,
            $C85a9af7d2969dae,
            $C9502b7846a61338,
            $F7f24b19c4fe2e7a["con_isp_name"]
        );
        goto f0af89095986d8a6;
        Dcf137f814424e22:
        goto c447ff8da7bf14a6;
        c447ff8da7bf14a6:
        $d6187f170811b28b = CF4F35827303F315(
            $ba42a9eb9aacede2,
            $E5919683463edb69
        );
        $c9b74765537d4746 = XUI::$rRequest["start"];
        $Aae35b764be6962e = intval(XUI::$rRequest["duration"]);
        switch ($f436329234033eb2) {
            case "m3u8":
                goto D008e9d13848acb0;
                D008e9d13848acb0:
                if (
                    !(
                        XUI::$rSettings["disable_hls"] &&
                        (!$F7f24b19c4fe2e7a["is_restreamer"] or
                            !XUI::$rSettings["disable_hls_allow_restream"])
                    )
                ) {
                    goto bb91e1afb579b01c;
                }
                generateError("HLS_DISABLED");
                bb91e1afb579b01c:
                $d1f773231c78cb1f = [
                    "stream" => $Cb0e6b6bea608281,
                    "username" => $F7f24b19c4fe2e7a["username"],
                    "password" => $F7f24b19c4fe2e7a["password"],
                    "extension" => $f436329234033eb2,
                    "pid" => $Dca59bd0cc2fb95b,
                    "start" => $c9b74765537d4746,
                    "duration" => $Aae35b764be6962e,
                    "redirect_id" => $ba42a9eb9aacede2,
                    "user_info" => [
                        "id" => $F7f24b19c4fe2e7a["id"],
                        "max_connections" =>
                            $F7f24b19c4fe2e7a["max_connections"],
                        "pair_line_info" => $F7f24b19c4fe2e7a["pair_line_info"],
                        "pair_id" => $F7f24b19c4fe2e7a["pair_id"],
                        "active_cons" => $F7f24b19c4fe2e7a["active_cons"],
                        "con_isp_name" => $F7f24b19c4fe2e7a["con_isp_name"],
                        "is_restreamer" => $F7f24b19c4fe2e7a["is_restreamer"],
                    ],
                    "country_code" => $C9502b7846a61338,
                    "activity_start" => $Bdcdfca4ee66b149,
                    "uuid" => $Faae14c064aabdac,
                    "http_range" => isset($_SERVER["HTTP_RANGE"])
                        ? $_SERVER["HTTP_RANGE"]
                        : null,
                ];
                $Cb626a6c8ac109eb = Xui\Functions::encrypt(
                    json_encode($d1f773231c78cb1f),
                    XUI::$rSettings["live_streaming_pass"],
                    OPENSSL_EXTRA
                );
                goto Dc7bef8659720234;
                Dc7bef8659720234:
                if (XUI::$rSettings["allow_cdn_access"]) {
                    goto c10553f9a01f883b;
                }
                header(
                    "Location: {$d6187f170811b28b}/tsauth/{$Cb626a6c8ac109eb}"
                );
                exit();
                goto C2ce71855fbe0e86;
                c10553f9a01f883b:
                goto b1f13eb0796edeb2;
                b1f13eb0796edeb2:
                header(
                    "Location: {$d6187f170811b28b}/tsauth/{$Cb0e6b6bea608281}_{$c9b74765537d4746}_{$Aae35b764be6962e}.m3u8?token={$Cb626a6c8ac109eb}"
                );
                exit();
                C2ce71855fbe0e86:
                goto fadcaf3e821cd6d7;
                fadcaf3e821cd6d7:
            default:
                goto e245db648ca60418;
                e245db648ca60418:
                if (
                    !(
                        XUI::$rSettings["disable_ts"] &&
                        (!$F7f24b19c4fe2e7a["is_restreamer"] or
                            !XUI::$rSettings["disable_ts_allow_restream"])
                    )
                ) {
                    goto edc3ab14e29b795b;
                }
                generateError("TS_DISABLED");
                edc3ab14e29b795b:
                $Bdcdfca4ee66b149 = time();
                $d1f773231c78cb1f = [
                    "stream" => $Cb0e6b6bea608281,
                    "username" => $F7f24b19c4fe2e7a["username"],
                    "password" => $F7f24b19c4fe2e7a["password"],
                    "extension" => $f436329234033eb2,
                    "pid" => $Dca59bd0cc2fb95b,
                    "start" => $c9b74765537d4746,
                    "duration" => $Aae35b764be6962e,
                    "redirect_id" => $ba42a9eb9aacede2,
                    "user_info" => [
                        "id" => $F7f24b19c4fe2e7a["id"],
                        "max_connections" =>
                            $F7f24b19c4fe2e7a["max_connections"],
                        "pair_line_info" => $F7f24b19c4fe2e7a["pair_line_info"],
                        "pair_id" => $F7f24b19c4fe2e7a["pair_id"],
                        "active_cons" => $F7f24b19c4fe2e7a["active_cons"],
                        "con_isp_name" => $F7f24b19c4fe2e7a["con_isp_name"],
                        "is_restreamer" => $F7f24b19c4fe2e7a["is_restreamer"],
                    ],
                    "country_code" => $C9502b7846a61338,
                    "activity_start" => $Bdcdfca4ee66b149,
                    "uuid" => $Faae14c064aabdac,
                    "http_range" => isset($_SERVER["HTTP_RANGE"])
                        ? $_SERVER["HTTP_RANGE"]
                        : null,
                ];
                goto F439b2808cfdd499;
                b2a3833d86276074:
                Fbcad269bbfad861:
                header(
                    "Location: {$d6187f170811b28b}/tsauth/{$Cb0e6b6bea608281}_{$c9b74765537d4746}_{$Aae35b764be6962e}.ts?token={$Cb626a6c8ac109eb}"
                );
                exit();
                bb715098674d8e30:
                goto E2e0bc3a94203878;
                F439b2808cfdd499:
                $Cb626a6c8ac109eb = Xui\Functions::encrypt(
                    json_encode($d1f773231c78cb1f),
                    XUI::$rSettings["live_streaming_pass"],
                    OPENSSL_EXTRA
                );
                if (XUI::$rSettings["allow_cdn_access"]) {
                    goto Fbcad269bbfad861;
                }
                header(
                    "Location: {$d6187f170811b28b}/tsauth/{$Cb626a6c8ac109eb}"
                );
                exit();
                goto bb715098674d8e30;
                goto b2a3833d86276074;
                E2e0bc3a94203878:
        }
        F53c905345295dc1:
        goto c9b57eb1b09366fd;
        c9b57eb1b09366fd:
        a44ed7085c7673c6:
        f0af89095986d8a6:
        goto ec7daf95a584f22b;
        goto E364b1c25678f33d;
        E364b1c25678f33d:
    case "thumb":
        goto A97e2a2af49f0420;
        A97e2a2af49f0420:
        $E1dc28fe83690f7c = null;
        if (XUI::$rCached) {
            goto F352f0f0158e5bd0;
        }
        $d7c7502b3f9833d5->query(
            "SELECT * FROM `streams` t1 INNER JOIN `streams_types` t2 ON t2.type_id = t1.type AND t2.live = 1 LEFT JOIN `profiles` t4 ON t1.transcode_profile_id = t4.profile_id WHERE t1.direct_source = 0 AND t1.id = ?",
            $Cb0e6b6bea608281
        );
        if (!($d7c7502b3f9833d5->num_rows() > 0)) {
            goto F2045ccbf14400f1;
        }
        $E1dc28fe83690f7c = ["info" => $d7c7502b3f9833d5->get_row()];
        goto Ddcc5fea335a11f1;
        Ce534c378ddd67ba:
        exit();
        goto d000e66c2dabc2e4;
        Ddcc5fea335a11f1:
        F2045ccbf14400f1:
        goto Aa66aaffd52688ad;
        F352f0f0158e5bd0:
        $E1dc28fe83690f7c = igbinary_unserialize(
            file_get_contents(STREAMS_TMP_PATH . "stream_" . $Cb0e6b6bea608281)
        );
        Aa66aaffd52688ad:
        goto a47fd0e8a6421407;
        a47fd0e8a6421407:
        if ($E1dc28fe83690f7c) {
            goto f1c7fa136eb0cae4;
        }
        generateError("INVALID_STREAM_ID");
        f1c7fa136eb0cae4:
        if (!($E1dc28fe83690f7c["info"]["vframes_server_id"] == 0)) {
            goto d38778aafe666eb1;
        }
        generateError("THUMBNAILS_NOT_ENABLED");
        goto cc32ab1cafe5d390;
        cc32ab1cafe5d390:
        d38778aafe666eb1:
        $d1f773231c78cb1f = [
            "stream" => $Cb0e6b6bea608281,
            "expires" => time() + 5,
        ];
        $d6187f170811b28b = CF4F35827303f315(
            $E1dc28fe83690f7c["info"]["vframes_server_id"],
            $E5919683463edb69
        );
        $Cb626a6c8ac109eb = Xui\Functions::encrypt(
            json_encode($d1f773231c78cb1f),
            XUI::$rSettings["live_streaming_pass"],
            OPENSSL_EXTRA
        );
        header("Location: {$d6187f170811b28b}/thauth/{$Cb626a6c8ac109eb}");
        goto Ce534c378ddd67ba;
        d000e66c2dabc2e4:
    case "subtitle":
        goto c6212a28917ea130;
        c6212a28917ea130:
        $c4c684d64461b922 = XUI::C7f9cb5481dcA329(
            $Cb0e6b6bea608281,
            "srt",
            $F7f24b19c4fe2e7a,
            $C9502b7846a61338,
            $F7f24b19c4fe2e7a["con_isp_name"],
            "movie"
        );
        if ($c4c684d64461b922) {
            goto B18a12cfbd76f7db;
        }
        generateError("INVALID_STREAM_ID");
        goto c25438c2713ce9f3;
        B18a12cfbd76f7db:
        goto Ff7e1a77184a5bce;
        Ff7e1a77184a5bce:
        $d6187f170811b28b = Cf4F35827303f315(
            $c4c684d64461b922["redirect_id"],
            $E5919683463edb69
        );
        $d1f773231c78cb1f = [
            "stream_id" => $Cb0e6b6bea608281,
            "sub_id" => intval(XUI::$rRequest["sid"]) ?: 0,
            "webvtt" => intval(XUI::$rRequest["webvtt"]) ?: 0,
            "expires" => time() + 5,
        ];
        $Cb626a6c8ac109eb = Xui\Functions::encrypt(
            json_encode($d1f773231c78cb1f),
            XUI::$rSettings["live_streaming_pass"],
            OPENSSL_EXTRA
        );
        header("Location: {$d6187f170811b28b}/subauth/{$Cb626a6c8ac109eb}");
        exit();
        goto e5df1a567114c079;
        e5df1a567114c079:
        c25438c2713ce9f3:
        goto ec7daf95a584f22b;
        goto C444fedf34dc0838;
        C444fedf34dc0838:
}
cc10a7b4a09d108b:
goto b36f79a2527b30cb;
a2b1e04c663820ab:
generateError("NOT_IN_ALLOWED_IPS");
d7fc9dd039fa1ca6:
if (empty($C9502b7846a61338)) {
    goto b2c6a1de5116d02c;
}
$Af7f102da11bef04 = !empty($F7f24b19c4fe2e7a["forced_country"]);
if (
    !(
        $Af7f102da11bef04 &&
        $F7f24b19c4fe2e7a["forced_country"] != "ALL" &&
        $C9502b7846a61338 != $F7f24b19c4fe2e7a["forced_country"]
    )
) {
    goto D97601b60071f573;
}
goto e15c005753de82f8;
Fd271e1316c5fd66:
function shutdown()
{
    global $Db2e4b9590962bf2, $d7c7502b3f9833d5;
    if (!$Db2e4b9590962bf2) {
        goto A39154dde5e7727b;
    }
    XUI::C6DD6C13912962A3();
    A39154dde5e7727b:
    if (!is_object($d7c7502b3f9833d5)) {
        goto d7f1b424c7f348a8;
    }
    $d7c7502b3f9833d5->close_mysql();
    d7f1b424c7f348a8:
} ?>

Function Calls

None

Variables

None

Stats

MD5 d610e0c1eca0e97d5b7c405d15e19af5
Eval Count 0
Decode Time 93 ms