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 function Gen_User_Playlist($userID, $type, $output_file_ext = "ts", $dc26923f6898..

Decoded Output download

<?php 
 
function Gen_User_Playlist($userID, $type, $output_file_ext = "ts", $dc26923f689872c2291d72d47eb689c9 = false) 
{ 
    global $f566700a43ee8e1f0412fe10fbdf03df; 
    if (!empty($type)) { 
        if (!($output_file_ext == "mpegts")) { 
            goto a39f5e1a3034de567870ab56475771c4; 
        } 
        $output_file_ext = "ts"; 
        a39f5e1a3034de567870ab56475771c4: 
        if (!($output_file_ext == "hls")) { 
            goto b67614b1e687d089d4e699e0628797cd; 
        } 
        $output_file_ext = "m3u8"; 
        b67614b1e687d089d4e699e0628797cd: 
        if (empty($output_file_ext)) { 
            $f566700a43ee8e1f0412fe10fbdf03df->query("SELECT t1.output_ext FROM `access_output` t1 INNER JOIN `devices` t2 ON t2.default_output = t1.access_output_id AND `device_key` = '%s'", $type); 
            goto A577969077bf746bcc8e4b27faf64737; 
        } 
        $f566700a43ee8e1f0412fe10fbdf03df->query("SELECT t1.output_ext FROM `access_output` t1 WHERE `output_key` = '%s'", $output_file_ext); 
        A577969077bf746bcc8e4b27faf64737: 
        if (!($f566700a43ee8e1f0412fe10fbdf03df->d1E5ce3b87BB868b9e6efD39aA355a4F() <= 0)) { 
            $ef5e5003fbec0abe0a64a7638470e9fd = $f566700a43ee8e1f0412fe10fbdf03df->b98CE8b3899e362093173CC5eB4146b9(); 
            $a8df9f055e91a1e9240230b69af85555 = cD89785224751cCA8017139dAF9E891e::E5550592AA298dD1d5ee59cdcE063a12($userID, null, null, true, true, false); 
            if (!empty($a8df9f055e91a1e9240230b69af85555)) { 
                if (!(!empty($a8df9f055e91a1e9240230b69af85555["exp_date"]) && time() >= $a8df9f055e91a1e9240230b69af85555["exp_date"])) { 
                    if (A78Bf8d35765Be2408C50712ce7A43Ad::$settings["use_mdomain_in_lists"] == 1) { 
                        $B6e64514a7c403d6db2d2ba8fa6fc2cb = a78BF8D35765bE2408C50712ce7A43ad::$StreamingServers[SERVER_ID]["site_url"]; 
                        goto e801a11e77fe89d778a9a35da9b43e3e; 
                    } 
                    list($C67d267db947e49f6df4c2c8f1f3a7e8, $B9037608c0d62641e46acd9b3d50eee8) = explode(":", $_SERVER["HTTP_HOST"]); 
                    $B6e64514a7c403d6db2d2ba8fa6fc2cb = a78bF8d35765BE2408c50712cE7a43Ad::$StreamingServers[SERVER_ID]["server_protocol"] . "://" . $C67d267db947e49f6df4c2c8f1f3a7e8 . ":" . a78Bf8D35765Be2408c50712ce7a43aD::$StreamingServers[SERVER_ID]["request_port"] . "/"; 
                    e801a11e77fe89d778a9a35da9b43e3e: 
                    $f53d081795585cc3a4de84113ceb7f31 = array(); 
                    if (!($output_file_ext == "rtmp")) { 
                        goto Dbec9e468b5525a0cc17bd7369823dfb; 
                    } 
                    $f566700a43ee8e1f0412fe10fbdf03df->query("SELECT t1.id,t2.server_id FROM 
                         `streams` t1
                          INNER JOIN `streams_sys` t2 ON t2.stream_id = t1.id
                          WHERE t1.rtmp_output = 1"); 
                    $f53d081795585cc3a4de84113ceb7f31 = $f566700a43ee8e1f0412fe10fbdf03df->c126fd559932F625CdF6098D86C63880(true, "id", false, "server_id"); 
                    Dbec9e468b5525a0cc17bd7369823dfb: 
                    if (!empty($ef5e5003fbec0abe0a64a7638470e9fd)) { 
                        goto d5be913cbd8c06e0f23d033aadb27146; 
                    } 
                    $ef5e5003fbec0abe0a64a7638470e9fd = "ts"; 
                    d5be913cbd8c06e0f23d033aadb27146: 
                    $f566700a43ee8e1f0412fe10fbdf03df->query("SELECT t1.*,t2.*
                              FROM `devices` t1
                              LEFT JOIN `access_output` t2 ON t2.access_output_id = t1.default_output
                              WHERE t1.device_key = '%s' LIMIT 1", $type); 
                    if (!($f566700a43ee8e1f0412fe10fbdf03df->D1e5ce3b87BB868b9E6eFd39aa355A4f() > 0)) { 
                        return false; 
                    } 
                    $ef2191c41d898dd4d2c297b9115d985d = $f566700a43ee8e1f0412fe10fbdf03df->F1ED191D78470660EDFF4A007696bC1F(); 
                    $d76067cf9572f7a6691c85c12faf2a29 = ''; 
                    if (empty($a8df9f055e91a1e9240230b69af85555["series_ids"])) { 
                        goto F6539e58ef2903f80540f578456807f8; 
                    } 
                    $deff942ee62f1e5c2c16d11aee464729 = A78BF8d35765be2408c50712ce7a43aD::DcA7Aa6Db7C4ce371e41571a19bcE930(); 
                    foreach ($deff942ee62f1e5c2c16d11aee464729 as $acb1d10773fb0d1b6ac8cf2c16ecf1b5 => $A0766c7ec9b7cbc336d730454514b34f) { 
                        if (in_array($acb1d10773fb0d1b6ac8cf2c16ecf1b5, $a8df9f055e91a1e9240230b69af85555["series_ids"])) { 
                            foreach ($A0766c7ec9b7cbc336d730454514b34f["series_data"] as $c59070c3eab15fea2abe4546ccf476de => $E86ff017778d0dc804add84ab1be9052) { 
                                $e831c6d2f20288c01902323cccc3733a = 0; 
                                foreach ($E86ff017778d0dc804add84ab1be9052 as $ba85d77d367dcebfcc2a3db9e83bb581 => $a14a8f906639aa7f5509518ff935b8f0) { 
                                    $movie_properties = A78bf8d35765Be2408c50712CE7a43aD::CAdeb9125b2E81B183688842C5Ac3ad7($ba85d77d367dcebfcc2a3db9e83bb581); 
                                    $a14a8f906639aa7f5509518ff935b8f0["live"] = 0; 
                                    if (a78bF8D35765Be2408c50712Ce7A43AD::$settings["series_custom_name"] == 0) { 
                                        $a14a8f906639aa7f5509518ff935b8f0["stream_display_name"] = $A0766c7ec9b7cbc336d730454514b34f["title"] . " S" . sprintf("%02d", $c59070c3eab15fea2abe4546ccf476de) . " E" . sprintf("%02d", ++$e831c6d2f20288c01902323cccc3733a); 
                                        goto b034a615d810ae5e6d5a7dbe75f54df7; 
                                    } 
                                    $a14a8f906639aa7f5509518ff935b8f0["stream_display_name"] = $A0766c7ec9b7cbc336d730454514b34f["title"] . " S" . sprintf("%02d", $c59070c3eab15fea2abe4546ccf476de) . " {$a14a8f906639aa7f5509518ff935b8f0["stream_display_name"]}"; 
                                    b034a615d810ae5e6d5a7dbe75f54df7: 
                                    $a14a8f906639aa7f5509518ff935b8f0["movie_propeties"] = array("movie_image" => !empty($movie_properties["movie_image"]) ? $movie_properties["movie_image"] : $A0766c7ec9b7cbc336d730454514b34f["cover"]); 
                                    $a14a8f906639aa7f5509518ff935b8f0["type_output"] = "series"; 
                                    $a14a8f906639aa7f5509518ff935b8f0["category_name"] = $A0766c7ec9b7cbc336d730454514b34f["category_name"]; 
                                    $a14a8f906639aa7f5509518ff935b8f0["id"] = $ba85d77d367dcebfcc2a3db9e83bb581; 
                                    $a8df9f055e91a1e9240230b69af85555["channels"][$ba85d77d367dcebfcc2a3db9e83bb581] = $a14a8f906639aa7f5509518ff935b8f0; 
                                } 
                            } 
                            goto F8813f34d02942f67ad3dca0b5faccc7; 
                        } 
                        F8813f34d02942f67ad3dca0b5faccc7: 
                    } 
                    F6539e58ef2903f80540f578456807f8: 
                    if ($type == "starlivev5") { 
                        $Edee2355c9dc9d29534485158df8e981 = array(); 
                        $Edee2355c9dc9d29534485158df8e981["iptvstreams_list"] = array(); 
                        $Edee2355c9dc9d29534485158df8e981["iptvstreams_list"]["@version"] = 1; 
                        $Edee2355c9dc9d29534485158df8e981["iptvstreams_list"]["group"] = array(); 
                        $Edee2355c9dc9d29534485158df8e981["iptvstreams_list"]["group"]["name"] = "IPTV"; 
                        $Edee2355c9dc9d29534485158df8e981["iptvstreams_list"]["group"]["channel"] = array(); 
                        foreach ($a8df9f055e91a1e9240230b69af85555["channels"] as $ffb1e0970b62b01f46c2e57f2cded6c2) { 
                            $f3f2a9f7d64ad754f9f888f441df853a = !isset($ffb1e0970b62b01f46c2e57f2cded6c2["movie_propeties"]) ? A78Bf8d35765be2408C50712cE7a43ad::CaDeb9125b2E81B183688842c5AC3Ad7($channel["id"]) : $ffb1e0970b62b01f46c2e57f2cded6c2["movie_propeties"]; 
                            if (!empty($ffb1e0970b62b01f46c2e57f2cded6c2["stream_source"])) { 
                                $e3539ad64f4d9fc6c2e465986c622369 = str_replace(" ", "%20", json_decode($ffb1e0970b62b01f46c2e57f2cded6c2["stream_source"], true)[0]); 
                                $C57b49d586c542242fa9bb22afa04cf8 = !empty($f3f2a9f7d64ad754f9f888f441df853a["movie_image"]) ? $f3f2a9f7d64ad754f9f888f441df853a["movie_image"] : $ffb1e0970b62b01f46c2e57f2cded6c2["stream_icon"]; 
                                goto C52122cd0a02f17a5c718ef1ee1b3f67; 
                            } 
                            $e3539ad64f4d9fc6c2e465986c622369 = $B6e64514a7c403d6db2d2ba8fa6fc2cb . "{$ffb1e0970b62b01f46c2e57f2cded6c2["type_output"]}/{$a8df9f055e91a1e9240230b69af85555["username"]}/{$a8df9f055e91a1e9240230b69af85555["password"]}/"; 
                            if ($ffb1e0970b62b01f46c2e57f2cded6c2["live"] == 0) { 
                                $e3539ad64f4d9fc6c2e465986c622369 .= $ffb1e0970b62b01f46c2e57f2cded6c2["id"] . "." . dc53Ae228df72D4C140Fda7FD5E7e0Be($ffb1e0970b62b01f46c2e57f2cded6c2["target_container"]); 
                                if (empty($f3f2a9f7d64ad754f9f888f441df853a["movie_image"])) { 
                                    goto Addd4567e92abacbf75e399baf55e1f3; 
                                } 
                                $C57b49d586c542242fa9bb22afa04cf8 = $f3f2a9f7d64ad754f9f888f441df853a["movie_image"]; 
                                Addd4567e92abacbf75e399baf55e1f3: 
                                goto c8303b0756d822e343b9686f41e601e4; 
                            } 
                            $e3539ad64f4d9fc6c2e465986c622369 .= $ffb1e0970b62b01f46c2e57f2cded6c2["id"] . "." . $ef5e5003fbec0abe0a64a7638470e9fd; 
                            $C57b49d586c542242fa9bb22afa04cf8 = $ffb1e0970b62b01f46c2e57f2cded6c2["stream_icon"]; 
                            c8303b0756d822e343b9686f41e601e4: 
                            C52122cd0a02f17a5c718ef1ee1b3f67: 
                            $channel = array(); 
                            $channel["name"] = $ffb1e0970b62b01f46c2e57f2cded6c2["stream_display_name"]; 
                            $C57b49d586c542242fa9bb22afa04cf8 = ''; 
                            $channel["icon"] = $C57b49d586c542242fa9bb22afa04cf8; 
                            $channel["stream_url"] = $e3539ad64f4d9fc6c2e465986c622369; 
                            $channel["stream_type"] = 0; 
                            $Edee2355c9dc9d29534485158df8e981["iptvstreams_list"]["group"]["channel"][] = $channel; 
                        } 
                        $d76067cf9572f7a6691c85c12faf2a29 = json_encode((object) $Edee2355c9dc9d29534485158df8e981); 
                        goto B69945d8e2cdea9f1ecb0fc45b1f96a3; 
                    } 
                    if (empty($ef2191c41d898dd4d2c297b9115d985d["device_header"])) { 
                        goto e0f27ef2f804ec8b79518118404559db; 
                    } 
                    $d76067cf9572f7a6691c85c12faf2a29 = str_replace(array("{BOUQUET_NAME}", "{USERNAME}", "{PASSWORD}", "{SERVER_URL}", "{OUTPUT_KEY}"), array(a78Bf8d35765bE2408c50712cE7a43aD::$settings["bouquet_name"], $a8df9f055e91a1e9240230b69af85555["username"], $a8df9f055e91a1e9240230b69af85555["password"], $B6e64514a7c403d6db2d2ba8fa6fc2cb, $output_file_ext), $ef2191c41d898dd4d2c297b9115d985d["device_header"]) . "
"; 
                    e0f27ef2f804ec8b79518118404559db: 
                    if (empty($ef2191c41d898dd4d2c297b9115d985d["device_conf"])) { 
                        goto e2eaed023f67c5152ffa086db60fd218; 
                    } 
                    if (preg_match("/\{URL\#(.*?)\}/", $ef2191c41d898dd4d2c297b9115d985d["device_conf"], $ae37877cee3bc97c8cfa6ec5843993ed)) { 
                        $e5cb656483e7536471dc8d1c0bab1ed0 = str_split($ae37877cee3bc97c8cfa6ec5843993ed[1]); 
                        $e67cb10c8a14e132feaa115160c239e9 = $ae37877cee3bc97c8cfa6ec5843993ed[0]; 
                        goto C12a8d2b7f6732a9db1ed111ecf8548a; 
                    } 
                    $e5cb656483e7536471dc8d1c0bab1ed0 = array(); 
                    $e67cb10c8a14e132feaa115160c239e9 = "{URL}"; 
                    C12a8d2b7f6732a9db1ed111ecf8548a: 
                    foreach ($a8df9f055e91a1e9240230b69af85555["channels"] as $channel) { 
                        $f3f2a9f7d64ad754f9f888f441df853a = !isset($channel["movie_propeties"]) ? A78Bf8D35765Be2408c50712ce7A43ad::CADEb9125B2E81b183688842c5AC3AD7($channel["id"]) : $channel["movie_propeties"]; 
                        if (!empty($channel["stream_source"])) { 
                            $e3539ad64f4d9fc6c2e465986c622369 = str_replace(" ", "%20", json_decode($channel["stream_source"], true)[0]); 
                            $C57b49d586c542242fa9bb22afa04cf8 = !empty($f3f2a9f7d64ad754f9f888f441df853a["movie_image"]) ? $f3f2a9f7d64ad754f9f888f441df853a["movie_image"] : $channel["stream_icon"]; 
                            goto dcc5925e20dbb9fe7a8978922e22fbb0; 
                        } 
                        if ($channel["live"] == 0) { 
                            $e3539ad64f4d9fc6c2e465986c622369 = $B6e64514a7c403d6db2d2ba8fa6fc2cb . "{$channel["type_output"]}/{$a8df9f055e91a1e9240230b69af85555["username"]}/{$a8df9f055e91a1e9240230b69af85555["password"]}/{$channel["id"]}." . Dc53aE228dF72D4C140FDa7Fd5E7e0bE($channel["target_container"]); 
                            if (empty($f3f2a9f7d64ad754f9f888f441df853a["movie_image"])) { 
                                goto Dad2d00d1970077c3f0eae4d246626f5; 
                            } 
                            $C57b49d586c542242fa9bb22afa04cf8 = $f3f2a9f7d64ad754f9f888f441df853a["movie_image"]; 
                            Dad2d00d1970077c3f0eae4d246626f5: 
                            goto a2fc779e36bed5687953a97912601ac0; 
                        } 
                        if ($output_file_ext != "rtmp" || !array_key_exists($channel["id"], $f53d081795585cc3a4de84113ceb7f31)) { 
                            if (!file_exists("TMP_DIRnew_rewrite") || $ef5e5003fbec0abe0a64a7638470e9fd != "ts") { 
                                $e3539ad64f4d9fc6c2e465986c622369 = $B6e64514a7c403d6db2d2ba8fa6fc2cb . "{$channel["type_output"]}/{$a8df9f055e91a1e9240230b69af85555["username"]}/{$a8df9f055e91a1e9240230b69af85555["password"]}/{$channel["id"]}.{$ef5e5003fbec0abe0a64a7638470e9fd}"; 
                                goto eb01a63ff8469a5088c7edfc7391de87; 
                            } 
                            $e3539ad64f4d9fc6c2e465986c622369 = $B6e64514a7c403d6db2d2ba8fa6fc2cb . "{$a8df9f055e91a1e9240230b69af85555["username"]}/{$a8df9f055e91a1e9240230b69af85555["password"]}/{$channel["id"]}"; 
                            eb01a63ff8469a5088c7edfc7391de87: 
                            goto be057225076d5505b5d579abb5d2c939; 
                        } 
                        $e3215fa97db12812ee074d6c110dea4b = array_values(array_keys($f53d081795585cc3a4de84113ceb7f31[$channel["id"]])); 
                        if (in_array($a8df9f055e91a1e9240230b69af85555["force_server_id"], $e3215fa97db12812ee074d6c110dea4b)) { 
                            $e951d0b9610ba3624d06def5a541cb17 = $a8df9f055e91a1e9240230b69af85555["force_server_id"]; 
                            goto D5534d0f8c77b03d715fa5e23bbc60e3; 
                        } 
                        if (A78bf8D35765be2408c50712ce7a43ad::$settings["rtmp_random"] == 1) { 
                            $e951d0b9610ba3624d06def5a541cb17 = $e3215fa97db12812ee074d6c110dea4b[array_rand($e3215fa97db12812ee074d6c110dea4b, 1)]; 
                            goto F8c695f5ee4f82952258ff819b620064; 
                        } 
                        $e951d0b9610ba3624d06def5a541cb17 = $e3215fa97db12812ee074d6c110dea4b[0]; 
                        F8c695f5ee4f82952258ff819b620064: 
                        D5534d0f8c77b03d715fa5e23bbc60e3: 
                        $e3539ad64f4d9fc6c2e465986c622369 = a78bF8d35765be2408C50712ce7A43Ad::$StreamingServers[$e951d0b9610ba3624d06def5a541cb17]["rtmp_server"] . "{$channel["id"]}?username={$a8df9f055e91a1e9240230b69af85555["username"]}&password={$a8df9f055e91a1e9240230b69af85555["password"]}"; 
                        be057225076d5505b5d579abb5d2c939: 
                        $C57b49d586c542242fa9bb22afa04cf8 = $channel["stream_icon"]; 
                        a2fc779e36bed5687953a97912601ac0: 
                        dcc5925e20dbb9fe7a8978922e22fbb0: 
                        $aaf6a34b884488dd481a40d77442e482 = $channel["live"] == 1 ? 1 : 4097; 
                        $a98ed0c1a9452fc6117e23a262acc7a9 = !empty($channel["custom_sid"]) ? $channel["custom_sid"] : ":0:1:0:0:0:0:0:0:0:"; 
                        $d76067cf9572f7a6691c85c12faf2a29 .= str_replace(array($e67cb10c8a14e132feaa115160c239e9, "{ESR_ID}", "{SID}", "{CHANNEL_NAME}", "{CHANNEL_ID}", "{CATEGORY}", "{CHANNEL_ICON}"), array(str_replace($e5cb656483e7536471dc8d1c0bab1ed0, array_map("urlencode", $e5cb656483e7536471dc8d1c0bab1ed0), $e3539ad64f4d9fc6c2e465986c622369), $aaf6a34b884488dd481a40d77442e482, $a98ed0c1a9452fc6117e23a262acc7a9, $channel["stream_display_name"], $channel["channel_id"], $channel["category_name"], $C57b49d586c542242fa9bb22afa04cf8), $ef2191c41d898dd4d2c297b9115d985d["device_conf"]) . "
"; 
                    } 
                    $d76067cf9572f7a6691c85c12faf2a29 .= $ef2191c41d898dd4d2c297b9115d985d["device_footer"]; 
                    $d76067cf9572f7a6691c85c12faf2a29 = trim($d76067cf9572f7a6691c85c12faf2a29); 
                    e2eaed023f67c5152ffa086db60fd218: 
                    B69945d8e2cdea9f1ecb0fc45b1f96a3: 
                    if (!($dc26923f689872c2291d72d47eb689c9 === true)) { 
                        return $d76067cf9572f7a6691c85c12faf2a29; 
                    } 
                    header("Content-Description: File Transfer"); 
                    header("Content-Type: application/octet-stream"); 
                    header("Expires: 0"); 
                    header("Cache-Control: must-revalidate"); 
                    header("Pragma: public"); 
                    header("Content-Disposition: attachment; filename=\"" . str_replace("{USERNAME}", $a8df9f055e91a1e9240230b69af85555["username"], $ef2191c41d898dd4d2c297b9115d985d["device_filename"]) . "\""); 
                    header("Content-Length: " . strlen($d76067cf9572f7a6691c85c12faf2a29)); 
                    echo $d76067cf9572f7a6691c85c12faf2a29; 
                    die; 
                } 
                return false; 
            } 
            return false; 
        } 
        return false; 
    } 
    return false; 
} 
 ?>

Did this file decode correctly?

Original Code

<?php

function Gen_User_Playlist($userID, $type, $output_file_ext = "ts", $dc26923f689872c2291d72d47eb689c9 = false)
{
    global $f566700a43ee8e1f0412fe10fbdf03df;
    if (!empty($type)) {
        if (!($output_file_ext == "mpegts")) {
            goto a39f5e1a3034de567870ab56475771c4;
        }
        $output_file_ext = "ts";
        a39f5e1a3034de567870ab56475771c4:
        if (!($output_file_ext == "hls")) {
            goto b67614b1e687d089d4e699e0628797cd;
        }
        $output_file_ext = "m3u8";
        b67614b1e687d089d4e699e0628797cd:
        if (empty($output_file_ext)) {
            $f566700a43ee8e1f0412fe10fbdf03df->query("SELECT t1.output_ext FROM `access_output` t1 INNER JOIN `devices` t2 ON t2.default_output = t1.access_output_id AND `device_key` = '%s'", $type);
            goto A577969077bf746bcc8e4b27faf64737;
        }
        $f566700a43ee8e1f0412fe10fbdf03df->query("SELECT t1.output_ext FROM `access_output` t1 WHERE `output_key` = '%s'", $output_file_ext);
        A577969077bf746bcc8e4b27faf64737:
        if (!($f566700a43ee8e1f0412fe10fbdf03df->d1E5ce3b87BB868b9e6efD39aA355a4F() <= 0)) {
            $ef5e5003fbec0abe0a64a7638470e9fd = $f566700a43ee8e1f0412fe10fbdf03df->b98CE8b3899e362093173CC5eB4146b9();
            $a8df9f055e91a1e9240230b69af85555 = cD89785224751cCA8017139dAF9E891e::E5550592AA298dD1d5ee59cdcE063a12($userID, null, null, true, true, false);
            if (!empty($a8df9f055e91a1e9240230b69af85555)) {
                if (!(!empty($a8df9f055e91a1e9240230b69af85555["exp_date"]) && time() >= $a8df9f055e91a1e9240230b69af85555["exp_date"])) {
                    if (A78Bf8d35765Be2408C50712ce7A43Ad::$settings["use_mdomain_in_lists"] == 1) {
                        $B6e64514a7c403d6db2d2ba8fa6fc2cb = a78BF8D35765bE2408C50712ce7A43ad::$StreamingServers[SERVER_ID]["site_url"];
                        goto e801a11e77fe89d778a9a35da9b43e3e;
                    }
                    list($C67d267db947e49f6df4c2c8f1f3a7e8, $B9037608c0d62641e46acd9b3d50eee8) = explode(":", $_SERVER["HTTP_HOST"]);
                    $B6e64514a7c403d6db2d2ba8fa6fc2cb = a78bF8d35765BE2408c50712cE7a43Ad::$StreamingServers[SERVER_ID]["server_protocol"] . "://" . $C67d267db947e49f6df4c2c8f1f3a7e8 . ":" . a78Bf8D35765Be2408c50712ce7a43aD::$StreamingServers[SERVER_ID]["request_port"] . "/";
                    e801a11e77fe89d778a9a35da9b43e3e:
                    $f53d081795585cc3a4de84113ceb7f31 = array();
                    if (!($output_file_ext == "rtmp")) {
                        goto Dbec9e468b5525a0cc17bd7369823dfb;
                    }
                    $f566700a43ee8e1f0412fe10fbdf03df->query("SELECT t1.id,t2.server_id FROM \r\n                         `streams` t1\r\n                          INNER JOIN `streams_sys` t2 ON t2.stream_id = t1.id\r\n                          WHERE t1.rtmp_output = 1");
                    $f53d081795585cc3a4de84113ceb7f31 = $f566700a43ee8e1f0412fe10fbdf03df->c126fd559932F625CdF6098D86C63880(true, "id", false, "server_id");
                    Dbec9e468b5525a0cc17bd7369823dfb:
                    if (!empty($ef5e5003fbec0abe0a64a7638470e9fd)) {
                        goto d5be913cbd8c06e0f23d033aadb27146;
                    }
                    $ef5e5003fbec0abe0a64a7638470e9fd = "ts";
                    d5be913cbd8c06e0f23d033aadb27146:
                    $f566700a43ee8e1f0412fe10fbdf03df->query("SELECT t1.*,t2.*\r\n                              FROM `devices` t1\r\n                              LEFT JOIN `access_output` t2 ON t2.access_output_id = t1.default_output\r\n                              WHERE t1.device_key = '%s' LIMIT 1", $type);
                    if (!($f566700a43ee8e1f0412fe10fbdf03df->D1e5ce3b87BB868b9E6eFd39aa355A4f() > 0)) {
                        return false;
                    }
                    $ef2191c41d898dd4d2c297b9115d985d = $f566700a43ee8e1f0412fe10fbdf03df->F1ED191D78470660EDFF4A007696bC1F();
                    $d76067cf9572f7a6691c85c12faf2a29 = '';
                    if (empty($a8df9f055e91a1e9240230b69af85555["series_ids"])) {
                        goto F6539e58ef2903f80540f578456807f8;
                    }
                    $deff942ee62f1e5c2c16d11aee464729 = A78BF8d35765be2408c50712ce7a43aD::DcA7Aa6Db7C4ce371e41571a19bcE930();
                    foreach ($deff942ee62f1e5c2c16d11aee464729 as $acb1d10773fb0d1b6ac8cf2c16ecf1b5 => $A0766c7ec9b7cbc336d730454514b34f) {
                        if (in_array($acb1d10773fb0d1b6ac8cf2c16ecf1b5, $a8df9f055e91a1e9240230b69af85555["series_ids"])) {
                            foreach ($A0766c7ec9b7cbc336d730454514b34f["series_data"] as $c59070c3eab15fea2abe4546ccf476de => $E86ff017778d0dc804add84ab1be9052) {
                                $e831c6d2f20288c01902323cccc3733a = 0;
                                foreach ($E86ff017778d0dc804add84ab1be9052 as $ba85d77d367dcebfcc2a3db9e83bb581 => $a14a8f906639aa7f5509518ff935b8f0) {
                                    $movie_properties = A78bf8d35765Be2408c50712CE7a43aD::CAdeb9125b2E81B183688842C5Ac3ad7($ba85d77d367dcebfcc2a3db9e83bb581);
                                    $a14a8f906639aa7f5509518ff935b8f0["live"] = 0;
                                    if (a78bF8D35765Be2408c50712Ce7A43AD::$settings["series_custom_name"] == 0) {
                                        $a14a8f906639aa7f5509518ff935b8f0["stream_display_name"] = $A0766c7ec9b7cbc336d730454514b34f["title"] . " S" . sprintf("%02d", $c59070c3eab15fea2abe4546ccf476de) . " E" . sprintf("%02d", ++$e831c6d2f20288c01902323cccc3733a);
                                        goto b034a615d810ae5e6d5a7dbe75f54df7;
                                    }
                                    $a14a8f906639aa7f5509518ff935b8f0["stream_display_name"] = $A0766c7ec9b7cbc336d730454514b34f["title"] . " S" . sprintf("%02d", $c59070c3eab15fea2abe4546ccf476de) . " {$a14a8f906639aa7f5509518ff935b8f0["stream_display_name"]}";
                                    b034a615d810ae5e6d5a7dbe75f54df7:
                                    $a14a8f906639aa7f5509518ff935b8f0["movie_propeties"] = array("movie_image" => !empty($movie_properties["movie_image"]) ? $movie_properties["movie_image"] : $A0766c7ec9b7cbc336d730454514b34f["cover"]);
                                    $a14a8f906639aa7f5509518ff935b8f0["type_output"] = "series";
                                    $a14a8f906639aa7f5509518ff935b8f0["category_name"] = $A0766c7ec9b7cbc336d730454514b34f["category_name"];
                                    $a14a8f906639aa7f5509518ff935b8f0["id"] = $ba85d77d367dcebfcc2a3db9e83bb581;
                                    $a8df9f055e91a1e9240230b69af85555["channels"][$ba85d77d367dcebfcc2a3db9e83bb581] = $a14a8f906639aa7f5509518ff935b8f0;
                                }
                            }
                            goto F8813f34d02942f67ad3dca0b5faccc7;
                        }
                        F8813f34d02942f67ad3dca0b5faccc7:
                    }
                    F6539e58ef2903f80540f578456807f8:
                    if ($type == "starlivev5") {
                        $Edee2355c9dc9d29534485158df8e981 = array();
                        $Edee2355c9dc9d29534485158df8e981["iptvstreams_list"] = array();
                        $Edee2355c9dc9d29534485158df8e981["iptvstreams_list"]["@version"] = 1;
                        $Edee2355c9dc9d29534485158df8e981["iptvstreams_list"]["group"] = array();
                        $Edee2355c9dc9d29534485158df8e981["iptvstreams_list"]["group"]["name"] = "IPTV";
                        $Edee2355c9dc9d29534485158df8e981["iptvstreams_list"]["group"]["channel"] = array();
                        foreach ($a8df9f055e91a1e9240230b69af85555["channels"] as $ffb1e0970b62b01f46c2e57f2cded6c2) {
                            $f3f2a9f7d64ad754f9f888f441df853a = !isset($ffb1e0970b62b01f46c2e57f2cded6c2["movie_propeties"]) ? A78Bf8d35765be2408C50712cE7a43ad::CaDeb9125b2E81B183688842c5AC3Ad7($channel["id"]) : $ffb1e0970b62b01f46c2e57f2cded6c2["movie_propeties"];
                            if (!empty($ffb1e0970b62b01f46c2e57f2cded6c2["stream_source"])) {
                                $e3539ad64f4d9fc6c2e465986c622369 = str_replace(" ", "%20", json_decode($ffb1e0970b62b01f46c2e57f2cded6c2["stream_source"], true)[0]);
                                $C57b49d586c542242fa9bb22afa04cf8 = !empty($f3f2a9f7d64ad754f9f888f441df853a["movie_image"]) ? $f3f2a9f7d64ad754f9f888f441df853a["movie_image"] : $ffb1e0970b62b01f46c2e57f2cded6c2["stream_icon"];
                                goto C52122cd0a02f17a5c718ef1ee1b3f67;
                            }
                            $e3539ad64f4d9fc6c2e465986c622369 = $B6e64514a7c403d6db2d2ba8fa6fc2cb . "{$ffb1e0970b62b01f46c2e57f2cded6c2["type_output"]}/{$a8df9f055e91a1e9240230b69af85555["username"]}/{$a8df9f055e91a1e9240230b69af85555["password"]}/";
                            if ($ffb1e0970b62b01f46c2e57f2cded6c2["live"] == 0) {
                                $e3539ad64f4d9fc6c2e465986c622369 .= $ffb1e0970b62b01f46c2e57f2cded6c2["id"] . "." . dc53Ae228df72D4C140Fda7FD5E7e0Be($ffb1e0970b62b01f46c2e57f2cded6c2["target_container"]);
                                if (empty($f3f2a9f7d64ad754f9f888f441df853a["movie_image"])) {
                                    goto Addd4567e92abacbf75e399baf55e1f3;
                                }
                                $C57b49d586c542242fa9bb22afa04cf8 = $f3f2a9f7d64ad754f9f888f441df853a["movie_image"];
                                Addd4567e92abacbf75e399baf55e1f3:
                                goto c8303b0756d822e343b9686f41e601e4;
                            }
                            $e3539ad64f4d9fc6c2e465986c622369 .= $ffb1e0970b62b01f46c2e57f2cded6c2["id"] . "." . $ef5e5003fbec0abe0a64a7638470e9fd;
                            $C57b49d586c542242fa9bb22afa04cf8 = $ffb1e0970b62b01f46c2e57f2cded6c2["stream_icon"];
                            c8303b0756d822e343b9686f41e601e4:
                            C52122cd0a02f17a5c718ef1ee1b3f67:
                            $channel = array();
                            $channel["name"] = $ffb1e0970b62b01f46c2e57f2cded6c2["stream_display_name"];
                            $C57b49d586c542242fa9bb22afa04cf8 = '';
                            $channel["icon"] = $C57b49d586c542242fa9bb22afa04cf8;
                            $channel["stream_url"] = $e3539ad64f4d9fc6c2e465986c622369;
                            $channel["stream_type"] = 0;
                            $Edee2355c9dc9d29534485158df8e981["iptvstreams_list"]["group"]["channel"][] = $channel;
                        }
                        $d76067cf9572f7a6691c85c12faf2a29 = json_encode((object) $Edee2355c9dc9d29534485158df8e981);
                        goto B69945d8e2cdea9f1ecb0fc45b1f96a3;
                    }
                    if (empty($ef2191c41d898dd4d2c297b9115d985d["device_header"])) {
                        goto e0f27ef2f804ec8b79518118404559db;
                    }
                    $d76067cf9572f7a6691c85c12faf2a29 = str_replace(array("{BOUQUET_NAME}", "{USERNAME}", "{PASSWORD}", "{SERVER_URL}", "{OUTPUT_KEY}"), array(a78Bf8d35765bE2408c50712cE7a43aD::$settings["bouquet_name"], $a8df9f055e91a1e9240230b69af85555["username"], $a8df9f055e91a1e9240230b69af85555["password"], $B6e64514a7c403d6db2d2ba8fa6fc2cb, $output_file_ext), $ef2191c41d898dd4d2c297b9115d985d["device_header"]) . "\n";
                    e0f27ef2f804ec8b79518118404559db:
                    if (empty($ef2191c41d898dd4d2c297b9115d985d["device_conf"])) {
                        goto e2eaed023f67c5152ffa086db60fd218;
                    }
                    if (preg_match("/\\{URL\\#(.*?)\\}/", $ef2191c41d898dd4d2c297b9115d985d["device_conf"], $ae37877cee3bc97c8cfa6ec5843993ed)) {
                        $e5cb656483e7536471dc8d1c0bab1ed0 = str_split($ae37877cee3bc97c8cfa6ec5843993ed[1]);
                        $e67cb10c8a14e132feaa115160c239e9 = $ae37877cee3bc97c8cfa6ec5843993ed[0];
                        goto C12a8d2b7f6732a9db1ed111ecf8548a;
                    }
                    $e5cb656483e7536471dc8d1c0bab1ed0 = array();
                    $e67cb10c8a14e132feaa115160c239e9 = "{URL}";
                    C12a8d2b7f6732a9db1ed111ecf8548a:
                    foreach ($a8df9f055e91a1e9240230b69af85555["channels"] as $channel) {
                        $f3f2a9f7d64ad754f9f888f441df853a = !isset($channel["movie_propeties"]) ? A78Bf8D35765Be2408c50712ce7A43ad::CADEb9125B2E81b183688842c5AC3AD7($channel["id"]) : $channel["movie_propeties"];
                        if (!empty($channel["stream_source"])) {
                            $e3539ad64f4d9fc6c2e465986c622369 = str_replace(" ", "%20", json_decode($channel["stream_source"], true)[0]);
                            $C57b49d586c542242fa9bb22afa04cf8 = !empty($f3f2a9f7d64ad754f9f888f441df853a["movie_image"]) ? $f3f2a9f7d64ad754f9f888f441df853a["movie_image"] : $channel["stream_icon"];
                            goto dcc5925e20dbb9fe7a8978922e22fbb0;
                        }
                        if ($channel["live"] == 0) {
                            $e3539ad64f4d9fc6c2e465986c622369 = $B6e64514a7c403d6db2d2ba8fa6fc2cb . "{$channel["type_output"]}/{$a8df9f055e91a1e9240230b69af85555["username"]}/{$a8df9f055e91a1e9240230b69af85555["password"]}/{$channel["id"]}." . Dc53aE228dF72D4C140FDa7Fd5E7e0bE($channel["target_container"]);
                            if (empty($f3f2a9f7d64ad754f9f888f441df853a["movie_image"])) {
                                goto Dad2d00d1970077c3f0eae4d246626f5;
                            }
                            $C57b49d586c542242fa9bb22afa04cf8 = $f3f2a9f7d64ad754f9f888f441df853a["movie_image"];
                            Dad2d00d1970077c3f0eae4d246626f5:
                            goto a2fc779e36bed5687953a97912601ac0;
                        }
                        if ($output_file_ext != "rtmp" || !array_key_exists($channel["id"], $f53d081795585cc3a4de84113ceb7f31)) {
                            if (!file_exists("TMP_DIRnew_rewrite") || $ef5e5003fbec0abe0a64a7638470e9fd != "ts") {
                                $e3539ad64f4d9fc6c2e465986c622369 = $B6e64514a7c403d6db2d2ba8fa6fc2cb . "{$channel["type_output"]}/{$a8df9f055e91a1e9240230b69af85555["username"]}/{$a8df9f055e91a1e9240230b69af85555["password"]}/{$channel["id"]}.{$ef5e5003fbec0abe0a64a7638470e9fd}";
                                goto eb01a63ff8469a5088c7edfc7391de87;
                            }
                            $e3539ad64f4d9fc6c2e465986c622369 = $B6e64514a7c403d6db2d2ba8fa6fc2cb . "{$a8df9f055e91a1e9240230b69af85555["username"]}/{$a8df9f055e91a1e9240230b69af85555["password"]}/{$channel["id"]}";
                            eb01a63ff8469a5088c7edfc7391de87:
                            goto be057225076d5505b5d579abb5d2c939;
                        }
                        $e3215fa97db12812ee074d6c110dea4b = array_values(array_keys($f53d081795585cc3a4de84113ceb7f31[$channel["id"]]));
                        if (in_array($a8df9f055e91a1e9240230b69af85555["force_server_id"], $e3215fa97db12812ee074d6c110dea4b)) {
                            $e951d0b9610ba3624d06def5a541cb17 = $a8df9f055e91a1e9240230b69af85555["force_server_id"];
                            goto D5534d0f8c77b03d715fa5e23bbc60e3;
                        }
                        if (A78bf8D35765be2408c50712ce7a43ad::$settings["rtmp_random"] == 1) {
                            $e951d0b9610ba3624d06def5a541cb17 = $e3215fa97db12812ee074d6c110dea4b[array_rand($e3215fa97db12812ee074d6c110dea4b, 1)];
                            goto F8c695f5ee4f82952258ff819b620064;
                        }
                        $e951d0b9610ba3624d06def5a541cb17 = $e3215fa97db12812ee074d6c110dea4b[0];
                        F8c695f5ee4f82952258ff819b620064:
                        D5534d0f8c77b03d715fa5e23bbc60e3:
                        $e3539ad64f4d9fc6c2e465986c622369 = a78bF8d35765be2408C50712ce7A43Ad::$StreamingServers[$e951d0b9610ba3624d06def5a541cb17]["rtmp_server"] . "{$channel["id"]}?username={$a8df9f055e91a1e9240230b69af85555["username"]}&password={$a8df9f055e91a1e9240230b69af85555["password"]}";
                        be057225076d5505b5d579abb5d2c939:
                        $C57b49d586c542242fa9bb22afa04cf8 = $channel["stream_icon"];
                        a2fc779e36bed5687953a97912601ac0:
                        dcc5925e20dbb9fe7a8978922e22fbb0:
                        $aaf6a34b884488dd481a40d77442e482 = $channel["live"] == 1 ? 1 : 4097;
                        $a98ed0c1a9452fc6117e23a262acc7a9 = !empty($channel["custom_sid"]) ? $channel["custom_sid"] : ":0:1:0:0:0:0:0:0:0:";
                        $d76067cf9572f7a6691c85c12faf2a29 .= str_replace(array($e67cb10c8a14e132feaa115160c239e9, "{ESR_ID}", "{SID}", "{CHANNEL_NAME}", "{CHANNEL_ID}", "{CATEGORY}", "{CHANNEL_ICON}"), array(str_replace($e5cb656483e7536471dc8d1c0bab1ed0, array_map("urlencode", $e5cb656483e7536471dc8d1c0bab1ed0), $e3539ad64f4d9fc6c2e465986c622369), $aaf6a34b884488dd481a40d77442e482, $a98ed0c1a9452fc6117e23a262acc7a9, $channel["stream_display_name"], $channel["channel_id"], $channel["category_name"], $C57b49d586c542242fa9bb22afa04cf8), $ef2191c41d898dd4d2c297b9115d985d["device_conf"]) . "\r\n";
                    }
                    $d76067cf9572f7a6691c85c12faf2a29 .= $ef2191c41d898dd4d2c297b9115d985d["device_footer"];
                    $d76067cf9572f7a6691c85c12faf2a29 = trim($d76067cf9572f7a6691c85c12faf2a29);
                    e2eaed023f67c5152ffa086db60fd218:
                    B69945d8e2cdea9f1ecb0fc45b1f96a3:
                    if (!($dc26923f689872c2291d72d47eb689c9 === true)) {
                        return $d76067cf9572f7a6691c85c12faf2a29;
                    }
                    header("Content-Description: File Transfer");
                    header("Content-Type: application/octet-stream");
                    header("Expires: 0");
                    header("Cache-Control: must-revalidate");
                    header("Pragma: public");
                    header("Content-Disposition: attachment; filename=\"" . str_replace("{USERNAME}", $a8df9f055e91a1e9240230b69af85555["username"], $ef2191c41d898dd4d2c297b9115d985d["device_filename"]) . "\"");
                    header("Content-Length: " . strlen($d76067cf9572f7a6691c85c12faf2a29));
                    echo $d76067cf9572f7a6691c85c12faf2a29;
                    die;
                }
                return false;
            }
            return false;
        }
        return false;
    }
    return false;
}

Function Calls

None

Variables

None

Stats

MD5 50f96778a50de006b66492edc24d1fcc
Eval Count 0
Decode Time 40 ms