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 use MaxMind\Db\Reader; if (class_exists("\104\141\x74\x61\x62\141\x73\145")) { ..
Decoded Output download
<?php
use MaxMind\Db\Reader;
if (class_exists("Database")) {
goto ab38a4bcd29ffc47;
}
class Database
{
public $result;
public $dbh;
public $connected = false;
function __construct($A50bdc318bc06ab5 = true)
{
$this->dbh = false;
if (!$A50bdc318bc06ab5) {
goto aee5621e3f278f5b;
}
$this->db_connect();
aee5621e3f278f5b:
}
function close_mysql()
{
if (!$this->connected) {
goto Ffe914334aaa0610;
}
$this->connected = false;
$this->dbh = null;
Ffe914334aaa0610:
return true;
}
function __destruct()
{
$this->close_mysql();
}
public function ping()
{
try {
$this->dbh->query("SELECT 1");
} catch (Exception $c34ae71903f0d920) {
return false;
}
return true;
}
function db_connect()
{
try {
$this->dbh = Xui\Functions::connect("TKbxeQrBXw2swDNwTh5yrj4jMV4RaLO0");
if ($this->dbh) {
goto ca9982b622e100cd;
}
exit(json_encode(array("error" => "MySQL: Cannot connect to database! Please check credentials.")));
ca9982b622e100cd:
} catch (PDOException $c34ae71903f0d920) {
exit(json_encode(array("error" => "MySQL: " . $c34ae71903f0d920->getMessage())));
}
$this->dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$this->connected = true;
return true;
}
function query($A2833f35d8d7e939, $d45254c57e70b972 = false)
{
goto C8983352fe7424b5;
e7679b4016a20b17:
try {
$this->result = $this->dbh->prepare($A2833f35d8d7e939);
$this->result->execute($A8c046797d86d788);
} catch (Exception $c34ae71903f0d920) {
return false;
}
return true;
b43a70e965314fa6:
return false;
goto fac6444b45728ea4;
Dfda6dae06f800a0:
ae463ee425560495:
$A8c046797d86d788[] = null;
a02ff38593ccd90e:
e8354ca987a5eb82:
$Ea22c4a9ab5b2176++;
goto F3a970357156f383;
F3a970357156f383:
goto E4b2c336b9123513;
ea372d0618dfdf8f:
if (!($d45254c57e70b972 === true)) {
goto bb78dc2a481be176;
}
$this->dbh->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, false);
bb78dc2a481be176:
goto e7679b4016a20b17;
C8983352fe7424b5:
if (!$this->dbh) {
goto b43a70e965314fa6;
}
$d5d75f0e3efc5b42 = func_num_args();
$C782698ae2e41f7f = func_get_args();
$A8c046797d86d788 = array();
$Ea22c4a9ab5b2176 = 1;
goto ef6915963cbe84b0;
ef6915963cbe84b0:
E4b2c336b9123513:
if (!($Ea22c4a9ab5b2176 < $d5d75f0e3efc5b42)) {
goto ea372d0618dfdf8f;
}
if (is_null($C782698ae2e41f7f[$Ea22c4a9ab5b2176]) or strtolower($C782698ae2e41f7f[$Ea22c4a9ab5b2176]) == "null") {
goto ae463ee425560495;
}
$A8c046797d86d788[] = $C782698ae2e41f7f[$Ea22c4a9ab5b2176];
goto a02ff38593ccd90e;
goto Dfda6dae06f800a0;
fac6444b45728ea4:
}
public function simple_query($A2833f35d8d7e939)
{
try {
$this->result = $this->dbh->query($A2833f35d8d7e939);
} catch (Exception $c34ae71903f0d920) {
return false;
}
return true;
}
function get_rows($d510b6620611d0d6 = false, $f15fddf2afad2554 = '', $cf14f1997596f1c7 = true, $b7547fc9e664473d = '')
{
if (!($this->dbh && $this->result)) {
goto e3204d73f70e2e07;
}
$daa1e4fbd7ec92ba = array();
if (!($this->result->rowCount() > 0)) {
goto fe2f9cd9839fa476;
}
foreach ($this->result->fetchAll(PDO::FETCH_ASSOC) as $c84a4809984cf9fa) {
goto be4c24657578d166;
D7335376e0187689:
b69868f660e79e71:
if (!empty($b7547fc9e664473d) && array_key_exists($b7547fc9e664473d, $c84a4809984cf9fa)) {
goto A837fb5754e6be83;
}
$daa1e4fbd7ec92ba[$c84a4809984cf9fa[$f15fddf2afad2554]][] = $c84a4809984cf9fa;
goto Cf9f7e220e18798e;
A837fb5754e6be83:
goto a2da26aa68ff891b;
be4c24657578d166:
if ($d510b6620611d0d6 && array_key_exists($f15fddf2afad2554, $c84a4809984cf9fa)) {
goto F800ac12b7dcdf15;
}
$daa1e4fbd7ec92ba[] = $c84a4809984cf9fa;
goto e21e174033b38bfa;
F800ac12b7dcdf15:
if (isset($daa1e4fbd7ec92ba[$c84a4809984cf9fa[$f15fddf2afad2554]])) {
goto d2af6bdcb3a1783f;
}
goto E25c2a4fd297aeaf;
a2da26aa68ff891b:
$daa1e4fbd7ec92ba[$c84a4809984cf9fa[$f15fddf2afad2554]][$c84a4809984cf9fa[$b7547fc9e664473d]] = $c84a4809984cf9fa;
Cf9f7e220e18798e:
d708ff46d9b19cbb:
e21e174033b38bfa:
B318e9b694cff014:
goto f35c62b09fcac086;
E25c2a4fd297aeaf:
$daa1e4fbd7ec92ba[$c84a4809984cf9fa[$f15fddf2afad2554]] = array();
d2af6bdcb3a1783f:
if (!$cf14f1997596f1c7) {
goto b69868f660e79e71;
}
$daa1e4fbd7ec92ba[$c84a4809984cf9fa[$f15fddf2afad2554]] = $c84a4809984cf9fa;
goto d708ff46d9b19cbb;
goto D7335376e0187689;
f35c62b09fcac086:
}
Ceb05e48e449d448:
fe2f9cd9839fa476:
$this->result = null;
return $daa1e4fbd7ec92ba;
e3204d73f70e2e07:
return false;
}
public function get_row()
{
if (!($this->dbh && $this->result)) {
goto A7314a4e373ef2ed;
}
$c84a4809984cf9fa = array();
if (!($this->result->rowCount() > 0)) {
goto a77378a6f36f90c5;
}
$c84a4809984cf9fa = $this->result->fetch(PDO::FETCH_ASSOC);
a77378a6f36f90c5:
$this->result = null;
return $c84a4809984cf9fa;
A7314a4e373ef2ed:
return false;
}
public function get_col()
{
if (!($this->dbh && $this->result)) {
goto adcc59b615482482;
}
$c84a4809984cf9fa = false;
if (!($this->result->rowCount() > 0)) {
goto a85acd59c1a3cec3;
}
$c84a4809984cf9fa = $this->result->fetch();
$c84a4809984cf9fa = $c84a4809984cf9fa[0];
a85acd59c1a3cec3:
$this->result = null;
return $c84a4809984cf9fa;
adcc59b615482482:
return false;
}
public function escape($C9425e927984f356)
{
if (!$this->dbh) {
goto D121bdd92eaf0ca2;
}
return $this->dbh->quote($C9425e927984f356);
D121bdd92eaf0ca2:
return null;
}
public function num_fields()
{
if (!($this->dbh && $this->result)) {
goto b02b67ac207c03be;
}
$d1f68d011f8458ee = $this->result->columnCount();
return empty($d1f68d011f8458ee) ? 0 : $d1f68d011f8458ee;
b02b67ac207c03be:
return 0;
}
public function last_insert_id()
{
if (!$this->dbh) {
goto a08892f715633ffd;
}
$fca1773cd263c51b = $this->dbh->lastInsertId();
return empty($fca1773cd263c51b) ? 0 : $fca1773cd263c51b;
a08892f715633ffd:
return null;
}
public function num_rows()
{
if (!($this->dbh && $this->result)) {
goto a4eb877a54680689;
}
$A88a8b854513b7e0 = $this->result->rowCount();
return empty($A88a8b854513b7e0) ? 0 : $A88a8b854513b7e0;
a4eb877a54680689:
return 0;
}
}
ab38a4bcd29ffc47:
class XUI
{
public static $db;
public static $redis;
public static $rRequest = array();
public static $rConfig = array();
public static $rSettings = array();
public static $rBouquets = array();
public static $rServers = array();
public static $rSegmentSettings = array();
public static $rBlockedUA = array();
public static $rBlockedISP = array();
public static $rBlockedIPs = array();
public static $rBlockedServers = array();
public static $rAllowedIPs = array();
public static $rCategories = array();
public static $rProxies = array();
public static $rFFMPEG_CPU;
public static $rFFMPEG_GPU;
public static $rCached;
public static $rAccess;
public static function init($E9ff1197d3f1304b = false)
{
goto afe6ce536b9627e9;
F522f210fc3f7c8b:
if (defined("SERVER_ID")) {
goto Dbeb4da033a85854;
}
define("SERVER_ID", intval(self::$rConfig["server_id"]));
Dbeb4da033a85854:
if (self::$rSettings) {
goto Dc315041088f12d2;
}
self::$rSettings = self::ABB674425a8b1B0d("settings");
goto F93ed4d400c03834;
e73ddbd810c6b99e:
self::AD0a56Be17E95E81($E9ff1197d3f1304b);
goto Cfd104a35c9fdf8b;
C252b9fd47a09694:
self::$rFFMPEG_GPU = FFMPEG_BIN_40;
self::$rCached = self::A996a3Eb6998fca4();
self::$rServers = self::aBb674425A8b1B0d("servers");
self::$rBlockedUA = self::abb674425A8B1B0d("blocked_ua");
self::$rBlockedISP = self::Abb674425a8B1b0D("blocked_isp");
goto Fc87b9504c0d26a9;
afe6ce536b9627e9:
if (empty($_GET)) {
goto Ce08905e821543bb;
}
self::eE2659ae23E1E78c($_GET);
Ce08905e821543bb:
if (empty($_POST)) {
goto F372803c36573e26;
}
self::ee2659aE23E1E78C($_POST);
goto b4132e33f2c25078;
F2d58d1094b48a99:
self::eE2659AE23E1e78c($_COOKIE);
Ee9a469679018ee4:
$a68b12348744a7ff = @self::c13491863979fcF0($_GET, array());
self::$rRequest = @self::C13491863979fcF0($_POST, $a68b12348744a7ff);
self::$rConfig = parse_ini_file(CONFIG_PATH . "config.ini");
goto F522f210fc3f7c8b;
b4132e33f2c25078:
F372803c36573e26:
if (empty($_SESSION)) {
goto b5a57dbd181502cd;
}
self::Ee2659AE23E1E78C($_SESSION);
b5a57dbd181502cd:
if (empty($_COOKIE)) {
goto Ee9a469679018ee4;
}
goto F2d58d1094b48a99;
Fc87b9504c0d26a9:
self::$rBlockedIPs = self::ABb674425a8b1b0D("blocked_ips");
self::$rBlockedServers = self::Abb674425A8B1B0d("blocked_servers");
self::$rAllowedIPs = self::AbB674425a8B1B0D("allowed_ips");
self::$rProxies = self::ABb674425A8b1B0D("proxies");
self::$rSegmentSettings = array(
"seg_time" => intval(self::$rSettings["seg_time"]),
"seg_list_size" => intval(self::$rSettings["seg_list_size"])
);
goto e73ddbd810c6b99e;
Ca6587613a20fba6:
self::$rSettings["on_demand_wait_time"] = 15;
ec3585d0f4e8d1f4:
switch (self::$rSettings["ffmpeg_cpu"]) {
case "4.4":
self::$rFFMPEG_CPU = FFMPEG_BIN_44;
goto B52830dffc469c83;
case "4.3":
self::$rFFMPEG_CPU = FFMPEG_BIN_43;
goto B52830dffc469c83;
default:
self::$rFFMPEG_CPU = FFMPEG_BIN_40;
goto B52830dffc469c83;
}
f48064b745d042a1:
B52830dffc469c83:
goto C252b9fd47a09694;
F93ed4d400c03834:
Dc315041088f12d2:
if (empty(self::$rSettings["default_timezone"])) {
goto A8dc41d77b7b5f03;
}
date_default_timezone_set(self::$rSettings["default_timezone"]);
A8dc41d77b7b5f03:
if (!(self::$rSettings["on_demand_wait_time"] == 0)) {
goto ec3585d0f4e8d1f4;
}
goto Ca6587613a20fba6;
Cfd104a35c9fdf8b:
}
public static function A996a3EB6998fCa4()
{
if (!self::$rSettings["enable_cache"]) {
goto bb9ef0252838f5be;
}
return file_exists(CACHE_TMP_PATH . "cache_complete");
bb9ef0252838f5be:
return false;
}
public static function AD0a56bE17e95e81($c67112a71ee18532 = true)
{
self::$db = new Database($c67112a71ee18532);
}
public static function F6cc02011179dFc7()
{
if (!self::$db) {
goto bbe945b048aad92d;
}
self::$db->close_mysql();
self::$db = null;
bbe945b048aad92d:
}
public static function ABb674425a8B1B0d($Eace02ff35917268)
{
$a27e64cc6ce01033 = file_get_contents(CACHE_TMP_PATH . $Eace02ff35917268) ?: null;
return igbinary_unserialize($a27e64cc6ce01033);
}
public static function bA0a47B17B7E0F65($a27e64cc6ce01033, $D3fa098be3f297cd)
{
goto d3b80279ebc102c4;
C9a32f5672c1f0bb:
$Eebc577f200c5584 = hash_hmac("sha256", $e0c0d6359f5bd8d6, substr(bin2hex($D3fa098be3f297cd), -32));
if (!($Eebc577f200c5584 !== $C3cdd40816db3399)) {
goto D75616954cf6ea44;
}
return false;
D75616954cf6ea44:
$e0c0d6359f5bd8d6 = unserialize($e0c0d6359f5bd8d6);
goto B930064a76bcfc34;
B930064a76bcfc34:
return $e0c0d6359f5bd8d6;
goto Daa48c30c8416baf;
d3b80279ebc102c4:
$a27e64cc6ce01033 = explode("|", $a27e64cc6ce01033 . "|");
$d156d70a98f8b08c = base64_decode($a27e64cc6ce01033[0]);
$e7ae92f8387d5936 = base64_decode($a27e64cc6ce01033[1]);
if (!(strlen($e7ae92f8387d5936) !== mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC))) {
goto Cfd5418971d28257;
}
return false;
goto f9c4d65889fe3372;
f9c4d65889fe3372:
Cfd5418971d28257:
$D3fa098be3f297cd = pack("H*", $D3fa098be3f297cd);
$e0c0d6359f5bd8d6 = trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $D3fa098be3f297cd, $d156d70a98f8b08c, MCRYPT_MODE_CBC, $e7ae92f8387d5936));
$C3cdd40816db3399 = substr($e0c0d6359f5bd8d6, -64);
$e0c0d6359f5bd8d6 = substr($e0c0d6359f5bd8d6, 0, -64);
goto C9a32f5672c1f0bb;
Daa48c30c8416baf:
}
public static function Ee2659AE23E1e78c(&$a27e64cc6ce01033, $Bb3e51c7e44e9edc = 0)
{
if (!($Bb3e51c7e44e9edc >= 10)) {
goto F578aba0ff1bf83c;
}
return;
F578aba0ff1bf83c:
foreach ($a27e64cc6ce01033 as $D3fa098be3f297cd => $b6842cb20051e925) {
goto C7b57da288ccf209;
Aee5c326d2530775:
$b6842cb20051e925 = str_replace("‮", '', $b6842cb20051e925);
$a27e64cc6ce01033[$D3fa098be3f297cd] = $b6842cb20051e925;
goto E0f3476f52353d94;
badf7711b51a0ba7:
self::Ee2659ae23e1e78c($a27e64cc6ce01033[$D3fa098be3f297cd], ++$Bb3e51c7e44e9edc);
goto cd928c1ec4f2db87;
C7b57da288ccf209:
if (is_array($b6842cb20051e925)) {
goto badf7711b51a0ba7;
}
$b6842cb20051e925 = str_replace(chr("0"), '', $b6842cb20051e925);
$b6842cb20051e925 = str_replace("\x0", '', $b6842cb20051e925);
$b6842cb20051e925 = str_replace("\x0", '', $b6842cb20051e925);
$b6842cb20051e925 = str_replace("../", "../", $b6842cb20051e925);
goto Aee5c326d2530775;
cd928c1ec4f2db87:
E0f3476f52353d94:
a952293638a2ad74:
goto fe97728590304a4b;
fe97728590304a4b:
}
D37550a639203e8f:
}
public static function c13491863979fcF0(&$a27e64cc6ce01033, $a68b12348744a7ff = array(), $Bb3e51c7e44e9edc = 0)
{
if (!($Bb3e51c7e44e9edc >= 20)) {
goto f8abb0e9c58ba967;
}
return $a68b12348744a7ff;
f8abb0e9c58ba967:
if (is_array($a27e64cc6ce01033)) {
goto c9e1ffc56753e8eb;
}
return $a68b12348744a7ff;
c9e1ffc56753e8eb:
foreach ($a27e64cc6ce01033 as $D3fa098be3f297cd => $b6842cb20051e925) {
if (is_array($b6842cb20051e925)) {
goto C825a35d20a4d064;
}
$D3fa098be3f297cd = self::Ee07012de438c358($D3fa098be3f297cd);
$b6842cb20051e925 = self::A48C65Aa888cD29A($b6842cb20051e925);
$a68b12348744a7ff[$D3fa098be3f297cd] = $b6842cb20051e925;
goto c687e10db9fd1fef;
C825a35d20a4d064:
$a68b12348744a7ff[$D3fa098be3f297cd] = self::c13491863979fCf0($a27e64cc6ce01033[$D3fa098be3f297cd], array(), $Bb3e51c7e44e9edc + 1);
c687e10db9fd1fef:
f8b252b501897fd0:
}
B7c627a8c3c0ea2b:
return $a68b12348744a7ff;
}
public static function EE07012DE438c358($D3fa098be3f297cd)
{
if (!($D3fa098be3f297cd === '')) {
goto C707d53fb43de17f;
}
return '';
C707d53fb43de17f:
$D3fa098be3f297cd = htmlspecialchars(urldecode($D3fa098be3f297cd));
$D3fa098be3f297cd = str_replace("..", '', $D3fa098be3f297cd);
$D3fa098be3f297cd = preg_replace("/\_\_(.+?)\_\_/", '', $D3fa098be3f297cd);
$D3fa098be3f297cd = preg_replace("/^([\w\.\-\_]+)$/", "$1", $D3fa098be3f297cd);
return $D3fa098be3f297cd;
}
public static function a48C65aa888cd29A($b6842cb20051e925)
{
if (!($b6842cb20051e925 == '')) {
goto c8c4fe2dfdd0fb08;
}
return '';
c8c4fe2dfdd0fb08:
$b6842cb20051e925 = str_replace(array("
\xa", "
\xd", "\xd"), "\xa", $b6842cb20051e925);
$b6842cb20051e925 = str_replace("<!--", "<!--", $b6842cb20051e925);
$b6842cb20051e925 = str_replace("-->", "-->", $b6842cb20051e925);
$b6842cb20051e925 = str_ireplace("<script", "<script", $b6842cb20051e925);
$b6842cb20051e925 = preg_replace("/&#([0-9]+);/s", "&#\1;", $b6842cb20051e925);
$b6842cb20051e925 = preg_replace("/&#(\d+?)([^\d;])/i", "&#\1;\2", $b6842cb20051e925);
return trim($b6842cb20051e925);
}
public static function fc8474658ec80360($c59ec257c284c894 = null)
{
goto f6e3db6b973c4c5b;
B9018e179cb93a7a:
file_put_contents($b784c383b47a49fd, json_encode(array("requests" => 0, "last_request" => time())), LOCK_EX);
goto Ce6f42d29d09e944;
ec307f8b8065c216:
$A707ccd39fee7276 = json_decode(file_get_contents($b784c383b47a49fd), true);
$be54debae5869cd3 = self::$rSettings["flood_seconds"];
goto db8a91aa2b64ed6b;
db8a91aa2b64ed6b:
$A96a38e6b91953f2 = self::$rSettings["flood_limit"];
if (time() - $A707ccd39fee7276["last_request"] <= $be54debae5869cd3) {
goto Cbec3c85872b3ad3;
}
$A707ccd39fee7276["requests"] = 0;
$A707ccd39fee7276["last_request"] = time();
file_put_contents($b784c383b47a49fd, json_encode($A707ccd39fee7276), LOCK_EX);
goto B7c2f0217958554e;
db9bbcedc3d92df0:
F92d6a2f284f8a6b:
$A707ccd39fee7276["last_request"] = time();
file_put_contents($b784c383b47a49fd, json_encode($A707ccd39fee7276), LOCK_EX);
C36ac493e611162b:
Ce6f42d29d09e944:
goto Ba12daab161ed7b4;
Bc456f835a9cb0dc:
e4cf12ef623e86f8:
if (!(empty($c59ec257c284c894) || in_array($c59ec257c284c894, self::$rAllowedIPs))) {
goto Fa802c978aacbebf;
}
return;
Fa802c978aacbebf:
$D4a9631cb1db6a7b = array_filter(array_unique(explode(",", self::$rSettings["flood_ips_exclude"])));
goto F324a73685e9fcfa;
C50520f12715e2f6:
if (self::$rCached) {
goto eb8f93214a8cf7e8;
}
self::$db->query("INSERT INTO `blocked_ips` (`ip`,`notes`,`date`) VALUES(?,?,?)", $c59ec257c284c894, "FLOOD ATTACK", time());
goto c27200b470f3e5b1;
eb8f93214a8cf7e8:
self::cF592C234Dcd0b19("flood_attack/" . $c59ec257c284c894, 1);
goto E4cc2492fa26c050;
F324a73685e9fcfa:
if (!in_array($c59ec257c284c894, $D4a9631cb1db6a7b)) {
goto f1f57a3cdcc52463;
}
return;
f1f57a3cdcc52463:
$b784c383b47a49fd = FLOOD_TMP_PATH . $c59ec257c284c894;
if (file_exists($b784c383b47a49fd)) {
goto ec307f8b8065c216;
}
goto B9018e179cb93a7a;
B7c2f0217958554e:
goto C36ac493e611162b;
Cbec3c85872b3ad3:
$A707ccd39fee7276["requests"]++;
if (!($A707ccd39fee7276["requests"] >= $A96a38e6b91953f2)) {
goto F92d6a2f284f8a6b;
}
if (in_array($c59ec257c284c894, self::$rBlockedIPs)) {
goto f1f771a3d9d47167;
}
goto C50520f12715e2f6;
f6e3db6b973c4c5b:
if (!(self::$rSettings["flood_limit"] == 0)) {
goto c8612de9a7433bc6;
}
return;
c8612de9a7433bc6:
if ($c59ec257c284c894) {
goto e4cf12ef623e86f8;
}
$c59ec257c284c894 = self::A9Bc416fa6Fa55c3();
goto Bc456f835a9cb0dc;
E4cc2492fa26c050:
c27200b470f3e5b1:
touch(FLOOD_TMP_PATH . "block_" . $c59ec257c284c894);
f1f771a3d9d47167:
unlink($b784c383b47a49fd);
return;
goto db9bbcedc3d92df0;
Ba12daab161ed7b4:
}
public static function B6f740fAbC7265bF($c59ec257c284c894 = null, $C3cdd40816db3399 = null, $a71afc14d6cd090d = null)
{
goto C488d5790c460aa2;
e2e352f8180ae6f4:
$A707ccd39fee7276["attempts"] = self::c7d4656747098c59($A707ccd39fee7276["attempts"], $be54debae5869cd3);
if (in_array($Be47c94a460069d8, array_keys($A707ccd39fee7276["attempts"]))) {
goto baabc18f894b770d;
}
$A707ccd39fee7276["attempts"][$Be47c94a460069d8] = time();
if (!(count($A707ccd39fee7276["attempts"]) >= $A96a38e6b91953f2)) {
goto Bae406eb01130f88;
}
if (in_array($c59ec257c284c894, self::$rBlockedIPs)) {
goto A4c128952880114f;
}
goto Ef71da139c9a50b6;
B2b5ddd7a0df8bbe:
bce54e6f263d0180:
if (!($a71afc14d6cd090d && self::$rSettings["bruteforce_username_attempts"] == 0)) {
goto aa59bc937bebfbc9;
}
return;
aa59bc937bebfbc9:
if ($c59ec257c284c894) {
goto d3d38e948d4e7e6c;
}
goto Fd1be7ed66cf669f;
e86e8961a3edc273:
$Be47c94a460069d8 = !is_null($C3cdd40816db3399) ? $C3cdd40816db3399 : $a71afc14d6cd090d;
$b784c383b47a49fd = FLOOD_TMP_PATH . $c59ec257c284c894 . "_" . $b9dd61c40657d13d;
if (file_exists($b784c383b47a49fd)) {
goto e62a5d8537150993;
}
$A707ccd39fee7276 = array("attempts" => array($Be47c94a460069d8 => time()));
file_put_contents($b784c383b47a49fd, json_encode($A707ccd39fee7276), LOCK_EX);
goto E939d1bd9b080762;
Fd1be7ed66cf669f:
$c59ec257c284c894 = self::A9bC416FA6fA55C3();
d3d38e948d4e7e6c:
if (!(empty($c59ec257c284c894) || in_array($c59ec257c284c894, self::$rAllowedIPs))) {
goto e13f06ac22a391c6;
}
return;
e13f06ac22a391c6:
goto cbb79aaa467c5539;
E939d1bd9b080762:
goto D856c417e3ced601;
e62a5d8537150993:
$A707ccd39fee7276 = json_decode(file_get_contents($b784c383b47a49fd), true);
$be54debae5869cd3 = intval(self::$rSettings["bruteforce_frequency"]);
$A96a38e6b91953f2 = intval(self::$rSettings[array("mac" => "bruteforce_mac_attempts", "user" => "bruteforce_username_attempts")[$b9dd61c40657d13d]]);
goto e2e352f8180ae6f4;
dfdc6d0c0634f837:
Bae406eb01130f88:
file_put_contents($b784c383b47a49fd, json_encode($A707ccd39fee7276), LOCK_EX);
baabc18f894b770d:
D856c417e3ced601:
goto A3ec1ccfae83e0e6;
Ef71da139c9a50b6:
if (self::$rCached) {
goto Bd09a4adc32f0c14;
}
self::$db->query("INSERT INTO `blocked_ips` (`ip`,`notes`,`date`) VALUES(?,?,?)", $c59ec257c284c894, "BRUTEFORCE " . strtoupper($b9dd61c40657d13d) . " ATTACK", time());
goto Fac4abc655090412;
Bd09a4adc32f0c14:
self::CF592c234dCD0B19("bruteforce_attack/" . $c59ec257c284c894, 1);
goto a33a42c1eab6bdf7;
cbb79aaa467c5539:
$D4a9631cb1db6a7b = array_filter(array_unique(explode(",", self::$rSettings["flood_ips_exclude"])));
if (!in_array($c59ec257c284c894, $D4a9631cb1db6a7b)) {
goto e7cf5da701ee45fb;
}
return;
e7cf5da701ee45fb:
$b9dd61c40657d13d = !is_null($C3cdd40816db3399) ? "mac" : "user";
goto e86e8961a3edc273;
a33a42c1eab6bdf7:
Fac4abc655090412:
touch(FLOOD_TMP_PATH . "block_" . $c59ec257c284c894);
A4c128952880114f:
unlink($b784c383b47a49fd);
return;
goto dfdc6d0c0634f837;
C488d5790c460aa2:
if (!(!$C3cdd40816db3399 && !$a71afc14d6cd090d)) {
goto d8d75e3732b90676;
}
return;
d8d75e3732b90676:
if (!($C3cdd40816db3399 && self::$rSettings["bruteforce_mac_attempts"] == 0)) {
goto bce54e6f263d0180;
}
return;
goto B2b5ddd7a0df8bbe;
A3ec1ccfae83e0e6:
}
public static function d3e665B5427479Fe($d51e425eb7375255, $c59ec257c284c894 = null)
{
goto Dd0c4ccc3282a8dc;
cc890d1464a30822:
return;
bfef26b0d2951101:
$D4a9631cb1db6a7b = array_filter(array_unique(explode(",", self::$rSettings["flood_ips_exclude"])));
if (!in_array($c59ec257c284c894, $D4a9631cb1db6a7b)) {
goto Aed9491a96dcf59d;
}
return;
goto A645d469628a884e;
Dd0c4ccc3282a8dc:
if (!(self::$rSettings["auth_flood_limit"] == 0)) {
goto Af259c752f30cccf;
}
return;
Af259c752f30cccf:
if (!$d51e425eb7375255["is_restreamer"]) {
goto F74433362ddc3538;
}
return;
goto d81c1dff59bc719f;
E5bdcd7001e34e79:
Dc8616b3533cc7fe:
$A707ccd39fee7276 = json_decode(file_get_contents($C3aa51e8b5c8bdc2), true);
if (!(isset($A707ccd39fee7276["block_until"]) && time() < $A707ccd39fee7276["block_until"])) {
goto B386926a0391e28c;
}
sleep(intval(self::$rSettings["auth_flood_sleep"]));
B386926a0391e28c:
goto A5049fbdba4dd9d0;
A645d469628a884e:
Aed9491a96dcf59d:
$C3aa51e8b5c8bdc2 = FLOOD_TMP_PATH . intval($d51e425eb7375255["id"]) . "_" . $c59ec257c284c894;
if (file_exists($C3aa51e8b5c8bdc2)) {
goto Dc8616b3533cc7fe;
}
file_put_contents($C3aa51e8b5c8bdc2, json_encode(array("attempts" => array(time()))), LOCK_EX);
goto af4264854a7641d7;
goto E5bdcd7001e34e79;
A5049fbdba4dd9d0:
$be54debae5869cd3 = self::$rSettings["auth_flood_seconds"];
$A96a38e6b91953f2 = self::$rSettings["auth_flood_limit"];
$A707ccd39fee7276["attempts"] = self::C7D4656747098c59($A707ccd39fee7276["attempts"], $be54debae5869cd3, true);
if (!(count($A707ccd39fee7276["attempts"]) >= $A96a38e6b91953f2)) {
goto C1b72892d5a3bf34;
}
$A707ccd39fee7276["block_until"] = time() + intval(self::$rSettings["auth_flood_seconds"]);
goto D8b2ea991f7a1800;
d81c1dff59bc719f:
F74433362ddc3538:
if ($c59ec257c284c894) {
goto e7d22b531f7f5a77;
}
$c59ec257c284c894 = self::a9bc416FA6fa55c3();
e7d22b531f7f5a77:
if (!(empty($c59ec257c284c894) || in_array($c59ec257c284c894, self::$rAllowedIPs))) {
goto bfef26b0d2951101;
}
goto cc890d1464a30822;
D8b2ea991f7a1800:
C1b72892d5a3bf34:
$A707ccd39fee7276["attempts"][] = time();
file_put_contents($C3aa51e8b5c8bdc2, json_encode($A707ccd39fee7276), LOCK_EX);
af4264854a7641d7:
goto e857a04f64f7c5ef;
e857a04f64f7c5ef:
}
public static function isProxied($d58b4f8653a391d8)
{
return self::$rServers[$d58b4f8653a391d8]["enable_proxy"];
}
public static function BB41388445081a3D($c59ec257c284c894)
{
if (!isset(self::$rProxies[$c59ec257c284c894])) {
goto D0bb9db50bd0ff76;
}
return self::$rProxies[$c59ec257c284c894];
D0bb9db50bd0ff76:
return null;
}
public static function c7d4656747098c59($ed4c668b21748203, $Dea739940867923b, $A2334a366640c078 = false)
{
goto Fae8bd64cf926da2;
Fae8bd64cf926da2:
$A11bd3dafa3511e9 = array();
$C4af185e24cf9086 = time();
if ($A2334a366640c078) {
goto f141b1a6aabf2f85;
}
foreach ($ed4c668b21748203 as $fa682959477a699f => $C402db0b1e917573) {
if (!($C4af185e24cf9086 - $C402db0b1e917573 <= $Dea739940867923b)) {
goto c1f785ff2d8c064a;
}
$A11bd3dafa3511e9[$fa682959477a699f] = $C402db0b1e917573;
c1f785ff2d8c064a:
C296abd7df90d395:
}
ed53cbf686104844:
goto e08a528f1e43b03b;
Ba75d4af56d11614:
return $A11bd3dafa3511e9;
goto ea64c152f17f8113;
e08a528f1e43b03b:
goto edda92e5a43c7abf;
f141b1a6aabf2f85:
foreach ($ed4c668b21748203 as $C402db0b1e917573) {
if (!($C4af185e24cf9086 - $C402db0b1e917573 <= $Dea739940867923b)) {
goto A53fcb80a87504aa;
}
$A11bd3dafa3511e9[] = $C402db0b1e917573;
A53fcb80a87504aa:
ef29a0a9f0312414:
}
C62e66db4ecaa37f:
edda92e5a43c7abf:
goto Ba75d4af56d11614;
ea64c152f17f8113:
}
public static function Cdd1bc14d819BE74($Fa288895c003c519 = false)
{
return json_decode(
file_get_contents(
CACHE_TMP_PATH . ($Fa288895c003c519 ? "proxy_capacity" : "servers_capacity")
),
true
);
}
public static function B3Ed925e7969F61a($F26087d31c2bbe4d, $F9452a7efafa1aba, $D4253f9520627819, $efc0f8f3059e4104, $f72bad5bd13565f1 = '', $E379394c7b1a273f = '')
{
goto C62d867495876ba8;
a8f7ce3bbc25e1a8:
be7e45769ffebcd6:
goto fff2fcdfbb2dcbb6;
B78cc5bf1b4cc9a1:
if (!empty($c43b488500f8fab7)) {
goto c835a31e11735e48;
}
return false;
c835a31e11735e48:
shuffle($c43b488500f8fab7);
$a9d38d288d6824ad = self::cdd1Bc14d819bE74();
goto C2c1fba241c0dd49;
A9a16907107cc3bb:
goto C93bafc486b6d234;
a7ae0114aa09a624:
return $B5f1fb70f197b910;
C93bafc486b6d234:
d02337a0cc0667b1:
goto e3efe818e8c4d2ad;
Ec8de5683224349d:
B541ba57db8132ab:
if ($E379394c7b1a273f == "archive") {
goto a7ae0114aa09a624;
}
$f523e362fb81d6c8["info"]["redirect_id"] = $B5f1fb70f197b910;
$fc4c58c5d1cd68d1 = $B5f1fb70f197b910;
return array_merge($f523e362fb81d6c8["info"], $f523e362fb81d6c8["servers"][$fc4c58c5d1cd68d1]);
goto A9a16907107cc3bb;
c970fa926b2158f4:
$f523e362fb81d6c8["info"]["bouquets"] = $f523e362fb81d6c8["bouquets"];
$c43b488500f8fab7 = array();
if ($E379394c7b1a273f == "archive") {
goto A1ef45df05d107f9;
}
if (!($f523e362fb81d6c8["info"]["direct_source"] == 1 && $f523e362fb81d6c8["info"]["direct_proxy"] == 0)) {
goto b4ce43a460cfe3cf;
}
header("Location: " . str_replace(" ", "%20", json_decode($f523e362fb81d6c8["info"]["stream_source"], true)[0]));
goto D6aa8e7712fd10dd;
C62d867495876ba8:
if (self::$rCached) {
goto f24aef7d35fc82e3;
}
$f523e362fb81d6c8 = self::AD41Bf0664804fa8($F26087d31c2bbe4d);
goto de9559ad1a818f87;
f24aef7d35fc82e3:
$f523e362fb81d6c8 = igbinary_unserialize(file_get_contents(STREAMS_TMP_PATH . "/stream_" . $F26087d31c2bbe4d)) ?: null;
goto F11740619ed7f370;
F6872ac6ac3210b1:
$f16991461acd03bf = array_keys($e1d30a1d66778eaf);
$E287c1867f711629 = array_values($e1d30a1d66778eaf);
array_multisort($E287c1867f711629, SORT_ASC, $f16991461acd03bf, SORT_ASC);
$e1d30a1d66778eaf = array_combine($f16991461acd03bf, $E287c1867f711629);
if ($F9452a7efafa1aba == "rtmp" && array_key_exists(SERVER_ID, $e1d30a1d66778eaf)) {
goto C180d738ec08e29e;
}
goto bdbf1e0b6838a613;
F11740619ed7f370:
$f523e362fb81d6c8["bouquets"] = self::getBouquetMap($F26087d31c2bbe4d);
de9559ad1a818f87:
if ($f523e362fb81d6c8) {
goto ddaa6cf9d94daa9a;
}
return false;
ddaa6cf9d94daa9a:
goto c970fa926b2158f4;
d43cf8b5a041908a:
A1ef45df05d107f9:
if (!($f523e362fb81d6c8["info"]["tv_archive_duration"] > 0 && $f523e362fb81d6c8["info"]["tv_archive_server_id"] > 0 && array_key_exists($f523e362fb81d6c8["info"]["tv_archive_server_id"], self::$rServers))) {
goto Fc0b40c9a2d028bf;
}
$c43b488500f8fab7 = array($f523e362fb81d6c8["info"]["tv_archive_server_id"]);
Fc0b40c9a2d028bf:
Ed60c4714ba8bccd:
goto B78cc5bf1b4cc9a1;
cb22a842018c1fb6:
return false;
d39f4e6de0180582:
$B5f1fb70f197b910 = empty($B5f1fb70f197b910) ? array_search(min($ceb41d1730714460), $ceb41d1730714460) : $B5f1fb70f197b910;
goto Cc7f8298f403ec71;
Cc70282383f17592:
goto c60e8d1b84cb231b;
c60e8d1b84cb231b:
$B5f1fb70f197b910 = $D4253f9520627819["force_server_id"];
Cc7f8298f403ec71:
goto B541ba57db8132ab;
C180d738ec08e29e:
$B5f1fb70f197b910 = SERVER_ID;
goto Ec8de5683224349d;
C2c1fba241c0dd49:
$e1d30a1d66778eaf = array();
foreach ($c43b488500f8fab7 as $d58b4f8653a391d8) {
$c9a044772607fb06 = isset($a9d38d288d6824ad[$d58b4f8653a391d8]["online_clients"]) ? $a9d38d288d6824ad[$d58b4f8653a391d8]["online_clients"] : 0;
if (!($c9a044772607fb06 == 0)) {
goto a13a5b29cbc96e9a;
}
$a9d38d288d6824ad[$d58b4f8653a391d8]["capacity"] = 0;
a13a5b29cbc96e9a:
$e1d30a1d66778eaf[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["total_clients"] > 0 && self::$rServers[$d58b4f8653a391d8]["total_clients"] > $c9a044772607fb06 ? $a9d38d288d6824ad[$d58b4f8653a391d8]["capacity"] : false;
D784935751d94be8:
}
A5335b35f85d0ce6:
$e1d30a1d66778eaf = array_filter($e1d30a1d66778eaf, "is_numeric");
if (empty($e1d30a1d66778eaf)) {
goto d02337a0cc0667b1;
}
goto F6872ac6ac3210b1;
D6aa8e7712fd10dd:
exit;
b4ce43a460cfe3cf:
foreach (self::$rServers as $d58b4f8653a391d8 => $cc5f26dd881329b7) {
goto F3f5c60e5f4b3b67;
C0607f43807c24cd:
if (!((!empty($f523e362fb81d6c8["servers"][$d58b4f8653a391d8]["pid"]) && $f523e362fb81d6c8["servers"][$d58b4f8653a391d8]["to_analyze"] == 0 && $f523e362fb81d6c8["servers"][$d58b4f8653a391d8]["stream_status"] == 0 or $f523e362fb81d6c8["info"]["direct_source"] == 1 && $f523e362fb81d6c8["info"]["direct_proxy"] == 1) && ($f523e362fb81d6c8["info"]["target_container"] == $F9452a7efafa1aba or $F9452a7efafa1aba = "srt") && $cc5f26dd881329b7["timeshift_only"] == 0)) {
goto E6b3bfde2bba3a4b;
}
$c43b488500f8fab7[] = $d58b4f8653a391d8;
E6b3bfde2bba3a4b:
e6a1b797ad1cbaae:
d14a0ca3952856ab:
goto Ceb16f4cc7518b1f;
fdf20eec96c52992:
if (!(($f523e362fb81d6c8["servers"][$d58b4f8653a391d8]["on_demand"] == 1 && $f523e362fb81d6c8["servers"][$d58b4f8653a391d8]["stream_status"] != 1 || $f523e362fb81d6c8["servers"][$d58b4f8653a391d8]["pid"] > 0 && $f523e362fb81d6c8["servers"][$d58b4f8653a391d8]["stream_status"] == 0) && $f523e362fb81d6c8["servers"][$d58b4f8653a391d8]["to_analyze"] == 0 && time() >= (int) $f523e362fb81d6c8["servers"][$d58b4f8653a391d8]["delay_available_at"] && $cc5f26dd881329b7["timeshift_only"] == 0 or $f523e362fb81d6c8["info"]["direct_source"] == 1 && $f523e362fb81d6c8["info"]["direct_proxy"] == 1)) {
goto f2c9ad91c6d18d70;
}
$c43b488500f8fab7[] = $d58b4f8653a391d8;
f2c9ad91c6d18d70:
goto e6a1b797ad1cbaae;
dc81d1b4441bc4da:
goto C0607f43807c24cd;
Ceb16f4cc7518b1f:
F4f1e383f7da1088:
goto cab84e8df02f7b1d;
F3f5c60e5f4b3b67:
if (!(!array_key_exists($d58b4f8653a391d8, $f523e362fb81d6c8["servers"]) || !$cc5f26dd881329b7["server_online"] || $cc5f26dd881329b7["server_type"] != 0)) {
goto E7f37679082b65f8;
}
goto F4f1e383f7da1088;
E7f37679082b65f8:
if (!isset($f523e362fb81d6c8["servers"][$d58b4f8653a391d8])) {
goto d14a0ca3952856ab;
}
if ($E379394c7b1a273f == "movie") {
goto dc81d1b4441bc4da;
}
goto fdf20eec96c52992;
cab84e8df02f7b1d:
}
bde8c56657567d13:
goto Ed60c4714ba8bccd;
goto d43cf8b5a041908a;
e3efe818e8c4d2ad:
if ($E379394c7b1a273f == "archive") {
goto Ce197b9537ddabd2;
}
return array();
goto be7e45769ffebcd6;
Ce197b9537ddabd2:
return null;
goto a8f7ce3bbc25e1a8;
bdbf1e0b6838a613:
if (isset($D4253f9520627819) && ($D4253f9520627819["force_server_id"] != 0 and array_key_exists($D4253f9520627819["force_server_id"], $e1d30a1d66778eaf))) {
goto Cc70282383f17592;
}
$ceb41d1730714460 = array();
foreach (array_keys($e1d30a1d66778eaf) as $d58b4f8653a391d8) {
goto c4c9036ff500aaca;
bd8c46659a18be77:
unset($e1d30a1d66778eaf[$d58b4f8653a391d8]);
Cc693194c0722d58:
goto Ed09d16414f36a87;
ab98dde6f267d2df:
$B5f1fb70f197b910 = $d58b4f8653a391d8;
goto B99d6543acd6b9fb;
c4c9036ff500aaca:
if (self::$rServers[$d58b4f8653a391d8]["enable_geoip"] == 1) {
goto E99d37a8420a215d;
}
if (self::$rServers[$d58b4f8653a391d8]["enable_isp"] == 1) {
goto F118623ede1a2734;
}
if (isset($f523e362fb81d6c8) && !self::$rSettings["ondemand_balance_equal"] && $f523e362fb81d6c8["servers"][$d58b4f8653a391d8]["on_demand"]) {
goto Fb3aeead40b8a771;
}
$ceb41d1730714460[$d58b4f8653a391d8] = 1;
goto a03c996c30d815c1;
goto C02d45e6269f1e73;
B99d6543acd6b9fb:
goto cbb6986dcf2350d0;
Ed09d16414f36a87:
f690855d88163579:
goto bc6163998566d7ae;
E99d37a8420a215d:
goto Bebc366257fff902;
A8ef308a43bc2672:
a3cf6f14abf10ae9:
$ceb41d1730714460[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["geoip_type"] == "low_priority" ? 3 : 2;
F0e0a6ad4481fbd4:
goto Dae3c6cf278608de;
B7fe3fb4be1c91e2:
goto c0ba462f1c92baa7;
cd4d7e3802e0fa63:
f432e8e3e7f10c1d:
$ceb41d1730714460[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["isp_type"] == "low_priority" ? 3 : 2;
Fcd9d7531742bb9a:
goto Cc693194c0722d58;
feaffddd80c820df:
goto bd8c46659a18be77;
C02d45e6269f1e73:
Fb3aeead40b8a771:
$ceb41d1730714460[$d58b4f8653a391d8] = 2;
a03c996c30d815c1:
goto f690855d88163579;
F118623ede1a2734:
goto A07b5b9f9b88c5b7;
da91b04cf7376a41:
goto cbb6986dcf2350d0;
E0b7543d9c454f57:
bc6163998566d7ae:
F0a4013504631e2e:
goto a610ce59cd668982;
Bebc366257fff902:
if (in_array($efc0f8f3059e4104, self::$rServers[$d58b4f8653a391d8]["geoip_countries"])) {
goto E46e461130effed1;
}
if (self::$rServers[$d58b4f8653a391d8]["geoip_type"] == "strict") {
goto B7fe3fb4be1c91e2;
}
if (isset($f523e362fb81d6c8) && !self::$rSettings["ondemand_balance_equal"] && $f523e362fb81d6c8["servers"][$d58b4f8653a391d8]["on_demand"]) {
goto a3cf6f14abf10ae9;
}
$ceb41d1730714460[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["geoip_type"] == "low_priority" ? 2 : 1;
goto F0e0a6ad4481fbd4;
goto A8ef308a43bc2672;
A07b5b9f9b88c5b7:
if (in_array(strtolower(trim(preg_replace("/[^A-Za-z0-9 ]/", '', $f72bad5bd13565f1))), self::$rServers[$d58b4f8653a391d8]["isp_names"])) {
goto ab98dde6f267d2df;
}
if (self::$rServers[$d58b4f8653a391d8]["isp_type"] == "strict") {
goto feaffddd80c820df;
}
if (isset($f523e362fb81d6c8) && !self::$rSettings["ondemand_balance_equal"] && $f523e362fb81d6c8["servers"][$d58b4f8653a391d8]["on_demand"]) {
goto f432e8e3e7f10c1d;
}
$ceb41d1730714460[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["isp_type"] == "low_priority" ? 2 : 1;
goto Fcd9d7531742bb9a;
goto cd4d7e3802e0fa63;
c0ba462f1c92baa7:
unset($e1d30a1d66778eaf[$d58b4f8653a391d8]);
Dae3c6cf278608de:
goto E0b7543d9c454f57;
E46e461130effed1:
$B5f1fb70f197b910 = $d58b4f8653a391d8;
goto da91b04cf7376a41;
a610ce59cd668982:
}
cbb6986dcf2350d0:
if (!(empty($ceb41d1730714460) && empty($B5f1fb70f197b910))) {
goto d39f4e6de0180582;
}
goto cb22a842018c1fb6;
fff2fcdfbb2dcbb6:
}
public static function B97D7ACBCf7c7A5e($Fd50c63671da34f8)
{
if (!(isset(self::$rSettings[$Fd50c63671da34f8]) && strlen(self::$rSettings[$Fd50c63671da34f8]) > 0)) {
goto ceb5bef15b68042b;
}
return self::$rSettings[$Fd50c63671da34f8];
ceb5bef15b68042b:
switch ($Fd50c63671da34f8) {
case "connected_video_path":
if (!file_exists(VIDEO_PATH . "connected.ts")) {
goto a180c4a18d2e4d47;
}
return VIDEO_PATH . "connected.ts";
a180c4a18d2e4d47:
goto e8a69fb50826725b;
case "expired_video_path":
if (!file_exists(VIDEO_PATH . "expired.ts")) {
goto d04dc2833d05ae7d;
}
return VIDEO_PATH . "expired.ts";
d04dc2833d05ae7d:
goto e8a69fb50826725b;
case "banned_video_path":
if (!file_exists(VIDEO_PATH . "banned.ts")) {
goto Ebaebad032eef935;
}
return VIDEO_PATH . "banned.ts";
Ebaebad032eef935:
goto e8a69fb50826725b;
case "not_on_air_video_path":
if (!file_exists(VIDEO_PATH . "offline.ts")) {
goto ad6263a706a28f6b;
}
return VIDEO_PATH . "offline.ts";
ad6263a706a28f6b:
goto e8a69fb50826725b;
case "expiring_video_path":
if (!file_exists(VIDEO_PATH . "expiring.ts")) {
goto b5ad283a47079264;
}
return VIDEO_PATH . "expiring.ts";
b5ad283a47079264:
goto e8a69fb50826725b;
}
e1fd360c7fb89089:
e8a69fb50826725b:
return null;
}
public static function Ad5765C0FD1ABb43($Fca476d6a870416e, $Fd50c63671da34f8, $F9452a7efafa1aba, $D4253f9520627819, $c59ec257c284c894, $efc0f8f3059e4104, $Fbe730b7a1211b54, $d58b4f8653a391d8 = null, $b2a9243e8304033d = null)
{
goto f36ea74214052e62;
f36ea74214052e62:
$Fd50c63671da34f8 = self::B97D7AcBCF7C7A5e($Fd50c63671da34f8);
if (!(!$D4253f9520627819["is_restreamer"] && self::$rSettings[$Fca476d6a870416e] && strlen($Fd50c63671da34f8) > 0)) {
goto dc80870dfd4b0fba;
}
if ($d58b4f8653a391d8) {
goto bf8e2a034c607b01;
}
$d58b4f8653a391d8 = self::F4221e28760b623E($D4253f9520627819, $c59ec257c284c894, $efc0f8f3059e4104, $Fbe730b7a1211b54);
bf8e2a034c607b01:
goto d399907e6dd44eda;
d399907e6dd44eda:
if ($d58b4f8653a391d8) {
goto e91c19bd972701c9;
}
$d58b4f8653a391d8 = SERVER_ID;
e91c19bd972701c9:
$a70eaa0ab42179dd = null;
if (!(self::isProxied($d58b4f8653a391d8) && (!$D4253f9520627819["is_restreamer"] or !self::$rSettings["restreamer_bypass_proxy"]))) {
goto e27b2c9d73b5c423;
}
goto A2e8d2e516153a7d;
Ecb5d33326617a19:
goto C1f152c245b718e8;
B4f16e09dde7cf83:
$C700a2b357e5ed65 = self::$rServers[$d58b4f8653a391d8]["domains"]["protocol"] . "://" . self::$rServers[$d58b4f8653a391d8]["domains"]["urls"][array_rand(self::$rServers[$d58b4f8653a391d8]["domains"]["urls"])] . ":" . self::$rServers[$d58b4f8653a391d8]["domains"]["port"];
C1f152c245b718e8:
if (!($a70eaa0ab42179dd && !self::$rServers[$a70eaa0ab42179dd]["is_main"])) {
goto e553bb1d9f53a2f0;
}
goto dab167dedc8b7036;
A2e8d2e516153a7d:
$c08f7f5177a44d91 = self::getProxies($d58b4f8653a391d8);
$b2a9243e8304033d = self::availableProxy(array_keys($c08f7f5177a44d91), $efc0f8f3059e4104, $D4253f9520627819["con_isp_name"]);
if ($b2a9243e8304033d) {
goto a462da6545979c07;
}
dB709Ed65ae02245();
a462da6545979c07:
goto a0384138e3cfe1db;
cce479e50068c555:
header("Content-Type: application/x-mpegurl");
header("Content-Length: " . strlen($dc05e2bb97d4635d));
echo $dc05e2bb97d4635d;
exit;
a107f0db889274a4:
goto c62026bc150925b8;
c62026bc150925b8:
dc80870dfd4b0fba:
switch ($Fca476d6a870416e) {
case "show_expired_video":
generateError("EXPIRED");
goto bc40f2f1c33184c8;
case "show_banned_video":
generateError("BANNED");
goto bc40f2f1c33184c8;
case "show_not_on_air_video":
generateError("STREAM_OFFLINE");
goto bc40f2f1c33184c8;
default:
Db709Ed65AE02245();
goto bc40f2f1c33184c8;
}
d20abed4483c69e6:
bc40f2f1c33184c8:
goto f5e63660087cb9a6;
dab167dedc8b7036:
$C700a2b357e5ed65 .= "/" . md5($d58b4f8653a391d8 . "_" . $a70eaa0ab42179dd . "_" . OPENSSL_EXTRA);
e553bb1d9f53a2f0:
$F64d974c429d80be = array("expires" => time() + 10, "video_path" => $Fd50c63671da34f8);
$ea5296071288c730 = Xui\Functions::encrypt(json_encode($F64d974c429d80be), self::$rSettings["live_streaming_pass"], OPENSSL_EXTRA);
if ($F9452a7efafa1aba == "m3u8") {
goto De3fa2e21829663b;
}
goto dbb208ac92e35f10;
dbb208ac92e35f10:
header("Location: {$C700a2b357e5ed65}/auth/{$ea5296071288c730}");
exit;
goto a107f0db889274a4;
De3fa2e21829663b:
$dc05e2bb97d4635d = "#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0\xa#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:10\xa#EXTINF:10.0,\xa{$C700a2b357e5ed65}/auth/{$ea5296071288c730}
#EXT-X-ENDLIST";
goto cce479e50068c555;
a0384138e3cfe1db:
$a70eaa0ab42179dd = $d58b4f8653a391d8;
$d58b4f8653a391d8 = $b2a9243e8304033d;
e27b2c9d73b5c423:
if (self::$rServers[$d58b4f8653a391d8]["random_ip"] && count(self::$rServers[$d58b4f8653a391d8]["domains"]["urls"]) > 0) {
goto B4f16e09dde7cf83;
}
$C700a2b357e5ed65 = rtrim(self::$rServers[$d58b4f8653a391d8]["site_url"], "/");
goto Ecb5d33326617a19;
f5e63660087cb9a6:
}
public static function F4221e28760B623E($D4253f9520627819, $c2a965773885730d, $efc0f8f3059e4104, $f72bad5bd13565f1 = '')
{
goto Aa455a8536f1f478;
Cf8ff585d1b2b942:
goto F37e89496811a836;
D0a568a75e0daddd:
$B5f1fb70f197b910 = $D4253f9520627819["force_server_id"];
F37e89496811a836:
return $B5f1fb70f197b910;
goto A11f11d787b2bcd1;
B53f50191be716af:
array_multisort($E287c1867f711629, SORT_ASC, $f16991461acd03bf, SORT_ASC);
$e1d30a1d66778eaf = array_combine($f16991461acd03bf, $E287c1867f711629);
if ($D4253f9520627819["force_server_id"] != 0 and array_key_exists($D4253f9520627819["force_server_id"], $e1d30a1d66778eaf)) {
goto D0a568a75e0daddd;
}
$ceb41d1730714460 = array();
foreach (array_keys($e1d30a1d66778eaf) as $d58b4f8653a391d8) {
goto E9504a6d3d1e0a3e;
da2c31bcef4b39e8:
if (in_array($f72bad5bd13565f1, self::$rServers[$d58b4f8653a391d8]["isp_names"])) {
goto Db33207d759a2e14;
}
if (self::$rServers[$d58b4f8653a391d8]["isp_type"] == "strict") {
goto D78036eaa01b4d7a;
}
$ceb41d1730714460[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["isp_type"] == "low_priority" ? 1 : 2;
goto ad52b1f0838a62a6;
D78036eaa01b4d7a:
goto a817196801902fb4;
de59081b80f528fa:
goto c84926f21a4445aa;
A319ebdfcf9feff3:
E3d4a037c6ebbff1:
d8e10e9f58dda86a:
goto e2c77be5f57ac542;
D0fdb5af4f4d4e75:
unset($e1d30a1d66778eaf[$d58b4f8653a391d8]);
f1b1ba0a8ef80e8e:
goto A319ebdfcf9feff3;
e7e01d6bc7536d4c:
$B5f1fb70f197b910 = $d58b4f8653a391d8;
goto de59081b80f528fa;
E9504a6d3d1e0a3e:
if (self::$rServers[$d58b4f8653a391d8]["enable_geoip"] == 1) {
goto b0eb3748133bf49f;
}
if (self::$rServers[$d58b4f8653a391d8]["enable_isp"] == 1) {
goto a22695cf3378f722;
}
$ceb41d1730714460[$d58b4f8653a391d8] = 1;
goto B095426f2203149e;
a22695cf3378f722:
goto da2c31bcef4b39e8;
Ee06905eef781155:
if (in_array($efc0f8f3059e4104, self::$rServers[$d58b4f8653a391d8]["geoip_countries"])) {
goto e7e01d6bc7536d4c;
}
if (self::$rServers[$d58b4f8653a391d8]["geoip_type"] == "strict") {
goto cfb8b4acdfa18f7f;
}
$ceb41d1730714460[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["geoip_type"] == "low_priority" ? 1 : 2;
goto f1b1ba0a8ef80e8e;
cfb8b4acdfa18f7f:
goto D0fdb5af4f4d4e75;
beeceb6a04823c0e:
goto c84926f21a4445aa;
Af3b73e681809525:
B095426f2203149e:
goto E3d4a037c6ebbff1;
b0eb3748133bf49f:
goto Ee06905eef781155;
a817196801902fb4:
unset($e1d30a1d66778eaf[$d58b4f8653a391d8]);
ad52b1f0838a62a6:
goto Af3b73e681809525;
Db33207d759a2e14:
$B5f1fb70f197b910 = $d58b4f8653a391d8;
goto beeceb6a04823c0e;
e2c77be5f57ac542:
}
goto De62f96aad4ef35b;
De62f96aad4ef35b:
c84926f21a4445aa:
if (!(empty($ceb41d1730714460) && empty($B5f1fb70f197b910))) {
goto E25b70e7029cfc36;
}
return false;
E25b70e7029cfc36:
$B5f1fb70f197b910 = empty($B5f1fb70f197b910) ? array_search(min($ceb41d1730714460), $ceb41d1730714460) : $B5f1fb70f197b910;
goto Cf8ff585d1b2b942;
e42732878b560367:
b316978f97a12102:
$e1d30a1d66778eaf = array_filter($e1d30a1d66778eaf, "is_numeric");
if (empty($e1d30a1d66778eaf)) {
goto a4a548e34b564a39;
}
$f16991461acd03bf = array_keys($e1d30a1d66778eaf);
$E287c1867f711629 = array_values($e1d30a1d66778eaf);
goto B53f50191be716af;
A11f11d787b2bcd1:
a4a548e34b564a39:
return false;
goto ffef6461b207f02f;
Aa455a8536f1f478:
$c43b488500f8fab7 = array();
foreach (self::$rServers as $d58b4f8653a391d8 => $cc5f26dd881329b7) {
if (!(!$cc5f26dd881329b7["server_online"] || $cc5f26dd881329b7["server_type"] != 0)) {
goto Ed27df695df2ef6b;
}
goto d416b9b0a57de1e8;
Ed27df695df2ef6b:
$c43b488500f8fab7[] = $d58b4f8653a391d8;
d416b9b0a57de1e8:
}
aa350b2571e85242:
if (!empty($c43b488500f8fab7)) {
goto Ff1ce0fd6cc2bb67;
}
return false;
goto b7f9d68709cf4e3c;
b7f9d68709cf4e3c:
Ff1ce0fd6cc2bb67:
shuffle($c43b488500f8fab7);
$a9d38d288d6824ad = self::CDd1bc14D819be74();
$e1d30a1d66778eaf = array();
foreach ($c43b488500f8fab7 as $d58b4f8653a391d8) {
$c9a044772607fb06 = isset($a9d38d288d6824ad[$d58b4f8653a391d8]["online_clients"]) ? $a9d38d288d6824ad[$d58b4f8653a391d8]["online_clients"] : 0;
if (!($c9a044772607fb06 == 0)) {
goto D80d5e0d4cf74ca5;
}
$a9d38d288d6824ad[$d58b4f8653a391d8]["capacity"] = 0;
D80d5e0d4cf74ca5:
$e1d30a1d66778eaf[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["total_clients"] > 0 && self::$rServers[$d58b4f8653a391d8]["total_clients"] > $c9a044772607fb06 ? $a9d38d288d6824ad[$d58b4f8653a391d8]["capacity"] : false;
b10133a0e4a18609:
}
goto e42732878b560367;
ffef6461b207f02f:
}
public static function availableProxy($c08f7f5177a44d91, $efc0f8f3059e4104, $f72bad5bd13565f1 = '')
{
goto Aab37217ab407881;
ca040e266365f8be:
foreach ($c08f7f5177a44d91 as $d58b4f8653a391d8) {
$c9a044772607fb06 = isset($a9d38d288d6824ad[$d58b4f8653a391d8]["online_clients"]) ? $a9d38d288d6824ad[$d58b4f8653a391d8]["online_clients"] : 0;
if (!($c9a044772607fb06 == 0)) {
goto ba1c3310242a3592;
}
$a9d38d288d6824ad[$d58b4f8653a391d8]["capacity"] = 0;
ba1c3310242a3592:
$e1d30a1d66778eaf[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["total_clients"] > 0 && self::$rServers[$d58b4f8653a391d8]["total_clients"] > $c9a044772607fb06 ? $a9d38d288d6824ad[$d58b4f8653a391d8]["capacity"] : false;
db9c58776fc8640a:
}
F15b3a771900ab1e:
$e1d30a1d66778eaf = array_filter($e1d30a1d66778eaf, "is_numeric");
if (empty($e1d30a1d66778eaf)) {
goto c24dad66283e776e;
}
$f16991461acd03bf = array_keys($e1d30a1d66778eaf);
goto E77211b974fd9eb0;
E77211b974fd9eb0:
$E287c1867f711629 = array_values($e1d30a1d66778eaf);
array_multisort($E287c1867f711629, SORT_ASC, $f16991461acd03bf, SORT_ASC);
$e1d30a1d66778eaf = array_combine($f16991461acd03bf, $E287c1867f711629);
$ceb41d1730714460 = array();
foreach (array_keys($e1d30a1d66778eaf) as $d58b4f8653a391d8) {
goto F41403bac24834a8;
ceee8dcc934d87d9:
unset($e1d30a1d66778eaf[$d58b4f8653a391d8]);
a1c101dc5a82ac66:
goto Cfebcce9fe8b66ac;
E233994e723be2b6:
$B5f1fb70f197b910 = $d58b4f8653a391d8;
goto ed0945407c0c3a39;
ed0945407c0c3a39:
goto D78dbb8d21b76f6e;
Cfebcce9fe8b66ac:
a347de238495b2c7:
goto Ef1b7937dd9fbe02;
C40b9d061a5c8e8c:
goto a11a6e518eab3b44;
A986d6708b5fcc94:
if (in_array($f72bad5bd13565f1, self::$rServers[$d58b4f8653a391d8]["isp_names"])) {
goto E233994e723be2b6;
}
if (self::$rServers[$d58b4f8653a391d8]["isp_type"] == "strict") {
goto b304f83412ffd8e7;
}
$ceb41d1730714460[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["isp_type"] == "low_priority" ? 1 : 2;
goto a1c101dc5a82ac66;
b304f83412ffd8e7:
goto ceee8dcc934d87d9;
e1a42b78b21f6533:
unset($e1d30a1d66778eaf[$d58b4f8653a391d8]);
A91aa40796ef180e:
goto Ab9e0fd44d29adaa;
d8d0e94f58b8eee6:
$B5f1fb70f197b910 = $d58b4f8653a391d8;
goto f29c54c22fee2ad2;
a11a6e518eab3b44:
if (in_array($efc0f8f3059e4104, self::$rServers[$d58b4f8653a391d8]["geoip_countries"])) {
goto d8d0e94f58b8eee6;
}
if (self::$rServers[$d58b4f8653a391d8]["geoip_type"] == "strict") {
goto d7186493fe3b9fb4;
}
$ceb41d1730714460[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["geoip_type"] == "low_priority" ? 1 : 2;
goto A91aa40796ef180e;
d7186493fe3b9fb4:
goto e1a42b78b21f6533;
F41403bac24834a8:
if (self::$rServers[$d58b4f8653a391d8]["enable_geoip"] == 1) {
goto C40b9d061a5c8e8c;
}
if (self::$rServers[$d58b4f8653a391d8]["enable_isp"] == 1) {
goto ee9f13a7ba33275b;
}
$ceb41d1730714460[$d58b4f8653a391d8] = 1;
goto a347de238495b2c7;
ee9f13a7ba33275b:
goto A986d6708b5fcc94;
f29c54c22fee2ad2:
goto D78dbb8d21b76f6e;
Ab9e0fd44d29adaa:
Ef1b7937dd9fbe02:
C5b2a6f38135b00b:
goto f6c58543ab48c69e;
f6c58543ab48c69e:
}
goto Ee41ded925d295be;
Ee41ded925d295be:
D78dbb8d21b76f6e:
if (!(empty($ceb41d1730714460) && empty($B5f1fb70f197b910))) {
goto Ec40ed551d71542e;
}
return null;
Ec40ed551d71542e:
$B5f1fb70f197b910 = empty($B5f1fb70f197b910) ? array_search(min($ceb41d1730714460), $ceb41d1730714460) : $B5f1fb70f197b910;
goto bc4fd5e62b133db4;
bc4fd5e62b133db4:
return $B5f1fb70f197b910;
c24dad66283e776e:
return null;
goto de753b3406730fc5;
Aab37217ab407881:
if (!empty($c08f7f5177a44d91)) {
goto D3d2fe871b6d20a2;
}
return null;
D3d2fe871b6d20a2:
$a9d38d288d6824ad = self::cDd1bC14D819bE74(true);
$e1d30a1d66778eaf = array();
goto ca040e266365f8be;
de753b3406730fc5:
}
public static function D2985c63279Ea4cD($D78ff1d0edade5eb, $B68ac2238b156add, $B08e7d3cd339391a = null, $E18c40e895ee55c2 = '', $c59ec257c284c894 = null, $b3374866087774a1 = null)
{
goto F1150cf97d69f40e;
b3e265f64144e557:
D1f1717b4dd01279:
foreach ($d90ef785aae39e04 as $af379d1083bf17b4) {
goto F2ed198e99b68a1e;
Bd9acdebe3aff0a6:
if (!self::e8E9D6b2B107d8AE($A90d77181715e38e[$Ea22c4a9ab5b2176])) {
goto C85e4b88a2b41eac;
}
$e3d2d1505b87d99c++;
if (!($A90d77181715e38e[$Ea22c4a9ab5b2176]["container"] != "hls")) {
goto A898793f47c0e9b4;
}
if (self::$rSettings["redis_handler"]) {
goto a5041e17879f4bf4;
}
$Aa8c918a2a91966f[] = intval($A90d77181715e38e[$Ea22c4a9ab5b2176]["activity_id"]);
goto ece535f8ced45568;
Fbb0c2e7e6b23432:
fa92b34de3d855ac:
E2bd74940d139ae4:
$Ea22c4a9ab5b2176++;
goto C8bcb51513090593;
Cc9046f53ac1b06f:
goto E54d910d61458b2d;
E54d910d61458b2d:
Beb5d5f0444f423f:
goto ed4ccbbb784181d7;
F2ed198e99b68a1e:
$Ea22c4a9ab5b2176 = 0;
C8bcb51513090593:
if (!($Ea22c4a9ab5b2176 < count($A90d77181715e38e) && $e3d2d1505b87d99c < $de110edaf0f89eae)) {
goto Cc9046f53ac1b06f;
}
if (!($e3d2d1505b87d99c == $de110edaf0f89eae)) {
goto Ada52bdd29a618bf;
}
goto Ef415f6f7bb0a29d;
goto A22e9dfd49a32949;
ece535f8ced45568:
goto E200367dc3de8659;
a5041e17879f4bf4:
$Aa8c918a2a91966f[] = $A90d77181715e38e[$Ea22c4a9ab5b2176];
E200367dc3de8659:
$D4526c7bd7f852cc[$A90d77181715e38e[$Ea22c4a9ab5b2176]["stream_id"]][] = $aeefef3bed8a0a90[] = $A90d77181715e38e[$Ea22c4a9ab5b2176]["uuid"];
goto cf7a1b512fffe3dd;
A22e9dfd49a32949:
Ada52bdd29a618bf:
if (!($A90d77181715e38e[$Ea22c4a9ab5b2176]["pid"] == getmypid())) {
goto f9e28874f6577b80;
}
goto E2bd74940d139ae4;
f9e28874f6577b80:
if (!($A90d77181715e38e[$Ea22c4a9ab5b2176]["user_ip"] == $c59ec257c284c894 && $A90d77181715e38e[$Ea22c4a9ab5b2176]["user_agent"] == $b3374866087774a1 && $af379d1083bf17b4 == 2 or $A90d77181715e38e[$Ea22c4a9ab5b2176]["user_ip"] == $c59ec257c284c894 && $af379d1083bf17b4 == 1 or $af379d1083bf17b4 == 0)) {
goto fa92b34de3d855ac;
}
goto Bd9acdebe3aff0a6;
cf7a1b512fffe3dd:
A898793f47c0e9b4:
if (!($A90d77181715e38e[$Ea22c4a9ab5b2176]["on_demand"] && $A90d77181715e38e[$Ea22c4a9ab5b2176]["server_id"] == SERVER_ID && self::$rSettings["on_demand_instant_off"])) {
goto Ab33a55dbfc4f0ae;
}
self::CA490CE3385c630E($A90d77181715e38e[$Ea22c4a9ab5b2176]["stream_id"], $A90d77181715e38e[$Ea22c4a9ab5b2176]["pid"]);
Ab33a55dbfc4f0ae:
C85e4b88a2b41eac:
goto Fbb0c2e7e6b23432;
ed4ccbbb784181d7:
}
Ef415f6f7bb0a29d:
if (empty($Aa8c918a2a91966f)) {
goto b17fe89338d42f7a;
}
if (self::$rSettings["redis_handler"]) {
goto Ec40e31376d534cb;
}
goto Be64a108688c9609;
Cd6017021e34c00f:
foreach ($Aa8c918a2a91966f as $e110a2ab6d3a4734) {
goto a9e70d2988bd6b97;
B1d9f1472f7c23a2:
$F42a951cf0a3370a->del($e110a2ab6d3a4734["uuid"]);
$F805649379c06d30[] = $e110a2ab6d3a4734["uuid"];
E89ccb97703adf82:
goto b46ba561cb1fe70e;
a9e70d2988bd6b97:
$F42a951cf0a3370a->zRem("LINE#{$e110a2ab6d3a4734["identity"]}", $e110a2ab6d3a4734["uuid"]);
$F42a951cf0a3370a->zRem("LINE_ALL#{$e110a2ab6d3a4734["identity"]}", $e110a2ab6d3a4734["uuid"]);
$F42a951cf0a3370a->zRem("STREAM#{$e110a2ab6d3a4734["stream_id"]}", $e110a2ab6d3a4734["uuid"]);
$F42a951cf0a3370a->zRem("SERVER#{$e110a2ab6d3a4734["server_id"]}", $e110a2ab6d3a4734["uuid"]);
if (!$e110a2ab6d3a4734["user_id"]) {
goto C47e278e816bdd2b;
}
goto a56289f5e4a7e819;
a56289f5e4a7e819:
$F42a951cf0a3370a->zRem("SERVER_LINES#{$e110a2ab6d3a4734["server_id"]}", $e110a2ab6d3a4734["uuid"]);
C47e278e816bdd2b:
if (!$e110a2ab6d3a4734["proxy_id"]) {
goto E798ef3cad1868b3;
}
$F42a951cf0a3370a->zRem("PROXY#{$e110a2ab6d3a4734["proxy_id"]}", $e110a2ab6d3a4734["uuid"]);
E798ef3cad1868b3:
goto B1d9f1472f7c23a2;
b46ba561cb1fe70e:
}
fedf1ff7c32dbc8a:
$F42a951cf0a3370a->zRem("CONNECTIONS", ...$F805649379c06d30);
$F42a951cf0a3370a->zRem("LIVE", ...$F805649379c06d30);
$F42a951cf0a3370a->sRem("ENDED", ...$F805649379c06d30);
goto B6525ddd83e384c6;
Be64a108688c9609:
self::$db->query("DELETE FROM `lines_live` WHERE `activity_id` IN (" . implode(",", array_map("intval", $Aa8c918a2a91966f)) . ")");
goto C289e158794ab18b;
Ec40e31376d534cb:
$F805649379c06d30 = array();
$F42a951cf0a3370a = self::$redis->multi();
goto Cd6017021e34c00f;
Eac980732d26e5b0:
if ($c59ec257c284c894 && $b3374866087774a1) {
goto C0a247e0ed173cba;
}
if ($c59ec257c284c894) {
goto Af8790fd68d15dde;
}
$d90ef785aae39e04 = array(0);
goto af74bddc7b7617fa;
Af8790fd68d15dde:
goto cbc90df628071cd6;
Dc0ea81c702b9928:
self::$db->query("SELECT `lines_live`.*, `on_demand` FROM `lines_live` LEFT JOIN `streams_servers` ON `streams_servers`.`stream_id` = `lines_live`.`stream_id` AND `streams_servers`.`server_id` = `lines_live`.`server_id` WHERE `lines_live`.`hmac_id` = ? AND `lines_live`.`hls_end` = 0 AND `lines_live`.`hmac_identifier` = ? ORDER BY `lines_live`.`activity_id` ASC", $B08e7d3cd339391a, $E18c40e895ee55c2);
db04bf30a961ec68:
$bde5957fb5fa9547 = self::$db->num_rows();
$de110edaf0f89eae = $bde5957fb5fa9547 - $B68ac2238b156add;
if (!($de110edaf0f89eae <= 0)) {
goto ace786d755c23dae;
}
goto a61ec3c3dbe63c5c;
F1150cf97d69f40e:
if (self::$rSettings["redis_handler"]) {
goto Cd067b7da45c8765;
}
if ($B08e7d3cd339391a) {
goto Cca3e0eac606b755;
}
self::$db->query("SELECT `lines_live`.*, `on_demand` FROM `lines_live` LEFT JOIN `streams_servers` ON `streams_servers`.`stream_id` = `lines_live`.`stream_id` AND `streams_servers`.`server_id` = `lines_live`.`server_id` WHERE `lines_live`.`user_id` = ? AND `lines_live`.`hls_end` = 0 ORDER BY `lines_live`.`activity_id` ASC", $D78ff1d0edade5eb);
goto db04bf30a961ec68;
Cca3e0eac606b755:
goto Dc0ea81c702b9928;
Bef2845d2b558e66:
$A90d77181715e38e = array();
$f16991461acd03bf = self::Bc23764Ed0732f3f($D78ff1d0edade5eb, true, true);
$de110edaf0f89eae = count($f16991461acd03bf) - $B68ac2238b156add;
if (!($de110edaf0f89eae <= 0)) {
goto F34f77f23c0b6a23;
}
return;
goto eccf5345ffb14135;
B6525ddd83e384c6:
$F42a951cf0a3370a->exec();
C289e158794ab18b:
foreach ($aeefef3bed8a0a90 as $B08b62d9f7870287) {
@unlink(CONS_TMP_PATH . $B08b62d9f7870287);
daa433704a5bada9:
}
a63a246d1111d420:
foreach ($D4526c7bd7f852cc as $F26087d31c2bbe4d => $F805649379c06d30) {
foreach ($F805649379c06d30 as $B08b62d9f7870287) {
@unlink(CONS_TMP_PATH . $F26087d31c2bbe4d . "/" . $B08b62d9f7870287);
d173ea32bf63bbe2:
}
F079226f26f741e9:
d16db62a5cafb0e2:
}
goto Bbda7b44477bdbe2;
Df36093143f42ba5:
array_multisort($c94b497359f8aed9, SORT_ASC, $A90d77181715e38e);
Fe63751db95fef61:
$c59ec257c284c894 = self::a9bC416FA6FA55C3();
$e3d2d1505b87d99c = 0;
$D4526c7bd7f852cc = $aeefef3bed8a0a90 = $Aa8c918a2a91966f = array();
goto Eac980732d26e5b0;
a61ec3c3dbe63c5c:
return;
ace786d755c23dae:
$A90d77181715e38e = self::$db->get_rows();
goto Fe63751db95fef61;
Cd067b7da45c8765:
goto Bef2845d2b558e66;
eccf5345ffb14135:
F34f77f23c0b6a23:
foreach (array_map("igbinary_unserialize", self::$redis->mGet($f16991461acd03bf)) as $e110a2ab6d3a4734) {
if (!is_array($e110a2ab6d3a4734)) {
goto b22129109480aa4a;
}
$A90d77181715e38e[] = $e110a2ab6d3a4734;
b22129109480aa4a:
c5369cd5745f0815:
}
Bb4c0c2a2be565fe:
unset($f16991461acd03bf);
$c94b497359f8aed9 = array_column($A90d77181715e38e, "date_start");
goto Df36093143f42ba5;
cbc90df628071cd6:
$d90ef785aae39e04 = array(1, 0);
af74bddc7b7617fa:
goto D1f1717b4dd01279;
C0a247e0ed173cba:
$d90ef785aae39e04 = array(2, 1, 0);
goto b3e265f64144e557;
Bbda7b44477bdbe2:
C61a8854c024871f:
b17fe89338d42f7a:
return $e3d2d1505b87d99c;
goto f1ea5dbb8098a26a;
f1ea5dbb8098a26a:
}
public static function E8e9D6B2b107D8AE($A9d34c0517e4c2a9)
{
goto ac7cf745298eaaa5;
Ac39b7bbb53e7c6b:
a4e6e6af71b5e675:
if ($A9d34c0517e4c2a9["server_id"] == SERVER_ID) {
goto Ebd2f835b5e5e27a;
}
if (self::$rSettings["redis_handler"]) {
goto Ad6cf2f22e5b8a3f;
}
self::$db->query("INSERT INTO `signals` (`pid`,`server_id`,`rtmp`,`time`) VALUES(?,?,?,UNIX_TIMESTAMP())", $A9d34c0517e4c2a9["pid"], $A9d34c0517e4c2a9["server_id"], 1);
goto D4caf52224a556f4;
goto b473a1b9ccd6b796;
D76d959d3b2c7dec:
shell_exec("wget --timeout=2 -O /dev/null -o /dev/null "" . self::$rServers[SERVER_ID]["rtmp_mport_url"] . "control/drop/client?clientid=" . intval($A9d34c0517e4c2a9["pid"]) . "" >/dev/null 2>/dev/null &");
b5ed0281f086695c:
a7ff1e3f780e6068:
self::DCFCfa5D9D05DF5a($A9d34c0517e4c2a9["server_id"], $A9d34c0517e4c2a9["proxy_id"], $A9d34c0517e4c2a9["user_id"], $A9d34c0517e4c2a9["stream_id"], $A9d34c0517e4c2a9["date_start"], $A9d34c0517e4c2a9["user_agent"], $A9d34c0517e4c2a9["user_ip"], $A9d34c0517e4c2a9["container"], $A9d34c0517e4c2a9["geoip_country_code"], $A9d34c0517e4c2a9["isp"], $A9d34c0517e4c2a9["external_device"], $A9d34c0517e4c2a9["divergence"], $A9d34c0517e4c2a9["hmac_id"], $A9d34c0517e4c2a9["hmac_identifier"]);
return true;
goto a0369756228e2e14;
b473a1b9ccd6b796:
Ad6cf2f22e5b8a3f:
self::aA941Cf79c4F48CF($A9d34c0517e4c2a9["pid"], $A9d34c0517e4c2a9["server_id"], 1);
D4caf52224a556f4:
goto b5ed0281f086695c;
Ebd2f835b5e5e27a:
goto D76d959d3b2c7dec;
C59d8ba9764dfea5:
goto ff3bbb749b787726;
Bfa74223e5e94877:
if (self::$rSettings["redis_handler"]) {
goto C945e0ee476be8c3;
}
self::$db->query("UPDATE `lines_live` SET `hls_end` = 1 WHERE `activity_id` = ?", $A9d34c0517e4c2a9["activity_id"]);
goto c988ab6b30f121ab;
goto d45511c0564b4024;
c045150e8a08d31a:
goto cb61d11a66d2b965;
fb5bcc66156e0d6b:
self::$db->query("SELECT * FROM `lines_live` WHERE `uuid` = ?", $A9d34c0517e4c2a9);
cb61d11a66d2b965:
$A9d34c0517e4c2a9 = self::$db->get_row();
goto c431e9c0fc49c426;
c276f663dfc56c7d:
goto e09c55976368bea5;
Cfddc9d9d721bdae:
self::Aa941Cf79C4F48cf($A9d34c0517e4c2a9["pid"], $A9d34c0517e4c2a9["server_id"], 0);
e09c55976368bea5:
goto b3e864f93b6176c7;
goto e21f88568b07538b;
Dc12dbec405081c1:
if ($A9d34c0517e4c2a9["container"] == "rtmp") {
goto a4e6e6af71b5e675;
}
if ($A9d34c0517e4c2a9["container"] == "hls") {
goto Bfa74223e5e94877;
}
if ($A9d34c0517e4c2a9["server_id"] == SERVER_ID) {
goto E85d04c6fbddfefc;
}
if (self::$rSettings["redis_handler"]) {
goto Cfddc9d9d721bdae;
}
self::$db->query("INSERT INTO `signals` (`pid`,`server_id`,`time`) VALUES(?,?,UNIX_TIMESTAMP())", $A9d34c0517e4c2a9["pid"], $A9d34c0517e4c2a9["server_id"]);
goto c276f663dfc56c7d;
d45511c0564b4024:
C945e0ee476be8c3:
self::e3484f74d3C8b5a7($A9d34c0517e4c2a9, array(), "close");
c988ab6b30f121ab:
ff3bbb749b787726:
goto a7ff1e3f780e6068;
goto Ac39b7bbb53e7c6b;
e21f88568b07538b:
E85d04c6fbddfefc:
if (!($A9d34c0517e4c2a9["pid"] != getmypid() && is_numeric($A9d34c0517e4c2a9["pid"]) && $A9d34c0517e4c2a9["pid"] > 0)) {
goto Bde43a198f0bea82;
}
posix_kill(intval($A9d34c0517e4c2a9["pid"]), 9);
Bde43a198f0bea82:
b3e864f93b6176c7:
goto C59d8ba9764dfea5;
ac7cf745298eaaa5:
if (!empty($A9d34c0517e4c2a9)) {
goto E3934f60d0fb59e7;
}
return false;
E3934f60d0fb59e7:
if (is_array($A9d34c0517e4c2a9)) {
goto c973e0011f68cff2;
}
if (!self::$rSettings["redis_handler"]) {
goto b914a30e4486a61c;
}
goto Ed50e549424f4959;
c431e9c0fc49c426:
fd7be008fec837e1:
c973e0011f68cff2:
if (is_array($A9d34c0517e4c2a9)) {
goto F76c62c7bf5ced74;
}
return false;
F76c62c7bf5ced74:
goto Dc12dbec405081c1;
Ed50e549424f4959:
$A9d34c0517e4c2a9 = igbinary_unserialize(self::$redis->get($A9d34c0517e4c2a9));
goto fd7be008fec837e1;
b914a30e4486a61c:
if (strlen(strval($A9d34c0517e4c2a9)) == 32) {
goto fb5bcc66156e0d6b;
}
self::$db->query("SELECT * FROM `lines_live` WHERE `activity_id` = ?", $A9d34c0517e4c2a9);
goto c045150e8a08d31a;
a0369756228e2e14:
}
public static function F01D5Fe0Aec79d52($f9b07d216a168dcc)
{
goto b77972c8ead85ecb;
fa19a8634032c431:
return false;
goto Aca46c6db52b3c16;
Ccce909593473272:
$A9d34c0517e4c2a9 = self::$db->get_row();
self::$db->query("DELETE FROM `lines_live` WHERE `activity_id` = ?", $A9d34c0517e4c2a9["activity_id"]);
self::dcFCFA5d9D05Df5a($A9d34c0517e4c2a9["server_id"], $A9d34c0517e4c2a9["proxy_id"], $A9d34c0517e4c2a9["user_id"], $A9d34c0517e4c2a9["stream_id"], $A9d34c0517e4c2a9["date_start"], $A9d34c0517e4c2a9["user_agent"], $A9d34c0517e4c2a9["user_ip"], $A9d34c0517e4c2a9["container"], $A9d34c0517e4c2a9["geoip_country_code"], $A9d34c0517e4c2a9["isp"], $A9d34c0517e4c2a9["external_device"], $A9d34c0517e4c2a9["divergence"], $A9d34c0517e4c2a9["hmac_id"], $A9d34c0517e4c2a9["hmac_identifier"]);
return true;
A24521ed7ccf7335:
goto fa19a8634032c431;
b77972c8ead85ecb:
if (!empty($f9b07d216a168dcc)) {
goto Aaca9adc577d0724;
}
return false;
Aaca9adc577d0724:
self::$db->query("SELECT * FROM `lines_live` WHERE `container` = 'rtmp' AND `pid` = ? AND `server_id` = ?", $f9b07d216a168dcc, SERVER_ID);
if (!(self::$db->num_rows() > 0)) {
goto A24521ed7ccf7335;
}
goto Ccce909593473272;
Aca46c6db52b3c16:
}
public static function DCfCFA5d9d05DF5a($d58b4f8653a391d8, $b2a9243e8304033d, $D78ff1d0edade5eb, $F26087d31c2bbe4d, $D031c48a1422c07e, $b3374866087774a1, $c59ec257c284c894, $F9452a7efafa1aba, $C4a76d9a69ca8231, $Fbe730b7a1211b54, $d080620e03289080 = '', $b25be5f9af7a0a91 = 0, $B08e7d3cd339391a = null, $E18c40e895ee55c2 = '')
{
if (!(self::$rSettings["save_closed_connection"] == 0)) {
goto E8bbd51d0e5c01f4;
}
return;
E8bbd51d0e5c01f4:
if (!($d58b4f8653a391d8 && $D78ff1d0edade5eb && $F26087d31c2bbe4d)) {
goto F5fa7ff9e337e179;
}
$A9d34c0517e4c2a9 = array("user_id" => intval($D78ff1d0edade5eb), "stream_id" => intval($F26087d31c2bbe4d), "server_id" => intval($d58b4f8653a391d8), "proxy_id" => intval($b2a9243e8304033d), "date_start" => intval($D031c48a1422c07e), "user_agent" => $b3374866087774a1, "user_ip" => htmlentities($c59ec257c284c894), "date_end" => time(), "container" => $F9452a7efafa1aba, "geoip_country_code" => $C4a76d9a69ca8231, "isp" => $Fbe730b7a1211b54, "external_device" => htmlentities($d080620e03289080), "divergence" => intval($b25be5f9af7a0a91), "hmac_id" => $B08e7d3cd339391a, "hmac_identifier" => $E18c40e895ee55c2);
file_put_contents(LOGS_TMP_PATH . "activity", base64_encode(json_encode($A9d34c0517e4c2a9)) . "\xa", FILE_APPEND | LOCK_EX);
F5fa7ff9e337e179:
}
public static function D7aC04307F564FA4()
{
$a85e1b7d42c346a0 = array();
self::$db->query("SELECT `ip`, `password`, `push`, `pull` FROM `rtmp_ips`");
foreach (self::$db->get_rows() as $C740da31596f24ef) {
$a85e1b7d42c346a0[gethostbyname($C740da31596f24ef["ip"])] = array("password" => $C740da31596f24ef["password"], "push" => boolval($C740da31596f24ef["push"]), "pull" => boolval($C740da31596f24ef["pull"]));
c6da51062856491f:
}
c0001e69027793ee:
return $a85e1b7d42c346a0;
}
public static function aEbd9e41165629f6($F26087d31c2bbe4d, $Aa8c918a2a91966f = array(), $E379394c7b1a273f = "movie")
{
goto b455e19ac75a1bb9;
cad69c1ed4589087:
return in_array(self::$db->get_col(), $Aa8c918a2a91966f);
d66c0e5e6a3e21d5:
goto ff8bcf65288739ac;
Ff81723f449d2102:
$bbc84f53c534450d = igbinary_unserialize(file_get_contents(SERIES_TMP_PATH . "series_map"));
goto b972c7378639bbe0;
d057b6c2430067bd:
return in_array($F26087d31c2bbe4d, $Aa8c918a2a91966f);
ba3ff96908c226af:
return false;
goto C811c446941c9966;
b455e19ac75a1bb9:
if ($E379394c7b1a273f == "movie") {
goto Cfffa5ec54aead80;
}
if (!($E379394c7b1a273f == "series")) {
goto dca2845a726445f4;
}
if (self::$rCached) {
goto Ff81723f449d2102;
}
self::$db->query("SELECT series_id FROM `streams_episodes` WHERE `stream_id` = ? LIMIT 1", $F26087d31c2bbe4d);
if (!(self::$db->num_rows() > 0)) {
goto d66c0e5e6a3e21d5;
}
goto cad69c1ed4589087;
b972c7378639bbe0:
return in_array($bbc84f53c534450d[$F26087d31c2bbe4d], $Aa8c918a2a91966f);
ff8bcf65288739ac:
dca2845a726445f4:
goto ba3ff96908c226af;
Cfffa5ec54aead80:
goto d057b6c2430067bd;
C811c446941c9966:
}
public static function D7Ca435Ac70e9a78($D78ff1d0edade5eb = null, $a71afc14d6cd090d = null, $d5249dad8e8411b7 = null, $f741fb10659d3472 = false, $E7654bf2f4eff2fe = false, $c59ec257c284c894 = '')
{
goto Fb5ee7c55295c96c;
C64d1d27550c8cee:
self::$db->query("SELECT `access_output_id`, `output_key` FROM `output_formats`;");
foreach (self::$db->get_rows() as $C740da31596f24ef) {
if (!in_array(intval($C740da31596f24ef["access_output_id"]), $D4253f9520627819["allowed_outputs"])) {
goto Cb8735b79306ef34;
}
$D4253f9520627819["output_formats"][] = $C740da31596f24ef["output_key"];
Cb8735b79306ef34:
D60a21369b8eedef:
}
Fa16effb29aab1e0:
goto fce8f84d732cc153;
fb48a5b1873cc491:
goto fb5ceb5cab4c2a34;
Ef53ab4a5529ae3f:
$D4253f9520627819["allowed_ips"] = @array_filter(array_map("trim", json_decode($D4253f9520627819["allowed_ips"], true)));
$D4253f9520627819["allowed_ua"] = @array_filter(array_map("trim", json_decode($D4253f9520627819["allowed_ua"], true)));
$D4253f9520627819["allowed_outputs"] = array_map("intval", json_decode($D4253f9520627819["allowed_outputs"], True));
$D4253f9520627819["output_formats"] = array();
if (self::$rCached) {
goto fb48a5b1873cc491;
}
goto C64d1d27550c8cee;
C9cdd2aca27b72f2:
a04c7d7f8c9b03a7:
self::Cf592c234Dcd0b19("isp/" . $D4253f9520627819["id"], json_encode(array($D4253f9520627819["con_isp_name"], $D4253f9520627819["isp_asn"])));
C7d441299c089b32:
a666f9fce5957fcf:
e86705e57167b6d1:
goto ae0f361b5076ab88;
F3b852bf00be382b:
Edae74f59a1c040d:
f842fe8176343c9d:
E56a47992a59d124:
if (!(!empty($D4253f9520627819["con_isp_name"]) && self::$rSettings["enable_isp_lock"] == 1 && $D4253f9520627819["is_stalker"] == 0 && $D4253f9520627819["is_isplock"] == 1 && !empty($D4253f9520627819["isp_desc"]) && strtolower($D4253f9520627819["con_isp_name"]) != strtolower($D4253f9520627819["isp_desc"]))) {
goto Cf5a5565f1242098;
}
$D4253f9520627819["isp_violate"] = 1;
goto B8e148a9bb14f5df;
ae0f361b5076ab88:
if (!$f741fb10659d3472) {
goto F6634a6801c1e5c2;
}
$e3f5a327db5b3930 = $c07a93bf577a961d = $d04121afcfd82dc3 = $A38b42a281e3c3cf = $B2fdaed180cd0049 = $b58b71142a808858 = array();
foreach ($D4253f9520627819["bouquet"] as $C3c8913edb801c35) {
goto B12d4c139249022a;
B9796bec3ebced7e:
Ab4b99c33d7c91bf:
goto B0310cdf29386722;
C8f457edd5f66782:
$c07a93bf577a961d = array_merge($c07a93bf577a961d, self::$rBouquets[$C3c8913edb801c35]["movies"]);
d9860f4bfd6ceb2f:
if (!isset(self::$rBouquets[$C3c8913edb801c35]["radios"])) {
goto d1b69de9a834b55a;
}
$d04121afcfd82dc3 = array_merge($d04121afcfd82dc3, self::$rBouquets[$C3c8913edb801c35]["radios"]);
d1b69de9a834b55a:
goto B9796bec3ebced7e;
B12d4c139249022a:
if (!isset(self::$rBouquets[$C3c8913edb801c35]["streams"])) {
goto D6c70dd2b4f1df6e;
}
$B2fdaed180cd0049 = array_merge($B2fdaed180cd0049, self::$rBouquets[$C3c8913edb801c35]["streams"]);
D6c70dd2b4f1df6e:
if (!isset(self::$rBouquets[$C3c8913edb801c35]["series"])) {
goto eb12de89b182212e;
}
$b58b71142a808858 = array_merge($b58b71142a808858, self::$rBouquets[$C3c8913edb801c35]["series"]);
goto aef03f9ce80b9885;
aef03f9ce80b9885:
eb12de89b182212e:
if (!isset(self::$rBouquets[$C3c8913edb801c35]["channels"])) {
goto d56246757eee0b9f;
}
$e3f5a327db5b3930 = array_merge($e3f5a327db5b3930, self::$rBouquets[$C3c8913edb801c35]["channels"]);
d56246757eee0b9f:
if (!isset(self::$rBouquets[$C3c8913edb801c35]["movies"])) {
goto d9860f4bfd6ceb2f;
}
goto C8f457edd5f66782;
B0310cdf29386722:
}
D2dbf7099ca400db:
$D4253f9520627819["channel_ids"] = array_map("intval", array_unique($B2fdaed180cd0049));
goto b8ff39224f9fb302;
B8e148a9bb14f5df:
Cf5a5565f1242098:
if (!($D4253f9520627819["isp_violate"] == 0 && strtolower($D4253f9520627819["con_isp_name"]) != strtolower($D4253f9520627819["isp_desc"]))) {
goto a666f9fce5957fcf;
}
if (self::$rCached) {
goto a04c7d7f8c9b03a7;
}
self::$db->query("UPDATE `lines` SET `isp_desc` = ?, `as_number` = ? WHERE `id` = ?", $D4253f9520627819["con_isp_name"], $D4253f9520627819["isp_asn"], $D4253f9520627819["id"]);
goto C7d441299c089b32;
goto C9cdd2aca27b72f2;
F304a8fa926322a2:
return false;
be70196dbfef7e7a:
a6f10760ad2f56a7:
goto Bc9402cca0ac9b0a;
B1ba90500c440c68:
goto f30cd199c7952e07;
b698a8bf5b572c91:
return $D4253f9520627819;
a67b5550cd87a736:
return false;
goto d063bbf7f9579adc;
cc3974a9d60b8443:
$D78ff1d0edade5eb = intval(file_get_contents(LINES_TMP_PATH . "line_t_" . strtolower($a71afc14d6cd090d)));
goto D7e8229b796a80e2;
d3226ec6759650ac:
$D78ff1d0edade5eb = intval(file_get_contents(LINES_TMP_PATH . "line_t_" . $a71afc14d6cd090d));
D7e8229b796a80e2:
goto d5cab7e78b7fc206;
B0b4e604ccadd232:
return false;
goto e5d929d91ebda32e;
Bb2f558397b2588d:
self::$db->query("SELECT `lines`.*, `mag_devices`.`token` AS `mag_token` FROM `lines` LEFT JOIN `mag_devices` ON `mag_devices`.`user_id` = `lines`.`id` WHERE `id` = ?", $D78ff1d0edade5eb);
e5d929d91ebda32e:
goto f0f3a1ad8d61a875;
fc6137985d9c5749:
b22ff609b3f507da:
goto E2bb9b5c8f5971d5;
fe9c409c292591b2:
if (empty($d5249dad8e8411b7) && empty($D78ff1d0edade5eb) && strlen($a71afc14d6cd090d) == 32) {
goto fca1b40d10549305;
}
if (!empty($a71afc14d6cd090d) && !empty($d5249dad8e8411b7)) {
goto a92dceb9385e44a7;
}
goto B22649a9c23bc296;
d3bbec6b9ecc89a4:
$C150dcc8bd89c268 = array();
$a0ab7ba3516bce7d = igbinary_unserialize(file_get_contents(CACHE_TMP_PATH . "category_map"));
foreach ($D4253f9520627819["bouquet"] as $C3c8913edb801c35) {
$C150dcc8bd89c268 = array_merge($C150dcc8bd89c268, $a0ab7ba3516bce7d[$C3c8913edb801c35] ?: array());
f4bc2136a0bad37c:
}
A823d3489cd3448e:
$D4253f9520627819["category_ids"] = array_values(array_unique($C150dcc8bd89c268));
goto b698a8bf5b572c91;
D2643e06412ab1bb:
if (!(self::$rSettings["county_override_1st"] == 1 && empty($D4253f9520627819["forced_country"]) && !empty($c59ec257c284c894) && $D4253f9520627819["max_connections"] == 1)) {
goto D0e6b7423484d2e3;
}
$D4253f9520627819["forced_country"] = self::b74F652C92cEc688($c59ec257c284c894)["registered_country"]["iso_code"];
if (self::$rCached) {
goto cfac87a74addc2b1;
}
self::$db->query("UPDATE `lines` SET `forced_country` = ? WHERE `id` = ?", $D4253f9520627819["forced_country"], $D4253f9520627819["id"]);
goto f6ba44f5516b80f9;
goto B12e85c6d86c3bb1;
F06ecfef8f046cb5:
$D4253f9520627819["isp_is_server"] = 0;
if (!(self::$rSettings["show_isps"] == 1 && !empty($c59ec257c284c894))) {
goto e86705e57167b6d1;
}
$da7f3c43bffc92dd = self::ee2D851924a79E53($c59ec257c284c894);
if (!is_array($da7f3c43bffc92dd)) {
goto E56a47992a59d124;
}
if (empty($da7f3c43bffc92dd["isp"])) {
goto f842fe8176343c9d;
}
goto E471e3b3326bf6f2;
fb5ceb5cab4c2a34:
foreach (igbinary_unserialize(file_get_contents(CACHE_TMP_PATH . "output_formats")) as $C740da31596f24ef) {
if (!in_array(intval($C740da31596f24ef["access_output_id"]), $D4253f9520627819["allowed_outputs"])) {
goto Afc3785086c00489;
}
$D4253f9520627819["output_formats"][] = $C740da31596f24ef["output_key"];
Afc3785086c00489:
dcc9dd8860573f3f:
}
A9a1d2fbe09f652b:
fce8f84d732cc153:
$D4253f9520627819["con_isp_name"] = null;
$D4253f9520627819["isp_violate"] = 0;
goto F06ecfef8f046cb5;
Cdf0689c0686e48c:
if (!$D4253f9520627819) {
goto a67b5550cd87a736;
}
if (!self::$rCached) {
goto D451a73e264c0035;
}
if (empty($d5249dad8e8411b7) && empty($D78ff1d0edade5eb) && strlen($a71afc14d6cd090d) == 32) {
goto B1ba90500c440c68;
}
if (!(!empty($a71afc14d6cd090d) && !empty($d5249dad8e8411b7))) {
goto a6f10760ad2f56a7;
}
if (!($a71afc14d6cd090d != $D4253f9520627819["username"] or $d5249dad8e8411b7 != $D4253f9520627819["password"])) {
goto be70196dbfef7e7a;
}
goto F304a8fa926322a2;
B12e85c6d86c3bb1:
cfac87a74addc2b1:
self::Cf592c234dcd0b19("forced_country/" . $D4253f9520627819["id"], $D4253f9520627819["forced_country"]);
f6ba44f5516b80f9:
D0e6b7423484d2e3:
$D4253f9520627819["bouquet"] = json_decode($D4253f9520627819["bouquet"], true);
goto Ef53ab4a5529ae3f;
B22649a9c23bc296:
if (!empty($D78ff1d0edade5eb)) {
goto Eb339a4186696b3c;
}
return false;
Eb339a4186696b3c:
goto A45780552b0f3a4a;
a92dceb9385e44a7:
goto fff9276f5106c746;
E471e3b3326bf6f2:
$D4253f9520627819["con_isp_name"] = $da7f3c43bffc92dd["isp"];
$D4253f9520627819["isp_asn"] = $da7f3c43bffc92dd["autonomous_system_number"];
$D4253f9520627819["isp_violate"] = self::e38AfbCF35978bE3($D4253f9520627819["con_isp_name"]);
if (!(self::$rSettings["block_svp"] == 1)) {
goto Edae74f59a1c040d;
}
$D4253f9520627819["isp_is_server"] = intval(self::Ace0eacBDE53512c($D4253f9520627819["isp_asn"]));
goto F3b852bf00be382b;
d5cab7e78b7fc206:
e52fbe27b45cbea6:
if (!$D78ff1d0edade5eb) {
goto e3f4e42a6fc85e04;
}
$D4253f9520627819 = igbinary_unserialize(file_get_contents(LINES_TMP_PATH . "line_i_" . $D78ff1d0edade5eb));
e3f4e42a6fc85e04:
E2bb9b5c8f5971d5:
goto Cdf0689c0686e48c;
Fb5ee7c55295c96c:
$D4253f9520627819 = null;
if (self::$rCached) {
goto fe9c409c292591b2;
}
if (empty($d5249dad8e8411b7) && empty($D78ff1d0edade5eb) && strlen($a71afc14d6cd090d) == 32) {
goto F8ebd77a0059ebda;
}
if (!empty($a71afc14d6cd090d) && !empty($d5249dad8e8411b7)) {
goto C7b6e42c1ad69e7c;
}
if (!empty($D78ff1d0edade5eb)) {
goto Bb2f558397b2588d;
}
goto B0b4e604ccadd232;
A61314f6b9c90578:
F8ebd77a0059ebda:
self::$db->query("SELECT * FROM `lines` WHERE `is_mag` = 0 AND `is_e2` = 0 AND `access_token` = ? AND LENGTH(`access_token`) = 32", $a71afc14d6cd090d);
Db7d5b37f532b99f:
if (!(self::$db->num_rows() > 0)) {
goto b22ff609b3f507da;
}
$D4253f9520627819 = self::$db->get_row();
goto fc6137985d9c5749;
Da89b4d2f0b337e2:
a0899de441b14cdb:
A45780552b0f3a4a:
goto e52fbe27b45cbea6;
fca1b40d10549305:
if (self::$rSettings["case_sensitive_line"]) {
goto d3226ec6759650ac;
}
goto cc3974a9d60b8443;
f30cd199c7952e07:
if (!($a71afc14d6cd090d != $D4253f9520627819["access_token"])) {
goto F96648af1f8dfe47;
}
return false;
F96648af1f8dfe47:
Bc9402cca0ac9b0a:
D451a73e264c0035:
goto D2643e06412ab1bb;
b8ff39224f9fb302:
$D4253f9520627819["series_ids"] = array_map("intval", array_unique($b58b71142a808858));
$D4253f9520627819["vod_ids"] = array_map("intval", array_unique($c07a93bf577a961d));
$D4253f9520627819["live_ids"] = array_map("intval", array_unique($e3f5a327db5b3930));
$D4253f9520627819["radio_ids"] = array_map("intval", array_unique($d04121afcfd82dc3));
F6634a6801c1e5c2:
goto d3bbec6b9ecc89a4;
fff9276f5106c746:
if (self::$rSettings["case_sensitive_line"]) {
goto d2d286803a381dad;
}
$D78ff1d0edade5eb = intval(file_get_contents(LINES_TMP_PATH . "line_c_" . strtolower($a71afc14d6cd090d) . "_" . strtolower($d5249dad8e8411b7)));
goto a0899de441b14cdb;
d2d286803a381dad:
$D78ff1d0edade5eb = intval(file_get_contents(LINES_TMP_PATH . "line_c_" . $a71afc14d6cd090d . "_" . $d5249dad8e8411b7));
goto Da89b4d2f0b337e2;
f0f3a1ad8d61a875:
goto fb80ad22585c2b31;
C7b6e42c1ad69e7c:
self::$db->query("SELECT `lines`.*, `mag_devices`.`token` AS `mag_token` FROM `lines` LEFT JOIN `mag_devices` ON `mag_devices`.`user_id` = `lines`.`id` WHERE `username` = ? AND `password` = ? LIMIT 1", $a71afc14d6cd090d, $d5249dad8e8411b7);
fb80ad22585c2b31:
goto Db7d5b37f532b99f;
goto A61314f6b9c90578;
d063bbf7f9579adc:
}
public static function cF592C234DCd0B19($D3fa098be3f297cd, $a27e64cc6ce01033)
{
file_put_contents(SIGNALS_TMP_PATH . "cache_" . md5($D3fa098be3f297cd), json_encode(array($D3fa098be3f297cd, $a27e64cc6ce01033)));
}
public static function a7bE375c7E1508D7($Dca433951d41a5c8, $F029d0a6c29fd5a2, $F26087d31c2bbe4d, $F9452a7efafa1aba, $c59ec257c284c894 = '', $D46306ed3d96e171 = '', $E18c40e895ee55c2 = '', $B68ac2238b156add = 0)
{
goto e7c93d00c48b4eae;
Ed139e2e30136187:
foreach ($f16991461acd03bf as $D3fa098be3f297cd) {
$B59c127fecf35c15 = hash_hmac("sha256", "{$F26087d31c2bbe4d}##{$F9452a7efafa1aba}##{$F029d0a6c29fd5a2}##{$D46306ed3d96e171}##{$E18c40e895ee55c2}##{$B68ac2238b156add}", Xui\Functions::decrypt($D3fa098be3f297cd["key"], OPENSSL_EXTRA));
if (!(md5($B59c127fecf35c15) == md5($Dca433951d41a5c8))) {
goto D9bd1e20cef8e4b8;
}
$D5e1c8f29b0bfb9c = $D3fa098be3f297cd["id"];
goto d899b13d54a50f4a;
D9bd1e20cef8e4b8:
d459a06cddd74220:
}
d899b13d54a50f4a:
return $D5e1c8f29b0bfb9c;
goto Dfe9c21dc227ea30;
d45869878aca8130:
$D5e1c8f29b0bfb9c = null;
if (self::$rCached) {
goto f1f628c1d05dcc7a;
}
$f16991461acd03bf = array();
self::$db->query("SELECT `id`, `key` FROM `hmac_keys` WHERE `enabled` = 1;");
foreach (self::$db->get_rows() as $D3fa098be3f297cd) {
$f16991461acd03bf[] = $D3fa098be3f297cd;
ffb6867245bcc5c2:
}
goto a97ca9407a1ab3e7;
e7c93d00c48b4eae:
if (!(strlen($c59ec257c284c894) > 0 && strlen($D46306ed3d96e171) > 0)) {
goto a5f2d1d5ac31fe10;
}
if (!($c59ec257c284c894 != $D46306ed3d96e171)) {
goto C067bffbd5789150;
}
return null;
C067bffbd5789150:
a5f2d1d5ac31fe10:
goto d45869878aca8130;
a97ca9407a1ab3e7:
B16eba9065196ba0:
goto da58694c9389ab4f;
f1f628c1d05dcc7a:
$f16991461acd03bf = igbinary_unserialize(file_get_contents(CACHE_TMP_PATH . "hmac_keys"));
da58694c9389ab4f:
goto Ed139e2e30136187;
Dfe9c21dc227ea30:
}
public static function EA6c9a31F15A7B61($F26087d31c2bbe4d, $D78ff1d0edade5eb, $fa7da6c202358e0c, $c59ec257c284c894, $a27e64cc6ce01033 = '', $f158ea34ade8ece4 = false)
{
if (!(self::$rSettings["client_logs_save"] == 0 && !$f158ea34ade8ece4)) {
goto Ed9340b4e2caf408;
}
return;
Ed9340b4e2caf408:
$b3374866087774a1 = !empty($_SERVER["HTTP_USER_AGENT"]) ? htmlentities($_SERVER["HTTP_USER_AGENT"]) : '';
$a27e64cc6ce01033 = array("user_id" => $D78ff1d0edade5eb, "stream_id" => $F26087d31c2bbe4d, "action" => $fa7da6c202358e0c, "query_string" => htmlentities($_SERVER["QUERY_STRING"]), "user_agent" => $b3374866087774a1, "user_ip" => $c59ec257c284c894, "time" => time(), "extra_data" => $a27e64cc6ce01033);
file_put_contents(LOGS_TMP_PATH . "client_request.log", base64_encode(json_encode($a27e64cc6ce01033)) . "
", FILE_APPEND);
}
public static function e416910Ca4da4695($b3374866087774a1, $a85e1b7d42c346a0 = false)
{
$b3374866087774a1 = strtolower($b3374866087774a1);
foreach (self::$rBlockedUA as $D3fa098be3f297cd => $cda44bf16c8f250e) {
goto B52282798e4956d5;
aaf41f0a419e56ee:
F2351782fe0da38f:
if (!($cda44bf16c8f250e["blocked_ua"] == $b3374866087774a1)) {
goto f42d0fa1f66164ab;
}
return true;
f42d0fa1f66164ab:
Ce13d31226da3708:
goto A61c143f81ab0eb1;
B52282798e4956d5:
if ($cda44bf16c8f250e["exact_match"] == 1) {
goto F2351782fe0da38f;
}
if (!stristr($b3374866087774a1, $cda44bf16c8f250e["blocked_ua"])) {
goto Ab00b21292f3915d;
}
return true;
Ab00b21292f3915d:
goto Ce13d31226da3708;
goto aaf41f0a419e56ee;
A61c143f81ab0eb1:
f6a3c24d7c21ce04:
goto c9a4267755f83558;
c9a4267755f83558:
}
be54eefda1bcd3c4:
return false;
}
public static function EA4a2063e98bAEF8($f9b07d216a168dcc, $F26087d31c2bbe4d, $acd3b41bac740313 = PHP_BIN)
{
goto B9b774145df7ad5c;
B9b774145df7ad5c:
if (!empty($f9b07d216a168dcc)) {
goto cc461449f51a600b;
}
return false;
cc461449f51a600b:
clearstatcache(true);
if (!(file_exists("/proc/" . $f9b07d216a168dcc) && is_readable("/proc/" . $f9b07d216a168dcc . "/exe") && strpos(basename(readlink("/proc/" . $f9b07d216a168dcc . "/exe")), basename($acd3b41bac740313)) === 0)) {
goto d7eb4bedb8747188;
}
goto ad40caf6b0e90a0e;
e2914a31a410f325:
return false;
goto D57b2fa64097ea17;
ad40caf6b0e90a0e:
$cf1c389bda3e30fd = trim(file_get_contents("/proc/{$f9b07d216a168dcc}/cmdline"));
if (!($cf1c389bda3e30fd == "XUI[{$F26087d31c2bbe4d}]" or $cf1c389bda3e30fd == "XUIProxy[{$F26087d31c2bbe4d}]")) {
goto A0135949bd521225;
}
return true;
A0135949bd521225:
d7eb4bedb8747188:
goto e2914a31a410f325;
D57b2fa64097ea17:
}
public static function f74FA4748b081619($f9b07d216a168dcc, $F26087d31c2bbe4d)
{
goto Cc1b46e5b973da4d;
C6ba7345b8b6a5cf:
if (strpos(basename(readlink("/proc/" . $f9b07d216a168dcc . "/exe")), "ffmpeg") === 0) {
goto d22076dab3e38f86;
}
if (!(strpos(basename(readlink("/proc/" . $f9b07d216a168dcc . "/exe")), "php") === 0)) {
goto f3ec393470d511dc;
}
return true;
f3ec393470d511dc:
goto F465fa20ff4f272c;
goto F3581279e38f6430;
Cc1b46e5b973da4d:
if (!empty($f9b07d216a168dcc)) {
goto a04323bb51e3d931;
}
return false;
a04323bb51e3d931:
clearstatcache(true);
if (!(file_exists("/proc/" . $f9b07d216a168dcc) && is_readable("/proc/" . $f9b07d216a168dcc . "/exe"))) {
goto A50d3cf79c9bcbdc;
}
goto C6ba7345b8b6a5cf;
A8eb5bc14a714c9a:
F465fa20ff4f272c:
A50d3cf79c9bcbdc:
return false;
goto f5837d810bbbc07a;
F3581279e38f6430:
d22076dab3e38f86:
$cf1c389bda3e30fd = trim(file_get_contents("/proc/{$f9b07d216a168dcc}/cmdline"));
if (!(stristr($cf1c389bda3e30fd, "/{$F26087d31c2bbe4d}_.m3u8") or stristr($cf1c389bda3e30fd, "/{$F26087d31c2bbe4d}_%d.ts"))) {
goto b57bd61455021f68;
}
return true;
b57bd61455021f68:
goto A8eb5bc14a714c9a;
f5837d810bbbc07a:
}
public static function dD714ee89c59Fbf2($f9b07d216a168dcc, $acd3b41bac740313)
{
if (!empty($f9b07d216a168dcc)) {
goto d1afd668f04379fb;
}
return false;
d1afd668f04379fb:
clearstatcache(true);
if (!(file_exists("/proc/" . $f9b07d216a168dcc) && is_readable("/proc/" . $f9b07d216a168dcc . "/exe") && strpos(basename(readlink("/proc/" . $f9b07d216a168dcc . "/exe")), basename($acd3b41bac740313)) === 0)) {
goto Edc7cc924cc6b91b;
}
return true;
Edc7cc924cc6b91b:
return false;
}
public static function dAC4d82F05378662($F26087d31c2bbe4d, $d81f27c553f73ff4 = 0)
{
shell_exec(PHP_BIN . " " . CLI_PATH . "monitor.php " . intval($F26087d31c2bbe4d) . " " . intval($d81f27c553f73ff4) . " >/dev/null 2>/dev/null &");
return true;
}
public static function startProxy($F26087d31c2bbe4d)
{
shell_exec(PHP_BIN . " " . CLI_PATH . "proxy.php " . intval($F26087d31c2bbe4d) . " >/dev/null 2>/dev/null &");
return true;
}
public static function bc69aFfE50D85273($add193137cabeea7, $E8601dd191bcdbba, $A387578f69b4c724 = "h264", $a85e1b7d42c346a0 = false)
{
goto Fb9ed500635ae487;
f5406ca20398c15e:
goto d9e261e6a8a2d103;
f914e5bb1eae0ca5:
$f433193a3297ffde = SIGNALS_TMP_PATH . $add193137cabeea7["activity_id"] . "_" . $E8601dd191bcdbba;
shell_exec(self::$rFFMPEG_CPU . " -copyts -vsync 0 -nostats -nostdin -hide_banner -loglevel quiet -y -i " . escapeshellarg(STREAMS_PATH . $E8601dd191bcdbba) . " -filter_complex "drawtext=fontfile=" . FFMPEG_FONT . ":text='" . escapeshellcmd($add193137cabeea7["message"]) . "':fontsize=" . escapeshellcmd($add193137cabeea7["font_size"]) . ":x=" . intval($b2db2d0561ace513) . ":y=" . intval($E2431f134bf1c17e) . ":fontcolor=" . escapeshellcmd($add193137cabeea7["font_color"]) . "" -map 0 -vcodec {$A387578f69b4c724} -preset ultrafast -acodec copy -scodec copy -mpegts_flags +initial_discontinuity -mpegts_copyts 1 -f mpegts " . escapeshellarg($f433193a3297ffde));
$a27e64cc6ce01033 = file_get_contents($f433193a3297ffde);
goto Eeb07cfa6dfebcd3;
F461292b9639227c:
$E2431f134bf1c17e = rand(110, 250);
e26f7edc5c07197b:
if ($a85e1b7d42c346a0) {
goto f914e5bb1eae0ca5;
}
passthru(self::$rFFMPEG_CPU . " -copyts -vsync 0 -nostats -nostdin -hide_banner -loglevel quiet -y -i " . escapeshellarg(STREAMS_PATH . $E8601dd191bcdbba) . " -filter_complex "drawtext=fontfile=" . FFMPEG_FONT . ":text='" . escapeshellcmd($add193137cabeea7["message"]) . "':fontsize=" . escapeshellcmd($add193137cabeea7["font_size"]) . ":x=" . intval($b2db2d0561ace513) . ":y=" . intval($E2431f134bf1c17e) . ":fontcolor=" . escapeshellcmd($add193137cabeea7["font_color"]) . "" -map 0 -vcodec {$A387578f69b4c724} -preset ultrafast -acodec copy -scodec copy -mpegts_flags +initial_discontinuity -mpegts_copyts 1 -f mpegts -");
return true;
goto f5406ca20398c15e;
Fb9ed500635ae487:
if (empty($add193137cabeea7["xy_offset"])) {
goto ba07faef11393aab;
}
list($b2db2d0561ace513, $E2431f134bf1c17e) = explode("x", $add193137cabeea7["xy_offset"]);
goto e26f7edc5c07197b;
ba07faef11393aab:
$b2db2d0561ace513 = rand(150, 380);
goto F461292b9639227c;
Eeb07cfa6dfebcd3:
unlink($f433193a3297ffde);
return $a27e64cc6ce01033;
d9e261e6a8a2d103:
goto c6f09fcec4ae3407;
c6f09fcec4ae3407:
}
public static function a9Bc416FA6FA55c3()
{
return $_SERVER["REMOTE_ADDR"];
}
public static function Ee2d851924A79E53($c59ec257c284c894)
{
goto a9fd41fa507d6839;
c6a61f3a707bf4da:
Eba6dd9cb5aa18d9:
c8d9faf01145bc39:
return $c7488e8420e934e2;
goto b51b740693b262f6;
a9fd41fa507d6839:
if (!empty($c59ec257c284c894)) {
goto Bd6f7b733df4e1f7;
}
return false;
Bd6f7b733df4e1f7:
$c7488e8420e934e2 = file_exists(CONS_TMP_PATH . md5($c59ec257c284c894) . "_isp") ? json_decode(file_get_contents(CONS_TMP_PATH . md5($c59ec257c284c894) . "_isp"), true) : null;
if (is_array($c7488e8420e934e2)) {
goto c8d9faf01145bc39;
}
goto d039a9437b4edb64;
d039a9437b4edb64:
$C4a76d9a69ca8231 = new Reader(GEOISP_BIN);
$c7488e8420e934e2 = $C4a76d9a69ca8231->get($c59ec257c284c894);
$C4a76d9a69ca8231->close();
if (!is_array($c7488e8420e934e2)) {
goto Eba6dd9cb5aa18d9;
}
file_put_contents(CONS_TMP_PATH . md5($c59ec257c284c894) . "_isp", json_encode($c7488e8420e934e2));
goto c6a61f3a707bf4da;
b51b740693b262f6:
}
public static function e38aFBCF35978be3($e11e06c11ab94fe2)
{
foreach (self::$rBlockedISP as $Fbe730b7a1211b54) {
if (!(strtolower($e11e06c11ab94fe2) == strtolower($Fbe730b7a1211b54["isp"]))) {
goto B1bd7ab6fad271f6;
}
return intval($Fbe730b7a1211b54["blocked"]);
B1bd7ab6fad271f6:
A3b5dabb2cf9a46c:
}
dcca87afa0c416e4:
return 0;
}
public static function ACE0EAcbDE53512c($Fcd691b0388768ab)
{
return in_array($Fcd691b0388768ab, self::$rBlockedServers);
}
public static function b74F652c92Cec688($c59ec257c284c894)
{
goto F2a9a497ac89cf8e;
f807f775b2e800ab:
Cd2a41c40432168c:
$C4a76d9a69ca8231 = new Reader(GEOLITE2_BIN);
$c7488e8420e934e2 = $C4a76d9a69ca8231->get($c59ec257c284c894);
$C4a76d9a69ca8231->close();
if (!$c7488e8420e934e2) {
goto acc91882cee4a385;
}
goto e960ad796275d94e;
e960ad796275d94e:
file_put_contents(CONS_TMP_PATH . md5($c59ec257c284c894) . "_geo2", json_encode($c7488e8420e934e2));
acc91882cee4a385:
return $c7488e8420e934e2;
goto c6c04d487fa47fa8;
F2a9a497ac89cf8e:
if (!empty($c59ec257c284c894)) {
goto Adeaa35d2e3e7de4;
}
return false;
Adeaa35d2e3e7de4:
if (!file_exists(CONS_TMP_PATH . md5($c59ec257c284c894) . "_geo2")) {
goto Cd2a41c40432168c;
}
return json_decode(file_get_contents(CONS_TMP_PATH . md5($c59ec257c284c894) . "_geo2"), true);
goto f807f775b2e800ab;
c6c04d487fa47fa8:
}
public static function b8f3DeF724810918($C700a2b357e5ed65, $e739adf85c8ac121 = null)
{
goto De5b3682e4c9af32;
De5b3682e4c9af32:
if (substr($C700a2b357e5ed65, 0, 2) == "s:") {
goto de4d8020c60444b1;
}
return $C700a2b357e5ed65;
goto C31d5eb1b49b00cd;
de4d8020c60444b1:
$B211d7401e6242f3 = explode(":", $C700a2b357e5ed65, 3);
goto D63daeff30ca3556;
D63daeff30ca3556:
$f4116b9928c8b494 = self::CA8708baE84a9148(intval($B211d7401e6242f3[1]), $e739adf85c8ac121);
if ($f4116b9928c8b494) {
goto d43b6abfccc2d9ce;
}
return '';
goto e05fd010d948e2e5;
d43b6abfccc2d9ce:
goto e553219e8787a31f;
e553219e8787a31f:
return $f4116b9928c8b494 . "images/" . basename($C700a2b357e5ed65);
e05fd010d948e2e5:
C31d5eb1b49b00cd:
goto d3b4829790b5c761;
d3b4829790b5c761:
}
public static function cae8387edC1BF201()
{
$b9e33ce83162666c = 0;
exec("ps -fp $(pgrep -u xui)", $f433193a3297ffde, $E072e4fd80a065b3);
foreach ($f433193a3297ffde as $Df1e7eea7d843145) {
$B211d7401e6242f3 = explode(" ", preg_replace("!\s+!", " ", trim($Df1e7eea7d843145)));
if (!($B211d7401e6242f3[8] == "nginx:" && $B211d7401e6242f3[9] == "master")) {
goto Bce205580b16e74b;
}
$b9e33ce83162666c++;
Bce205580b16e74b:
D288a73a04f9eaa2:
}
cc6a946281636dc3:
return $b9e33ce83162666c > 0;
}
public static function ca8708BaE84a9148($d58b4f8653a391d8 = null, $e739adf85c8ac121 = null)
{
goto Ef5011f9d465daac;
D07c72e759dc95e8:
if (!(self::$rServers[$d58b4f8653a391d8]["server_type"] == 1 && $a70eaa0ab42179dd && self::$rServers[$a70eaa0ab42179dd]["is_main"] == 0)) {
goto Cffa8d52d4900712;
}
$f4116b9928c8b494 .= md5($d58b4f8653a391d8 . "_" . $a70eaa0ab42179dd . "_" . OPENSSL_EXTRA) . "/";
Cffa8d52d4900712:
return $f4116b9928c8b494;
D52d933538d98aef:
goto F537bf155f10e9ea;
ae70fb866d6377c8:
F3196ddce8ed5126:
if (!(count($Da9a40906d3d1c5f) == 0)) {
goto Ff4c512558c73ff4;
}
return '';
Ff4c512558c73ff4:
$a70eaa0ab42179dd = $d58b4f8653a391d8;
goto F7525bbb41d7dee0;
Ef5011f9d465daac:
$a70eaa0ab42179dd = null;
if (isset($d58b4f8653a391d8)) {
goto E578c2b526d865a4;
}
$d58b4f8653a391d8 = SERVER_ID;
E578c2b526d865a4:
if ($e739adf85c8ac121) {
goto A577ec33a42bde40;
}
goto E6537d230395e88f;
E6537d230395e88f:
if (isset($_SERVER["SERVER_PORT"]) && self::$rSettings["keep_protocol"]) {
goto ef6676146a8be84f;
}
$C6033ec178efa2ae = self::$rServers[$d58b4f8653a391d8]["server_protocol"];
goto c5f288de5dd75996;
ef6676146a8be84f:
$C6033ec178efa2ae = !empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] !== "off" || $_SERVER["SERVER_PORT"] == 443 ? "https" : "http";
goto c201e5322fa8febd;
c7db479c169520e3:
goto E9074c6559dd3277;
Edfda9168863572c:
$Caecf2bcd39a1efe = $baba170ab02ca0bd;
E9074c6559dd3277:
$f4116b9928c8b494 = $C6033ec178efa2ae . "://" . $Caecf2bcd39a1efe . ":" . self::$rServers[$d58b4f8653a391d8][$C6033ec178efa2ae . "_broadcast_port"] . "/";
goto D07c72e759dc95e8;
F7525bbb41d7dee0:
$d58b4f8653a391d8 = $Da9a40906d3d1c5f[array_rand($Da9a40906d3d1c5f)];
f190ebb606f65e48:
$baba170ab02ca0bd = defined("host") ? HOST : null;
if ($baba170ab02ca0bd && in_array(strtolower($baba170ab02ca0bd), array_map("strtolower", self::$rServers[$d58b4f8653a391d8]["domains"]["urls"]))) {
goto Edfda9168863572c;
}
$Caecf2bcd39a1efe = empty(self::$rServers[$d58b4f8653a391d8]["domain_name"]) ? self::$rServers[$d58b4f8653a391d8]["server_ip"] : explode(",", self::$rServers[$d58b4f8653a391d8]["domain_name"])[0];
goto c7db479c169520e3;
F537bf155f10e9ea:
return null;
goto Ef2a8d53be6b9b7f;
c201e5322fa8febd:
c5f288de5dd75996:
goto D260b522e571453b;
A577ec33a42bde40:
$C6033ec178efa2ae = $e739adf85c8ac121;
D260b522e571453b:
goto a02e503448f7ff97;
a02e503448f7ff97:
if (!self::$rServers[$d58b4f8653a391d8]) {
goto D52d933538d98aef;
}
if (!self::$rServers[$d58b4f8653a391d8]["enable_proxy"]) {
goto f190ebb606f65e48;
}
$Da9a40906d3d1c5f = array_keys(self::getProxies($d58b4f8653a391d8));
if (!(count($Da9a40906d3d1c5f) == 0)) {
goto F3196ddce8ed5126;
}
$Da9a40906d3d1c5f = array_keys(self::getProxies($d58b4f8653a391d8, false));
goto ae70fb866d6377c8;
Ef2a8d53be6b9b7f:
}
public static function c7BABcBEc16C28ED($E379394c7b1a273f = null)
{
$a85e1b7d42c346a0 = array();
foreach (self::$rCategories as $A1925ae53e9307eb) {
if (!($A1925ae53e9307eb["category_type"] == $E379394c7b1a273f or !$E379394c7b1a273f)) {
goto a79fb3696aff2694;
}
$a85e1b7d42c346a0[] = $A1925ae53e9307eb;
a79fb3696aff2694:
Ae15057ed6656297:
}
E8643a20008f5d30:
return $a85e1b7d42c346a0;
}
public static function a54586eadeA94ee6($Fcd691b0388768ab, $c59ec257c284c894)
{
if (!file_exists(CIDR_TMP_PATH . $Fcd691b0388768ab)) {
goto b563607591ceb5df;
}
$D25e7c9f6776261b = json_decode(file_get_contents(CIDR_TMP_PATH . $Fcd691b0388768ab), True);
foreach ($D25e7c9f6776261b as $Da967f0a787f6b51 => $a27e64cc6ce01033) {
if (!(ip2long($c59ec257c284c894) >= ip2long($a27e64cc6ce01033[1]) && ip2long($c59ec257c284c894) <= ip2long($a27e64cc6ce01033[2]))) {
goto e1abb9e218811f60;
}
return $a27e64cc6ce01033;
e1abb9e218811f60:
e4569fa0b4fefc19:
}
dce98e25519f8840:
b563607591ceb5df:
return null;
}
public static function getLLODSegments($F26087d31c2bbe4d, $bb62005ea7eb8380, $e1034511e63f0e9e = 1)
{
goto db2d5c711a6238ce;
ef11006d40524e4c:
A40c29f63193fe97:
if (!$b3f6223bb51e59ed) {
goto baa30a50910e4540;
}
$ed560e114da67dbd[$b3f6223bb51e59ed][] = $B1c1aa7e8b5b4849;
baa30a50910e4540:
d0043e67869edfbb:
goto d96668059aaed4b6;
Ebfc15a25d49a8b3:
$ed560e114da67dbd = array_slice($ed560e114da67dbd, count($ed560e114da67dbd) - $e1034511e63f0e9e, $e1034511e63f0e9e, true);
foreach ($ed560e114da67dbd as $ec35e63ebbf4ef26 => $Badf64d265e8e752) {
foreach ($Badf64d265e8e752 as $B1c1aa7e8b5b4849) {
$Bffc17a99eb14fd6[] = $F26087d31c2bbe4d . "_" . $B1c1aa7e8b5b4849 . ".ts";
c0b72f87b46def45:
}
Ac09061e336a0138:
B009818429a86ddb:
}
Aa34a3cef3c41d30:
f484b1971cadda53:
return !empty($Bffc17a99eb14fd6) ? $Bffc17a99eb14fd6 : null;
goto Ccba5dbafc4f0ab2;
a92e0428c97fdcf0:
if (!(count($b85ce31cd1118ad2[1]) > 0)) {
goto F89172e306f583c1;
}
$b3f6223bb51e59ed = null;
$Ea22c4a9ab5b2176 = 0;
e875addea130a245:
if (!($Ea22c4a9ab5b2176 < count($b85ce31cd1118ad2[1]))) {
goto d38813d02aa12e18;
}
goto Bdc8386393184dae;
d96668059aaed4b6:
$Ea22c4a9ab5b2176++;
goto e875addea130a245;
d38813d02aa12e18:
F89172e306f583c1:
Aed4182480f55d3f:
goto Ebfc15a25d49a8b3;
Bdc8386393184dae:
$bc2874292e0d9ece = $b85ce31cd1118ad2[1][$Ea22c4a9ab5b2176];
list($e154835c9fa166f7, $B1c1aa7e8b5b4849) = explode("_", $bc2874292e0d9ece);
if (empty($b85ce31cd1118ad2[2][$Ea22c4a9ab5b2176])) {
goto A40c29f63193fe97;
}
$ed560e114da67dbd[$B1c1aa7e8b5b4849] = array();
$b3f6223bb51e59ed = $B1c1aa7e8b5b4849;
goto ef11006d40524e4c;
db2d5c711a6238ce:
$e1034511e63f0e9e++;
$Bffc17a99eb14fd6 = $ed560e114da67dbd = array();
if (!file_exists($bb62005ea7eb8380)) {
goto f484b1971cadda53;
}
$c8d91fcd2309e48a = file_get_contents($bb62005ea7eb8380);
if (!preg_match_all("/(.*?).ts((#\w+)+|#?)/", $c8d91fcd2309e48a, $b85ce31cd1118ad2)) {
goto Aed4182480f55d3f;
}
goto a92e0428c97fdcf0;
Ccba5dbafc4f0ab2:
}
public static function d076F5A2cC104c49($bb62005ea7eb8380, $e1034511e63f0e9e = 0, $Ce2588e350bd2724 = 10)
{
goto be9fa46122407023;
c5f3af8b9736ae2a:
$cef7095c03f82513 = 1;
E0ac64421f5f3e1f:
return array_slice($b85ce31cd1118ad2[0], -$cef7095c03f82513);
B50169c14c76fdf5:
D55bb2d4a8249ffa:
goto b8468ec312cd6dcf;
b8468ec312cd6dcf:
C22d53b213713345:
return null;
goto b8db0dbc652c1fe5;
be9fa46122407023:
if (!file_exists($bb62005ea7eb8380)) {
goto C22d53b213713345;
}
$c8d91fcd2309e48a = file_get_contents($bb62005ea7eb8380);
if (!preg_match_all("/(.*?).ts/", $c8d91fcd2309e48a, $b85ce31cd1118ad2)) {
goto D55bb2d4a8249ffa;
}
if ($e1034511e63f0e9e > 0) {
goto cb247bb68e7afbb6;
}
if ($e1034511e63f0e9e == -1) {
goto d5ca1ef4c2a26bad;
}
goto a6b9e832af782b1d;
fb7179b35d8ed2bd:
C58802dddad2193f:
goto B50169c14c76fdf5;
cb247bb68e7afbb6:
$cef7095c03f82513 = intval($e1034511e63f0e9e / $Ce2588e350bd2724);
if ($cef7095c03f82513) {
goto E0ac64421f5f3e1f;
}
goto c5f3af8b9736ae2a;
a6b9e832af782b1d:
preg_match("/_(.*)\./", array_pop($b85ce31cd1118ad2[0]), $E415df512cb68430);
return $E415df512cb68430[1];
goto C58802dddad2193f;
d5ca1ef4c2a26bad:
return $b85ce31cd1118ad2[0];
goto fb7179b35d8ed2bd;
b8db0dbc652c1fe5:
}
public static function c0F542BDF7351C78($dc05e2bb97d4635d, $a71afc14d6cd090d, $d5249dad8e8411b7, $F26087d31c2bbe4d, $B08b62d9f7870287, $c59ec257c284c894, $B08e7d3cd339391a = null, $E18c40e895ee55c2 = '', $F2735dad02d30e84 = "h264", $Beb96c2a189d2e62 = 0, $d58b4f8653a391d8 = null, $b2a9243e8304033d = null)
{
goto a36d98c7e872bff6;
D36fea84f48bbd3d:
e843601356bb84a7:
if (!preg_match_all("/(.*?)\.ts/", $c8d91fcd2309e48a, $b85ce31cd1118ad2)) {
goto fe76868f870ac568;
}
foreach ($b85ce31cd1118ad2[0] as $dbc0f67b4f0fdee0) {
goto F50c05fd17ea7ac8;
e0dc46ff8b6b4cd4:
$c8d91fcd2309e48a = str_replace($dbc0f67b4f0fdee0, ($b2a9243e8304033d ? "/" . md5($b2a9243e8304033d . "_" . $d58b4f8653a391d8 . "_" . OPENSSL_EXTRA) : '') . "/hls/{$dbc0f67b4f0fdee0}?token={$ea5296071288c730}", $c8d91fcd2309e48a);
c33f01c5ff4ad2e4:
B265e2f32e6cc1f9:
goto Bafab3df6680ff7a;
f290b3bcc9751efa:
ea0868dbe0492582:
if (self::$rSettings["allow_cdn_access"]) {
goto a5fc690af9cab714;
}
$c8d91fcd2309e48a = str_replace($dbc0f67b4f0fdee0, ($b2a9243e8304033d ? "/" . md5($b2a9243e8304033d . "_" . $d58b4f8653a391d8 . "_" . OPENSSL_EXTRA) : '') . "/hls/{$ea5296071288c730}", $c8d91fcd2309e48a);
goto c33f01c5ff4ad2e4;
a5fc690af9cab714:
goto e0dc46ff8b6b4cd4;
F50c05fd17ea7ac8:
if ($B08e7d3cd339391a) {
goto Cf41dc04483537df;
}
$ea5296071288c730 = Xui\Functions::encrypt($a71afc14d6cd090d . "/" . $d5249dad8e8411b7 . "/" . $c59ec257c284c894 . "/" . $F26087d31c2bbe4d . "/" . $dbc0f67b4f0fdee0 . "/" . $B08b62d9f7870287 . "/" . SERVER_ID . "/" . $F2735dad02d30e84 . "/" . $Beb96c2a189d2e62, self::$rSettings["live_streaming_pass"], OPENSSL_EXTRA);
goto ea0868dbe0492582;
Cf41dc04483537df:
$ea5296071288c730 = Xui\Functions::encrypt("HMAC#" . $B08e7d3cd339391a . "/" . $E18c40e895ee55c2 . "/" . $c59ec257c284c894 . "/" . $F26087d31c2bbe4d . "/" . $dbc0f67b4f0fdee0 . "/" . $B08b62d9f7870287 . "/" . SERVER_ID . "/" . $F2735dad02d30e84 . "/" . $Beb96c2a189d2e62, self::$rSettings["live_streaming_pass"], OPENSSL_EXTRA);
goto f290b3bcc9751efa;
Bafab3df6680ff7a:
}
A7fd0551271fa216:
return $c8d91fcd2309e48a;
goto e606d69b36cb9783;
e606d69b36cb9783:
fe76868f870ac568:
ef190e7940667390:
return false;
goto C00d75c12b96ff98;
a36d98c7e872bff6:
if (!file_exists($dc05e2bb97d4635d)) {
goto ef190e7940667390;
}
$c8d91fcd2309e48a = file_get_contents($dc05e2bb97d4635d);
if (!(self::$rSettings["encrypt_hls"] && !$Beb96c2a189d2e62)) {
goto e843601356bb84a7;
}
$Ebd6fd2f4db95bcb = Xui\Functions::encrypt($c59ec257c284c894 . "/" . $F26087d31c2bbe4d, self::$rSettings["live_streaming_pass"], OPENSSL_EXTRA);
$c8d91fcd2309e48a = "#EXTM3U\xa#EXT-X-KEY:METHOD=AES-128,URI="" . ($b2a9243e8304033d ? "/" . md5($b2a9243e8304033d . "_" . $d58b4f8653a391d8 . "_" . OPENSSL_EXTRA) : '') . "/key/{$Ebd6fd2f4db95bcb}",IV=0x" . bin2hex(file_get_contents(STREAMS_PATH . $F26087d31c2bbe4d . "_.iv")) . "
" . substr($c8d91fcd2309e48a, 8, strlen($c8d91fcd2309e48a) - 8);
goto D36fea84f48bbd3d;
C00d75c12b96ff98:
}
public static function de9E9E0D836B5D86($D4253f9520627819, $B08e7d3cd339391a = false, $E18c40e895ee55c2 = '', $c59ec257c284c894 = null, $b3374866087774a1 = null)
{
goto a21204888c51c5f5;
a21204888c51c5f5:
if (!($D4253f9520627819["max_connections"] != 0)) {
goto a6e4d5a160c6a777;
}
if (!$B08e7d3cd339391a) {
goto f9233f5ddc451bc7;
}
self::D2985c63279EA4cD(null, $D4253f9520627819["max_connections"], $B08e7d3cd339391a, $E18c40e895ee55c2, $c59ec257c284c894, $b3374866087774a1);
goto e596f0aefd00669e;
f9233f5ddc451bc7:
goto d2ff45d47c059690;
d2ff45d47c059690:
if (empty($D4253f9520627819["pair_id"])) {
goto F9e3718bcf481a7e;
}
self::D2985c63279EA4cd($D4253f9520627819["pair_id"], $D4253f9520627819["max_connections"], null, '', $c59ec257c284c894, $b3374866087774a1);
F9e3718bcf481a7e:
self::D2985C63279ea4cd($D4253f9520627819["id"], $D4253f9520627819["max_connections"], null, '', $c59ec257c284c894, $b3374866087774a1);
e596f0aefd00669e:
goto f2fe220935634ae5;
f2fe220935634ae5:
a6e4d5a160c6a777:
goto Ddbdcde1a828f672;
Ddbdcde1a828f672:
}
public static function getBouquetMap($F26087d31c2bbe4d)
{
$B7c4b912a2afc994 = igbinary_unserialize(file_get_contents(CACHE_TMP_PATH . "bouquet_map"));
$a85e1b7d42c346a0 = $B7c4b912a2afc994[$F26087d31c2bbe4d] ?: array();
unset($B7c4b912a2afc994);
return $a85e1b7d42c346a0;
}
public static function AD41BF0664804fA8($F26087d31c2bbe4d)
{
goto Caffd0513255d6e8;
a92f62f3828922cc:
Bbd97114e4ea0290:
$f433193a3297ffde["bouquets"] = self::getBouquetMap($F26087d31c2bbe4d);
$f433193a3297ffde["info"] = $bb0071da5a239b0c;
$f433193a3297ffde["servers"] = $a8bb73cba48fb7f6;
D6b69b930364d3dd:
goto fe0c82004b9b8954;
fe0c82004b9b8954:
return !empty($f433193a3297ffde) ? $f433193a3297ffde : false;
goto a2a509cc092d214e;
Caffd0513255d6e8:
$f433193a3297ffde = array();
self::$db->query("SELECT * FROM `streams` t1 LEFT JOIN `streams_types` t2 ON t2.type_id = t1.type WHERE t1.`id` = ?", $F26087d31c2bbe4d);
if (!(self::$db->num_rows() > 0)) {
goto D6b69b930364d3dd;
}
$bb0071da5a239b0c = self::$db->get_row();
$a8bb73cba48fb7f6 = array();
goto b8068be1b986353b;
b8068be1b986353b:
if (!($bb0071da5a239b0c["direct_source"] == 0 or $bb0071da5a239b0c["direct_proxy"] == 1)) {
goto Bbd97114e4ea0290;
}
self::$db->query("SELECT * FROM `streams_servers` WHERE `stream_id` = ?", $F26087d31c2bbe4d);
if (!(self::$db->num_rows() > 0)) {
goto e0dfe5d4e9222968;
}
$a8bb73cba48fb7f6 = self::$db->get_rows(true, "server_id");
e0dfe5d4e9222968:
goto a92f62f3828922cc;
a2a509cc092d214e:
}
public static function cB50F783B960a4EF()
{
foreach (self::$rServers as $d58b4f8653a391d8 => $e81220b4451f37c9) {
if (!$e81220b4451f37c9["is_main"]) {
goto ef23147d89b028de;
}
return $d58b4f8653a391d8;
ef23147d89b028de:
c11dbbbef58c34c4:
}
Dfc1588683e8dff2:
return null;
}
public static function a2aa2B94d2D97a7f($F26087d31c2bbe4d, $e91e92047b92eb25)
{
$d919bf727d78c4ca = $c078f3ed0fe7b4fa = array();
if (!file_exists(SIGNALS_TMP_PATH . "queue_" . intval($F26087d31c2bbe4d))) {
goto A47d16a3d7ba9db3;
}
$c078f3ed0fe7b4fa = igbinary_unserialize(file_get_contents(SIGNALS_TMP_PATH . "queue_" . intval($F26087d31c2bbe4d)));
A47d16a3d7ba9db3:
foreach ($c078f3ed0fe7b4fa as $f9b07d216a168dcc) {
if (!self::dd714eE89C59Fbf2($f9b07d216a168dcc, "php-fpm")) {
goto E41177e4ad2c0bd7;
}
$d919bf727d78c4ca[] = $f9b07d216a168dcc;
E41177e4ad2c0bd7:
a5dc573d372fc2b5:
}
F0886bd194f92340:
if (in_array($d919bf727d78c4ca, $e91e92047b92eb25)) {
goto F98a527e2eb11c88;
}
$d919bf727d78c4ca[] = $e91e92047b92eb25;
F98a527e2eb11c88:
file_put_contents(SIGNALS_TMP_PATH . "queue_" . intval($F26087d31c2bbe4d), igbinary_serialize($d919bf727d78c4ca));
}
public static function CA490cE3385C630E($F26087d31c2bbe4d, $f9b07d216a168dcc)
{
$d919bf727d78c4ca = array();
foreach (igbinary_unserialize(file_get_contents(SIGNALS_TMP_PATH . "queue_" . intval($F26087d31c2bbe4d))) ?: array() as $adbe9b306d12ef6b) {
if (!(self::Dd714EE89C59FBf2($adbe9b306d12ef6b, "php-fpm") && $f9b07d216a168dcc != $adbe9b306d12ef6b)) {
goto D7e8555da893e2be;
}
$d919bf727d78c4ca[] = $adbe9b306d12ef6b;
D7e8555da893e2be:
f00264b72029bbe4:
}
afe0415678150d32:
if (count($d919bf727d78c4ca) > 0) {
goto Df0bcde99098ebd2;
}
unlink(SIGNALS_TMP_PATH . "queue_" . intval($F26087d31c2bbe4d));
goto b9e493e1f3d1f7f0;
Df0bcde99098ebd2:
file_put_contents(SIGNALS_TMP_PATH . "queue_" . intval($F26087d31c2bbe4d), igbinary_serialize($d919bf727d78c4ca));
b9e493e1f3d1f7f0:
}
public static function Bb7f1b0eD6C4b87D($f0434521ea9d1547 = 10)
{
goto bcd01f811b6f6d01;
F636556be0000f48:
if (!($Ea22c4a9ab5b2176 < $f0434521ea9d1547)) {
goto ae88501713303f17;
}
$Faf50feea3df4ce1 .= $b5808391c52eb3a3[rand(0, $ad13d88d0f09412f)];
A710576e068e97e5:
$Ea22c4a9ab5b2176++;
goto ed8d35e8a270204d;
goto fef4b1012f369ccb;
bcd01f811b6f6d01:
$b5808391c52eb3a3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789qwertyuiopasdfghjklzxcvbnm";
$Faf50feea3df4ce1 = '';
$ad13d88d0f09412f = strlen($b5808391c52eb3a3) - 1;
$Ea22c4a9ab5b2176 = 0;
ed8d35e8a270204d:
goto F636556be0000f48;
fef4b1012f369ccb:
ae88501713303f17:
return $Faf50feea3df4ce1;
goto c4000e914f722c5b;
c4000e914f722c5b:
}
public static function AE6bb580Baa323C2($c608db3e24256b76, $A02729c83b6cd395)
{
goto F7dff8ceeac22042;
dfb2c411f99a4bae:
goto E0f441cf5c60a4f1;
C3bf4843db38a83b:
return trim($c608db3e24256b76) . " ({$A02729c83b6cd395})";
E0f441cf5c60a4f1:
f7026cbce6a10d6b:
goto e038524a2d3393f3;
e038524a2d3393f3:
return $c608db3e24256b76;
goto B2ca66a18946c064;
F7dff8ceeac22042:
if (!(is_numeric($A02729c83b6cd395) && $A02729c83b6cd395 >= 1900 && $A02729c83b6cd395 <= intval(date("Y") + 1))) {
goto f7026cbce6a10d6b;
}
if (self::$rSettings["movie_year_append"] == 0) {
goto C3bf4843db38a83b;
}
if (!(self::$rSettings["movie_year_append"] == 0)) {
goto F150b68d657319b0;
}
return trim($c608db3e24256b76) . " - {$A02729c83b6cd395}";
F150b68d657319b0:
goto dfb2c411f99a4bae;
B2ca66a18946c064:
}
public static function E43cb741aA22a6d8($f46da30a01f7b2d7)
{
goto D212de41f0338c78;
D4ebcee9ffd00235:
return $f46da30a01f7b2d7;
goto Ab86cd881a9ffb2a;
F10a5177fc3b9788:
B4a5770b6407def6:
if (!(count($F8dd9a1b55d9bf0b) > 0)) {
goto D2ff07d9ecc53ff4;
}
return $F8dd9a1b55d9bf0b;
D2ff07d9ecc53ff4:
E9f9ba80e9f43677:
goto D4ebcee9ffd00235;
D212de41f0338c78:
if (!(count($f46da30a01f7b2d7) > 0 && file_exists(CACHE_TMP_PATH . "channel_order") && self::$rSettings["channel_number_type"] != "bouquet")) {
goto E9f9ba80e9f43677;
}
$c6c389b9adf3a40c = igbinary_unserialize(file_get_contents(CACHE_TMP_PATH . "channel_order"));
$f46da30a01f7b2d7 = array_flip($f46da30a01f7b2d7);
$F8dd9a1b55d9bf0b = array();
foreach ($c6c389b9adf3a40c as $C3c8913edb801c35) {
if (!isset($f46da30a01f7b2d7[$C3c8913edb801c35])) {
goto b6f217818bf51096;
}
$F8dd9a1b55d9bf0b[] = $C3c8913edb801c35;
b6f217818bf51096:
d74e84782d3f7198:
}
goto F10a5177fc3b9788;
Ab86cd881a9ffb2a:
}
public static function sortSeries($bbc84f53c534450d)
{
goto E28ce24874373745;
d94c139d3408f097:
D239bd26d5cca1a9:
if (!(count($F8dd9a1b55d9bf0b) > 0)) {
goto c9cb95ed5d376717;
}
return $F8dd9a1b55d9bf0b;
c9cb95ed5d376717:
Bf14841f76b4b733:
goto E2150d02d3ae222e;
E28ce24874373745:
if (!(count($bbc84f53c534450d) > 0 && file_exists(CACHE_TMP_PATH . "series_order"))) {
goto Bf14841f76b4b733;
}
$c6c389b9adf3a40c = igbinary_unserialize(file_get_contents(CACHE_TMP_PATH . "series_order"));
$bbc84f53c534450d = array_flip($bbc84f53c534450d);
$F8dd9a1b55d9bf0b = array();
foreach ($c6c389b9adf3a40c as $C3c8913edb801c35) {
if (!isset($bbc84f53c534450d[$C3c8913edb801c35])) {
goto ce988953be5c051c;
}
$F8dd9a1b55d9bf0b[] = $C3c8913edb801c35;
ce988953be5c051c:
D1cc1ffa7c1e1894:
}
goto d94c139d3408f097;
E2150d02d3ae222e:
return $bbc84f53c534450d;
goto f7207182c4b24ee5;
f7207182c4b24ee5:
}
public static function CbfCf0c8CE3D62B9($f338147e1f8d2e97)
{
$c07026622e355713 = new DateTime("UTC", new DateTimeZone(date_default_timezone_get()));
$af336dce58c6bd50 = new DateTime("UTC", new DateTimeZone($f338147e1f8d2e97));
return $af336dce58c6bd50->getTimestamp() - $c07026622e355713->getTimestamp();
}
public static function CC61dBEfe4F00951()
{
$a85e1b7d42c346a0 = array();
foreach (self::$rCategories as $A1925ae53e9307eb) {
if (!$A1925ae53e9307eb["is_adult"]) {
goto D1eca453fcd95aaf;
}
$a85e1b7d42c346a0[] = intval($A1925ae53e9307eb["id"]);
D1eca453fcd95aaf:
A9e7ee0f674b0c31:
}
f34e0091c33cb7da:
return $a85e1b7d42c346a0;
}
public static function bfa8B6FE314deD7F()
{
if (is_object(self::$redis)) {
goto a2c957396626c628;
}
try {
self::$redis = new Redis();
self::$redis->connect(self::$rConfig["hostname"], 6379);
self::$redis->auth(self::$rSettings["redis_password"]);
} catch (Exception $c34ae71903f0d920) {
self::$redis = null;
return false;
}
a2c957396626c628:
return true;
}
public static function b0b419A0354a0297()
{
if (!is_object(self::$redis)) {
goto f70012376870bc82;
}
self::$redis->close();
self::$redis = null;
f70012376870bc82:
return true;
}
public static function b85cCcef157fB67B($B08b62d9f7870287)
{
if (is_object(self::$redis)) {
goto A6d8ddb599e1d650;
}
self::bfA8b6fe314deD7f();
A6d8ddb599e1d650:
return igbinary_unserialize(self::$redis->get($B08b62d9f7870287));
}
public static function E0C928A3a83F24e9($a27e64cc6ce01033)
{
goto daf916e7942ef035;
C3018450b7c5c371:
$F42a951cf0a3370a->zAdd("LINE_ALL#{$a27e64cc6ce01033["identity"]}", $a27e64cc6ce01033["date_start"], $a27e64cc6ce01033["uuid"]);
$F42a951cf0a3370a->zAdd("STREAM#{$a27e64cc6ce01033["stream_id"]}", $a27e64cc6ce01033["date_start"], $a27e64cc6ce01033["uuid"]);
$F42a951cf0a3370a->zAdd("SERVER#{$a27e64cc6ce01033["server_id"]}", $a27e64cc6ce01033["date_start"], $a27e64cc6ce01033["uuid"]);
if (!$a27e64cc6ce01033["user_id"]) {
goto f3a65de8d7e40645;
}
$F42a951cf0a3370a->zAdd("SERVER_LINES#{$a27e64cc6ce01033["server_id"]}", $a27e64cc6ce01033["user_id"], $a27e64cc6ce01033["uuid"]);
goto cbcf5cee04129833;
b457b19a12d5a8ae:
$F42a951cf0a3370a->zAdd("LIVE", $a27e64cc6ce01033["date_start"], $a27e64cc6ce01033["uuid"]);
$F42a951cf0a3370a->set($a27e64cc6ce01033["uuid"], igbinary_serialize($a27e64cc6ce01033));
return $F42a951cf0a3370a->exec();
goto C5942f425f729d03;
cbcf5cee04129833:
f3a65de8d7e40645:
if (!$a27e64cc6ce01033["proxy_id"]) {
goto dd37e2ca561a2078;
}
$F42a951cf0a3370a->zAdd("PROXY#{$a27e64cc6ce01033["proxy_id"]}", $a27e64cc6ce01033["date_start"], $a27e64cc6ce01033["uuid"]);
dd37e2ca561a2078:
$F42a951cf0a3370a->zAdd("CONNECTIONS", $a27e64cc6ce01033["date_start"], $a27e64cc6ce01033["uuid"]);
goto b457b19a12d5a8ae;
daf916e7942ef035:
if (is_object(self::$redis)) {
goto Ad508023f91b9e01;
}
self::BFA8b6Fe314ded7f();
Ad508023f91b9e01:
$F42a951cf0a3370a = self::$redis->multi();
$F42a951cf0a3370a->zAdd("LINE#{$a27e64cc6ce01033["identity"]}", $a27e64cc6ce01033["date_start"], $a27e64cc6ce01033["uuid"]);
goto C3018450b7c5c371;
C5942f425f729d03:
}
public static function e3484F74d3c8B5a7($a27e64cc6ce01033, $a6b40128767dfe4f = array(), $ec42cf0557b72e6f = null)
{
goto ea451f481338b711;
E00045cb4feee4c9:
$F42a951cf0a3370a->zRem("LIVE", $a27e64cc6ce01033["uuid"]);
$F42a951cf0a3370a->zRem("LINE#{$d9b341c05baed5be["identity"]}", $a27e64cc6ce01033["uuid"]);
$F42a951cf0a3370a->zRem("STREAM#{$d9b341c05baed5be["stream_id"]}", $a27e64cc6ce01033["uuid"]);
$F42a951cf0a3370a->zRem("SERVER#{$d9b341c05baed5be["server_id"]}", $a27e64cc6ce01033["uuid"]);
if (!$a27e64cc6ce01033["proxy_id"]) {
goto fcaaf6a58a96f2c6;
}
goto C84cfdd103c0a950;
f1bb407d97919a8f:
$F42a951cf0a3370a->zRem("SERVER_LINES#{$d9b341c05baed5be["server_id"]}", $a27e64cc6ce01033["uuid"]);
Fc24bb384cb4c200:
F6e19f205319a8ee:
Eb7642111701f91c:
goto cc8ea7534c0559d5;
goto C1c890fb4670faac;
ff7709d3d8ddaf0e:
c0e0ba3edd5d8ce4:
$F42a951cf0a3370a = self::$redis->multi();
if ($ec42cf0557b72e6f == "open") {
goto E536066336481619;
}
if (!($ec42cf0557b72e6f == "close")) {
goto Eb7642111701f91c;
}
$F42a951cf0a3370a->sAdd("ENDED", $a27e64cc6ce01033["uuid"]);
goto E00045cb4feee4c9;
C84cfdd103c0a950:
$F42a951cf0a3370a->zRem("PROXY#{$d9b341c05baed5be["proxy_id"]}", $a27e64cc6ce01033["uuid"]);
fcaaf6a58a96f2c6:
if (!($a27e64cc6ce01033["hls_end"] == 0)) {
goto F6e19f205319a8ee;
}
$a27e64cc6ce01033["hls_end"] = 1;
if (!$a27e64cc6ce01033["user_id"]) {
goto Fc24bb384cb4c200;
}
goto f1bb407d97919a8f;
F2c8da6e19ef12af:
$F42a951cf0a3370a->zAdd("SERVER#{$a27e64cc6ce01033["server_id"]}", $a27e64cc6ce01033["date_start"], $a27e64cc6ce01033["uuid"]);
if (!$a27e64cc6ce01033["proxy_id"]) {
goto a24c0d0dfb1469c4;
}
$F42a951cf0a3370a->zAdd("PROXY#{$a27e64cc6ce01033["proxy_id"]}", $a27e64cc6ce01033["date_start"], $a27e64cc6ce01033["uuid"]);
a24c0d0dfb1469c4:
if (!($a27e64cc6ce01033["hls_end"] == 1)) {
goto Fca00f5d2f21149e;
}
goto A77a87d4baddde08;
Eee4b6096bf6aeeb:
Ce4a7441f92ad7d1:
return $a27e64cc6ce01033;
E32eae34197b5046:
goto A82a16891635041d;
ea451f481338b711:
if (is_object(self::$redis)) {
goto e732efa1ab9d5e1f;
}
self::Bfa8B6FE314DeD7F();
e732efa1ab9d5e1f:
$d9b341c05baed5be = $a27e64cc6ce01033;
foreach ($a6b40128767dfe4f as $D3fa098be3f297cd => $b6842cb20051e925) {
$a27e64cc6ce01033[$D3fa098be3f297cd] = $b6842cb20051e925;
bdfcdbd0cbe56cf6:
}
goto ff7709d3d8ddaf0e;
A77a87d4baddde08:
$a27e64cc6ce01033["hls_end"] = 0;
if (!$a27e64cc6ce01033["user_id"]) {
goto cfce38c6d93a61b7;
}
$F42a951cf0a3370a->zAdd("SERVER_LINES#{$a27e64cc6ce01033["server_id"]}", $a27e64cc6ce01033["user_id"], $a27e64cc6ce01033["uuid"]);
cfce38c6d93a61b7:
Fca00f5d2f21149e:
goto b52fc7aa8d359703;
C1c890fb4670faac:
E536066336481619:
$F42a951cf0a3370a->sRem("ENDED", $a27e64cc6ce01033["uuid"]);
$F42a951cf0a3370a->zAdd("LIVE", $a27e64cc6ce01033["date_start"], $a27e64cc6ce01033["uuid"]);
$F42a951cf0a3370a->zAdd("LINE#{$a27e64cc6ce01033["identity"]}", $a27e64cc6ce01033["date_start"], $a27e64cc6ce01033["uuid"]);
$F42a951cf0a3370a->zAdd("STREAM#{$a27e64cc6ce01033["stream_id"]}", $a27e64cc6ce01033["date_start"], $a27e64cc6ce01033["uuid"]);
goto F2c8da6e19ef12af;
b52fc7aa8d359703:
cc8ea7534c0559d5:
$F42a951cf0a3370a->set($a27e64cc6ce01033["uuid"], igbinary_serialize($a27e64cc6ce01033));
if ($F42a951cf0a3370a->exec()) {
goto Ce4a7441f92ad7d1;
}
return null;
goto E32eae34197b5046;
goto Eee4b6096bf6aeeb;
A82a16891635041d:
}
public static function BC23764Ed0732f3F($D78ff1d0edade5eb, $ccf88201f4394db1 = false, $f16991461acd03bf = false)
{
goto Ec2f64d65e28f3ce;
F7d0c6c523fb4fa9:
E31fd3b1f7f044af:
return $f16991461acd03bf;
fe1e5221a7088f1f:
goto B31b41bd640ecc42;
Ec2f64d65e28f3ce:
if (is_object(self::$redis)) {
goto C3418121c04ac688;
}
self::BFa8B6fE314DEd7f();
C3418121c04ac688:
$f16991461acd03bf = self::$redis->zRangeByScore(($ccf88201f4394db1 ? "LINE#" : "LINE_ALL#") . $D78ff1d0edade5eb, "-inf", "+inf");
if ($f16991461acd03bf) {
$f16991461acd03bf = array_map("unicode_decode", $f16991461acd03bf);
goto E31fd3b1f7f044af;
}
goto ec001be2a3f993e9;
ec001be2a3f993e9:
if (!(count($f16991461acd03bf) > 0)) {
goto f6ff5b02d1413bf7;
}
return array_map("unicode_decode", self::$redis->mGet($f16991461acd03bf));
f6ff5b02d1413bf7:
return array();
goto fe1e5221a7088f1f;
goto F7d0c6c523fb4fa9;
B31b41bd640ecc42:
}
public static function aA941cF79C4f48cf($f9b07d216a168dcc, $d58b4f8653a391d8, $C2897f488ae9e7fe, $Bccc89fc1174404a = null)
{
if (is_object(self::$redis)) {
goto ce63dcfc92d59f8a;
}
self::BFA8B6fe314dEd7f();
ce63dcfc92d59f8a:
$D3fa098be3f297cd = "SIGNAL#" . md5($d58b4f8653a391d8 . "#" . $f9b07d216a168dcc . "#" . $C2897f488ae9e7fe);
$a27e64cc6ce01033 = array("pid" => $f9b07d216a168dcc, "server_id" => $d58b4f8653a391d8, "rtmp" => $C2897f488ae9e7fe, "time" => time(), "custom_data" => $Bccc89fc1174404a, "key" => $D3fa098be3f297cd);
return self::$redis->multi()->sAdd("SIGNALS#" . $d58b4f8653a391d8, $D3fa098be3f297cd)->set($D3fa098be3f297cd, igbinary_serialize($a27e64cc6ce01033))->exec();
}
public static function findClosestValue($targetValue, $array)
{
$closestValue = null;
$minDifference = PHP_INT_MAX;
foreach ($array as $value) {
$difference = abs($targetValue - $value);
if ($difference < $minDifference) {
$minDifference = $difference;
$closestValue = $value;
}
}
return $closestValue;
}
public static function GenerateURL($isSecure = false)
{
goto Start;
SecureCheck:
$protocol = "https";
ProxyCheck:
$isProxyEnabled = self::$rServers[$serverId]["enable_proxy"];
if (!$isProxyEnabled) {
goto ProxyDisabled;
}
goto ProxyEnabled;
ProxyDisabled:
$url = $protocol . "://" . $host . ":" . self::$rServers[$serverId]["http_port"] . "/";
if (!(self::$rServers[$serverId]["server_type"] == 1 && $mainServerId && self::$rServers[$mainServerId]["is_main"] == 0)) {
goto End;
}
$url .= md5($serverId . "_" . $mainServerId . "_" . OPENSSL_EXTRA) . "/";
End:
return $url;
ProxyEnabled:
$proxyKeys = array_keys(self::getProxies($serverId));
if (!(count($proxyKeys) == 0)) {
goto ProxyAvailable;
}
$proxyKeys = array_keys(self::getProxies($serverId, false));
ProxyAvailable:
if (!(count($proxyKeys) == 0)) {
goto ProxySelected;
}
return '';
ProxySelected:
$mainServerId = $serverId;
$serverId = $proxyKeys[array_rand($proxyKeys)];
goto ProxyDisabled;
Start:
$mainServerId = null;
$serverId = SERVER_ID;
if ($isSecure) {
goto SecureCheck;
}
if (isset($_SERVER["SERVER_PORT"]) && self::$rSettings["keep_protocol"]) {
$protocol = !empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] !== "off" || $_SERVER["SERVER_PORT"] == 443 ? "https" : "http";
goto ProxyCheck;
}
$protocol = self::$rServers[$serverId]["server_protocol"];
goto SecureCheck;
}
public static function getStreamingURL($serverId = null, $parentId = null, $useRandomIp = false)
{
if (isset($serverId)) {
$serverId = SERVER_ID;
}
if ($useRandomIp) {
$protocol = "http";
} else {
if (self::$rSettings["keep_protocol"]) {
$protocol = !empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] !== "off" || $_SERVER["SERVER_PORT"] == 443 ? "https" : "http";
} else {
$protocol = self::$rServers[$serverId]["server_protocol"];
}
}
$host = null;
if (strlen(HOST) > 0 && in_array(strtolower(HOST), array_map("strtolower", self::$rServers[$serverId]["domains"]["urls"]))) {
$host = HOST;
} elseif (self::$rServers[$serverId]["random_ip"] && count(self::$rServers[$serverId]["domains"]["urls"]) > 0) {
$host = self::$rServers[$serverId]["domains"]["urls"][array_rand(self::$rServers[$serverId]["domains"]["urls"])];
}
$url = "";
if ($host) {
$url = $protocol . "://" . $host . ":" . self::$rServers[$serverId][$protocol . "_broadcast_port"] . "/";
} else {
$url = rtrim(self::$rServers[$serverId][$protocol . "_url"], "/");
}
if (self::$rServers[$serverId]["server_type"] == 1 && $parentId && self::$rServers[$parentId]["is_main"] == 0) {
$url .= "/" . md5($serverId . "_" . $parentId . "_" . OPENSSL_EXTRA);
}
return $url;
}
public static function getProxies($serverId, $includeOffline = true)
{
$proxies = array();
foreach (self::$rServers as $id => $server) {
if (!($server["server_type"] == 1 && (in_array($serverId, $server["parent_id"]) && ($server["server_online"] or !$includeOffline)))) {
$proxies[$id] = $server;
}
}
return $proxies;
}
} ?>
Did this file decode correctly?
Original Code
<?php
use MaxMind\Db\Reader;
if (class_exists("\104\141\x74\x61\x62\141\x73\145")) {
goto ab38a4bcd29ffc47;
}
class Database
{
public $result;
public $dbh;
public $connected = false;
function __construct($A50bdc318bc06ab5 = true)
{
$this->dbh = false;
if (!$A50bdc318bc06ab5) {
goto aee5621e3f278f5b;
}
$this->db_connect();
aee5621e3f278f5b:
}
function close_mysql()
{
if (!$this->connected) {
goto Ffe914334aaa0610;
}
$this->connected = false;
$this->dbh = null;
Ffe914334aaa0610:
return true;
}
function __destruct()
{
$this->close_mysql();
}
public function ping()
{
try {
$this->dbh->query("\x53\105\114\105\x43\x54\x20\61");
} catch (Exception $c34ae71903f0d920) {
return false;
}
return true;
}
function db_connect()
{
try {
$this->dbh = Xui\Functions::connect("\124\113\x62\x78\x65\x51\x72\x42\x58\167\x32\x73\x77\x44\116\167\x54\x68\65\x79\x72\x6a\64\152\x4d\x56\64\122\141\x4c\117\60");
if ($this->dbh) {
goto ca9982b622e100cd;
}
exit(json_encode(array("\x65\x72\x72\x6f\162" => "\115\x79\x53\x51\114\72\x20\x43\141\x6e\156\x6f\x74\40\143\x6f\156\x6e\x65\x63\x74\40\x74\157\x20\144\x61\x74\x61\142\141\x73\x65\41\40\120\154\x65\141\163\145\40\143\x68\x65\x63\x6b\40\143\162\x65\144\x65\x6e\164\151\141\154\163\x2e")));
ca9982b622e100cd:
} catch (PDOException $c34ae71903f0d920) {
exit(json_encode(array("\x65\162\162\x6f\x72" => "\115\171\123\121\x4c\72\x20" . $c34ae71903f0d920->getMessage())));
}
$this->dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$this->connected = true;
return true;
}
function query($A2833f35d8d7e939, $d45254c57e70b972 = false)
{
goto C8983352fe7424b5;
e7679b4016a20b17:
try {
$this->result = $this->dbh->prepare($A2833f35d8d7e939);
$this->result->execute($A8c046797d86d788);
} catch (Exception $c34ae71903f0d920) {
return false;
}
return true;
b43a70e965314fa6:
return false;
goto fac6444b45728ea4;
Dfda6dae06f800a0:
ae463ee425560495:
$A8c046797d86d788[] = null;
a02ff38593ccd90e:
e8354ca987a5eb82:
$Ea22c4a9ab5b2176++;
goto F3a970357156f383;
F3a970357156f383:
goto E4b2c336b9123513;
ea372d0618dfdf8f:
if (!($d45254c57e70b972 === true)) {
goto bb78dc2a481be176;
}
$this->dbh->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, false);
bb78dc2a481be176:
goto e7679b4016a20b17;
C8983352fe7424b5:
if (!$this->dbh) {
goto b43a70e965314fa6;
}
$d5d75f0e3efc5b42 = func_num_args();
$C782698ae2e41f7f = func_get_args();
$A8c046797d86d788 = array();
$Ea22c4a9ab5b2176 = 1;
goto ef6915963cbe84b0;
ef6915963cbe84b0:
E4b2c336b9123513:
if (!($Ea22c4a9ab5b2176 < $d5d75f0e3efc5b42)) {
goto ea372d0618dfdf8f;
}
if (is_null($C782698ae2e41f7f[$Ea22c4a9ab5b2176]) or strtolower($C782698ae2e41f7f[$Ea22c4a9ab5b2176]) == "\156\165\154\154") {
goto ae463ee425560495;
}
$A8c046797d86d788[] = $C782698ae2e41f7f[$Ea22c4a9ab5b2176];
goto a02ff38593ccd90e;
goto Dfda6dae06f800a0;
fac6444b45728ea4:
}
public function simple_query($A2833f35d8d7e939)
{
try {
$this->result = $this->dbh->query($A2833f35d8d7e939);
} catch (Exception $c34ae71903f0d920) {
return false;
}
return true;
}
function get_rows($d510b6620611d0d6 = false, $f15fddf2afad2554 = '', $cf14f1997596f1c7 = true, $b7547fc9e664473d = '')
{
if (!($this->dbh && $this->result)) {
goto e3204d73f70e2e07;
}
$daa1e4fbd7ec92ba = array();
if (!($this->result->rowCount() > 0)) {
goto fe2f9cd9839fa476;
}
foreach ($this->result->fetchAll(PDO::FETCH_ASSOC) as $c84a4809984cf9fa) {
goto be4c24657578d166;
D7335376e0187689:
b69868f660e79e71:
if (!empty($b7547fc9e664473d) && array_key_exists($b7547fc9e664473d, $c84a4809984cf9fa)) {
goto A837fb5754e6be83;
}
$daa1e4fbd7ec92ba[$c84a4809984cf9fa[$f15fddf2afad2554]][] = $c84a4809984cf9fa;
goto Cf9f7e220e18798e;
A837fb5754e6be83:
goto a2da26aa68ff891b;
be4c24657578d166:
if ($d510b6620611d0d6 && array_key_exists($f15fddf2afad2554, $c84a4809984cf9fa)) {
goto F800ac12b7dcdf15;
}
$daa1e4fbd7ec92ba[] = $c84a4809984cf9fa;
goto e21e174033b38bfa;
F800ac12b7dcdf15:
if (isset($daa1e4fbd7ec92ba[$c84a4809984cf9fa[$f15fddf2afad2554]])) {
goto d2af6bdcb3a1783f;
}
goto E25c2a4fd297aeaf;
a2da26aa68ff891b:
$daa1e4fbd7ec92ba[$c84a4809984cf9fa[$f15fddf2afad2554]][$c84a4809984cf9fa[$b7547fc9e664473d]] = $c84a4809984cf9fa;
Cf9f7e220e18798e:
d708ff46d9b19cbb:
e21e174033b38bfa:
B318e9b694cff014:
goto f35c62b09fcac086;
E25c2a4fd297aeaf:
$daa1e4fbd7ec92ba[$c84a4809984cf9fa[$f15fddf2afad2554]] = array();
d2af6bdcb3a1783f:
if (!$cf14f1997596f1c7) {
goto b69868f660e79e71;
}
$daa1e4fbd7ec92ba[$c84a4809984cf9fa[$f15fddf2afad2554]] = $c84a4809984cf9fa;
goto d708ff46d9b19cbb;
goto D7335376e0187689;
f35c62b09fcac086:
}
Ceb05e48e449d448:
fe2f9cd9839fa476:
$this->result = null;
return $daa1e4fbd7ec92ba;
e3204d73f70e2e07:
return false;
}
public function get_row()
{
if (!($this->dbh && $this->result)) {
goto A7314a4e373ef2ed;
}
$c84a4809984cf9fa = array();
if (!($this->result->rowCount() > 0)) {
goto a77378a6f36f90c5;
}
$c84a4809984cf9fa = $this->result->fetch(PDO::FETCH_ASSOC);
a77378a6f36f90c5:
$this->result = null;
return $c84a4809984cf9fa;
A7314a4e373ef2ed:
return false;
}
public function get_col()
{
if (!($this->dbh && $this->result)) {
goto adcc59b615482482;
}
$c84a4809984cf9fa = false;
if (!($this->result->rowCount() > 0)) {
goto a85acd59c1a3cec3;
}
$c84a4809984cf9fa = $this->result->fetch();
$c84a4809984cf9fa = $c84a4809984cf9fa[0];
a85acd59c1a3cec3:
$this->result = null;
return $c84a4809984cf9fa;
adcc59b615482482:
return false;
}
public function escape($C9425e927984f356)
{
if (!$this->dbh) {
goto D121bdd92eaf0ca2;
}
return $this->dbh->quote($C9425e927984f356);
D121bdd92eaf0ca2:
return null;
}
public function num_fields()
{
if (!($this->dbh && $this->result)) {
goto b02b67ac207c03be;
}
$d1f68d011f8458ee = $this->result->columnCount();
return empty($d1f68d011f8458ee) ? 0 : $d1f68d011f8458ee;
b02b67ac207c03be:
return 0;
}
public function last_insert_id()
{
if (!$this->dbh) {
goto a08892f715633ffd;
}
$fca1773cd263c51b = $this->dbh->lastInsertId();
return empty($fca1773cd263c51b) ? 0 : $fca1773cd263c51b;
a08892f715633ffd:
return null;
}
public function num_rows()
{
if (!($this->dbh && $this->result)) {
goto a4eb877a54680689;
}
$A88a8b854513b7e0 = $this->result->rowCount();
return empty($A88a8b854513b7e0) ? 0 : $A88a8b854513b7e0;
a4eb877a54680689:
return 0;
}
}
ab38a4bcd29ffc47:
class XUI
{
public static $db;
public static $redis;
public static $rRequest = array();
public static $rConfig = array();
public static $rSettings = array();
public static $rBouquets = array();
public static $rServers = array();
public static $rSegmentSettings = array();
public static $rBlockedUA = array();
public static $rBlockedISP = array();
public static $rBlockedIPs = array();
public static $rBlockedServers = array();
public static $rAllowedIPs = array();
public static $rCategories = array();
public static $rProxies = array();
public static $rFFMPEG_CPU;
public static $rFFMPEG_GPU;
public static $rCached;
public static $rAccess;
public static function init($E9ff1197d3f1304b = false)
{
goto afe6ce536b9627e9;
F522f210fc3f7c8b:
if (defined("SERVER_ID")) {
goto Dbeb4da033a85854;
}
define("SERVER_ID", intval(self::$rConfig["server_id"]));
Dbeb4da033a85854:
if (self::$rSettings) {
goto Dc315041088f12d2;
}
self::$rSettings = self::ABB674425a8b1B0d("settings");
goto F93ed4d400c03834;
e73ddbd810c6b99e:
self::AD0a56Be17E95E81($E9ff1197d3f1304b);
goto Cfd104a35c9fdf8b;
C252b9fd47a09694:
self::$rFFMPEG_GPU = FFMPEG_BIN_40;
self::$rCached = self::A996a3Eb6998fca4();
self::$rServers = self::aBb674425A8b1B0d("servers");
self::$rBlockedUA = self::abb674425A8B1B0d("blocked_ua");
self::$rBlockedISP = self::Abb674425a8B1b0D("blocked_isp");
goto Fc87b9504c0d26a9;
afe6ce536b9627e9:
if (empty($_GET)) {
goto Ce08905e821543bb;
}
self::eE2659ae23E1E78c($_GET);
Ce08905e821543bb:
if (empty($_POST)) {
goto F372803c36573e26;
}
self::ee2659aE23E1E78C($_POST);
goto b4132e33f2c25078;
F2d58d1094b48a99:
self::eE2659AE23E1e78c($_COOKIE);
Ee9a469679018ee4:
$a68b12348744a7ff = @self::c13491863979fcF0($_GET, array());
self::$rRequest = @self::C13491863979fcF0($_POST, $a68b12348744a7ff);
self::$rConfig = parse_ini_file(CONFIG_PATH . "config.ini");
goto F522f210fc3f7c8b;
b4132e33f2c25078:
F372803c36573e26:
if (empty($_SESSION)) {
goto b5a57dbd181502cd;
}
self::Ee2659AE23E1E78C($_SESSION);
b5a57dbd181502cd:
if (empty($_COOKIE)) {
goto Ee9a469679018ee4;
}
goto F2d58d1094b48a99;
Fc87b9504c0d26a9:
self::$rBlockedIPs = self::ABb674425a8b1b0D("blocked_ips");
self::$rBlockedServers = self::Abb674425A8B1B0d("blocked_servers");
self::$rAllowedIPs = self::AbB674425a8B1B0D("allowed_ips");
self::$rProxies = self::ABb674425A8b1B0D("proxies");
self::$rSegmentSettings = array(
"seg_time" => intval(self::$rSettings["seg_time"]),
"seg_list_size" => intval(self::$rSettings["seg_list_size"])
);
goto e73ddbd810c6b99e;
Ca6587613a20fba6:
self::$rSettings["on_demand_wait_time"] = 15;
ec3585d0f4e8d1f4:
switch (self::$rSettings["ffmpeg_cpu"]) {
case "4.4":
self::$rFFMPEG_CPU = FFMPEG_BIN_44;
goto B52830dffc469c83;
case "4.3":
self::$rFFMPEG_CPU = FFMPEG_BIN_43;
goto B52830dffc469c83;
default:
self::$rFFMPEG_CPU = FFMPEG_BIN_40;
goto B52830dffc469c83;
}
f48064b745d042a1:
B52830dffc469c83:
goto C252b9fd47a09694;
F93ed4d400c03834:
Dc315041088f12d2:
if (empty(self::$rSettings["default_timezone"])) {
goto A8dc41d77b7b5f03;
}
date_default_timezone_set(self::$rSettings["default_timezone"]);
A8dc41d77b7b5f03:
if (!(self::$rSettings["on_demand_wait_time"] == 0)) {
goto ec3585d0f4e8d1f4;
}
goto Ca6587613a20fba6;
Cfd104a35c9fdf8b:
}
public static function A996a3EB6998fCa4()
{
if (!self::$rSettings["\145\x6e\141\x62\x6c\145\137\x63\141\x63\x68\x65"]) {
goto bb9ef0252838f5be;
}
return file_exists(CACHE_TMP_PATH . "\143\141\143\x68\145\x5f\143\157\155\x70\x6c\145\x74\x65");
bb9ef0252838f5be:
return false;
}
public static function AD0a56bE17e95e81($c67112a71ee18532 = true)
{
self::$db = new Database($c67112a71ee18532);
}
public static function F6cc02011179dFc7()
{
if (!self::$db) {
goto bbe945b048aad92d;
}
self::$db->close_mysql();
self::$db = null;
bbe945b048aad92d:
}
public static function ABb674425a8B1B0d($Eace02ff35917268)
{
$a27e64cc6ce01033 = file_get_contents(CACHE_TMP_PATH . $Eace02ff35917268) ?: null;
return igbinary_unserialize($a27e64cc6ce01033);
}
public static function bA0a47B17B7E0F65($a27e64cc6ce01033, $D3fa098be3f297cd)
{
goto d3b80279ebc102c4;
C9a32f5672c1f0bb:
$Eebc577f200c5584 = hash_hmac("\x73\x68\x61\62\65\x36", $e0c0d6359f5bd8d6, substr(bin2hex($D3fa098be3f297cd), -32));
if (!($Eebc577f200c5584 !== $C3cdd40816db3399)) {
goto D75616954cf6ea44;
}
return false;
D75616954cf6ea44:
$e0c0d6359f5bd8d6 = unserialize($e0c0d6359f5bd8d6);
goto B930064a76bcfc34;
B930064a76bcfc34:
return $e0c0d6359f5bd8d6;
goto Daa48c30c8416baf;
d3b80279ebc102c4:
$a27e64cc6ce01033 = explode("\174", $a27e64cc6ce01033 . "\174");
$d156d70a98f8b08c = base64_decode($a27e64cc6ce01033[0]);
$e7ae92f8387d5936 = base64_decode($a27e64cc6ce01033[1]);
if (!(strlen($e7ae92f8387d5936) !== mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC))) {
goto Cfd5418971d28257;
}
return false;
goto f9c4d65889fe3372;
f9c4d65889fe3372:
Cfd5418971d28257:
$D3fa098be3f297cd = pack("\x48\x2a", $D3fa098be3f297cd);
$e0c0d6359f5bd8d6 = trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $D3fa098be3f297cd, $d156d70a98f8b08c, MCRYPT_MODE_CBC, $e7ae92f8387d5936));
$C3cdd40816db3399 = substr($e0c0d6359f5bd8d6, -64);
$e0c0d6359f5bd8d6 = substr($e0c0d6359f5bd8d6, 0, -64);
goto C9a32f5672c1f0bb;
Daa48c30c8416baf:
}
public static function Ee2659AE23E1e78c(&$a27e64cc6ce01033, $Bb3e51c7e44e9edc = 0)
{
if (!($Bb3e51c7e44e9edc >= 10)) {
goto F578aba0ff1bf83c;
}
return;
F578aba0ff1bf83c:
foreach ($a27e64cc6ce01033 as $D3fa098be3f297cd => $b6842cb20051e925) {
goto C7b57da288ccf209;
Aee5c326d2530775:
$b6842cb20051e925 = str_replace("\46\x23\x38\62\x33\x38\x3b", '', $b6842cb20051e925);
$a27e64cc6ce01033[$D3fa098be3f297cd] = $b6842cb20051e925;
goto E0f3476f52353d94;
badf7711b51a0ba7:
self::Ee2659ae23e1e78c($a27e64cc6ce01033[$D3fa098be3f297cd], ++$Bb3e51c7e44e9edc);
goto cd928c1ec4f2db87;
C7b57da288ccf209:
if (is_array($b6842cb20051e925)) {
goto badf7711b51a0ba7;
}
$b6842cb20051e925 = str_replace(chr("\x30"), '', $b6842cb20051e925);
$b6842cb20051e925 = str_replace("\x0", '', $b6842cb20051e925);
$b6842cb20051e925 = str_replace("\x0", '', $b6842cb20051e925);
$b6842cb20051e925 = str_replace("\56\56\57", "\46\43\x34\x36\x3b\x26\x23\x34\x36\73\x2f", $b6842cb20051e925);
goto Aee5c326d2530775;
cd928c1ec4f2db87:
E0f3476f52353d94:
a952293638a2ad74:
goto fe97728590304a4b;
fe97728590304a4b:
}
D37550a639203e8f:
}
public static function c13491863979fcF0(&$a27e64cc6ce01033, $a68b12348744a7ff = array(), $Bb3e51c7e44e9edc = 0)
{
if (!($Bb3e51c7e44e9edc >= 20)) {
goto f8abb0e9c58ba967;
}
return $a68b12348744a7ff;
f8abb0e9c58ba967:
if (is_array($a27e64cc6ce01033)) {
goto c9e1ffc56753e8eb;
}
return $a68b12348744a7ff;
c9e1ffc56753e8eb:
foreach ($a27e64cc6ce01033 as $D3fa098be3f297cd => $b6842cb20051e925) {
if (is_array($b6842cb20051e925)) {
goto C825a35d20a4d064;
}
$D3fa098be3f297cd = self::Ee07012de438c358($D3fa098be3f297cd);
$b6842cb20051e925 = self::A48C65Aa888cD29A($b6842cb20051e925);
$a68b12348744a7ff[$D3fa098be3f297cd] = $b6842cb20051e925;
goto c687e10db9fd1fef;
C825a35d20a4d064:
$a68b12348744a7ff[$D3fa098be3f297cd] = self::c13491863979fCf0($a27e64cc6ce01033[$D3fa098be3f297cd], array(), $Bb3e51c7e44e9edc + 1);
c687e10db9fd1fef:
f8b252b501897fd0:
}
B7c627a8c3c0ea2b:
return $a68b12348744a7ff;
}
public static function EE07012DE438c358($D3fa098be3f297cd)
{
if (!($D3fa098be3f297cd === '')) {
goto C707d53fb43de17f;
}
return '';
C707d53fb43de17f:
$D3fa098be3f297cd = htmlspecialchars(urldecode($D3fa098be3f297cd));
$D3fa098be3f297cd = str_replace("\x2e\56", '', $D3fa098be3f297cd);
$D3fa098be3f297cd = preg_replace("\57\134\x5f\x5c\x5f\50\56\53\77\51\134\x5f\134\137\57", '', $D3fa098be3f297cd);
$D3fa098be3f297cd = preg_replace("\x2f\x5e\x28\x5b\x5c\167\x5c\x2e\134\55\x5c\137\135\53\x29\x24\57", "\x24\61", $D3fa098be3f297cd);
return $D3fa098be3f297cd;
}
public static function a48C65aa888cd29A($b6842cb20051e925)
{
if (!($b6842cb20051e925 == '')) {
goto c8c4fe2dfdd0fb08;
}
return '';
c8c4fe2dfdd0fb08:
$b6842cb20051e925 = str_replace(array("\15\xa", "\12\xd", "\xd"), "\xa", $b6842cb20051e925);
$b6842cb20051e925 = str_replace("\x3c\41\x2d\55", "\46\x23\x36\60\x3b\46\x23\63\63\73\x2d\x2d", $b6842cb20051e925);
$b6842cb20051e925 = str_replace("\55\55\x3e", "\55\x2d\x26\43\66\62\73", $b6842cb20051e925);
$b6842cb20051e925 = str_ireplace("\x3c\163\x63\162\x69\160\x74", "\x26\x23\x36\x30\x3b\163\x63\x72\x69\x70\x74", $b6842cb20051e925);
$b6842cb20051e925 = preg_replace("\x2f\x26\x61\x6d\160\x3b\x23\x28\x5b\60\55\71\x5d\53\x29\x3b\x2f\163", "\46\43\134\x31\x3b", $b6842cb20051e925);
$b6842cb20051e925 = preg_replace("\x2f\x26\43\50\x5c\x64\53\77\x29\x28\x5b\136\134\x64\x3b\135\x29\x2f\151", "\x26\43\x5c\x31\73\x5c\62", $b6842cb20051e925);
return trim($b6842cb20051e925);
}
public static function fc8474658ec80360($c59ec257c284c894 = null)
{
goto f6e3db6b973c4c5b;
B9018e179cb93a7a:
file_put_contents($b784c383b47a49fd, json_encode(array("\162\145\x71\x75\x65\x73\164\x73" => 0, "\x6c\x61\163\164\137\162\x65\x71\165\x65\163\164" => time())), LOCK_EX);
goto Ce6f42d29d09e944;
ec307f8b8065c216:
$A707ccd39fee7276 = json_decode(file_get_contents($b784c383b47a49fd), true);
$be54debae5869cd3 = self::$rSettings["\146\x6c\157\157\144\137\163\x65\x63\157\x6e\144\x73"];
goto db8a91aa2b64ed6b;
db8a91aa2b64ed6b:
$A96a38e6b91953f2 = self::$rSettings["\x66\x6c\x6f\157\x64\137\x6c\151\x6d\151\164"];
if (time() - $A707ccd39fee7276["\x6c\141\x73\x74\137\162\145\161\165\145\x73\164"] <= $be54debae5869cd3) {
goto Cbec3c85872b3ad3;
}
$A707ccd39fee7276["\162\x65\161\x75\145\163\164\163"] = 0;
$A707ccd39fee7276["\154\141\163\x74\x5f\162\145\161\x75\145\163\x74"] = time();
file_put_contents($b784c383b47a49fd, json_encode($A707ccd39fee7276), LOCK_EX);
goto B7c2f0217958554e;
db9bbcedc3d92df0:
F92d6a2f284f8a6b:
$A707ccd39fee7276["\154\141\163\164\x5f\162\145\x71\165\x65\163\x74"] = time();
file_put_contents($b784c383b47a49fd, json_encode($A707ccd39fee7276), LOCK_EX);
C36ac493e611162b:
Ce6f42d29d09e944:
goto Ba12daab161ed7b4;
Bc456f835a9cb0dc:
e4cf12ef623e86f8:
if (!(empty($c59ec257c284c894) || in_array($c59ec257c284c894, self::$rAllowedIPs))) {
goto Fa802c978aacbebf;
}
return;
Fa802c978aacbebf:
$D4a9631cb1db6a7b = array_filter(array_unique(explode("\x2c", self::$rSettings["\x66\x6c\x6f\157\x64\137\x69\160\x73\137\x65\x78\x63\154\x75\x64\145"])));
goto F324a73685e9fcfa;
C50520f12715e2f6:
if (self::$rCached) {
goto eb8f93214a8cf7e8;
}
self::$db->query("\111\x4e\x53\105\x52\124\x20\111\116\x54\x4f\x20\140\142\x6c\x6f\x63\x6b\145\x64\137\x69\160\163\140\40\50\140\151\x70\140\x2c\x60\156\x6f\164\145\163\140\54\140\144\141\164\145\x60\x29\40\x56\101\114\125\x45\x53\50\77\54\77\54\77\51", $c59ec257c284c894, "\106\x4c\117\117\x44\40\x41\124\124\101\103\113", time());
goto c27200b470f3e5b1;
eb8f93214a8cf7e8:
self::cF592C234Dcd0b19("\x66\x6c\x6f\157\144\x5f\141\x74\x74\141\x63\x6b\57" . $c59ec257c284c894, 1);
goto E4cc2492fa26c050;
F324a73685e9fcfa:
if (!in_array($c59ec257c284c894, $D4a9631cb1db6a7b)) {
goto f1f57a3cdcc52463;
}
return;
f1f57a3cdcc52463:
$b784c383b47a49fd = FLOOD_TMP_PATH . $c59ec257c284c894;
if (file_exists($b784c383b47a49fd)) {
goto ec307f8b8065c216;
}
goto B9018e179cb93a7a;
B7c2f0217958554e:
goto C36ac493e611162b;
Cbec3c85872b3ad3:
$A707ccd39fee7276["\162\145\x71\x75\x65\163\164\163"]++;
if (!($A707ccd39fee7276["\162\145\161\165\x65\x73\164\x73"] >= $A96a38e6b91953f2)) {
goto F92d6a2f284f8a6b;
}
if (in_array($c59ec257c284c894, self::$rBlockedIPs)) {
goto f1f771a3d9d47167;
}
goto C50520f12715e2f6;
f6e3db6b973c4c5b:
if (!(self::$rSettings["\146\x6c\x6f\157\144\137\x6c\x69\155\151\x74"] == 0)) {
goto c8612de9a7433bc6;
}
return;
c8612de9a7433bc6:
if ($c59ec257c284c894) {
goto e4cf12ef623e86f8;
}
$c59ec257c284c894 = self::A9Bc416fa6Fa55c3();
goto Bc456f835a9cb0dc;
E4cc2492fa26c050:
c27200b470f3e5b1:
touch(FLOOD_TMP_PATH . "\142\154\x6f\143\x6b\x5f" . $c59ec257c284c894);
f1f771a3d9d47167:
unlink($b784c383b47a49fd);
return;
goto db9bbcedc3d92df0;
Ba12daab161ed7b4:
}
public static function B6f740fAbC7265bF($c59ec257c284c894 = null, $C3cdd40816db3399 = null, $a71afc14d6cd090d = null)
{
goto C488d5790c460aa2;
e2e352f8180ae6f4:
$A707ccd39fee7276["\x61\164\x74\x65\155\x70\x74\x73"] = self::c7d4656747098c59($A707ccd39fee7276["\x61\164\x74\x65\155\x70\x74\163"], $be54debae5869cd3);
if (in_array($Be47c94a460069d8, array_keys($A707ccd39fee7276["\x61\x74\164\x65\x6d\160\164\163"]))) {
goto baabc18f894b770d;
}
$A707ccd39fee7276["\x61\164\x74\145\x6d\160\164\163"][$Be47c94a460069d8] = time();
if (!(count($A707ccd39fee7276["\x61\164\x74\x65\155\x70\164\163"]) >= $A96a38e6b91953f2)) {
goto Bae406eb01130f88;
}
if (in_array($c59ec257c284c894, self::$rBlockedIPs)) {
goto A4c128952880114f;
}
goto Ef71da139c9a50b6;
B2b5ddd7a0df8bbe:
bce54e6f263d0180:
if (!($a71afc14d6cd090d && self::$rSettings["\142\162\165\164\145\x66\x6f\x72\143\145\x5f\x75\163\x65\x72\x6e\x61\155\145\137\x61\164\164\x65\x6d\160\164\163"] == 0)) {
goto aa59bc937bebfbc9;
}
return;
aa59bc937bebfbc9:
if ($c59ec257c284c894) {
goto d3d38e948d4e7e6c;
}
goto Fd1be7ed66cf669f;
e86e8961a3edc273:
$Be47c94a460069d8 = !is_null($C3cdd40816db3399) ? $C3cdd40816db3399 : $a71afc14d6cd090d;
$b784c383b47a49fd = FLOOD_TMP_PATH . $c59ec257c284c894 . "\137" . $b9dd61c40657d13d;
if (file_exists($b784c383b47a49fd)) {
goto e62a5d8537150993;
}
$A707ccd39fee7276 = array("\141\x74\x74\145\155\x70\x74\163" => array($Be47c94a460069d8 => time()));
file_put_contents($b784c383b47a49fd, json_encode($A707ccd39fee7276), LOCK_EX);
goto E939d1bd9b080762;
Fd1be7ed66cf669f:
$c59ec257c284c894 = self::A9bC416FA6fA55C3();
d3d38e948d4e7e6c:
if (!(empty($c59ec257c284c894) || in_array($c59ec257c284c894, self::$rAllowedIPs))) {
goto e13f06ac22a391c6;
}
return;
e13f06ac22a391c6:
goto cbb79aaa467c5539;
E939d1bd9b080762:
goto D856c417e3ced601;
e62a5d8537150993:
$A707ccd39fee7276 = json_decode(file_get_contents($b784c383b47a49fd), true);
$be54debae5869cd3 = intval(self::$rSettings["\142\162\x75\164\x65\x66\x6f\x72\x63\145\x5f\x66\162\145\161\165\x65\x6e\143\171"]);
$A96a38e6b91953f2 = intval(self::$rSettings[array("\155\x61\143" => "\x62\162\165\x74\145\x66\157\162\143\x65\x5f\155\141\143\137\141\x74\x74\145\155\160\164\163", "\165\163\x65\x72" => "\142\x72\165\164\x65\146\157\x72\x63\145\x5f\165\x73\x65\x72\156\141\155\x65\x5f\x61\x74\164\x65\155\160\x74\x73")[$b9dd61c40657d13d]]);
goto e2e352f8180ae6f4;
dfdc6d0c0634f837:
Bae406eb01130f88:
file_put_contents($b784c383b47a49fd, json_encode($A707ccd39fee7276), LOCK_EX);
baabc18f894b770d:
D856c417e3ced601:
goto A3ec1ccfae83e0e6;
Ef71da139c9a50b6:
if (self::$rCached) {
goto Bd09a4adc32f0c14;
}
self::$db->query("\111\x4e\x53\105\x52\x54\40\x49\116\x54\x4f\40\x60\x62\x6c\157\x63\153\145\144\137\x69\x70\x73\x60\x20\x28\140\x69\x70\140\54\140\156\x6f\x74\x65\x73\x60\x2c\x60\144\141\164\x65\140\x29\40\x56\x41\114\125\x45\x53\50\77\x2c\x3f\54\77\x29", $c59ec257c284c894, "\102\122\x55\124\105\x46\117\x52\x43\x45\x20" . strtoupper($b9dd61c40657d13d) . "\40\x41\x54\124\101\103\113", time());
goto Fac4abc655090412;
Bd09a4adc32f0c14:
self::CF592c234dCD0B19("\142\162\165\164\x65\146\157\x72\x63\145\x5f\141\164\164\x61\x63\153\x2f" . $c59ec257c284c894, 1);
goto a33a42c1eab6bdf7;
cbb79aaa467c5539:
$D4a9631cb1db6a7b = array_filter(array_unique(explode("\x2c", self::$rSettings["\x66\154\x6f\x6f\x64\x5f\151\160\163\137\145\170\143\x6c\x75\144\x65"])));
if (!in_array($c59ec257c284c894, $D4a9631cb1db6a7b)) {
goto e7cf5da701ee45fb;
}
return;
e7cf5da701ee45fb:
$b9dd61c40657d13d = !is_null($C3cdd40816db3399) ? "\155\x61\x63" : "\x75\163\x65\x72";
goto e86e8961a3edc273;
a33a42c1eab6bdf7:
Fac4abc655090412:
touch(FLOOD_TMP_PATH . "\x62\x6c\157\143\x6b\137" . $c59ec257c284c894);
A4c128952880114f:
unlink($b784c383b47a49fd);
return;
goto dfdc6d0c0634f837;
C488d5790c460aa2:
if (!(!$C3cdd40816db3399 && !$a71afc14d6cd090d)) {
goto d8d75e3732b90676;
}
return;
d8d75e3732b90676:
if (!($C3cdd40816db3399 && self::$rSettings["\x62\162\x75\164\x65\146\x6f\162\143\145\x5f\x6d\x61\143\x5f\141\x74\x74\x65\x6d\x70\164\x73"] == 0)) {
goto bce54e6f263d0180;
}
return;
goto B2b5ddd7a0df8bbe;
A3ec1ccfae83e0e6:
}
public static function d3e665B5427479Fe($d51e425eb7375255, $c59ec257c284c894 = null)
{
goto Dd0c4ccc3282a8dc;
cc890d1464a30822:
return;
bfef26b0d2951101:
$D4a9631cb1db6a7b = array_filter(array_unique(explode("\54", self::$rSettings["\x66\x6c\x6f\x6f\144\137\x69\x70\x73\137\x65\x78\x63\x6c\x75\x64\x65"])));
if (!in_array($c59ec257c284c894, $D4a9631cb1db6a7b)) {
goto Aed9491a96dcf59d;
}
return;
goto A645d469628a884e;
Dd0c4ccc3282a8dc:
if (!(self::$rSettings["\141\x75\x74\150\x5f\146\154\157\x6f\x64\x5f\x6c\x69\x6d\x69\164"] == 0)) {
goto Af259c752f30cccf;
}
return;
Af259c752f30cccf:
if (!$d51e425eb7375255["\151\163\x5f\162\x65\x73\x74\x72\x65\x61\155\145\x72"]) {
goto F74433362ddc3538;
}
return;
goto d81c1dff59bc719f;
E5bdcd7001e34e79:
Dc8616b3533cc7fe:
$A707ccd39fee7276 = json_decode(file_get_contents($C3aa51e8b5c8bdc2), true);
if (!(isset($A707ccd39fee7276["\142\x6c\x6f\x63\153\x5f\x75\156\164\151\154"]) && time() < $A707ccd39fee7276["\x62\x6c\157\x63\x6b\137\x75\156\x74\151\154"])) {
goto B386926a0391e28c;
}
sleep(intval(self::$rSettings["\141\165\x74\150\137\x66\154\x6f\157\144\x5f\163\x6c\145\145\x70"]));
B386926a0391e28c:
goto A5049fbdba4dd9d0;
A645d469628a884e:
Aed9491a96dcf59d:
$C3aa51e8b5c8bdc2 = FLOOD_TMP_PATH . intval($d51e425eb7375255["\151\144"]) . "\x5f" . $c59ec257c284c894;
if (file_exists($C3aa51e8b5c8bdc2)) {
goto Dc8616b3533cc7fe;
}
file_put_contents($C3aa51e8b5c8bdc2, json_encode(array("\x61\x74\x74\x65\x6d\160\164\x73" => array(time()))), LOCK_EX);
goto af4264854a7641d7;
goto E5bdcd7001e34e79;
A5049fbdba4dd9d0:
$be54debae5869cd3 = self::$rSettings["\x61\x75\164\150\137\x66\x6c\157\x6f\x64\x5f\x73\x65\x63\157\156\144\x73"];
$A96a38e6b91953f2 = self::$rSettings["\141\x75\164\x68\137\146\154\157\x6f\x64\x5f\154\x69\x6d\151\164"];
$A707ccd39fee7276["\141\x74\164\145\155\x70\x74\x73"] = self::C7D4656747098c59($A707ccd39fee7276["\141\164\164\x65\155\160\x74\163"], $be54debae5869cd3, true);
if (!(count($A707ccd39fee7276["\x61\x74\x74\x65\155\160\164\x73"]) >= $A96a38e6b91953f2)) {
goto C1b72892d5a3bf34;
}
$A707ccd39fee7276["\x62\154\x6f\143\153\137\x75\156\164\x69\154"] = time() + intval(self::$rSettings["\141\165\x74\x68\137\146\154\157\157\144\137\x73\145\143\x6f\156\144\163"]);
goto D8b2ea991f7a1800;
d81c1dff59bc719f:
F74433362ddc3538:
if ($c59ec257c284c894) {
goto e7d22b531f7f5a77;
}
$c59ec257c284c894 = self::a9bc416FA6fa55c3();
e7d22b531f7f5a77:
if (!(empty($c59ec257c284c894) || in_array($c59ec257c284c894, self::$rAllowedIPs))) {
goto bfef26b0d2951101;
}
goto cc890d1464a30822;
D8b2ea991f7a1800:
C1b72892d5a3bf34:
$A707ccd39fee7276["\x61\x74\x74\x65\x6d\x70\x74\x73"][] = time();
file_put_contents($C3aa51e8b5c8bdc2, json_encode($A707ccd39fee7276), LOCK_EX);
af4264854a7641d7:
goto e857a04f64f7c5ef;
e857a04f64f7c5ef:
}
public static function isProxied($d58b4f8653a391d8)
{
return self::$rServers[$d58b4f8653a391d8]["\145\156\141\x62\154\x65\x5f\x70\x72\157\170\171"];
}
public static function BB41388445081a3D($c59ec257c284c894)
{
if (!isset(self::$rProxies[$c59ec257c284c894])) {
goto D0bb9db50bd0ff76;
}
return self::$rProxies[$c59ec257c284c894];
D0bb9db50bd0ff76:
return null;
}
public static function c7d4656747098c59($ed4c668b21748203, $Dea739940867923b, $A2334a366640c078 = false)
{
goto Fae8bd64cf926da2;
Fae8bd64cf926da2:
$A11bd3dafa3511e9 = array();
$C4af185e24cf9086 = time();
if ($A2334a366640c078) {
goto f141b1a6aabf2f85;
}
foreach ($ed4c668b21748203 as $fa682959477a699f => $C402db0b1e917573) {
if (!($C4af185e24cf9086 - $C402db0b1e917573 <= $Dea739940867923b)) {
goto c1f785ff2d8c064a;
}
$A11bd3dafa3511e9[$fa682959477a699f] = $C402db0b1e917573;
c1f785ff2d8c064a:
C296abd7df90d395:
}
ed53cbf686104844:
goto e08a528f1e43b03b;
Ba75d4af56d11614:
return $A11bd3dafa3511e9;
goto ea64c152f17f8113;
e08a528f1e43b03b:
goto edda92e5a43c7abf;
f141b1a6aabf2f85:
foreach ($ed4c668b21748203 as $C402db0b1e917573) {
if (!($C4af185e24cf9086 - $C402db0b1e917573 <= $Dea739940867923b)) {
goto A53fcb80a87504aa;
}
$A11bd3dafa3511e9[] = $C402db0b1e917573;
A53fcb80a87504aa:
ef29a0a9f0312414:
}
C62e66db4ecaa37f:
edda92e5a43c7abf:
goto Ba75d4af56d11614;
ea64c152f17f8113:
}
public static function Cdd1bc14d819BE74($Fa288895c003c519 = false)
{
return json_decode(
file_get_contents(
CACHE_TMP_PATH . ($Fa288895c003c519 ? "\160\x72\x6f\x78\x79\x5f\143\141\160\141\143\151\x74\171" : "\163\x65\x72\x76\145\162\163\137\143\x61\x70\x61\143\x69\x74\x79")
),
true
);
}
public static function B3Ed925e7969F61a($F26087d31c2bbe4d, $F9452a7efafa1aba, $D4253f9520627819, $efc0f8f3059e4104, $f72bad5bd13565f1 = '', $E379394c7b1a273f = '')
{
goto C62d867495876ba8;
a8f7ce3bbc25e1a8:
be7e45769ffebcd6:
goto fff2fcdfbb2dcbb6;
B78cc5bf1b4cc9a1:
if (!empty($c43b488500f8fab7)) {
goto c835a31e11735e48;
}
return false;
c835a31e11735e48:
shuffle($c43b488500f8fab7);
$a9d38d288d6824ad = self::cdd1Bc14d819bE74();
goto C2c1fba241c0dd49;
A9a16907107cc3bb:
goto C93bafc486b6d234;
a7ae0114aa09a624:
return $B5f1fb70f197b910;
C93bafc486b6d234:
d02337a0cc0667b1:
goto e3efe818e8c4d2ad;
Ec8de5683224349d:
B541ba57db8132ab:
if ($E379394c7b1a273f == "\141\162\143\150\x69\x76\145") {
goto a7ae0114aa09a624;
}
$f523e362fb81d6c8["\151\156\146\157"]["\x72\145\144\x69\162\x65\143\x74\x5f\x69\144"] = $B5f1fb70f197b910;
$fc4c58c5d1cd68d1 = $B5f1fb70f197b910;
return array_merge($f523e362fb81d6c8["\x69\156\x66\x6f"], $f523e362fb81d6c8["\x73\145\x72\166\145\x72\163"][$fc4c58c5d1cd68d1]);
goto A9a16907107cc3bb;
c970fa926b2158f4:
$f523e362fb81d6c8["\151\x6e\x66\x6f"]["\x62\x6f\x75\x71\165\x65\164\x73"] = $f523e362fb81d6c8["\142\157\165\x71\165\x65\x74\x73"];
$c43b488500f8fab7 = array();
if ($E379394c7b1a273f == "\141\162\143\x68\151\x76\145") {
goto A1ef45df05d107f9;
}
if (!($f523e362fb81d6c8["\151\x6e\x66\x6f"]["\x64\151\x72\x65\x63\164\137\x73\157\165\x72\x63\145"] == 1 && $f523e362fb81d6c8["\x69\x6e\146\x6f"]["\x64\151\x72\145\143\164\137\x70\162\157\x78\171"] == 0)) {
goto b4ce43a460cfe3cf;
}
header("\x4c\157\143\141\x74\151\157\x6e\x3a\40" . str_replace("\x20", "\45\62\x30", json_decode($f523e362fb81d6c8["\x69\x6e\x66\x6f"]["\x73\164\x72\145\x61\x6d\137\163\157\x75\x72\x63\145"], true)[0]));
goto D6aa8e7712fd10dd;
C62d867495876ba8:
if (self::$rCached) {
goto f24aef7d35fc82e3;
}
$f523e362fb81d6c8 = self::AD41Bf0664804fa8($F26087d31c2bbe4d);
goto de9559ad1a818f87;
f24aef7d35fc82e3:
$f523e362fb81d6c8 = igbinary_unserialize(file_get_contents(STREAMS_TMP_PATH . "/stream_" . $F26087d31c2bbe4d)) ?: null;
goto F11740619ed7f370;
F6872ac6ac3210b1:
$f16991461acd03bf = array_keys($e1d30a1d66778eaf);
$E287c1867f711629 = array_values($e1d30a1d66778eaf);
array_multisort($E287c1867f711629, SORT_ASC, $f16991461acd03bf, SORT_ASC);
$e1d30a1d66778eaf = array_combine($f16991461acd03bf, $E287c1867f711629);
if ($F9452a7efafa1aba == "\x72\x74\x6d\x70" && array_key_exists(SERVER_ID, $e1d30a1d66778eaf)) {
goto C180d738ec08e29e;
}
goto bdbf1e0b6838a613;
F11740619ed7f370:
$f523e362fb81d6c8["\142\157\165\x71\165\x65\x74\x73"] = self::getBouquetMap($F26087d31c2bbe4d);
de9559ad1a818f87:
if ($f523e362fb81d6c8) {
goto ddaa6cf9d94daa9a;
}
return false;
ddaa6cf9d94daa9a:
goto c970fa926b2158f4;
d43cf8b5a041908a:
A1ef45df05d107f9:
if (!($f523e362fb81d6c8["\x69\156\x66\157"]["\x74\166\137\141\162\x63\150\151\166\x65\x5f\x64\x75\x72\141\164\x69\x6f\x6e"] > 0 && $f523e362fb81d6c8["\x69\x6e\x66\157"]["\164\x76\137\x61\x72\x63\x68\x69\x76\145\137\x73\145\x72\x76\145\x72\137\151\x64"] > 0 && array_key_exists($f523e362fb81d6c8["\x69\x6e\x66\x6f"]["\164\x76\137\141\x72\143\x68\x69\166\x65\137\x73\x65\162\166\x65\x72\137\x69\x64"], self::$rServers))) {
goto Fc0b40c9a2d028bf;
}
$c43b488500f8fab7 = array($f523e362fb81d6c8["\151\156\x66\x6f"]["\x74\166\137\141\162\x63\x68\151\166\x65\x5f\163\x65\x72\166\145\162\137\x69\144"]);
Fc0b40c9a2d028bf:
Ed60c4714ba8bccd:
goto B78cc5bf1b4cc9a1;
cb22a842018c1fb6:
return false;
d39f4e6de0180582:
$B5f1fb70f197b910 = empty($B5f1fb70f197b910) ? array_search(min($ceb41d1730714460), $ceb41d1730714460) : $B5f1fb70f197b910;
goto Cc7f8298f403ec71;
Cc70282383f17592:
goto c60e8d1b84cb231b;
c60e8d1b84cb231b:
$B5f1fb70f197b910 = $D4253f9520627819["\x66\157\162\x63\x65\x5f\163\145\162\166\x65\x72\x5f\x69\144"];
Cc7f8298f403ec71:
goto B541ba57db8132ab;
C180d738ec08e29e:
$B5f1fb70f197b910 = SERVER_ID;
goto Ec8de5683224349d;
C2c1fba241c0dd49:
$e1d30a1d66778eaf = array();
foreach ($c43b488500f8fab7 as $d58b4f8653a391d8) {
$c9a044772607fb06 = isset($a9d38d288d6824ad[$d58b4f8653a391d8]["\157\x6e\154\151\x6e\145\x5f\143\154\x69\x65\156\164\163"]) ? $a9d38d288d6824ad[$d58b4f8653a391d8]["\x6f\156\154\x69\x6e\145\137\x63\x6c\151\x65\156\164\x73"] : 0;
if (!($c9a044772607fb06 == 0)) {
goto a13a5b29cbc96e9a;
}
$a9d38d288d6824ad[$d58b4f8653a391d8]["\143\x61\x70\141\143\151\164\171"] = 0;
a13a5b29cbc96e9a:
$e1d30a1d66778eaf[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["\x74\x6f\x74\x61\154\x5f\x63\154\151\145\x6e\x74\x73"] > 0 && self::$rServers[$d58b4f8653a391d8]["\164\x6f\164\x61\x6c\x5f\143\x6c\x69\x65\x6e\164\163"] > $c9a044772607fb06 ? $a9d38d288d6824ad[$d58b4f8653a391d8]["\x63\x61\x70\x61\143\151\164\x79"] : false;
D784935751d94be8:
}
A5335b35f85d0ce6:
$e1d30a1d66778eaf = array_filter($e1d30a1d66778eaf, "\151\x73\x5f\x6e\165\x6d\x65\162\x69\x63");
if (empty($e1d30a1d66778eaf)) {
goto d02337a0cc0667b1;
}
goto F6872ac6ac3210b1;
D6aa8e7712fd10dd:
exit;
b4ce43a460cfe3cf:
foreach (self::$rServers as $d58b4f8653a391d8 => $cc5f26dd881329b7) {
goto F3f5c60e5f4b3b67;
C0607f43807c24cd:
if (!((!empty($f523e362fb81d6c8["\163\145\162\x76\145\162\163"][$d58b4f8653a391d8]["\x70\151\x64"]) && $f523e362fb81d6c8["\163\x65\162\166\x65\x72\163"][$d58b4f8653a391d8]["\164\x6f\137\141\x6e\x61\154\171\x7a\145"] == 0 && $f523e362fb81d6c8["\x73\145\x72\x76\145\162\x73"][$d58b4f8653a391d8]["\163\x74\x72\145\x61\155\137\163\x74\x61\x74\165\x73"] == 0 or $f523e362fb81d6c8["\x69\x6e\146\157"]["\x64\x69\x72\145\x63\x74\x5f\x73\157\165\x72\x63\x65"] == 1 && $f523e362fb81d6c8["\151\156\x66\157"]["\144\x69\x72\x65\x63\x74\x5f\x70\162\157\x78\171"] == 1) && ($f523e362fb81d6c8["\151\x6e\x66\157"]["\164\x61\x72\x67\x65\164\137\x63\157\156\x74\x61\151\x6e\x65\x72"] == $F9452a7efafa1aba or $F9452a7efafa1aba = "\x73\x72\x74") && $cc5f26dd881329b7["\164\151\x6d\x65\163\x68\151\x66\164\137\x6f\x6e\154\x79"] == 0)) {
goto E6b3bfde2bba3a4b;
}
$c43b488500f8fab7[] = $d58b4f8653a391d8;
E6b3bfde2bba3a4b:
e6a1b797ad1cbaae:
d14a0ca3952856ab:
goto Ceb16f4cc7518b1f;
fdf20eec96c52992:
if (!(($f523e362fb81d6c8["\x73\145\162\x76\145\162\x73"][$d58b4f8653a391d8]["\157\156\137\144\x65\x6d\x61\156\x64"] == 1 && $f523e362fb81d6c8["\x73\145\x72\x76\145\162\x73"][$d58b4f8653a391d8]["\163\164\x72\145\141\155\137\163\x74\x61\164\x75\163"] != 1 || $f523e362fb81d6c8["\x73\x65\x72\x76\x65\162\x73"][$d58b4f8653a391d8]["\160\151\x64"] > 0 && $f523e362fb81d6c8["\163\145\x72\166\145\x72\x73"][$d58b4f8653a391d8]["\x73\164\x72\x65\x61\x6d\x5f\x73\x74\x61\164\165\x73"] == 0) && $f523e362fb81d6c8["\x73\x65\x72\x76\145\x72\x73"][$d58b4f8653a391d8]["\x74\157\x5f\141\x6e\x61\154\171\x7a\145"] == 0 && time() >= (int) $f523e362fb81d6c8["\163\x65\162\166\145\x72\163"][$d58b4f8653a391d8]["\144\145\154\x61\x79\x5f\141\166\x61\151\x6c\x61\142\154\145\x5f\141\x74"] && $cc5f26dd881329b7["\x74\x69\155\145\163\150\151\x66\x74\x5f\x6f\156\x6c\171"] == 0 or $f523e362fb81d6c8["\151\x6e\x66\157"]["\144\151\162\x65\143\x74\137\x73\157\165\162\143\145"] == 1 && $f523e362fb81d6c8["\x69\x6e\x66\157"]["\144\x69\162\145\143\x74\137\160\162\x6f\x78\x79"] == 1)) {
goto f2c9ad91c6d18d70;
}
$c43b488500f8fab7[] = $d58b4f8653a391d8;
f2c9ad91c6d18d70:
goto e6a1b797ad1cbaae;
dc81d1b4441bc4da:
goto C0607f43807c24cd;
Ceb16f4cc7518b1f:
F4f1e383f7da1088:
goto cab84e8df02f7b1d;
F3f5c60e5f4b3b67:
if (!(!array_key_exists($d58b4f8653a391d8, $f523e362fb81d6c8["\x73\x65\162\x76\x65\162\163"]) || !$cc5f26dd881329b7["\163\x65\162\166\145\x72\x5f\x6f\156\x6c\x69\x6e\145"] || $cc5f26dd881329b7["\x73\145\x72\x76\145\162\x5f\x74\x79\x70\x65"] != 0)) {
goto E7f37679082b65f8;
}
goto F4f1e383f7da1088;
E7f37679082b65f8:
if (!isset($f523e362fb81d6c8["\163\145\x72\x76\145\x72\163"][$d58b4f8653a391d8])) {
goto d14a0ca3952856ab;
}
if ($E379394c7b1a273f == "\155\x6f\166\151\145") {
goto dc81d1b4441bc4da;
}
goto fdf20eec96c52992;
cab84e8df02f7b1d:
}
bde8c56657567d13:
goto Ed60c4714ba8bccd;
goto d43cf8b5a041908a;
e3efe818e8c4d2ad:
if ($E379394c7b1a273f == "\x61\x72\x63\150\151\x76\x65") {
goto Ce197b9537ddabd2;
}
return array();
goto be7e45769ffebcd6;
Ce197b9537ddabd2:
return null;
goto a8f7ce3bbc25e1a8;
bdbf1e0b6838a613:
if (isset($D4253f9520627819) && ($D4253f9520627819["\x66\157\162\x63\145\137\x73\x65\x72\166\x65\x72\x5f\151\x64"] != 0 and array_key_exists($D4253f9520627819["\146\157\162\x63\x65\137\163\x65\x72\166\x65\162\137\151\x64"], $e1d30a1d66778eaf))) {
goto Cc70282383f17592;
}
$ceb41d1730714460 = array();
foreach (array_keys($e1d30a1d66778eaf) as $d58b4f8653a391d8) {
goto c4c9036ff500aaca;
bd8c46659a18be77:
unset($e1d30a1d66778eaf[$d58b4f8653a391d8]);
Cc693194c0722d58:
goto Ed09d16414f36a87;
ab98dde6f267d2df:
$B5f1fb70f197b910 = $d58b4f8653a391d8;
goto B99d6543acd6b9fb;
c4c9036ff500aaca:
if (self::$rServers[$d58b4f8653a391d8]["\x65\x6e\141\x62\154\145\x5f\147\145\157\x69\x70"] == 1) {
goto E99d37a8420a215d;
}
if (self::$rServers[$d58b4f8653a391d8]["\x65\x6e\141\142\x6c\145\x5f\151\163\x70"] == 1) {
goto F118623ede1a2734;
}
if (isset($f523e362fb81d6c8) && !self::$rSettings["\157\x6e\x64\145\x6d\141\156\144\137\142\141\x6c\x61\156\x63\145\x5f\145\x71\x75\141\154"] && $f523e362fb81d6c8["\163\145\162\x76\x65\x72\x73"][$d58b4f8653a391d8]["\157\156\137\144\145\155\141\156\x64"]) {
goto Fb3aeead40b8a771;
}
$ceb41d1730714460[$d58b4f8653a391d8] = 1;
goto a03c996c30d815c1;
goto C02d45e6269f1e73;
B99d6543acd6b9fb:
goto cbb6986dcf2350d0;
Ed09d16414f36a87:
f690855d88163579:
goto bc6163998566d7ae;
E99d37a8420a215d:
goto Bebc366257fff902;
A8ef308a43bc2672:
a3cf6f14abf10ae9:
$ceb41d1730714460[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["\x67\145\157\151\160\x5f\x74\171\x70\145"] == "\154\157\x77\137\x70\162\151\157\x72\x69\x74\171" ? 3 : 2;
F0e0a6ad4481fbd4:
goto Dae3c6cf278608de;
B7fe3fb4be1c91e2:
goto c0ba462f1c92baa7;
cd4d7e3802e0fa63:
f432e8e3e7f10c1d:
$ceb41d1730714460[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["\x69\163\160\137\x74\x79\160\145"] == "\x6c\x6f\167\x5f\160\x72\151\x6f\x72\x69\164\171" ? 3 : 2;
Fcd9d7531742bb9a:
goto Cc693194c0722d58;
feaffddd80c820df:
goto bd8c46659a18be77;
C02d45e6269f1e73:
Fb3aeead40b8a771:
$ceb41d1730714460[$d58b4f8653a391d8] = 2;
a03c996c30d815c1:
goto f690855d88163579;
F118623ede1a2734:
goto A07b5b9f9b88c5b7;
da91b04cf7376a41:
goto cbb6986dcf2350d0;
E0b7543d9c454f57:
bc6163998566d7ae:
F0a4013504631e2e:
goto a610ce59cd668982;
Bebc366257fff902:
if (in_array($efc0f8f3059e4104, self::$rServers[$d58b4f8653a391d8]["\147\x65\157\x69\x70\x5f\143\x6f\165\x6e\164\162\x69\x65\163"])) {
goto E46e461130effed1;
}
if (self::$rServers[$d58b4f8653a391d8]["\x67\145\x6f\151\160\x5f\x74\171\160\145"] == "\x73\164\x72\151\x63\164") {
goto B7fe3fb4be1c91e2;
}
if (isset($f523e362fb81d6c8) && !self::$rSettings["\157\156\144\x65\155\x61\x6e\x64\x5f\x62\141\x6c\141\156\143\145\137\145\161\x75\141\x6c"] && $f523e362fb81d6c8["\x73\145\162\x76\145\x72\163"][$d58b4f8653a391d8]["\157\x6e\137\144\145\155\141\x6e\144"]) {
goto a3cf6f14abf10ae9;
}
$ceb41d1730714460[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["\x67\145\157\x69\160\137\x74\x79\x70\x65"] == "\x6c\x6f\x77\137\160\x72\151\157\162\x69\164\171" ? 2 : 1;
goto F0e0a6ad4481fbd4;
goto A8ef308a43bc2672;
A07b5b9f9b88c5b7:
if (in_array(strtolower(trim(preg_replace("\x2f\x5b\x5e\101\x2d\x5a\141\x2d\x7a\x30\x2d\x39\40\x5d\57", '', $f72bad5bd13565f1))), self::$rServers[$d58b4f8653a391d8]["\x69\x73\x70\x5f\x6e\x61\x6d\145\163"])) {
goto ab98dde6f267d2df;
}
if (self::$rServers[$d58b4f8653a391d8]["\x69\163\x70\x5f\164\171\160\x65"] == "\x73\x74\x72\151\x63\x74") {
goto feaffddd80c820df;
}
if (isset($f523e362fb81d6c8) && !self::$rSettings["\x6f\156\144\145\x6d\x61\156\x64\137\x62\141\154\141\x6e\x63\145\x5f\145\x71\x75\x61\x6c"] && $f523e362fb81d6c8["\x73\x65\162\x76\x65\x72\x73"][$d58b4f8653a391d8]["\157\x6e\x5f\x64\145\155\x61\156\x64"]) {
goto f432e8e3e7f10c1d;
}
$ceb41d1730714460[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["\x69\163\160\x5f\164\x79\160\145"] == "\x6c\157\167\x5f\160\162\x69\x6f\x72\x69\x74\171" ? 2 : 1;
goto Fcd9d7531742bb9a;
goto cd4d7e3802e0fa63;
c0ba462f1c92baa7:
unset($e1d30a1d66778eaf[$d58b4f8653a391d8]);
Dae3c6cf278608de:
goto E0b7543d9c454f57;
E46e461130effed1:
$B5f1fb70f197b910 = $d58b4f8653a391d8;
goto da91b04cf7376a41;
a610ce59cd668982:
}
cbb6986dcf2350d0:
if (!(empty($ceb41d1730714460) && empty($B5f1fb70f197b910))) {
goto d39f4e6de0180582;
}
goto cb22a842018c1fb6;
fff2fcdfbb2dcbb6:
}
public static function B97D7ACBCf7c7A5e($Fd50c63671da34f8)
{
if (!(isset(self::$rSettings[$Fd50c63671da34f8]) && strlen(self::$rSettings[$Fd50c63671da34f8]) > 0)) {
goto ceb5bef15b68042b;
}
return self::$rSettings[$Fd50c63671da34f8];
ceb5bef15b68042b:
switch ($Fd50c63671da34f8) {
case "\143\x6f\156\x6e\145\143\x74\x65\144\137\x76\151\144\x65\x6f\x5f\160\x61\164\150":
if (!file_exists(VIDEO_PATH . "\x63\x6f\156\156\x65\x63\164\x65\144\x2e\x74\163")) {
goto a180c4a18d2e4d47;
}
return VIDEO_PATH . "\143\x6f\x6e\156\x65\143\164\x65\144\x2e\x74\x73";
a180c4a18d2e4d47:
goto e8a69fb50826725b;
case "\145\170\160\x69\x72\x65\x64\x5f\166\x69\144\145\157\x5f\x70\x61\164\x68":
if (!file_exists(VIDEO_PATH . "\x65\x78\x70\x69\162\x65\144\x2e\164\x73")) {
goto d04dc2833d05ae7d;
}
return VIDEO_PATH . "\x65\170\x70\151\162\145\144\x2e\x74\x73";
d04dc2833d05ae7d:
goto e8a69fb50826725b;
case "\x62\x61\156\x6e\x65\144\x5f\166\151\144\145\x6f\137\160\141\164\150":
if (!file_exists(VIDEO_PATH . "\x62\x61\x6e\156\x65\144\x2e\164\163")) {
goto Ebaebad032eef935;
}
return VIDEO_PATH . "\x62\141\x6e\156\145\144\x2e\164\163";
Ebaebad032eef935:
goto e8a69fb50826725b;
case "\x6e\x6f\x74\x5f\157\x6e\137\141\151\x72\x5f\166\x69\144\x65\157\137\x70\141\x74\150":
if (!file_exists(VIDEO_PATH . "\x6f\x66\146\x6c\151\x6e\x65\x2e\164\x73")) {
goto ad6263a706a28f6b;
}
return VIDEO_PATH . "\x6f\x66\146\154\151\156\145\x2e\x74\163";
ad6263a706a28f6b:
goto e8a69fb50826725b;
case "\x65\170\x70\151\x72\x69\x6e\147\137\x76\x69\144\x65\x6f\x5f\160\x61\164\150":
if (!file_exists(VIDEO_PATH . "\145\x78\x70\x69\x72\x69\x6e\x67\x2e\x74\x73")) {
goto b5ad283a47079264;
}
return VIDEO_PATH . "\145\170\x70\x69\162\x69\x6e\147\56\x74\x73";
b5ad283a47079264:
goto e8a69fb50826725b;
}
e1fd360c7fb89089:
e8a69fb50826725b:
return null;
}
public static function Ad5765C0FD1ABb43($Fca476d6a870416e, $Fd50c63671da34f8, $F9452a7efafa1aba, $D4253f9520627819, $c59ec257c284c894, $efc0f8f3059e4104, $Fbe730b7a1211b54, $d58b4f8653a391d8 = null, $b2a9243e8304033d = null)
{
goto f36ea74214052e62;
f36ea74214052e62:
$Fd50c63671da34f8 = self::B97D7AcBCF7C7A5e($Fd50c63671da34f8);
if (!(!$D4253f9520627819["\x69\x73\x5f\162\145\x73\164\x72\145\141\x6d\x65\162"] && self::$rSettings[$Fca476d6a870416e] && strlen($Fd50c63671da34f8) > 0)) {
goto dc80870dfd4b0fba;
}
if ($d58b4f8653a391d8) {
goto bf8e2a034c607b01;
}
$d58b4f8653a391d8 = self::F4221e28760b623E($D4253f9520627819, $c59ec257c284c894, $efc0f8f3059e4104, $Fbe730b7a1211b54);
bf8e2a034c607b01:
goto d399907e6dd44eda;
d399907e6dd44eda:
if ($d58b4f8653a391d8) {
goto e91c19bd972701c9;
}
$d58b4f8653a391d8 = SERVER_ID;
e91c19bd972701c9:
$a70eaa0ab42179dd = null;
if (!(self::isProxied($d58b4f8653a391d8) && (!$D4253f9520627819["\x69\x73\137\162\x65\163\x74\x72\x65\141\x6d\145\x72"] or !self::$rSettings["\x72\145\x73\164\162\x65\141\155\x65\162\137\142\171\x70\141\163\163\x5f\x70\x72\x6f\170\171"]))) {
goto e27b2c9d73b5c423;
}
goto A2e8d2e516153a7d;
Ecb5d33326617a19:
goto C1f152c245b718e8;
B4f16e09dde7cf83:
$C700a2b357e5ed65 = self::$rServers[$d58b4f8653a391d8]["\x64\x6f\x6d\141\151\x6e\163"]["\160\162\x6f\x74\157\x63\x6f\x6c"] . "\72\57\57" . self::$rServers[$d58b4f8653a391d8]["\x64\157\x6d\x61\x69\x6e\x73"]["\x75\x72\154\163"][array_rand(self::$rServers[$d58b4f8653a391d8]["\x64\x6f\155\141\151\x6e\163"]["\165\162\x6c\163"])] . "\x3a" . self::$rServers[$d58b4f8653a391d8]["\144\157\x6d\141\151\156\x73"]["\x70\x6f\162\164"];
C1f152c245b718e8:
if (!($a70eaa0ab42179dd && !self::$rServers[$a70eaa0ab42179dd]["\151\x73\x5f\x6d\141\x69\156"])) {
goto e553bb1d9f53a2f0;
}
goto dab167dedc8b7036;
A2e8d2e516153a7d:
$c08f7f5177a44d91 = self::getProxies($d58b4f8653a391d8);
$b2a9243e8304033d = self::availableProxy(array_keys($c08f7f5177a44d91), $efc0f8f3059e4104, $D4253f9520627819["\143\157\156\137\x69\x73\160\137\156\141\155\x65"]);
if ($b2a9243e8304033d) {
goto a462da6545979c07;
}
dB709Ed65ae02245();
a462da6545979c07:
goto a0384138e3cfe1db;
cce479e50068c555:
header("\x43\x6f\156\164\145\156\164\55\x54\x79\x70\x65\x3a\x20\141\160\160\x6c\151\143\141\164\151\x6f\156\57\170\x2d\x6d\x70\x65\x67\x75\162\x6c");
header("\103\157\156\164\145\156\164\55\114\145\156\147\164\150\x3a\x20" . strlen($dc05e2bb97d4635d));
echo $dc05e2bb97d4635d;
exit;
a107f0db889274a4:
goto c62026bc150925b8;
c62026bc150925b8:
dc80870dfd4b0fba:
switch ($Fca476d6a870416e) {
case "\163\150\157\x77\137\145\x78\160\151\x72\145\144\137\x76\x69\144\145\x6f":
generateError("\105\x58\120\111\x52\x45\x44");
goto bc40f2f1c33184c8;
case "\163\150\x6f\167\137\x62\141\156\156\x65\144\137\166\x69\x64\145\x6f":
generateError("\x42\101\x4e\116\105\104");
goto bc40f2f1c33184c8;
case "\x73\x68\x6f\x77\137\156\x6f\164\x5f\157\x6e\x5f\141\x69\162\x5f\166\151\144\145\157":
generateError("\x53\x54\122\105\101\115\137\x4f\106\x46\114\111\116\105");
goto bc40f2f1c33184c8;
default:
Db709Ed65AE02245();
goto bc40f2f1c33184c8;
}
d20abed4483c69e6:
bc40f2f1c33184c8:
goto f5e63660087cb9a6;
dab167dedc8b7036:
$C700a2b357e5ed65 .= "\x2f" . md5($d58b4f8653a391d8 . "\137" . $a70eaa0ab42179dd . "\x5f" . OPENSSL_EXTRA);
e553bb1d9f53a2f0:
$F64d974c429d80be = array("\x65\x78\x70\151\162\145\x73" => time() + 10, "\x76\x69\144\145\x6f\137\160\141\x74\x68" => $Fd50c63671da34f8);
$ea5296071288c730 = Xui\Functions::encrypt(json_encode($F64d974c429d80be), self::$rSettings["\x6c\x69\x76\x65\x5f\x73\164\x72\145\x61\x6d\x69\156\147\137\x70\x61\163\x73"], OPENSSL_EXTRA);
if ($F9452a7efafa1aba == "\x6d\63\x75\x38") {
goto De3fa2e21829663b;
}
goto dbb208ac92e35f10;
dbb208ac92e35f10:
header("\114\x6f\x63\141\164\x69\x6f\x6e\72\40{$C700a2b357e5ed65}\57\x61\x75\x74\x68\57{$ea5296071288c730}");
exit;
goto a107f0db889274a4;
De3fa2e21829663b:
$dc05e2bb97d4635d = "\x23\105\130\x54\115\x33\125\12\x23\105\130\124\x2d\130\55\x56\105\x52\123\x49\x4f\116\72\x33\12\x23\105\x58\124\55\130\55\x4d\105\104\x49\x41\x2d\123\x45\x51\125\105\116\103\105\x3a\60\xa\43\105\130\124\x2d\130\x2d\101\x4c\x4c\117\x57\x2d\x43\101\103\110\x45\72\131\x45\x53\12\x23\x45\130\124\55\x58\55\x54\101\122\107\105\124\x44\125\122\101\124\111\117\x4e\72\x31\x30\xa\43\x45\x58\x54\x49\116\106\72\61\x30\x2e\x30\54\xa{$C700a2b357e5ed65}\x2f\141\x75\164\150\x2f{$ea5296071288c730}\12\x23\105\x58\x54\x2d\130\x2d\x45\x4e\x44\x4c\111\x53\x54";
goto cce479e50068c555;
a0384138e3cfe1db:
$a70eaa0ab42179dd = $d58b4f8653a391d8;
$d58b4f8653a391d8 = $b2a9243e8304033d;
e27b2c9d73b5c423:
if (self::$rServers[$d58b4f8653a391d8]["\162\141\156\x64\x6f\x6d\137\151\160"] && count(self::$rServers[$d58b4f8653a391d8]["\x64\157\x6d\x61\x69\156\x73"]["\165\162\x6c\163"]) > 0) {
goto B4f16e09dde7cf83;
}
$C700a2b357e5ed65 = rtrim(self::$rServers[$d58b4f8653a391d8]["\x73\151\164\x65\x5f\x75\162\154"], "\x2f");
goto Ecb5d33326617a19;
f5e63660087cb9a6:
}
public static function F4221e28760B623E($D4253f9520627819, $c2a965773885730d, $efc0f8f3059e4104, $f72bad5bd13565f1 = '')
{
goto Aa455a8536f1f478;
Cf8ff585d1b2b942:
goto F37e89496811a836;
D0a568a75e0daddd:
$B5f1fb70f197b910 = $D4253f9520627819["\x66\x6f\162\143\x65\x5f\x73\145\x72\x76\145\162\137\151\x64"];
F37e89496811a836:
return $B5f1fb70f197b910;
goto A11f11d787b2bcd1;
B53f50191be716af:
array_multisort($E287c1867f711629, SORT_ASC, $f16991461acd03bf, SORT_ASC);
$e1d30a1d66778eaf = array_combine($f16991461acd03bf, $E287c1867f711629);
if ($D4253f9520627819["\146\x6f\x72\x63\145\137\163\x65\162\166\145\x72\x5f\151\x64"] != 0 and array_key_exists($D4253f9520627819["\146\157\162\x63\x65\137\163\x65\x72\x76\x65\162\x5f\x69\x64"], $e1d30a1d66778eaf)) {
goto D0a568a75e0daddd;
}
$ceb41d1730714460 = array();
foreach (array_keys($e1d30a1d66778eaf) as $d58b4f8653a391d8) {
goto E9504a6d3d1e0a3e;
da2c31bcef4b39e8:
if (in_array($f72bad5bd13565f1, self::$rServers[$d58b4f8653a391d8]["\x69\x73\x70\137\x6e\x61\155\x65\x73"])) {
goto Db33207d759a2e14;
}
if (self::$rServers[$d58b4f8653a391d8]["\x69\x73\x70\137\x74\171\x70\145"] == "\x73\164\x72\151\x63\x74") {
goto D78036eaa01b4d7a;
}
$ceb41d1730714460[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["\x69\163\x70\x5f\164\171\160\145"] == "\154\157\x77\137\160\162\x69\157\162\151\164\171" ? 1 : 2;
goto ad52b1f0838a62a6;
D78036eaa01b4d7a:
goto a817196801902fb4;
de59081b80f528fa:
goto c84926f21a4445aa;
A319ebdfcf9feff3:
E3d4a037c6ebbff1:
d8e10e9f58dda86a:
goto e2c77be5f57ac542;
D0fdb5af4f4d4e75:
unset($e1d30a1d66778eaf[$d58b4f8653a391d8]);
f1b1ba0a8ef80e8e:
goto A319ebdfcf9feff3;
e7e01d6bc7536d4c:
$B5f1fb70f197b910 = $d58b4f8653a391d8;
goto de59081b80f528fa;
E9504a6d3d1e0a3e:
if (self::$rServers[$d58b4f8653a391d8]["\145\x6e\141\142\x6c\x65\137\x67\145\x6f\151\160"] == 1) {
goto b0eb3748133bf49f;
}
if (self::$rServers[$d58b4f8653a391d8]["\145\x6e\141\142\154\x65\137\x69\x73\160"] == 1) {
goto a22695cf3378f722;
}
$ceb41d1730714460[$d58b4f8653a391d8] = 1;
goto B095426f2203149e;
a22695cf3378f722:
goto da2c31bcef4b39e8;
Ee06905eef781155:
if (in_array($efc0f8f3059e4104, self::$rServers[$d58b4f8653a391d8]["\x67\145\x6f\x69\160\137\143\157\x75\x6e\164\x72\151\x65\163"])) {
goto e7e01d6bc7536d4c;
}
if (self::$rServers[$d58b4f8653a391d8]["\147\145\157\x69\160\137\164\x79\x70\x65"] == "\x73\164\x72\151\x63\164") {
goto cfb8b4acdfa18f7f;
}
$ceb41d1730714460[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["\147\x65\x6f\151\160\x5f\164\x79\160\x65"] == "\x6c\x6f\x77\137\160\162\x69\x6f\162\151\164\171" ? 1 : 2;
goto f1b1ba0a8ef80e8e;
cfb8b4acdfa18f7f:
goto D0fdb5af4f4d4e75;
beeceb6a04823c0e:
goto c84926f21a4445aa;
Af3b73e681809525:
B095426f2203149e:
goto E3d4a037c6ebbff1;
b0eb3748133bf49f:
goto Ee06905eef781155;
a817196801902fb4:
unset($e1d30a1d66778eaf[$d58b4f8653a391d8]);
ad52b1f0838a62a6:
goto Af3b73e681809525;
Db33207d759a2e14:
$B5f1fb70f197b910 = $d58b4f8653a391d8;
goto beeceb6a04823c0e;
e2c77be5f57ac542:
}
goto De62f96aad4ef35b;
De62f96aad4ef35b:
c84926f21a4445aa:
if (!(empty($ceb41d1730714460) && empty($B5f1fb70f197b910))) {
goto E25b70e7029cfc36;
}
return false;
E25b70e7029cfc36:
$B5f1fb70f197b910 = empty($B5f1fb70f197b910) ? array_search(min($ceb41d1730714460), $ceb41d1730714460) : $B5f1fb70f197b910;
goto Cf8ff585d1b2b942;
e42732878b560367:
b316978f97a12102:
$e1d30a1d66778eaf = array_filter($e1d30a1d66778eaf, "\151\x73\137\x6e\165\x6d\145\x72\151\143");
if (empty($e1d30a1d66778eaf)) {
goto a4a548e34b564a39;
}
$f16991461acd03bf = array_keys($e1d30a1d66778eaf);
$E287c1867f711629 = array_values($e1d30a1d66778eaf);
goto B53f50191be716af;
A11f11d787b2bcd1:
a4a548e34b564a39:
return false;
goto ffef6461b207f02f;
Aa455a8536f1f478:
$c43b488500f8fab7 = array();
foreach (self::$rServers as $d58b4f8653a391d8 => $cc5f26dd881329b7) {
if (!(!$cc5f26dd881329b7["\163\145\162\x76\x65\x72\137\x6f\156\154\151\x6e\145"] || $cc5f26dd881329b7["\x73\145\x72\166\x65\x72\x5f\164\171\160\145"] != 0)) {
goto Ed27df695df2ef6b;
}
goto d416b9b0a57de1e8;
Ed27df695df2ef6b:
$c43b488500f8fab7[] = $d58b4f8653a391d8;
d416b9b0a57de1e8:
}
aa350b2571e85242:
if (!empty($c43b488500f8fab7)) {
goto Ff1ce0fd6cc2bb67;
}
return false;
goto b7f9d68709cf4e3c;
b7f9d68709cf4e3c:
Ff1ce0fd6cc2bb67:
shuffle($c43b488500f8fab7);
$a9d38d288d6824ad = self::CDd1bc14D819be74();
$e1d30a1d66778eaf = array();
foreach ($c43b488500f8fab7 as $d58b4f8653a391d8) {
$c9a044772607fb06 = isset($a9d38d288d6824ad[$d58b4f8653a391d8]["\x6f\x6e\x6c\x69\x6e\145\137\143\x6c\151\x65\x6e\164\x73"]) ? $a9d38d288d6824ad[$d58b4f8653a391d8]["\157\x6e\x6c\151\x6e\145\137\143\154\151\145\156\x74\163"] : 0;
if (!($c9a044772607fb06 == 0)) {
goto D80d5e0d4cf74ca5;
}
$a9d38d288d6824ad[$d58b4f8653a391d8]["\x63\141\x70\141\x63\151\164\171"] = 0;
D80d5e0d4cf74ca5:
$e1d30a1d66778eaf[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["\x74\x6f\x74\x61\154\137\x63\x6c\151\145\x6e\x74\x73"] > 0 && self::$rServers[$d58b4f8653a391d8]["\164\x6f\164\x61\154\137\x63\x6c\151\x65\156\x74\163"] > $c9a044772607fb06 ? $a9d38d288d6824ad[$d58b4f8653a391d8]["\143\x61\x70\x61\143\151\x74\171"] : false;
b10133a0e4a18609:
}
goto e42732878b560367;
ffef6461b207f02f:
}
public static function availableProxy($c08f7f5177a44d91, $efc0f8f3059e4104, $f72bad5bd13565f1 = '')
{
goto Aab37217ab407881;
ca040e266365f8be:
foreach ($c08f7f5177a44d91 as $d58b4f8653a391d8) {
$c9a044772607fb06 = isset($a9d38d288d6824ad[$d58b4f8653a391d8]["\157\156\154\151\156\145\x5f\143\154\x69\145\x6e\164\163"]) ? $a9d38d288d6824ad[$d58b4f8653a391d8]["\x6f\x6e\154\x69\x6e\x65\137\143\x6c\151\145\156\x74\163"] : 0;
if (!($c9a044772607fb06 == 0)) {
goto ba1c3310242a3592;
}
$a9d38d288d6824ad[$d58b4f8653a391d8]["\143\141\x70\x61\x63\151\164\171"] = 0;
ba1c3310242a3592:
$e1d30a1d66778eaf[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["\x74\157\164\141\x6c\x5f\x63\154\x69\x65\x6e\x74\x73"] > 0 && self::$rServers[$d58b4f8653a391d8]["\164\157\x74\141\x6c\137\x63\154\x69\x65\156\x74\163"] > $c9a044772607fb06 ? $a9d38d288d6824ad[$d58b4f8653a391d8]["\x63\141\x70\x61\x63\x69\164\171"] : false;
db9c58776fc8640a:
}
F15b3a771900ab1e:
$e1d30a1d66778eaf = array_filter($e1d30a1d66778eaf, "\151\163\x5f\156\x75\155\145\162\x69\x63");
if (empty($e1d30a1d66778eaf)) {
goto c24dad66283e776e;
}
$f16991461acd03bf = array_keys($e1d30a1d66778eaf);
goto E77211b974fd9eb0;
E77211b974fd9eb0:
$E287c1867f711629 = array_values($e1d30a1d66778eaf);
array_multisort($E287c1867f711629, SORT_ASC, $f16991461acd03bf, SORT_ASC);
$e1d30a1d66778eaf = array_combine($f16991461acd03bf, $E287c1867f711629);
$ceb41d1730714460 = array();
foreach (array_keys($e1d30a1d66778eaf) as $d58b4f8653a391d8) {
goto F41403bac24834a8;
ceee8dcc934d87d9:
unset($e1d30a1d66778eaf[$d58b4f8653a391d8]);
a1c101dc5a82ac66:
goto Cfebcce9fe8b66ac;
E233994e723be2b6:
$B5f1fb70f197b910 = $d58b4f8653a391d8;
goto ed0945407c0c3a39;
ed0945407c0c3a39:
goto D78dbb8d21b76f6e;
Cfebcce9fe8b66ac:
a347de238495b2c7:
goto Ef1b7937dd9fbe02;
C40b9d061a5c8e8c:
goto a11a6e518eab3b44;
A986d6708b5fcc94:
if (in_array($f72bad5bd13565f1, self::$rServers[$d58b4f8653a391d8]["\x69\163\x70\137\156\x61\x6d\x65\163"])) {
goto E233994e723be2b6;
}
if (self::$rServers[$d58b4f8653a391d8]["\x69\163\x70\x5f\x74\x79\160\145"] == "\163\164\x72\151\143\164") {
goto b304f83412ffd8e7;
}
$ceb41d1730714460[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["\x69\163\160\137\x74\x79\x70\145"] == "\x6c\x6f\x77\x5f\160\x72\x69\157\162\151\164\x79" ? 1 : 2;
goto a1c101dc5a82ac66;
b304f83412ffd8e7:
goto ceee8dcc934d87d9;
e1a42b78b21f6533:
unset($e1d30a1d66778eaf[$d58b4f8653a391d8]);
A91aa40796ef180e:
goto Ab9e0fd44d29adaa;
d8d0e94f58b8eee6:
$B5f1fb70f197b910 = $d58b4f8653a391d8;
goto f29c54c22fee2ad2;
a11a6e518eab3b44:
if (in_array($efc0f8f3059e4104, self::$rServers[$d58b4f8653a391d8]["\x67\x65\x6f\151\160\137\143\157\x75\156\x74\162\151\x65\163"])) {
goto d8d0e94f58b8eee6;
}
if (self::$rServers[$d58b4f8653a391d8]["\x67\x65\157\151\160\x5f\164\171\160\145"] == "\x73\164\162\151\x63\x74") {
goto d7186493fe3b9fb4;
}
$ceb41d1730714460[$d58b4f8653a391d8] = self::$rServers[$d58b4f8653a391d8]["\147\x65\157\151\160\x5f\164\x79\160\x65"] == "\154\x6f\167\137\x70\x72\151\x6f\162\151\164\x79" ? 1 : 2;
goto A91aa40796ef180e;
d7186493fe3b9fb4:
goto e1a42b78b21f6533;
F41403bac24834a8:
if (self::$rServers[$d58b4f8653a391d8]["\145\156\x61\x62\154\x65\x5f\x67\x65\157\151\160"] == 1) {
goto C40b9d061a5c8e8c;
}
if (self::$rServers[$d58b4f8653a391d8]["\145\156\x61\142\x6c\x65\x5f\151\163\x70"] == 1) {
goto ee9f13a7ba33275b;
}
$ceb41d1730714460[$d58b4f8653a391d8] = 1;
goto a347de238495b2c7;
ee9f13a7ba33275b:
goto A986d6708b5fcc94;
f29c54c22fee2ad2:
goto D78dbb8d21b76f6e;
Ab9e0fd44d29adaa:
Ef1b7937dd9fbe02:
C5b2a6f38135b00b:
goto f6c58543ab48c69e;
f6c58543ab48c69e:
}
goto Ee41ded925d295be;
Ee41ded925d295be:
D78dbb8d21b76f6e:
if (!(empty($ceb41d1730714460) && empty($B5f1fb70f197b910))) {
goto Ec40ed551d71542e;
}
return null;
Ec40ed551d71542e:
$B5f1fb70f197b910 = empty($B5f1fb70f197b910) ? array_search(min($ceb41d1730714460), $ceb41d1730714460) : $B5f1fb70f197b910;
goto bc4fd5e62b133db4;
bc4fd5e62b133db4:
return $B5f1fb70f197b910;
c24dad66283e776e:
return null;
goto de753b3406730fc5;
Aab37217ab407881:
if (!empty($c08f7f5177a44d91)) {
goto D3d2fe871b6d20a2;
}
return null;
D3d2fe871b6d20a2:
$a9d38d288d6824ad = self::cDd1bC14D819bE74(true);
$e1d30a1d66778eaf = array();
goto ca040e266365f8be;
de753b3406730fc5:
}
public static function D2985c63279Ea4cD($D78ff1d0edade5eb, $B68ac2238b156add, $B08e7d3cd339391a = null, $E18c40e895ee55c2 = '', $c59ec257c284c894 = null, $b3374866087774a1 = null)
{
goto F1150cf97d69f40e;
b3e265f64144e557:
D1f1717b4dd01279:
foreach ($d90ef785aae39e04 as $af379d1083bf17b4) {
goto F2ed198e99b68a1e;
Bd9acdebe3aff0a6:
if (!self::e8E9D6b2B107d8AE($A90d77181715e38e[$Ea22c4a9ab5b2176])) {
goto C85e4b88a2b41eac;
}
$e3d2d1505b87d99c++;
if (!($A90d77181715e38e[$Ea22c4a9ab5b2176]["\143\157\x6e\164\x61\151\x6e\145\x72"] != "\150\154\163")) {
goto A898793f47c0e9b4;
}
if (self::$rSettings["\x72\x65\144\x69\163\x5f\x68\141\156\x64\154\145\162"]) {
goto a5041e17879f4bf4;
}
$Aa8c918a2a91966f[] = intval($A90d77181715e38e[$Ea22c4a9ab5b2176]["\141\143\x74\151\x76\x69\164\171\137\151\144"]);
goto ece535f8ced45568;
Fbb0c2e7e6b23432:
fa92b34de3d855ac:
E2bd74940d139ae4:
$Ea22c4a9ab5b2176++;
goto C8bcb51513090593;
Cc9046f53ac1b06f:
goto E54d910d61458b2d;
E54d910d61458b2d:
Beb5d5f0444f423f:
goto ed4ccbbb784181d7;
F2ed198e99b68a1e:
$Ea22c4a9ab5b2176 = 0;
C8bcb51513090593:
if (!($Ea22c4a9ab5b2176 < count($A90d77181715e38e) && $e3d2d1505b87d99c < $de110edaf0f89eae)) {
goto Cc9046f53ac1b06f;
}
if (!($e3d2d1505b87d99c == $de110edaf0f89eae)) {
goto Ada52bdd29a618bf;
}
goto Ef415f6f7bb0a29d;
goto A22e9dfd49a32949;
ece535f8ced45568:
goto E200367dc3de8659;
a5041e17879f4bf4:
$Aa8c918a2a91966f[] = $A90d77181715e38e[$Ea22c4a9ab5b2176];
E200367dc3de8659:
$D4526c7bd7f852cc[$A90d77181715e38e[$Ea22c4a9ab5b2176]["\x73\164\162\145\x61\x6d\x5f\151\x64"]][] = $aeefef3bed8a0a90[] = $A90d77181715e38e[$Ea22c4a9ab5b2176]["\x75\x75\151\x64"];
goto cf7a1b512fffe3dd;
A22e9dfd49a32949:
Ada52bdd29a618bf:
if (!($A90d77181715e38e[$Ea22c4a9ab5b2176]["\160\x69\x64"] == getmypid())) {
goto f9e28874f6577b80;
}
goto E2bd74940d139ae4;
f9e28874f6577b80:
if (!($A90d77181715e38e[$Ea22c4a9ab5b2176]["\x75\x73\x65\162\137\x69\x70"] == $c59ec257c284c894 && $A90d77181715e38e[$Ea22c4a9ab5b2176]["\x75\x73\x65\x72\x5f\x61\x67\x65\x6e\164"] == $b3374866087774a1 && $af379d1083bf17b4 == 2 or $A90d77181715e38e[$Ea22c4a9ab5b2176]["\x75\163\x65\162\x5f\151\160"] == $c59ec257c284c894 && $af379d1083bf17b4 == 1 or $af379d1083bf17b4 == 0)) {
goto fa92b34de3d855ac;
}
goto Bd9acdebe3aff0a6;
cf7a1b512fffe3dd:
A898793f47c0e9b4:
if (!($A90d77181715e38e[$Ea22c4a9ab5b2176]["\157\156\x5f\144\145\155\x61\x6e\144"] && $A90d77181715e38e[$Ea22c4a9ab5b2176]["\163\145\x72\166\x65\162\137\x69\x64"] == SERVER_ID && self::$rSettings["\x6f\x6e\x5f\x64\145\x6d\x61\x6e\144\137\151\156\163\164\x61\x6e\164\137\157\146\x66"])) {
goto Ab33a55dbfc4f0ae;
}
self::CA490CE3385c630E($A90d77181715e38e[$Ea22c4a9ab5b2176]["\x73\x74\x72\x65\141\x6d\137\151\144"], $A90d77181715e38e[$Ea22c4a9ab5b2176]["\160\x69\144"]);
Ab33a55dbfc4f0ae:
C85e4b88a2b41eac:
goto Fbb0c2e7e6b23432;
ed4ccbbb784181d7:
}
Ef415f6f7bb0a29d:
if (empty($Aa8c918a2a91966f)) {
goto b17fe89338d42f7a;
}
if (self::$rSettings["\162\145\144\151\x73\x5f\x68\x61\x6e\144\x6c\x65\162"]) {
goto Ec40e31376d534cb;
}
goto Be64a108688c9609;
Cd6017021e34c00f:
foreach ($Aa8c918a2a91966f as $e110a2ab6d3a4734) {
goto a9e70d2988bd6b97;
B1d9f1472f7c23a2:
$F42a951cf0a3370a->del($e110a2ab6d3a4734["\x75\x75\x69\x64"]);
$F805649379c06d30[] = $e110a2ab6d3a4734["\x75\165\151\144"];
E89ccb97703adf82:
goto b46ba561cb1fe70e;
a9e70d2988bd6b97:
$F42a951cf0a3370a->zRem("\x4c\x49\116\x45\x23{$e110a2ab6d3a4734["\x69\144\x65\x6e\x74\151\164\x79"]}", $e110a2ab6d3a4734["\165\165\x69\144"]);
$F42a951cf0a3370a->zRem("\114\x49\x4e\x45\x5f\x41\114\x4c\43{$e110a2ab6d3a4734["\x69\144\145\x6e\x74\151\164\171"]}", $e110a2ab6d3a4734["\165\x75\x69\x64"]);
$F42a951cf0a3370a->zRem("\123\x54\122\x45\101\115\x23{$e110a2ab6d3a4734["\163\x74\162\x65\141\155\x5f\151\144"]}", $e110a2ab6d3a4734["\165\165\x69\144"]);
$F42a951cf0a3370a->zRem("\x53\x45\x52\x56\x45\122\x23{$e110a2ab6d3a4734["\163\x65\162\166\145\x72\x5f\151\144"]}", $e110a2ab6d3a4734["\x75\165\x69\x64"]);
if (!$e110a2ab6d3a4734["\x75\x73\x65\162\x5f\x69\144"]) {
goto C47e278e816bdd2b;
}
goto a56289f5e4a7e819;
a56289f5e4a7e819:
$F42a951cf0a3370a->zRem("\x53\105\122\x56\105\x52\x5f\114\x49\116\105\x53\43{$e110a2ab6d3a4734["\163\145\x72\166\x65\x72\x5f\151\144"]}", $e110a2ab6d3a4734["\165\165\x69\144"]);
C47e278e816bdd2b:
if (!$e110a2ab6d3a4734["\x70\x72\x6f\x78\171\x5f\151\x64"]) {
goto E798ef3cad1868b3;
}
$F42a951cf0a3370a->zRem("\x50\122\117\x58\x59\43{$e110a2ab6d3a4734["\160\x72\x6f\170\171\137\x69\x64"]}", $e110a2ab6d3a4734["\x75\165\x69\x64"]);
E798ef3cad1868b3:
goto B1d9f1472f7c23a2;
b46ba561cb1fe70e:
}
fedf1ff7c32dbc8a:
$F42a951cf0a3370a->zRem("\103\x4f\116\116\x45\x43\x54\111\117\x4e\123", ...$F805649379c06d30);
$F42a951cf0a3370a->zRem("\114\x49\x56\105", ...$F805649379c06d30);
$F42a951cf0a3370a->sRem("\x45\116\104\x45\104", ...$F805649379c06d30);
goto B6525ddd83e384c6;
Be64a108688c9609:
self::$db->query("\x44\x45\114\105\x54\x45\40\x46\x52\117\x4d\x20\140\154\x69\x6e\145\x73\x5f\x6c\151\166\x65\x60\x20\x57\110\105\x52\105\40\140\141\x63\164\151\x76\x69\164\171\x5f\x69\x64\x60\x20\x49\x4e\x20\50" . implode("\x2c", array_map("\x69\x6e\x74\x76\141\154", $Aa8c918a2a91966f)) . "\x29");
goto C289e158794ab18b;
Ec40e31376d534cb:
$F805649379c06d30 = array();
$F42a951cf0a3370a = self::$redis->multi();
goto Cd6017021e34c00f;
Eac980732d26e5b0:
if ($c59ec257c284c894 && $b3374866087774a1) {
goto C0a247e0ed173cba;
}
if ($c59ec257c284c894) {
goto Af8790fd68d15dde;
}
$d90ef785aae39e04 = array(0);
goto af74bddc7b7617fa;
Af8790fd68d15dde:
goto cbc90df628071cd6;
Dc0ea81c702b9928:
self::$db->query("\123\x45\x4c\x45\x43\x54\40\x60\154\x69\x6e\145\163\x5f\x6c\151\166\145\x60\x2e\x2a\x2c\40\140\157\x6e\x5f\144\145\155\141\156\144\140\x20\x46\x52\117\x4d\40\140\154\x69\156\x65\163\x5f\154\151\x76\x65\140\x20\x4c\105\x46\124\40\112\117\111\x4e\x20\140\x73\164\x72\145\x61\x6d\163\x5f\x73\145\162\166\x65\x72\163\x60\40\117\x4e\x20\x60\163\164\x72\x65\141\x6d\x73\137\163\145\162\x76\145\162\163\140\56\140\x73\x74\162\145\141\155\x5f\151\144\x60\40\75\x20\x60\x6c\x69\x6e\145\163\137\x6c\151\x76\x65\140\56\x60\163\164\162\x65\141\x6d\137\151\x64\140\x20\x41\116\x44\40\x60\163\x74\162\145\141\155\163\137\163\145\162\166\x65\162\163\x60\x2e\140\x73\x65\x72\166\145\162\x5f\151\144\x60\40\x3d\40\140\154\x69\x6e\145\163\x5f\154\x69\x76\x65\140\56\140\163\145\x72\x76\x65\x72\137\151\144\x60\40\x57\x48\x45\122\105\x20\x60\154\x69\x6e\x65\163\137\154\x69\x76\x65\140\56\x60\x68\155\x61\143\x5f\151\x64\x60\x20\75\x20\77\40\101\116\x44\40\x60\x6c\151\156\x65\x73\x5f\x6c\151\x76\145\140\56\x60\x68\x6c\x73\137\x65\156\144\x60\40\x3d\x20\60\40\101\116\104\40\140\x6c\x69\x6e\145\163\x5f\x6c\x69\x76\x65\x60\56\x60\x68\x6d\x61\143\137\x69\x64\x65\x6e\x74\151\146\151\x65\x72\140\40\75\40\x3f\40\117\122\104\105\122\40\102\x59\x20\140\154\151\156\x65\163\x5f\154\151\x76\145\140\56\140\x61\x63\164\x69\166\151\x74\x79\x5f\151\x64\140\x20\x41\123\x43", $B08e7d3cd339391a, $E18c40e895ee55c2);
db04bf30a961ec68:
$bde5957fb5fa9547 = self::$db->num_rows();
$de110edaf0f89eae = $bde5957fb5fa9547 - $B68ac2238b156add;
if (!($de110edaf0f89eae <= 0)) {
goto ace786d755c23dae;
}
goto a61ec3c3dbe63c5c;
F1150cf97d69f40e:
if (self::$rSettings["\162\x65\x64\151\x73\137\150\x61\x6e\144\154\x65\162"]) {
goto Cd067b7da45c8765;
}
if ($B08e7d3cd339391a) {
goto Cca3e0eac606b755;
}
self::$db->query("\123\x45\114\x45\103\x54\40\140\x6c\x69\156\145\163\x5f\x6c\x69\166\145\x60\56\52\x2c\x20\x60\157\156\x5f\x64\x65\x6d\x61\x6e\144\x60\x20\106\x52\117\x4d\x20\140\x6c\151\156\145\163\137\154\x69\166\x65\140\x20\x4c\105\106\x54\x20\x4a\117\x49\x4e\x20\140\163\164\162\x65\141\x6d\163\137\163\145\x72\166\x65\x72\x73\140\40\x4f\x4e\40\140\x73\x74\162\x65\x61\x6d\163\x5f\163\x65\162\166\x65\x72\163\140\x2e\140\x73\164\162\145\141\x6d\137\151\144\140\x20\75\40\x60\154\x69\x6e\145\x73\137\154\151\166\x65\x60\x2e\x60\163\164\162\145\141\155\137\x69\x64\140\x20\101\116\104\40\x60\163\x74\x72\145\141\x6d\x73\x5f\163\x65\162\x76\145\x72\163\140\56\140\163\x65\162\x76\145\x72\137\x69\144\140\x20\75\x20\x60\154\x69\156\x65\x73\137\x6c\x69\166\145\140\56\140\x73\x65\x72\166\145\x72\137\151\144\140\40\x57\110\x45\x52\x45\40\140\154\151\x6e\145\x73\x5f\154\x69\x76\x65\140\56\x60\165\163\x65\x72\x5f\151\144\x60\x20\x3d\40\x3f\x20\x41\x4e\104\x20\140\x6c\x69\156\145\163\x5f\154\x69\x76\x65\x60\56\x60\x68\154\x73\137\x65\x6e\144\140\x20\75\x20\60\x20\117\x52\104\x45\x52\40\102\131\40\140\154\x69\x6e\145\163\137\x6c\151\x76\145\x60\x2e\x60\141\143\x74\151\166\151\x74\171\137\x69\x64\140\x20\101\123\103", $D78ff1d0edade5eb);
goto db04bf30a961ec68;
Cca3e0eac606b755:
goto Dc0ea81c702b9928;
Bef2845d2b558e66:
$A90d77181715e38e = array();
$f16991461acd03bf = self::Bc23764Ed0732f3f($D78ff1d0edade5eb, true, true);
$de110edaf0f89eae = count($f16991461acd03bf) - $B68ac2238b156add;
if (!($de110edaf0f89eae <= 0)) {
goto F34f77f23c0b6a23;
}
return;
goto eccf5345ffb14135;
B6525ddd83e384c6:
$F42a951cf0a3370a->exec();
C289e158794ab18b:
foreach ($aeefef3bed8a0a90 as $B08b62d9f7870287) {
@unlink(CONS_TMP_PATH . $B08b62d9f7870287);
daa433704a5bada9:
}
a63a246d1111d420:
foreach ($D4526c7bd7f852cc as $F26087d31c2bbe4d => $F805649379c06d30) {
foreach ($F805649379c06d30 as $B08b62d9f7870287) {
@unlink(CONS_TMP_PATH . $F26087d31c2bbe4d . "\57" . $B08b62d9f7870287);
d173ea32bf63bbe2:
}
F079226f26f741e9:
d16db62a5cafb0e2:
}
goto Bbda7b44477bdbe2;
Df36093143f42ba5:
array_multisort($c94b497359f8aed9, SORT_ASC, $A90d77181715e38e);
Fe63751db95fef61:
$c59ec257c284c894 = self::a9bC416FA6FA55C3();
$e3d2d1505b87d99c = 0;
$D4526c7bd7f852cc = $aeefef3bed8a0a90 = $Aa8c918a2a91966f = array();
goto Eac980732d26e5b0;
a61ec3c3dbe63c5c:
return;
ace786d755c23dae:
$A90d77181715e38e = self::$db->get_rows();
goto Fe63751db95fef61;
Cd067b7da45c8765:
goto Bef2845d2b558e66;
eccf5345ffb14135:
F34f77f23c0b6a23:
foreach (array_map("\x69\x67\x62\x69\x6e\141\x72\x79\x5f\x75\156\x73\x65\x72\x69\141\154\151\x7a\x65", self::$redis->mGet($f16991461acd03bf)) as $e110a2ab6d3a4734) {
if (!is_array($e110a2ab6d3a4734)) {
goto b22129109480aa4a;
}
$A90d77181715e38e[] = $e110a2ab6d3a4734;
b22129109480aa4a:
c5369cd5745f0815:
}
Bb4c0c2a2be565fe:
unset($f16991461acd03bf);
$c94b497359f8aed9 = array_column($A90d77181715e38e, "\144\141\x74\x65\x5f\163\x74\141\162\x74");
goto Df36093143f42ba5;
cbc90df628071cd6:
$d90ef785aae39e04 = array(1, 0);
af74bddc7b7617fa:
goto D1f1717b4dd01279;
C0a247e0ed173cba:
$d90ef785aae39e04 = array(2, 1, 0);
goto b3e265f64144e557;
Bbda7b44477bdbe2:
C61a8854c024871f:
b17fe89338d42f7a:
return $e3d2d1505b87d99c;
goto f1ea5dbb8098a26a;
f1ea5dbb8098a26a:
}
public static function E8e9D6B2b107D8AE($A9d34c0517e4c2a9)
{
goto ac7cf745298eaaa5;
Ac39b7bbb53e7c6b:
a4e6e6af71b5e675:
if ($A9d34c0517e4c2a9["\163\145\162\x76\x65\x72\x5f\151\144"] == SERVER_ID) {
goto Ebd2f835b5e5e27a;
}
if (self::$rSettings["\x72\145\144\151\x73\x5f\x68\141\156\x64\x6c\145\162"]) {
goto Ad6cf2f22e5b8a3f;
}
self::$db->query("\x49\116\123\x45\x52\124\x20\111\x4e\124\117\40\140\x73\151\x67\156\x61\154\163\140\x20\50\140\160\x69\x64\140\x2c\x60\163\145\x72\x76\x65\x72\x5f\x69\144\x60\54\140\x72\164\155\160\x60\54\140\164\x69\155\x65\x60\51\40\x56\x41\x4c\x55\105\123\50\77\x2c\77\x2c\x3f\x2c\125\x4e\111\x58\137\x54\111\x4d\x45\123\124\101\x4d\120\x28\x29\x29", $A9d34c0517e4c2a9["\x70\151\x64"], $A9d34c0517e4c2a9["\163\x65\x72\x76\145\162\137\151\144"], 1);
goto D4caf52224a556f4;
goto b473a1b9ccd6b796;
D76d959d3b2c7dec:
shell_exec("\167\x67\145\x74\x20\55\x2d\164\x69\155\x65\157\165\164\x3d\62\40\x2d\117\40\57\144\145\166\57\156\x75\154\x6c\x20\x2d\157\x20\57\144\145\x76\x2f\156\165\154\154\40\x22" . self::$rServers[SERVER_ID]["\x72\164\x6d\160\x5f\155\x70\x6f\x72\x74\x5f\x75\x72\x6c"] . "\x63\157\156\x74\x72\x6f\154\57\144\x72\157\x70\57\143\154\x69\x65\x6e\164\77\143\154\151\145\x6e\x74\x69\x64\x3d" . intval($A9d34c0517e4c2a9["\160\151\x64"]) . "\x22\x20\x3e\x2f\144\145\x76\x2f\156\x75\154\x6c\x20\62\x3e\57\144\x65\166\x2f\x6e\165\154\x6c\x20\x26");
b5ed0281f086695c:
a7ff1e3f780e6068:
self::DCFCfa5D9D05DF5a($A9d34c0517e4c2a9["\163\145\x72\166\x65\x72\x5f\151\x64"], $A9d34c0517e4c2a9["\160\162\x6f\x78\171\x5f\x69\x64"], $A9d34c0517e4c2a9["\165\163\x65\x72\x5f\151\x64"], $A9d34c0517e4c2a9["\163\164\162\x65\x61\155\137\151\x64"], $A9d34c0517e4c2a9["\x64\141\x74\x65\x5f\163\164\141\x72\164"], $A9d34c0517e4c2a9["\x75\x73\145\x72\137\141\147\145\x6e\164"], $A9d34c0517e4c2a9["\165\163\145\162\x5f\x69\160"], $A9d34c0517e4c2a9["\143\157\x6e\164\141\x69\156\x65\162"], $A9d34c0517e4c2a9["\x67\x65\x6f\x69\x70\x5f\x63\157\165\x6e\164\x72\x79\137\x63\157\144\145"], $A9d34c0517e4c2a9["\151\163\x70"], $A9d34c0517e4c2a9["\x65\x78\x74\x65\x72\156\x61\154\137\144\x65\x76\x69\x63\145"], $A9d34c0517e4c2a9["\144\151\x76\145\x72\x67\x65\156\x63\x65"], $A9d34c0517e4c2a9["\x68\x6d\x61\x63\x5f\x69\144"], $A9d34c0517e4c2a9["\x68\155\141\143\137\x69\144\x65\x6e\164\x69\x66\151\x65\162"]);
return true;
goto a0369756228e2e14;
b473a1b9ccd6b796:
Ad6cf2f22e5b8a3f:
self::aA941Cf79c4F48CF($A9d34c0517e4c2a9["\x70\151\144"], $A9d34c0517e4c2a9["\x73\145\162\166\145\162\x5f\151\x64"], 1);
D4caf52224a556f4:
goto b5ed0281f086695c;
Ebd2f835b5e5e27a:
goto D76d959d3b2c7dec;
C59d8ba9764dfea5:
goto ff3bbb749b787726;
Bfa74223e5e94877:
if (self::$rSettings["\162\x65\144\151\x73\x5f\150\x61\156\144\154\x65\x72"]) {
goto C945e0ee476be8c3;
}
self::$db->query("\x55\120\104\101\124\105\x20\x60\154\x69\156\x65\x73\137\x6c\x69\166\145\140\40\123\105\x54\x20\x60\x68\154\163\x5f\145\x6e\x64\x60\40\75\40\x31\40\x57\110\x45\x52\105\x20\140\141\143\x74\x69\166\x69\x74\171\x5f\151\x64\x60\x20\75\x20\x3f", $A9d34c0517e4c2a9["\x61\143\x74\151\x76\151\164\x79\137\x69\x64"]);
goto c988ab6b30f121ab;
goto d45511c0564b4024;
c045150e8a08d31a:
goto cb61d11a66d2b965;
fb5bcc66156e0d6b:
self::$db->query("\x53\x45\114\105\103\x54\40\x2a\40\x46\122\x4f\115\40\140\154\x69\x6e\x65\x73\137\154\151\166\x65\140\40\127\x48\105\122\105\x20\x60\165\165\x69\144\x60\40\x3d\x20\x3f", $A9d34c0517e4c2a9);
cb61d11a66d2b965:
$A9d34c0517e4c2a9 = self::$db->get_row();
goto c431e9c0fc49c426;
c276f663dfc56c7d:
goto e09c55976368bea5;
Cfddc9d9d721bdae:
self::Aa941Cf79C4F48cf($A9d34c0517e4c2a9["\160\x69\144"], $A9d34c0517e4c2a9["\x73\x65\162\x76\145\x72\x5f\x69\x64"], 0);
e09c55976368bea5:
goto b3e864f93b6176c7;
goto e21f88568b07538b;
Dc12dbec405081c1:
if ($A9d34c0517e4c2a9["\143\x6f\x6e\164\x61\151\156\145\x72"] == "\162\x74\155\160") {
goto a4e6e6af71b5e675;
}
if ($A9d34c0517e4c2a9["\x63\157\x6e\x74\x61\x69\x6e\x65\x72"] == "\x68\x6c\x73") {
goto Bfa74223e5e94877;
}
if ($A9d34c0517e4c2a9["\163\145\162\166\145\162\137\x69\x64"] == SERVER_ID) {
goto E85d04c6fbddfefc;
}
if (self::$rSettings["\162\x65\x64\151\x73\137\x68\x61\156\x64\x6c\x65\162"]) {
goto Cfddc9d9d721bdae;
}
self::$db->query("\111\x4e\123\105\122\124\x20\x49\116\124\117\x20\x60\163\151\x67\156\x61\x6c\163\140\x20\x28\x60\x70\x69\144\x60\x2c\x60\x73\x65\162\166\x65\162\x5f\x69\x64\140\54\140\164\x69\155\145\140\51\40\x56\x41\x4c\125\105\123\x28\x3f\x2c\77\54\x55\116\111\130\x5f\124\111\x4d\x45\123\124\x41\x4d\x50\x28\51\x29", $A9d34c0517e4c2a9["\x70\151\x64"], $A9d34c0517e4c2a9["\163\145\162\x76\x65\x72\x5f\151\x64"]);
goto c276f663dfc56c7d;
d45511c0564b4024:
C945e0ee476be8c3:
self::e3484f74d3C8b5a7($A9d34c0517e4c2a9, array(), "\143\154\x6f\163\x65");
c988ab6b30f121ab:
ff3bbb749b787726:
goto a7ff1e3f780e6068;
goto Ac39b7bbb53e7c6b;
e21f88568b07538b:
E85d04c6fbddfefc:
if (!($A9d34c0517e4c2a9["\160\151\144"] != getmypid() && is_numeric($A9d34c0517e4c2a9["\160\151\x64"]) && $A9d34c0517e4c2a9["\x70\x69\144"] > 0)) {
goto Bde43a198f0bea82;
}
posix_kill(intval($A9d34c0517e4c2a9["\x70\151\x64"]), 9);
Bde43a198f0bea82:
b3e864f93b6176c7:
goto C59d8ba9764dfea5;
ac7cf745298eaaa5:
if (!empty($A9d34c0517e4c2a9)) {
goto E3934f60d0fb59e7;
}
return false;
E3934f60d0fb59e7:
if (is_array($A9d34c0517e4c2a9)) {
goto c973e0011f68cff2;
}
if (!self::$rSettings["\162\145\144\151\x73\137\150\x61\156\x64\154\x65\x72"]) {
goto b914a30e4486a61c;
}
goto Ed50e549424f4959;
c431e9c0fc49c426:
fd7be008fec837e1:
c973e0011f68cff2:
if (is_array($A9d34c0517e4c2a9)) {
goto F76c62c7bf5ced74;
}
return false;
F76c62c7bf5ced74:
goto Dc12dbec405081c1;
Ed50e549424f4959:
$A9d34c0517e4c2a9 = igbinary_unserialize(self::$redis->get($A9d34c0517e4c2a9));
goto fd7be008fec837e1;
b914a30e4486a61c:
if (strlen(strval($A9d34c0517e4c2a9)) == 32) {
goto fb5bcc66156e0d6b;
}
self::$db->query("\x53\x45\114\105\103\124\x20\52\x20\106\x52\x4f\115\40\140\x6c\x69\156\x65\163\x5f\x6c\x69\166\x65\x60\40\x57\x48\105\122\x45\40\140\x61\x63\164\x69\x76\151\x74\171\137\x69\x64\140\x20\75\x20\77", $A9d34c0517e4c2a9);
goto c045150e8a08d31a;
a0369756228e2e14:
}
public static function F01D5Fe0Aec79d52($f9b07d216a168dcc)
{
goto b77972c8ead85ecb;
fa19a8634032c431:
return false;
goto Aca46c6db52b3c16;
Ccce909593473272:
$A9d34c0517e4c2a9 = self::$db->get_row();
self::$db->query("\x44\x45\x4c\105\x54\x45\x20\x46\122\117\x4d\x20\x60\x6c\151\x6e\x65\163\137\154\x69\x76\x65\x60\x20\127\110\105\122\105\40\x60\x61\x63\x74\151\166\x69\164\171\137\x69\x64\x60\40\x3d\40\77", $A9d34c0517e4c2a9["\x61\143\x74\151\x76\151\164\x79\137\151\144"]);
self::dcFCFA5d9D05Df5a($A9d34c0517e4c2a9["\163\x65\x72\x76\x65\162\x5f\x69\x64"], $A9d34c0517e4c2a9["\160\x72\157\170\x79\137\151\144"], $A9d34c0517e4c2a9["\x75\163\x65\x72\137\151\x64"], $A9d34c0517e4c2a9["\163\x74\x72\145\141\x6d\137\x69\x64"], $A9d34c0517e4c2a9["\144\141\164\x65\137\163\x74\x61\162\x74"], $A9d34c0517e4c2a9["\165\163\145\x72\x5f\x61\x67\x65\156\x74"], $A9d34c0517e4c2a9["\x75\x73\145\162\x5f\151\x70"], $A9d34c0517e4c2a9["\x63\x6f\x6e\x74\x61\151\156\145\x72"], $A9d34c0517e4c2a9["\x67\x65\x6f\151\x70\137\143\157\x75\x6e\x74\x72\x79\x5f\143\x6f\x64\145"], $A9d34c0517e4c2a9["\x69\x73\x70"], $A9d34c0517e4c2a9["\145\x78\x74\145\x72\156\x61\x6c\x5f\144\145\166\x69\143\x65"], $A9d34c0517e4c2a9["\144\151\x76\x65\162\x67\x65\156\x63\x65"], $A9d34c0517e4c2a9["\x68\155\x61\x63\x5f\151\144"], $A9d34c0517e4c2a9["\x68\x6d\x61\x63\137\151\x64\145\x6e\x74\151\x66\x69\x65\162"]);
return true;
A24521ed7ccf7335:
goto fa19a8634032c431;
b77972c8ead85ecb:
if (!empty($f9b07d216a168dcc)) {
goto Aaca9adc577d0724;
}
return false;
Aaca9adc577d0724:
self::$db->query("\123\x45\x4c\105\103\124\40\52\40\106\x52\x4f\x4d\x20\140\154\151\156\x65\163\x5f\154\151\x76\145\140\40\127\x48\105\122\105\40\x60\143\x6f\156\x74\141\x69\156\145\x72\x60\x20\75\x20\x27\x72\x74\155\160\47\x20\101\116\x44\40\140\x70\x69\144\140\x20\x3d\x20\77\40\101\x4e\104\40\140\163\145\162\x76\x65\162\x5f\x69\144\140\40\75\40\77", $f9b07d216a168dcc, SERVER_ID);
if (!(self::$db->num_rows() > 0)) {
goto A24521ed7ccf7335;
}
goto Ccce909593473272;
Aca46c6db52b3c16:
}
public static function DCfCFA5d9d05DF5a($d58b4f8653a391d8, $b2a9243e8304033d, $D78ff1d0edade5eb, $F26087d31c2bbe4d, $D031c48a1422c07e, $b3374866087774a1, $c59ec257c284c894, $F9452a7efafa1aba, $C4a76d9a69ca8231, $Fbe730b7a1211b54, $d080620e03289080 = '', $b25be5f9af7a0a91 = 0, $B08e7d3cd339391a = null, $E18c40e895ee55c2 = '')
{
if (!(self::$rSettings["\163\x61\x76\145\x5f\x63\154\x6f\x73\x65\144\137\x63\157\x6e\x6e\145\x63\x74\x69\x6f\x6e"] == 0)) {
goto E8bbd51d0e5c01f4;
}
return;
E8bbd51d0e5c01f4:
if (!($d58b4f8653a391d8 && $D78ff1d0edade5eb && $F26087d31c2bbe4d)) {
goto F5fa7ff9e337e179;
}
$A9d34c0517e4c2a9 = array("\x75\x73\145\x72\137\151\144" => intval($D78ff1d0edade5eb), "\x73\164\162\x65\x61\155\137\x69\144" => intval($F26087d31c2bbe4d), "\x73\145\162\x76\x65\162\137\151\144" => intval($d58b4f8653a391d8), "\160\162\x6f\x78\171\137\x69\x64" => intval($b2a9243e8304033d), "\x64\141\x74\x65\x5f\163\x74\x61\x72\x74" => intval($D031c48a1422c07e), "\x75\163\145\162\137\x61\x67\145\x6e\x74" => $b3374866087774a1, "\165\163\145\x72\x5f\x69\160" => htmlentities($c59ec257c284c894), "\x64\141\164\x65\137\x65\156\x64" => time(), "\143\x6f\156\164\141\x69\x6e\x65\x72" => $F9452a7efafa1aba, "\x67\145\157\151\160\x5f\x63\x6f\165\156\164\162\x79\x5f\x63\157\x64\145" => $C4a76d9a69ca8231, "\x69\163\160" => $Fbe730b7a1211b54, "\x65\x78\164\x65\162\x6e\141\x6c\137\144\x65\x76\x69\143\x65" => htmlentities($d080620e03289080), "\144\151\x76\x65\162\147\145\x6e\x63\x65" => intval($b25be5f9af7a0a91), "\x68\x6d\x61\143\137\x69\x64" => $B08e7d3cd339391a, "\x68\155\x61\x63\137\151\144\145\x6e\164\151\146\151\x65\x72" => $E18c40e895ee55c2);
file_put_contents(LOGS_TMP_PATH . "\x61\143\164\x69\166\151\164\x79", base64_encode(json_encode($A9d34c0517e4c2a9)) . "\xa", FILE_APPEND | LOCK_EX);
F5fa7ff9e337e179:
}
public static function D7aC04307F564FA4()
{
$a85e1b7d42c346a0 = array();
self::$db->query("\x53\105\114\x45\103\124\x20\x60\x69\x70\x60\x2c\40\140\160\141\x73\163\167\x6f\x72\x64\140\54\x20\140\160\165\163\150\140\54\40\x60\160\165\154\154\140\x20\106\x52\x4f\115\x20\140\162\x74\155\160\x5f\151\x70\x73\x60");
foreach (self::$db->get_rows() as $C740da31596f24ef) {
$a85e1b7d42c346a0[gethostbyname($C740da31596f24ef["\x69\x70"])] = array("\x70\x61\x73\163\167\157\162\144" => $C740da31596f24ef["\x70\x61\163\x73\167\157\162\x64"], "\x70\165\x73\x68" => boolval($C740da31596f24ef["\160\165\163\150"]), "\160\x75\154\154" => boolval($C740da31596f24ef["\160\165\x6c\x6c"]));
c6da51062856491f:
}
c0001e69027793ee:
return $a85e1b7d42c346a0;
}
public static function aEbd9e41165629f6($F26087d31c2bbe4d, $Aa8c918a2a91966f = array(), $E379394c7b1a273f = "\x6d\157\x76\151\145")
{
goto b455e19ac75a1bb9;
cad69c1ed4589087:
return in_array(self::$db->get_col(), $Aa8c918a2a91966f);
d66c0e5e6a3e21d5:
goto ff8bcf65288739ac;
Ff81723f449d2102:
$bbc84f53c534450d = igbinary_unserialize(file_get_contents(SERIES_TMP_PATH . "\x73\x65\x72\151\145\x73\x5f\155\141\160"));
goto b972c7378639bbe0;
d057b6c2430067bd:
return in_array($F26087d31c2bbe4d, $Aa8c918a2a91966f);
ba3ff96908c226af:
return false;
goto C811c446941c9966;
b455e19ac75a1bb9:
if ($E379394c7b1a273f == "\155\x6f\166\x69\145") {
goto Cfffa5ec54aead80;
}
if (!($E379394c7b1a273f == "\x73\x65\x72\x69\145\x73")) {
goto dca2845a726445f4;
}
if (self::$rCached) {
goto Ff81723f449d2102;
}
self::$db->query("\123\105\x4c\105\103\x54\x20\x73\x65\162\x69\x65\x73\x5f\151\x64\x20\106\x52\117\x4d\x20\x60\163\164\x72\145\141\x6d\x73\x5f\145\160\151\x73\x6f\x64\145\163\x60\40\x57\110\x45\x52\x45\40\140\163\164\x72\145\x61\x6d\137\x69\144\140\40\75\40\x3f\40\x4c\111\115\111\x54\40\61", $F26087d31c2bbe4d);
if (!(self::$db->num_rows() > 0)) {
goto d66c0e5e6a3e21d5;
}
goto cad69c1ed4589087;
b972c7378639bbe0:
return in_array($bbc84f53c534450d[$F26087d31c2bbe4d], $Aa8c918a2a91966f);
ff8bcf65288739ac:
dca2845a726445f4:
goto ba3ff96908c226af;
Cfffa5ec54aead80:
goto d057b6c2430067bd;
C811c446941c9966:
}
public static function D7Ca435Ac70e9a78($D78ff1d0edade5eb = null, $a71afc14d6cd090d = null, $d5249dad8e8411b7 = null, $f741fb10659d3472 = false, $E7654bf2f4eff2fe = false, $c59ec257c284c894 = '')
{
goto Fb5ee7c55295c96c;
C64d1d27550c8cee:
self::$db->query("\123\x45\114\x45\103\124\x20\140\141\143\143\x65\x73\163\x5f\x6f\x75\x74\160\x75\x74\137\x69\144\140\x2c\x20\140\x6f\165\164\x70\165\164\x5f\153\145\171\x60\x20\106\x52\117\x4d\x20\140\x6f\x75\164\x70\165\x74\137\146\157\x72\x6d\x61\164\163\140\x3b");
foreach (self::$db->get_rows() as $C740da31596f24ef) {
if (!in_array(intval($C740da31596f24ef["\x61\143\x63\145\163\x73\137\157\165\164\x70\x75\x74\x5f\151\144"]), $D4253f9520627819["\x61\x6c\154\157\167\x65\x64\137\157\165\x74\x70\165\x74\x73"])) {
goto Cb8735b79306ef34;
}
$D4253f9520627819["\157\165\164\x70\x75\x74\x5f\x66\157\162\155\x61\x74\x73"][] = $C740da31596f24ef["\157\x75\x74\x70\x75\164\137\153\x65\171"];
Cb8735b79306ef34:
D60a21369b8eedef:
}
Fa16effb29aab1e0:
goto fce8f84d732cc153;
fb48a5b1873cc491:
goto fb5ceb5cab4c2a34;
Ef53ab4a5529ae3f:
$D4253f9520627819["\x61\x6c\154\x6f\167\145\144\x5f\151\x70\163"] = @array_filter(array_map("\164\x72\x69\x6d", json_decode($D4253f9520627819["\x61\x6c\x6c\157\x77\x65\144\x5f\x69\160\x73"], true)));
$D4253f9520627819["\141\154\x6c\157\x77\145\144\x5f\165\141"] = @array_filter(array_map("\x74\x72\151\x6d", json_decode($D4253f9520627819["\x61\x6c\154\157\x77\145\144\x5f\165\141"], true)));
$D4253f9520627819["\141\x6c\x6c\x6f\167\x65\144\x5f\x6f\165\x74\x70\x75\164\163"] = array_map("\x69\156\164\x76\x61\154", json_decode($D4253f9520627819["\x61\x6c\154\157\167\x65\144\x5f\x6f\165\x74\160\165\x74\x73"], True));
$D4253f9520627819["\157\x75\x74\x70\x75\x74\x5f\x66\x6f\x72\155\141\x74\163"] = array();
if (self::$rCached) {
goto fb48a5b1873cc491;
}
goto C64d1d27550c8cee;
C9cdd2aca27b72f2:
a04c7d7f8c9b03a7:
self::Cf592c234Dcd0b19("\151\163\x70\57" . $D4253f9520627819["\x69\144"], json_encode(array($D4253f9520627819["\143\157\x6e\x5f\x69\x73\160\137\x6e\141\x6d\x65"], $D4253f9520627819["\x69\x73\160\x5f\141\163\156"])));
C7d441299c089b32:
a666f9fce5957fcf:
e86705e57167b6d1:
goto ae0f361b5076ab88;
F3b852bf00be382b:
Edae74f59a1c040d:
f842fe8176343c9d:
E56a47992a59d124:
if (!(!empty($D4253f9520627819["\x63\157\156\137\151\x73\x70\x5f\156\141\155\x65"]) && self::$rSettings["\145\x6e\141\142\154\145\137\x69\x73\x70\x5f\154\x6f\143\153"] == 1 && $D4253f9520627819["\x69\x73\x5f\x73\x74\x61\154\x6b\x65\x72"] == 0 && $D4253f9520627819["\x69\163\137\151\x73\160\x6c\157\143\153"] == 1 && !empty($D4253f9520627819["\151\163\x70\137\144\145\163\143"]) && strtolower($D4253f9520627819["\143\x6f\x6e\137\x69\x73\160\x5f\x6e\x61\155\x65"]) != strtolower($D4253f9520627819["\x69\x73\160\137\144\145\163\143"]))) {
goto Cf5a5565f1242098;
}
$D4253f9520627819["\151\x73\160\137\166\x69\x6f\154\141\164\145"] = 1;
goto B8e148a9bb14f5df;
ae0f361b5076ab88:
if (!$f741fb10659d3472) {
goto F6634a6801c1e5c2;
}
$e3f5a327db5b3930 = $c07a93bf577a961d = $d04121afcfd82dc3 = $A38b42a281e3c3cf = $B2fdaed180cd0049 = $b58b71142a808858 = array();
foreach ($D4253f9520627819["\142\x6f\165\161\165\145\164"] as $C3c8913edb801c35) {
goto B12d4c139249022a;
B9796bec3ebced7e:
Ab4b99c33d7c91bf:
goto B0310cdf29386722;
C8f457edd5f66782:
$c07a93bf577a961d = array_merge($c07a93bf577a961d, self::$rBouquets[$C3c8913edb801c35]["\x6d\x6f\166\x69\145\x73"]);
d9860f4bfd6ceb2f:
if (!isset(self::$rBouquets[$C3c8913edb801c35]["\x72\x61\x64\151\157\163"])) {
goto d1b69de9a834b55a;
}
$d04121afcfd82dc3 = array_merge($d04121afcfd82dc3, self::$rBouquets[$C3c8913edb801c35]["\x72\x61\144\x69\157\x73"]);
d1b69de9a834b55a:
goto B9796bec3ebced7e;
B12d4c139249022a:
if (!isset(self::$rBouquets[$C3c8913edb801c35]["\163\x74\x72\145\141\155\x73"])) {
goto D6c70dd2b4f1df6e;
}
$B2fdaed180cd0049 = array_merge($B2fdaed180cd0049, self::$rBouquets[$C3c8913edb801c35]["\163\x74\162\x65\141\x6d\x73"]);
D6c70dd2b4f1df6e:
if (!isset(self::$rBouquets[$C3c8913edb801c35]["\x73\x65\162\151\x65\x73"])) {
goto eb12de89b182212e;
}
$b58b71142a808858 = array_merge($b58b71142a808858, self::$rBouquets[$C3c8913edb801c35]["\163\145\x72\x69\145\x73"]);
goto aef03f9ce80b9885;
aef03f9ce80b9885:
eb12de89b182212e:
if (!isset(self::$rBouquets[$C3c8913edb801c35]["\143\x68\x61\156\x6e\x65\154\163"])) {
goto d56246757eee0b9f;
}
$e3f5a327db5b3930 = array_merge($e3f5a327db5b3930, self::$rBouquets[$C3c8913edb801c35]["\143\150\x61\x6e\156\145\154\163"]);
d56246757eee0b9f:
if (!isset(self::$rBouquets[$C3c8913edb801c35]["\x6d\x6f\x76\x69\145\163"])) {
goto d9860f4bfd6ceb2f;
}
goto C8f457edd5f66782;
B0310cdf29386722:
}
D2dbf7099ca400db:
$D4253f9520627819["\143\x68\141\x6e\x6e\x65\154\x5f\151\144\163"] = array_map("\x69\x6e\x74\166\x61\x6c", array_unique($B2fdaed180cd0049));
goto b8ff39224f9fb302;
B8e148a9bb14f5df:
Cf5a5565f1242098:
if (!($D4253f9520627819["\x69\x73\x70\137\166\151\x6f\154\x61\x74\145"] == 0 && strtolower($D4253f9520627819["\143\x6f\156\x5f\x69\163\x70\137\156\x61\155\x65"]) != strtolower($D4253f9520627819["\x69\163\x70\137\x64\145\163\x63"]))) {
goto a666f9fce5957fcf;
}
if (self::$rCached) {
goto a04c7d7f8c9b03a7;
}
self::$db->query("\125\120\x44\101\124\105\x20\140\x6c\151\x6e\x65\x73\140\x20\x53\x45\x54\40\x60\151\x73\x70\137\x64\x65\x73\x63\140\40\75\40\x3f\x2c\x20\x60\141\163\137\x6e\x75\155\x62\145\x72\x60\x20\x3d\40\x3f\40\x57\110\x45\x52\105\x20\x60\x69\x64\x60\x20\75\40\77", $D4253f9520627819["\x63\157\156\137\151\163\x70\x5f\156\141\x6d\145"], $D4253f9520627819["\x69\163\160\x5f\x61\x73\x6e"], $D4253f9520627819["\151\x64"]);
goto C7d441299c089b32;
goto C9cdd2aca27b72f2;
F304a8fa926322a2:
return false;
be70196dbfef7e7a:
a6f10760ad2f56a7:
goto Bc9402cca0ac9b0a;
B1ba90500c440c68:
goto f30cd199c7952e07;
b698a8bf5b572c91:
return $D4253f9520627819;
a67b5550cd87a736:
return false;
goto d063bbf7f9579adc;
cc3974a9d60b8443:
$D78ff1d0edade5eb = intval(file_get_contents(LINES_TMP_PATH . "\x6c\151\x6e\145\137\x74\x5f" . strtolower($a71afc14d6cd090d)));
goto D7e8229b796a80e2;
d3226ec6759650ac:
$D78ff1d0edade5eb = intval(file_get_contents(LINES_TMP_PATH . "\154\151\156\x65\137\164\137" . $a71afc14d6cd090d));
D7e8229b796a80e2:
goto d5cab7e78b7fc206;
B0b4e604ccadd232:
return false;
goto e5d929d91ebda32e;
Bb2f558397b2588d:
self::$db->query("\123\x45\114\105\103\124\x20\x60\x6c\x69\156\x65\163\140\56\52\x2c\x20\x60\x6d\x61\147\137\x64\145\166\151\x63\x65\163\x60\56\x60\x74\x6f\153\x65\x6e\140\x20\x41\x53\x20\140\155\141\x67\x5f\x74\x6f\x6b\145\x6e\140\x20\106\x52\x4f\115\40\x60\154\151\x6e\145\163\x60\x20\x4c\105\106\124\40\x4a\117\x49\x4e\x20\140\x6d\x61\x67\x5f\144\x65\x76\151\x63\145\x73\x60\40\117\116\x20\x60\x6d\x61\147\137\x64\x65\166\x69\x63\145\x73\140\56\140\x75\x73\145\x72\x5f\151\144\x60\x20\x3d\40\140\154\x69\x6e\145\163\x60\x2e\140\151\x64\x60\40\x57\x48\105\122\105\40\140\151\144\140\40\75\40\77", $D78ff1d0edade5eb);
e5d929d91ebda32e:
goto f0f3a1ad8d61a875;
fc6137985d9c5749:
b22ff609b3f507da:
goto E2bb9b5c8f5971d5;
fe9c409c292591b2:
if (empty($d5249dad8e8411b7) && empty($D78ff1d0edade5eb) && strlen($a71afc14d6cd090d) == 32) {
goto fca1b40d10549305;
}
if (!empty($a71afc14d6cd090d) && !empty($d5249dad8e8411b7)) {
goto a92dceb9385e44a7;
}
goto B22649a9c23bc296;
d3bbec6b9ecc89a4:
$C150dcc8bd89c268 = array();
$a0ab7ba3516bce7d = igbinary_unserialize(file_get_contents(CACHE_TMP_PATH . "\x63\x61\x74\145\x67\157\x72\171\137\155\141\x70"));
foreach ($D4253f9520627819["\142\157\x75\x71\165\x65\x74"] as $C3c8913edb801c35) {
$C150dcc8bd89c268 = array_merge($C150dcc8bd89c268, $a0ab7ba3516bce7d[$C3c8913edb801c35] ?: array());
f4bc2136a0bad37c:
}
A823d3489cd3448e:
$D4253f9520627819["\143\x61\164\x65\x67\x6f\162\171\137\x69\x64\163"] = array_values(array_unique($C150dcc8bd89c268));
goto b698a8bf5b572c91;
D2643e06412ab1bb:
if (!(self::$rSettings["\x63\157\165\156\164\171\137\157\x76\x65\x72\x72\x69\144\145\x5f\x31\x73\164"] == 1 && empty($D4253f9520627819["\x66\x6f\x72\x63\x65\144\137\143\x6f\165\156\x74\162\171"]) && !empty($c59ec257c284c894) && $D4253f9520627819["\x6d\141\x78\137\x63\x6f\x6e\156\x65\x63\x74\x69\157\156\x73"] == 1)) {
goto D0e6b7423484d2e3;
}
$D4253f9520627819["\x66\x6f\x72\x63\145\x64\137\x63\157\x75\156\164\162\x79"] = self::b74F652C92cEc688($c59ec257c284c894)["\162\145\147\x69\163\164\145\162\x65\x64\137\x63\157\x75\156\x74\162\x79"]["\x69\163\x6f\x5f\143\157\144\x65"];
if (self::$rCached) {
goto cfac87a74addc2b1;
}
self::$db->query("\125\120\x44\x41\x54\x45\40\x60\154\151\x6e\x65\163\140\x20\123\x45\x54\x20\140\x66\157\x72\x63\x65\x64\137\x63\x6f\165\x6e\x74\162\x79\x60\40\x3d\40\x3f\x20\x57\110\105\x52\x45\40\140\151\144\140\x20\x3d\40\77", $D4253f9520627819["\146\x6f\162\143\145\144\137\143\157\x75\156\x74\x72\x79"], $D4253f9520627819["\x69\x64"]);
goto f6ba44f5516b80f9;
goto B12e85c6d86c3bb1;
F06ecfef8f046cb5:
$D4253f9520627819["\x69\x73\160\x5f\151\x73\x5f\x73\x65\x72\x76\145\162"] = 0;
if (!(self::$rSettings["\x73\x68\157\167\137\151\163\x70\x73"] == 1 && !empty($c59ec257c284c894))) {
goto e86705e57167b6d1;
}
$da7f3c43bffc92dd = self::ee2D851924a79E53($c59ec257c284c894);
if (!is_array($da7f3c43bffc92dd)) {
goto E56a47992a59d124;
}
if (empty($da7f3c43bffc92dd["\151\x73\x70"])) {
goto f842fe8176343c9d;
}
goto E471e3b3326bf6f2;
fb5ceb5cab4c2a34:
foreach (igbinary_unserialize(file_get_contents(CACHE_TMP_PATH . "\x6f\165\164\x70\165\x74\x5f\x66\x6f\x72\x6d\x61\x74\x73")) as $C740da31596f24ef) {
if (!in_array(intval($C740da31596f24ef["\x61\x63\143\x65\x73\163\x5f\x6f\165\164\x70\x75\x74\137\151\x64"]), $D4253f9520627819["\x61\x6c\x6c\x6f\x77\x65\144\x5f\x6f\165\x74\x70\165\164\163"])) {
goto Afc3785086c00489;
}
$D4253f9520627819["\157\x75\164\160\165\164\x5f\146\157\x72\155\x61\164\x73"][] = $C740da31596f24ef["\x6f\x75\x74\160\165\x74\137\153\145\x79"];
Afc3785086c00489:
dcc9dd8860573f3f:
}
A9a1d2fbe09f652b:
fce8f84d732cc153:
$D4253f9520627819["\x63\x6f\156\x5f\x69\x73\160\x5f\156\x61\155\x65"] = null;
$D4253f9520627819["\151\163\160\137\166\151\x6f\154\x61\x74\145"] = 0;
goto F06ecfef8f046cb5;
Cdf0689c0686e48c:
if (!$D4253f9520627819) {
goto a67b5550cd87a736;
}
if (!self::$rCached) {
goto D451a73e264c0035;
}
if (empty($d5249dad8e8411b7) && empty($D78ff1d0edade5eb) && strlen($a71afc14d6cd090d) == 32) {
goto B1ba90500c440c68;
}
if (!(!empty($a71afc14d6cd090d) && !empty($d5249dad8e8411b7))) {
goto a6f10760ad2f56a7;
}
if (!($a71afc14d6cd090d != $D4253f9520627819["\x75\163\x65\x72\156\x61\x6d\145"] or $d5249dad8e8411b7 != $D4253f9520627819["\160\x61\x73\x73\167\157\162\x64"])) {
goto be70196dbfef7e7a;
}
goto F304a8fa926322a2;
B12e85c6d86c3bb1:
cfac87a74addc2b1:
self::Cf592c234dcd0b19("\x66\157\x72\143\145\x64\x5f\x63\x6f\x75\x6e\164\x72\171\x2f" . $D4253f9520627819["\x69\144"], $D4253f9520627819["\x66\157\x72\143\x65\x64\x5f\x63\157\165\x6e\x74\162\x79"]);
f6ba44f5516b80f9:
D0e6b7423484d2e3:
$D4253f9520627819["\142\157\x75\161\165\x65\164"] = json_decode($D4253f9520627819["\x62\157\x75\x71\x75\145\x74"], true);
goto Ef53ab4a5529ae3f;
B22649a9c23bc296:
if (!empty($D78ff1d0edade5eb)) {
goto Eb339a4186696b3c;
}
return false;
Eb339a4186696b3c:
goto A45780552b0f3a4a;
a92dceb9385e44a7:
goto fff9276f5106c746;
E471e3b3326bf6f2:
$D4253f9520627819["\x63\x6f\x6e\x5f\151\163\x70\x5f\x6e\141\x6d\x65"] = $da7f3c43bffc92dd["\x69\163\160"];
$D4253f9520627819["\151\163\160\x5f\141\x73\x6e"] = $da7f3c43bffc92dd["\141\x75\x74\157\156\x6f\155\157\165\163\137\163\x79\163\164\145\155\137\156\x75\155\142\x65\x72"];
$D4253f9520627819["\x69\x73\160\x5f\166\x69\157\154\x61\x74\145"] = self::e38AfbCF35978bE3($D4253f9520627819["\143\x6f\x6e\x5f\151\x73\160\137\x6e\141\155\x65"]);
if (!(self::$rSettings["\x62\x6c\x6f\143\x6b\137\x73\x76\160"] == 1)) {
goto Edae74f59a1c040d;
}
$D4253f9520627819["\151\163\x70\137\x69\x73\137\x73\145\162\x76\145\162"] = intval(self::Ace0eacBDE53512c($D4253f9520627819["\151\x73\160\x5f\x61\x73\156"]));
goto F3b852bf00be382b;
d5cab7e78b7fc206:
e52fbe27b45cbea6:
if (!$D78ff1d0edade5eb) {
goto e3f4e42a6fc85e04;
}
$D4253f9520627819 = igbinary_unserialize(file_get_contents(LINES_TMP_PATH . "\154\151\x6e\x65\137\x69\137" . $D78ff1d0edade5eb));
e3f4e42a6fc85e04:
E2bb9b5c8f5971d5:
goto Cdf0689c0686e48c;
Fb5ee7c55295c96c:
$D4253f9520627819 = null;
if (self::$rCached) {
goto fe9c409c292591b2;
}
if (empty($d5249dad8e8411b7) && empty($D78ff1d0edade5eb) && strlen($a71afc14d6cd090d) == 32) {
goto F8ebd77a0059ebda;
}
if (!empty($a71afc14d6cd090d) && !empty($d5249dad8e8411b7)) {
goto C7b6e42c1ad69e7c;
}
if (!empty($D78ff1d0edade5eb)) {
goto Bb2f558397b2588d;
}
goto B0b4e604ccadd232;
A61314f6b9c90578:
F8ebd77a0059ebda:
self::$db->query("\123\105\114\x45\x43\x54\40\52\x20\106\122\117\115\40\140\x6c\151\156\x65\163\140\x20\127\110\105\x52\x45\x20\140\x69\x73\137\x6d\x61\x67\x60\x20\75\40\x30\40\x41\x4e\x44\40\x60\151\163\x5f\x65\x32\x60\x20\x3d\x20\60\40\101\x4e\104\40\x60\141\143\143\x65\163\x73\137\164\x6f\153\x65\156\140\40\x3d\40\x3f\x20\x41\116\x44\x20\x4c\105\x4e\x47\124\110\50\x60\x61\x63\x63\145\x73\x73\137\164\x6f\153\x65\156\140\51\x20\x3d\40\x33\x32", $a71afc14d6cd090d);
Db7d5b37f532b99f:
if (!(self::$db->num_rows() > 0)) {
goto b22ff609b3f507da;
}
$D4253f9520627819 = self::$db->get_row();
goto fc6137985d9c5749;
Da89b4d2f0b337e2:
a0899de441b14cdb:
A45780552b0f3a4a:
goto e52fbe27b45cbea6;
fca1b40d10549305:
if (self::$rSettings["\143\141\163\145\137\163\145\x6e\x73\x69\164\x69\166\x65\x5f\154\151\156\x65"]) {
goto d3226ec6759650ac;
}
goto cc3974a9d60b8443;
f30cd199c7952e07:
if (!($a71afc14d6cd090d != $D4253f9520627819["\x61\143\143\x65\x73\x73\137\164\157\153\x65\156"])) {
goto F96648af1f8dfe47;
}
return false;
F96648af1f8dfe47:
Bc9402cca0ac9b0a:
D451a73e264c0035:
goto D2643e06412ab1bb;
b8ff39224f9fb302:
$D4253f9520627819["\163\145\x72\151\x65\x73\x5f\x69\x64\x73"] = array_map("\151\156\164\x76\x61\154", array_unique($b58b71142a808858));
$D4253f9520627819["\x76\x6f\144\137\x69\x64\x73"] = array_map("\x69\x6e\x74\x76\x61\154", array_unique($c07a93bf577a961d));
$D4253f9520627819["\154\151\166\145\x5f\151\x64\163"] = array_map("\151\x6e\x74\x76\x61\154", array_unique($e3f5a327db5b3930));
$D4253f9520627819["\x72\141\x64\151\x6f\137\151\x64\163"] = array_map("\151\x6e\164\166\x61\154", array_unique($d04121afcfd82dc3));
F6634a6801c1e5c2:
goto d3bbec6b9ecc89a4;
fff9276f5106c746:
if (self::$rSettings["\143\141\x73\x65\x5f\x73\145\156\163\151\x74\x69\166\x65\137\x6c\151\x6e\x65"]) {
goto d2d286803a381dad;
}
$D78ff1d0edade5eb = intval(file_get_contents(LINES_TMP_PATH . "\154\151\156\x65\x5f\143\x5f" . strtolower($a71afc14d6cd090d) . "\x5f" . strtolower($d5249dad8e8411b7)));
goto a0899de441b14cdb;
d2d286803a381dad:
$D78ff1d0edade5eb = intval(file_get_contents(LINES_TMP_PATH . "\x6c\x69\156\x65\x5f\x63\137" . $a71afc14d6cd090d . "\x5f" . $d5249dad8e8411b7));
goto Da89b4d2f0b337e2;
f0f3a1ad8d61a875:
goto fb80ad22585c2b31;
C7b6e42c1ad69e7c:
self::$db->query("\x53\105\x4c\x45\x43\x54\x20\x60\x6c\x69\x6e\145\163\x60\56\52\x2c\40\x60\x6d\x61\147\x5f\x64\x65\x76\x69\143\145\x73\x60\x2e\140\x74\157\153\x65\x6e\x60\x20\101\x53\40\x60\x6d\141\147\137\164\x6f\153\x65\x6e\140\40\x46\x52\x4f\x4d\x20\140\154\x69\156\x65\163\140\x20\x4c\105\106\124\40\112\x4f\x49\x4e\x20\x60\155\141\x67\x5f\144\145\166\151\143\145\x73\x60\x20\x4f\116\x20\x60\x6d\141\147\137\x64\145\x76\151\x63\145\x73\x60\56\x60\165\163\145\162\x5f\x69\x64\x60\40\x3d\x20\140\x6c\151\x6e\145\163\140\x2e\140\151\x64\x60\40\127\110\105\122\105\x20\140\165\163\145\x72\x6e\141\155\x65\140\x20\75\x20\77\x20\101\116\104\x20\140\160\x61\x73\163\167\x6f\162\x64\140\40\x3d\x20\x3f\40\x4c\111\x4d\111\124\x20\61", $a71afc14d6cd090d, $d5249dad8e8411b7);
fb80ad22585c2b31:
goto Db7d5b37f532b99f;
goto A61314f6b9c90578;
d063bbf7f9579adc:
}
public static function cF592C234DCd0B19($D3fa098be3f297cd, $a27e64cc6ce01033)
{
file_put_contents(SIGNALS_TMP_PATH . "\143\141\143\150\145\x5f" . md5($D3fa098be3f297cd), json_encode(array($D3fa098be3f297cd, $a27e64cc6ce01033)));
}
public static function a7bE375c7E1508D7($Dca433951d41a5c8, $F029d0a6c29fd5a2, $F26087d31c2bbe4d, $F9452a7efafa1aba, $c59ec257c284c894 = '', $D46306ed3d96e171 = '', $E18c40e895ee55c2 = '', $B68ac2238b156add = 0)
{
goto e7c93d00c48b4eae;
Ed139e2e30136187:
foreach ($f16991461acd03bf as $D3fa098be3f297cd) {
$B59c127fecf35c15 = hash_hmac("\x73\150\141\x32\65\x36", "{$F26087d31c2bbe4d}\x23\x23{$F9452a7efafa1aba}\43\x23{$F029d0a6c29fd5a2}\x23\x23{$D46306ed3d96e171}\x23\x23{$E18c40e895ee55c2}\43\x23{$B68ac2238b156add}", Xui\Functions::decrypt($D3fa098be3f297cd["\153\x65\171"], OPENSSL_EXTRA));
if (!(md5($B59c127fecf35c15) == md5($Dca433951d41a5c8))) {
goto D9bd1e20cef8e4b8;
}
$D5e1c8f29b0bfb9c = $D3fa098be3f297cd["\x69\x64"];
goto d899b13d54a50f4a;
D9bd1e20cef8e4b8:
d459a06cddd74220:
}
d899b13d54a50f4a:
return $D5e1c8f29b0bfb9c;
goto Dfe9c21dc227ea30;
d45869878aca8130:
$D5e1c8f29b0bfb9c = null;
if (self::$rCached) {
goto f1f628c1d05dcc7a;
}
$f16991461acd03bf = array();
self::$db->query("\x53\x45\114\x45\103\x54\x20\x60\151\x64\x60\x2c\x20\140\153\x65\171\140\x20\106\x52\x4f\x4d\40\x60\150\x6d\141\143\137\153\x65\x79\x73\140\x20\127\x48\105\122\x45\x20\140\x65\156\x61\x62\x6c\x65\x64\140\40\x3d\40\x31\x3b");
foreach (self::$db->get_rows() as $D3fa098be3f297cd) {
$f16991461acd03bf[] = $D3fa098be3f297cd;
ffb6867245bcc5c2:
}
goto a97ca9407a1ab3e7;
e7c93d00c48b4eae:
if (!(strlen($c59ec257c284c894) > 0 && strlen($D46306ed3d96e171) > 0)) {
goto a5f2d1d5ac31fe10;
}
if (!($c59ec257c284c894 != $D46306ed3d96e171)) {
goto C067bffbd5789150;
}
return null;
C067bffbd5789150:
a5f2d1d5ac31fe10:
goto d45869878aca8130;
a97ca9407a1ab3e7:
B16eba9065196ba0:
goto da58694c9389ab4f;
f1f628c1d05dcc7a:
$f16991461acd03bf = igbinary_unserialize(file_get_contents(CACHE_TMP_PATH . "\x68\x6d\141\143\x5f\x6b\145\171\x73"));
da58694c9389ab4f:
goto Ed139e2e30136187;
Dfe9c21dc227ea30:
}
public static function EA6c9a31F15A7B61($F26087d31c2bbe4d, $D78ff1d0edade5eb, $fa7da6c202358e0c, $c59ec257c284c894, $a27e64cc6ce01033 = '', $f158ea34ade8ece4 = false)
{
if (!(self::$rSettings["\x63\x6c\151\x65\156\x74\137\x6c\157\x67\163\137\x73\x61\x76\x65"] == 0 && !$f158ea34ade8ece4)) {
goto Ed9340b4e2caf408;
}
return;
Ed9340b4e2caf408:
$b3374866087774a1 = !empty($_SERVER["\110\x54\x54\x50\137\x55\123\x45\x52\137\101\x47\105\x4e\124"]) ? htmlentities($_SERVER["\x48\124\x54\x50\x5f\125\123\x45\122\137\x41\x47\x45\x4e\x54"]) : '';
$a27e64cc6ce01033 = array("\x75\x73\145\162\x5f\151\144" => $D78ff1d0edade5eb, "\x73\164\162\x65\x61\155\x5f\x69\x64" => $F26087d31c2bbe4d, "\x61\143\164\151\157\156" => $fa7da6c202358e0c, "\x71\x75\145\x72\x79\x5f\163\x74\162\151\156\147" => htmlentities($_SERVER["\x51\x55\105\x52\x59\137\x53\x54\x52\111\116\107"]), "\165\163\x65\162\137\x61\x67\x65\156\164" => $b3374866087774a1, "\165\x73\x65\162\137\x69\160" => $c59ec257c284c894, "\164\x69\155\145" => time(), "\x65\x78\x74\x72\141\x5f\x64\141\164\141" => $a27e64cc6ce01033);
file_put_contents(LOGS_TMP_PATH . "\143\154\151\x65\x6e\x74\x5f\x72\145\x71\165\x65\163\x74\56\x6c\x6f\x67", base64_encode(json_encode($a27e64cc6ce01033)) . "\12", FILE_APPEND);
}
public static function e416910Ca4da4695($b3374866087774a1, $a85e1b7d42c346a0 = false)
{
$b3374866087774a1 = strtolower($b3374866087774a1);
foreach (self::$rBlockedUA as $D3fa098be3f297cd => $cda44bf16c8f250e) {
goto B52282798e4956d5;
aaf41f0a419e56ee:
F2351782fe0da38f:
if (!($cda44bf16c8f250e["\x62\154\x6f\143\153\x65\x64\137\165\x61"] == $b3374866087774a1)) {
goto f42d0fa1f66164ab;
}
return true;
f42d0fa1f66164ab:
Ce13d31226da3708:
goto A61c143f81ab0eb1;
B52282798e4956d5:
if ($cda44bf16c8f250e["\145\x78\x61\143\164\137\x6d\x61\x74\143\x68"] == 1) {
goto F2351782fe0da38f;
}
if (!stristr($b3374866087774a1, $cda44bf16c8f250e["\x62\154\x6f\143\x6b\145\144\137\x75\x61"])) {
goto Ab00b21292f3915d;
}
return true;
Ab00b21292f3915d:
goto Ce13d31226da3708;
goto aaf41f0a419e56ee;
A61c143f81ab0eb1:
f6a3c24d7c21ce04:
goto c9a4267755f83558;
c9a4267755f83558:
}
be54eefda1bcd3c4:
return false;
}
public static function EA4a2063e98bAEF8($f9b07d216a168dcc, $F26087d31c2bbe4d, $acd3b41bac740313 = PHP_BIN)
{
goto B9b774145df7ad5c;
B9b774145df7ad5c:
if (!empty($f9b07d216a168dcc)) {
goto cc461449f51a600b;
}
return false;
cc461449f51a600b:
clearstatcache(true);
if (!(file_exists("\57\x70\x72\x6f\143\x2f" . $f9b07d216a168dcc) && is_readable("\x2f\x70\162\157\x63\57" . $f9b07d216a168dcc . "\x2f\145\x78\x65") && strpos(basename(readlink("\57\160\x72\x6f\143\57" . $f9b07d216a168dcc . "\57\x65\170\x65")), basename($acd3b41bac740313)) === 0)) {
goto d7eb4bedb8747188;
}
goto ad40caf6b0e90a0e;
e2914a31a410f325:
return false;
goto D57b2fa64097ea17;
ad40caf6b0e90a0e:
$cf1c389bda3e30fd = trim(file_get_contents("\57\160\x72\x6f\143\57{$f9b07d216a168dcc}\x2f\143\155\144\154\x69\x6e\x65"));
if (!($cf1c389bda3e30fd == "\130\125\x49\133{$F26087d31c2bbe4d}\135" or $cf1c389bda3e30fd == "\130\x55\111\x50\162\157\x78\171\133{$F26087d31c2bbe4d}\135")) {
goto A0135949bd521225;
}
return true;
A0135949bd521225:
d7eb4bedb8747188:
goto e2914a31a410f325;
D57b2fa64097ea17:
}
public static function f74FA4748b081619($f9b07d216a168dcc, $F26087d31c2bbe4d)
{
goto Cc1b46e5b973da4d;
C6ba7345b8b6a5cf:
if (strpos(basename(readlink("\57\x70\x72\x6f\143\x2f" . $f9b07d216a168dcc . "\57\x65\x78\x65")), "\146\x66\x6d\x70\x65\x67") === 0) {
goto d22076dab3e38f86;
}
if (!(strpos(basename(readlink("\57\x70\162\x6f\x63\57" . $f9b07d216a168dcc . "\x2f\145\170\x65")), "\160\150\160") === 0)) {
goto f3ec393470d511dc;
}
return true;
f3ec393470d511dc:
goto F465fa20ff4f272c;
goto F3581279e38f6430;
Cc1b46e5b973da4d:
if (!empty($f9b07d216a168dcc)) {
goto a04323bb51e3d931;
}
return false;
a04323bb51e3d931:
clearstatcache(true);
if (!(file_exists("\x2f\x70\162\157\143\57" . $f9b07d216a168dcc) && is_readable("\57\x70\x72\x6f\x63\x2f" . $f9b07d216a168dcc . "\x2f\145\170\145"))) {
goto A50d3cf79c9bcbdc;
}
goto C6ba7345b8b6a5cf;
A8eb5bc14a714c9a:
F465fa20ff4f272c:
A50d3cf79c9bcbdc:
return false;
goto f5837d810bbbc07a;
F3581279e38f6430:
d22076dab3e38f86:
$cf1c389bda3e30fd = trim(file_get_contents("\57\x70\162\157\x63\x2f{$f9b07d216a168dcc}\57\143\155\x64\x6c\x69\156\x65"));
if (!(stristr($cf1c389bda3e30fd, "\57{$F26087d31c2bbe4d}\137\x2e\155\x33\165\x38") or stristr($cf1c389bda3e30fd, "\x2f{$F26087d31c2bbe4d}\137\45\x64\x2e\x74\x73"))) {
goto b57bd61455021f68;
}
return true;
b57bd61455021f68:
goto A8eb5bc14a714c9a;
f5837d810bbbc07a:
}
public static function dD714ee89c59Fbf2($f9b07d216a168dcc, $acd3b41bac740313)
{
if (!empty($f9b07d216a168dcc)) {
goto d1afd668f04379fb;
}
return false;
d1afd668f04379fb:
clearstatcache(true);
if (!(file_exists("\x2f\x70\x72\x6f\x63\57" . $f9b07d216a168dcc) && is_readable("\x2f\x70\162\x6f\143\57" . $f9b07d216a168dcc . "\x2f\145\x78\145") && strpos(basename(readlink("\x2f\x70\162\x6f\143\57" . $f9b07d216a168dcc . "\57\145\x78\145")), basename($acd3b41bac740313)) === 0)) {
goto Edc7cc924cc6b91b;
}
return true;
Edc7cc924cc6b91b:
return false;
}
public static function dAC4d82F05378662($F26087d31c2bbe4d, $d81f27c553f73ff4 = 0)
{
shell_exec(PHP_BIN . "\x20" . CLI_PATH . "\x6d\x6f\156\x69\164\157\162\56\160\150\x70\40" . intval($F26087d31c2bbe4d) . "\x20" . intval($d81f27c553f73ff4) . "\40\x3e\57\144\145\166\57\156\165\x6c\x6c\x20\x32\x3e\57\x64\145\x76\x2f\156\165\154\x6c\x20\x26");
return true;
}
public static function startProxy($F26087d31c2bbe4d)
{
shell_exec(PHP_BIN . "\x20" . CLI_PATH . "\160\162\x6f\x78\171\56\160\x68\160\40" . intval($F26087d31c2bbe4d) . "\x20\x3e\57\144\x65\x76\57\156\165\x6c\154\x20\x32\x3e\x2f\144\145\166\x2f\x6e\165\x6c\x6c\40\46");
return true;
}
public static function bc69aFfE50D85273($add193137cabeea7, $E8601dd191bcdbba, $A387578f69b4c724 = "\150\62\66\x34", $a85e1b7d42c346a0 = false)
{
goto Fb9ed500635ae487;
f5406ca20398c15e:
goto d9e261e6a8a2d103;
f914e5bb1eae0ca5:
$f433193a3297ffde = SIGNALS_TMP_PATH . $add193137cabeea7["\x61\143\x74\151\166\151\x74\171\137\151\144"] . "\137" . $E8601dd191bcdbba;
shell_exec(self::$rFFMPEG_CPU . "\x20\55\143\157\160\171\x74\x73\40\x2d\166\163\x79\x6e\143\x20\60\x20\x2d\156\157\x73\164\141\x74\163\x20\55\x6e\157\x73\164\144\151\x6e\40\55\x68\151\x64\x65\x5f\142\x61\156\x6e\145\x72\40\x2d\x6c\x6f\x67\154\x65\166\x65\x6c\40\161\165\x69\145\x74\40\55\x79\40\x2d\x69\40" . escapeshellarg(STREAMS_PATH . $E8601dd191bcdbba) . "\x20\55\x66\x69\154\x74\x65\x72\x5f\x63\x6f\x6d\160\154\145\170\40\42\144\162\141\167\164\x65\170\x74\75\x66\157\156\x74\146\x69\154\145\75" . FFMPEG_FONT . "\x3a\x74\145\x78\164\75\47" . escapeshellcmd($add193137cabeea7["\155\145\163\x73\141\147\145"]) . "\x27\x3a\146\157\x6e\x74\163\151\x7a\x65\x3d" . escapeshellcmd($add193137cabeea7["\x66\157\156\x74\x5f\163\151\x7a\x65"]) . "\x3a\x78\75" . intval($b2db2d0561ace513) . "\72\x79\75" . intval($E2431f134bf1c17e) . "\x3a\146\157\156\x74\x63\x6f\154\157\162\x3d" . escapeshellcmd($add193137cabeea7["\x66\x6f\156\x74\x5f\143\x6f\154\157\162"]) . "\42\40\55\155\141\160\40\60\x20\x2d\166\x63\157\144\145\x63\40{$A387578f69b4c724}\x20\55\x70\162\x65\163\145\164\x20\165\154\x74\x72\x61\x66\x61\163\x74\40\55\141\143\157\144\x65\x63\40\143\x6f\x70\171\x20\55\163\143\x6f\x64\145\x63\40\143\x6f\x70\171\x20\55\155\160\x65\147\164\x73\x5f\x66\154\x61\147\163\x20\53\x69\156\x69\x74\151\141\x6c\137\144\x69\163\x63\x6f\x6e\x74\151\156\165\151\x74\171\40\55\155\160\x65\x67\164\x73\x5f\143\x6f\x70\x79\x74\x73\40\x31\40\55\146\x20\155\160\x65\x67\x74\163\40" . escapeshellarg($f433193a3297ffde));
$a27e64cc6ce01033 = file_get_contents($f433193a3297ffde);
goto Eeb07cfa6dfebcd3;
F461292b9639227c:
$E2431f134bf1c17e = rand(110, 250);
e26f7edc5c07197b:
if ($a85e1b7d42c346a0) {
goto f914e5bb1eae0ca5;
}
passthru(self::$rFFMPEG_CPU . "\40\55\x63\157\160\x79\x74\x73\x20\55\x76\163\171\x6e\x63\x20\60\40\x2d\x6e\157\x73\x74\x61\x74\163\40\55\156\x6f\163\x74\144\151\x6e\40\55\x68\x69\x64\145\137\x62\x61\156\156\x65\162\40\x2d\x6c\157\x67\154\x65\x76\145\154\40\x71\165\x69\145\164\40\55\x79\40\55\151\40" . escapeshellarg(STREAMS_PATH . $E8601dd191bcdbba) . "\40\55\x66\x69\154\164\x65\162\137\x63\x6f\x6d\160\x6c\x65\x78\40\42\x64\162\141\167\164\145\170\164\x3d\146\157\x6e\164\x66\151\154\x65\x3d" . FFMPEG_FONT . "\x3a\x74\x65\170\164\75\x27" . escapeshellcmd($add193137cabeea7["\155\x65\x73\x73\141\x67\145"]) . "\x27\x3a\x66\x6f\156\164\x73\151\x7a\145\x3d" . escapeshellcmd($add193137cabeea7["\x66\x6f\156\x74\137\163\x69\x7a\x65"]) . "\x3a\170\x3d" . intval($b2db2d0561ace513) . "\x3a\171\75" . intval($E2431f134bf1c17e) . "\72\146\157\156\x74\x63\x6f\154\x6f\x72\x3d" . escapeshellcmd($add193137cabeea7["\x66\x6f\x6e\164\x5f\x63\x6f\x6c\x6f\x72"]) . "\x22\40\55\x6d\x61\160\x20\60\x20\55\166\x63\157\144\x65\143\40{$A387578f69b4c724}\40\x2d\160\x72\145\163\x65\x74\40\x75\x6c\164\x72\x61\146\141\x73\164\40\x2d\x61\143\157\144\145\x63\x20\x63\x6f\x70\171\x20\55\x73\x63\x6f\144\x65\143\x20\x63\x6f\x70\x79\x20\x2d\155\x70\145\147\164\163\137\146\x6c\x61\x67\x73\40\x2b\x69\156\151\164\151\x61\x6c\137\x64\151\163\x63\157\x6e\x74\151\156\x75\x69\x74\x79\40\x2d\x6d\160\145\147\x74\163\x5f\x63\157\x70\x79\164\x73\40\x31\40\x2d\x66\x20\155\x70\145\147\164\x73\x20\x2d");
return true;
goto f5406ca20398c15e;
Fb9ed500635ae487:
if (empty($add193137cabeea7["\x78\171\x5f\157\146\x66\163\145\164"])) {
goto ba07faef11393aab;
}
list($b2db2d0561ace513, $E2431f134bf1c17e) = explode("\170", $add193137cabeea7["\x78\171\137\157\x66\146\163\145\x74"]);
goto e26f7edc5c07197b;
ba07faef11393aab:
$b2db2d0561ace513 = rand(150, 380);
goto F461292b9639227c;
Eeb07cfa6dfebcd3:
unlink($f433193a3297ffde);
return $a27e64cc6ce01033;
d9e261e6a8a2d103:
goto c6f09fcec4ae3407;
c6f09fcec4ae3407:
}
public static function a9Bc416FA6FA55c3()
{
return $_SERVER["\x52\105\115\x4f\x54\x45\x5f\x41\x44\104\x52"];
}
public static function Ee2d851924A79E53($c59ec257c284c894)
{
goto a9fd41fa507d6839;
c6a61f3a707bf4da:
Eba6dd9cb5aa18d9:
c8d9faf01145bc39:
return $c7488e8420e934e2;
goto b51b740693b262f6;
a9fd41fa507d6839:
if (!empty($c59ec257c284c894)) {
goto Bd6f7b733df4e1f7;
}
return false;
Bd6f7b733df4e1f7:
$c7488e8420e934e2 = file_exists(CONS_TMP_PATH . md5($c59ec257c284c894) . "\137\x69\163\160") ? json_decode(file_get_contents(CONS_TMP_PATH . md5($c59ec257c284c894) . "\x5f\x69\163\160"), true) : null;
if (is_array($c7488e8420e934e2)) {
goto c8d9faf01145bc39;
}
goto d039a9437b4edb64;
d039a9437b4edb64:
$C4a76d9a69ca8231 = new Reader(GEOISP_BIN);
$c7488e8420e934e2 = $C4a76d9a69ca8231->get($c59ec257c284c894);
$C4a76d9a69ca8231->close();
if (!is_array($c7488e8420e934e2)) {
goto Eba6dd9cb5aa18d9;
}
file_put_contents(CONS_TMP_PATH . md5($c59ec257c284c894) . "\137\x69\x73\160", json_encode($c7488e8420e934e2));
goto c6a61f3a707bf4da;
b51b740693b262f6:
}
public static function e38aFBCF35978be3($e11e06c11ab94fe2)
{
foreach (self::$rBlockedISP as $Fbe730b7a1211b54) {
if (!(strtolower($e11e06c11ab94fe2) == strtolower($Fbe730b7a1211b54["\151\163\x70"]))) {
goto B1bd7ab6fad271f6;
}
return intval($Fbe730b7a1211b54["\x62\x6c\x6f\x63\153\x65\x64"]);
B1bd7ab6fad271f6:
A3b5dabb2cf9a46c:
}
dcca87afa0c416e4:
return 0;
}
public static function ACE0EAcbDE53512c($Fcd691b0388768ab)
{
return in_array($Fcd691b0388768ab, self::$rBlockedServers);
}
public static function b74F652c92Cec688($c59ec257c284c894)
{
goto F2a9a497ac89cf8e;
f807f775b2e800ab:
Cd2a41c40432168c:
$C4a76d9a69ca8231 = new Reader(GEOLITE2_BIN);
$c7488e8420e934e2 = $C4a76d9a69ca8231->get($c59ec257c284c894);
$C4a76d9a69ca8231->close();
if (!$c7488e8420e934e2) {
goto acc91882cee4a385;
}
goto e960ad796275d94e;
e960ad796275d94e:
file_put_contents(CONS_TMP_PATH . md5($c59ec257c284c894) . "\137\147\x65\x6f\x32", json_encode($c7488e8420e934e2));
acc91882cee4a385:
return $c7488e8420e934e2;
goto c6c04d487fa47fa8;
F2a9a497ac89cf8e:
if (!empty($c59ec257c284c894)) {
goto Adeaa35d2e3e7de4;
}
return false;
Adeaa35d2e3e7de4:
if (!file_exists(CONS_TMP_PATH . md5($c59ec257c284c894) . "\137\147\145\x6f\x32")) {
goto Cd2a41c40432168c;
}
return json_decode(file_get_contents(CONS_TMP_PATH . md5($c59ec257c284c894) . "\137\147\145\157\x32"), true);
goto f807f775b2e800ab;
c6c04d487fa47fa8:
}
public static function b8f3DeF724810918($C700a2b357e5ed65, $e739adf85c8ac121 = null)
{
goto De5b3682e4c9af32;
De5b3682e4c9af32:
if (substr($C700a2b357e5ed65, 0, 2) == "\x73\x3a") {
goto de4d8020c60444b1;
}
return $C700a2b357e5ed65;
goto C31d5eb1b49b00cd;
de4d8020c60444b1:
$B211d7401e6242f3 = explode("\72", $C700a2b357e5ed65, 3);
goto D63daeff30ca3556;
D63daeff30ca3556:
$f4116b9928c8b494 = self::CA8708baE84a9148(intval($B211d7401e6242f3[1]), $e739adf85c8ac121);
if ($f4116b9928c8b494) {
goto d43b6abfccc2d9ce;
}
return '';
goto e05fd010d948e2e5;
d43b6abfccc2d9ce:
goto e553219e8787a31f;
e553219e8787a31f:
return $f4116b9928c8b494 . "\x69\x6d\x61\x67\145\x73\x2f" . basename($C700a2b357e5ed65);
e05fd010d948e2e5:
C31d5eb1b49b00cd:
goto d3b4829790b5c761;
d3b4829790b5c761:
}
public static function cae8387edC1BF201()
{
$b9e33ce83162666c = 0;
exec("\x70\163\40\55\x66\160\40\44\x28\x70\x67\x72\x65\160\x20\x2d\165\40\170\x75\151\x29", $f433193a3297ffde, $E072e4fd80a065b3);
foreach ($f433193a3297ffde as $Df1e7eea7d843145) {
$B211d7401e6242f3 = explode("\40", preg_replace("\41\x5c\x73\53\41", "\40", trim($Df1e7eea7d843145)));
if (!($B211d7401e6242f3[8] == "\156\x67\x69\156\x78\72" && $B211d7401e6242f3[9] == "\155\x61\x73\164\145\x72")) {
goto Bce205580b16e74b;
}
$b9e33ce83162666c++;
Bce205580b16e74b:
D288a73a04f9eaa2:
}
cc6a946281636dc3:
return $b9e33ce83162666c > 0;
}
public static function ca8708BaE84a9148($d58b4f8653a391d8 = null, $e739adf85c8ac121 = null)
{
goto Ef5011f9d465daac;
D07c72e759dc95e8:
if (!(self::$rServers[$d58b4f8653a391d8]["\163\x65\162\166\145\162\137\164\171\x70\x65"] == 1 && $a70eaa0ab42179dd && self::$rServers[$a70eaa0ab42179dd]["\x69\x73\x5f\x6d\141\151\x6e"] == 0)) {
goto Cffa8d52d4900712;
}
$f4116b9928c8b494 .= md5($d58b4f8653a391d8 . "\x5f" . $a70eaa0ab42179dd . "\x5f" . OPENSSL_EXTRA) . "\57";
Cffa8d52d4900712:
return $f4116b9928c8b494;
D52d933538d98aef:
goto F537bf155f10e9ea;
ae70fb866d6377c8:
F3196ddce8ed5126:
if (!(count($Da9a40906d3d1c5f) == 0)) {
goto Ff4c512558c73ff4;
}
return '';
Ff4c512558c73ff4:
$a70eaa0ab42179dd = $d58b4f8653a391d8;
goto F7525bbb41d7dee0;
Ef5011f9d465daac:
$a70eaa0ab42179dd = null;
if (isset($d58b4f8653a391d8)) {
goto E578c2b526d865a4;
}
$d58b4f8653a391d8 = SERVER_ID;
E578c2b526d865a4:
if ($e739adf85c8ac121) {
goto A577ec33a42bde40;
}
goto E6537d230395e88f;
E6537d230395e88f:
if (isset($_SERVER["\123\x45\x52\126\105\122\x5f\120\x4f\x52\x54"]) && self::$rSettings["\153\145\x65\160\x5f\160\x72\157\164\157\143\157\154"]) {
goto ef6676146a8be84f;
}
$C6033ec178efa2ae = self::$rServers[$d58b4f8653a391d8]["\163\x65\162\x76\145\x72\137\x70\x72\x6f\x74\157\x63\x6f\154"];
goto c5f288de5dd75996;
ef6676146a8be84f:
$C6033ec178efa2ae = !empty($_SERVER["\x48\124\x54\120\x53"]) && $_SERVER["\x48\124\124\120\x53"] !== "\157\146\146" || $_SERVER["\123\x45\x52\126\x45\122\x5f\x50\117\122\x54"] == 443 ? "\150\x74\164\x70\163" : "\150\x74\x74\x70";
goto c201e5322fa8febd;
c7db479c169520e3:
goto E9074c6559dd3277;
Edfda9168863572c:
$Caecf2bcd39a1efe = $baba170ab02ca0bd;
E9074c6559dd3277:
$f4116b9928c8b494 = $C6033ec178efa2ae . "\72\57\57" . $Caecf2bcd39a1efe . "\72" . self::$rServers[$d58b4f8653a391d8][$C6033ec178efa2ae . "\137\x62\x72\x6f\x61\x64\143\x61\163\x74\x5f\x70\x6f\162\164"] . "\57";
goto D07c72e759dc95e8;
F7525bbb41d7dee0:
$d58b4f8653a391d8 = $Da9a40906d3d1c5f[array_rand($Da9a40906d3d1c5f)];
f190ebb606f65e48:
$baba170ab02ca0bd = defined("\x68\157\x73\164") ? HOST : null;
if ($baba170ab02ca0bd && in_array(strtolower($baba170ab02ca0bd), array_map("\x73\164\x72\x74\157\x6c\157\x77\x65\x72", self::$rServers[$d58b4f8653a391d8]["\x64\x6f\x6d\x61\x69\156\x73"]["\x75\162\x6c\163"]))) {
goto Edfda9168863572c;
}
$Caecf2bcd39a1efe = empty(self::$rServers[$d58b4f8653a391d8]["\x64\x6f\x6d\141\151\x6e\137\156\141\155\145"]) ? self::$rServers[$d58b4f8653a391d8]["\163\145\x72\166\x65\x72\x5f\151\160"] : explode("\54", self::$rServers[$d58b4f8653a391d8]["\144\x6f\x6d\x61\151\156\137\156\x61\x6d\x65"])[0];
goto c7db479c169520e3;
F537bf155f10e9ea:
return null;
goto Ef2a8d53be6b9b7f;
c201e5322fa8febd:
c5f288de5dd75996:
goto D260b522e571453b;
A577ec33a42bde40:
$C6033ec178efa2ae = $e739adf85c8ac121;
D260b522e571453b:
goto a02e503448f7ff97;
a02e503448f7ff97:
if (!self::$rServers[$d58b4f8653a391d8]) {
goto D52d933538d98aef;
}
if (!self::$rServers[$d58b4f8653a391d8]["\x65\156\141\142\x6c\145\137\x70\x72\157\x78\x79"]) {
goto f190ebb606f65e48;
}
$Da9a40906d3d1c5f = array_keys(self::getProxies($d58b4f8653a391d8));
if (!(count($Da9a40906d3d1c5f) == 0)) {
goto F3196ddce8ed5126;
}
$Da9a40906d3d1c5f = array_keys(self::getProxies($d58b4f8653a391d8, false));
goto ae70fb866d6377c8;
Ef2a8d53be6b9b7f:
}
public static function c7BABcBEc16C28ED($E379394c7b1a273f = null)
{
$a85e1b7d42c346a0 = array();
foreach (self::$rCategories as $A1925ae53e9307eb) {
if (!($A1925ae53e9307eb["\143\141\164\x65\147\157\162\171\x5f\164\x79\x70\145"] == $E379394c7b1a273f or !$E379394c7b1a273f)) {
goto a79fb3696aff2694;
}
$a85e1b7d42c346a0[] = $A1925ae53e9307eb;
a79fb3696aff2694:
Ae15057ed6656297:
}
E8643a20008f5d30:
return $a85e1b7d42c346a0;
}
public static function a54586eadeA94ee6($Fcd691b0388768ab, $c59ec257c284c894)
{
if (!file_exists(CIDR_TMP_PATH . $Fcd691b0388768ab)) {
goto b563607591ceb5df;
}
$D25e7c9f6776261b = json_decode(file_get_contents(CIDR_TMP_PATH . $Fcd691b0388768ab), True);
foreach ($D25e7c9f6776261b as $Da967f0a787f6b51 => $a27e64cc6ce01033) {
if (!(ip2long($c59ec257c284c894) >= ip2long($a27e64cc6ce01033[1]) && ip2long($c59ec257c284c894) <= ip2long($a27e64cc6ce01033[2]))) {
goto e1abb9e218811f60;
}
return $a27e64cc6ce01033;
e1abb9e218811f60:
e4569fa0b4fefc19:
}
dce98e25519f8840:
b563607591ceb5df:
return null;
}
public static function getLLODSegments($F26087d31c2bbe4d, $bb62005ea7eb8380, $e1034511e63f0e9e = 1)
{
goto db2d5c711a6238ce;
ef11006d40524e4c:
A40c29f63193fe97:
if (!$b3f6223bb51e59ed) {
goto baa30a50910e4540;
}
$ed560e114da67dbd[$b3f6223bb51e59ed][] = $B1c1aa7e8b5b4849;
baa30a50910e4540:
d0043e67869edfbb:
goto d96668059aaed4b6;
Ebfc15a25d49a8b3:
$ed560e114da67dbd = array_slice($ed560e114da67dbd, count($ed560e114da67dbd) - $e1034511e63f0e9e, $e1034511e63f0e9e, true);
foreach ($ed560e114da67dbd as $ec35e63ebbf4ef26 => $Badf64d265e8e752) {
foreach ($Badf64d265e8e752 as $B1c1aa7e8b5b4849) {
$Bffc17a99eb14fd6[] = $F26087d31c2bbe4d . "\137" . $B1c1aa7e8b5b4849 . "\x2e\164\163";
c0b72f87b46def45:
}
Ac09061e336a0138:
B009818429a86ddb:
}
Aa34a3cef3c41d30:
f484b1971cadda53:
return !empty($Bffc17a99eb14fd6) ? $Bffc17a99eb14fd6 : null;
goto Ccba5dbafc4f0ab2;
a92e0428c97fdcf0:
if (!(count($b85ce31cd1118ad2[1]) > 0)) {
goto F89172e306f583c1;
}
$b3f6223bb51e59ed = null;
$Ea22c4a9ab5b2176 = 0;
e875addea130a245:
if (!($Ea22c4a9ab5b2176 < count($b85ce31cd1118ad2[1]))) {
goto d38813d02aa12e18;
}
goto Bdc8386393184dae;
d96668059aaed4b6:
$Ea22c4a9ab5b2176++;
goto e875addea130a245;
d38813d02aa12e18:
F89172e306f583c1:
Aed4182480f55d3f:
goto Ebfc15a25d49a8b3;
Bdc8386393184dae:
$bc2874292e0d9ece = $b85ce31cd1118ad2[1][$Ea22c4a9ab5b2176];
list($e154835c9fa166f7, $B1c1aa7e8b5b4849) = explode("\137", $bc2874292e0d9ece);
if (empty($b85ce31cd1118ad2[2][$Ea22c4a9ab5b2176])) {
goto A40c29f63193fe97;
}
$ed560e114da67dbd[$B1c1aa7e8b5b4849] = array();
$b3f6223bb51e59ed = $B1c1aa7e8b5b4849;
goto ef11006d40524e4c;
db2d5c711a6238ce:
$e1034511e63f0e9e++;
$Bffc17a99eb14fd6 = $ed560e114da67dbd = array();
if (!file_exists($bb62005ea7eb8380)) {
goto f484b1971cadda53;
}
$c8d91fcd2309e48a = file_get_contents($bb62005ea7eb8380);
if (!preg_match_all("\x2f\50\x2e\x2a\77\x29\x2e\164\x73\x28\50\x23\134\x77\x2b\51\53\174\x23\77\x29\57", $c8d91fcd2309e48a, $b85ce31cd1118ad2)) {
goto Aed4182480f55d3f;
}
goto a92e0428c97fdcf0;
Ccba5dbafc4f0ab2:
}
public static function d076F5A2cC104c49($bb62005ea7eb8380, $e1034511e63f0e9e = 0, $Ce2588e350bd2724 = 10)
{
goto be9fa46122407023;
c5f3af8b9736ae2a:
$cef7095c03f82513 = 1;
E0ac64421f5f3e1f:
return array_slice($b85ce31cd1118ad2[0], -$cef7095c03f82513);
B50169c14c76fdf5:
D55bb2d4a8249ffa:
goto b8468ec312cd6dcf;
b8468ec312cd6dcf:
C22d53b213713345:
return null;
goto b8db0dbc652c1fe5;
be9fa46122407023:
if (!file_exists($bb62005ea7eb8380)) {
goto C22d53b213713345;
}
$c8d91fcd2309e48a = file_get_contents($bb62005ea7eb8380);
if (!preg_match_all("\57\50\56\52\x3f\51\56\164\163\x2f", $c8d91fcd2309e48a, $b85ce31cd1118ad2)) {
goto D55bb2d4a8249ffa;
}
if ($e1034511e63f0e9e > 0) {
goto cb247bb68e7afbb6;
}
if ($e1034511e63f0e9e == -1) {
goto d5ca1ef4c2a26bad;
}
goto a6b9e832af782b1d;
fb7179b35d8ed2bd:
C58802dddad2193f:
goto B50169c14c76fdf5;
cb247bb68e7afbb6:
$cef7095c03f82513 = intval($e1034511e63f0e9e / $Ce2588e350bd2724);
if ($cef7095c03f82513) {
goto E0ac64421f5f3e1f;
}
goto c5f3af8b9736ae2a;
a6b9e832af782b1d:
preg_match("\x2f\x5f\50\56\52\x29\134\56\x2f", array_pop($b85ce31cd1118ad2[0]), $E415df512cb68430);
return $E415df512cb68430[1];
goto C58802dddad2193f;
d5ca1ef4c2a26bad:
return $b85ce31cd1118ad2[0];
goto fb7179b35d8ed2bd;
b8db0dbc652c1fe5:
}
public static function c0F542BDF7351C78($dc05e2bb97d4635d, $a71afc14d6cd090d, $d5249dad8e8411b7, $F26087d31c2bbe4d, $B08b62d9f7870287, $c59ec257c284c894, $B08e7d3cd339391a = null, $E18c40e895ee55c2 = '', $F2735dad02d30e84 = "\150\x32\66\x34", $Beb96c2a189d2e62 = 0, $d58b4f8653a391d8 = null, $b2a9243e8304033d = null)
{
goto a36d98c7e872bff6;
D36fea84f48bbd3d:
e843601356bb84a7:
if (!preg_match_all("\x2f\x28\56\x2a\x3f\51\x5c\56\x74\163\57", $c8d91fcd2309e48a, $b85ce31cd1118ad2)) {
goto fe76868f870ac568;
}
foreach ($b85ce31cd1118ad2[0] as $dbc0f67b4f0fdee0) {
goto F50c05fd17ea7ac8;
e0dc46ff8b6b4cd4:
$c8d91fcd2309e48a = str_replace($dbc0f67b4f0fdee0, ($b2a9243e8304033d ? "\x2f" . md5($b2a9243e8304033d . "\x5f" . $d58b4f8653a391d8 . "\137" . OPENSSL_EXTRA) : '') . "\x2f\150\x6c\x73\57{$dbc0f67b4f0fdee0}\77\x74\x6f\153\145\156\x3d{$ea5296071288c730}", $c8d91fcd2309e48a);
c33f01c5ff4ad2e4:
B265e2f32e6cc1f9:
goto Bafab3df6680ff7a;
f290b3bcc9751efa:
ea0868dbe0492582:
if (self::$rSettings["\141\x6c\154\157\167\x5f\x63\x64\156\137\141\143\143\x65\163\163"]) {
goto a5fc690af9cab714;
}
$c8d91fcd2309e48a = str_replace($dbc0f67b4f0fdee0, ($b2a9243e8304033d ? "\57" . md5($b2a9243e8304033d . "\x5f" . $d58b4f8653a391d8 . "\x5f" . OPENSSL_EXTRA) : '') . "\57\x68\154\163\x2f{$ea5296071288c730}", $c8d91fcd2309e48a);
goto c33f01c5ff4ad2e4;
a5fc690af9cab714:
goto e0dc46ff8b6b4cd4;
F50c05fd17ea7ac8:
if ($B08e7d3cd339391a) {
goto Cf41dc04483537df;
}
$ea5296071288c730 = Xui\Functions::encrypt($a71afc14d6cd090d . "\x2f" . $d5249dad8e8411b7 . "\x2f" . $c59ec257c284c894 . "\x2f" . $F26087d31c2bbe4d . "\x2f" . $dbc0f67b4f0fdee0 . "\57" . $B08b62d9f7870287 . "\x2f" . SERVER_ID . "\x2f" . $F2735dad02d30e84 . "\57" . $Beb96c2a189d2e62, self::$rSettings["\154\x69\x76\x65\137\x73\x74\x72\145\141\x6d\151\156\x67\x5f\160\x61\x73\163"], OPENSSL_EXTRA);
goto ea0868dbe0492582;
Cf41dc04483537df:
$ea5296071288c730 = Xui\Functions::encrypt("\110\115\x41\103\x23" . $B08e7d3cd339391a . "\57" . $E18c40e895ee55c2 . "\x2f" . $c59ec257c284c894 . "\x2f" . $F26087d31c2bbe4d . "\x2f" . $dbc0f67b4f0fdee0 . "\x2f" . $B08b62d9f7870287 . "\57" . SERVER_ID . "\x2f" . $F2735dad02d30e84 . "\x2f" . $Beb96c2a189d2e62, self::$rSettings["\154\151\166\x65\137\x73\x74\x72\x65\x61\155\151\156\147\x5f\160\x61\163\163"], OPENSSL_EXTRA);
goto f290b3bcc9751efa;
Bafab3df6680ff7a:
}
A7fd0551271fa216:
return $c8d91fcd2309e48a;
goto e606d69b36cb9783;
e606d69b36cb9783:
fe76868f870ac568:
ef190e7940667390:
return false;
goto C00d75c12b96ff98;
a36d98c7e872bff6:
if (!file_exists($dc05e2bb97d4635d)) {
goto ef190e7940667390;
}
$c8d91fcd2309e48a = file_get_contents($dc05e2bb97d4635d);
if (!(self::$rSettings["\x65\x6e\143\162\171\160\x74\x5f\x68\154\x73"] && !$Beb96c2a189d2e62)) {
goto e843601356bb84a7;
}
$Ebd6fd2f4db95bcb = Xui\Functions::encrypt($c59ec257c284c894 . "\x2f" . $F26087d31c2bbe4d, self::$rSettings["\154\151\166\145\137\x73\164\x72\x65\141\155\x69\156\x67\x5f\x70\141\x73\x73"], OPENSSL_EXTRA);
$c8d91fcd2309e48a = "\43\105\130\x54\x4d\63\125\xa\x23\105\x58\124\x2d\x58\55\113\x45\x59\72\115\x45\124\x48\x4f\104\x3d\101\105\x53\55\61\x32\70\x2c\125\x52\111\75\42" . ($b2a9243e8304033d ? "\x2f" . md5($b2a9243e8304033d . "\137" . $d58b4f8653a391d8 . "\x5f" . OPENSSL_EXTRA) : '') . "\57\x6b\145\x79\57{$Ebd6fd2f4db95bcb}\42\x2c\x49\x56\75\x30\x78" . bin2hex(file_get_contents(STREAMS_PATH . $F26087d31c2bbe4d . "\x5f\x2e\151\x76")) . "\12" . substr($c8d91fcd2309e48a, 8, strlen($c8d91fcd2309e48a) - 8);
goto D36fea84f48bbd3d;
C00d75c12b96ff98:
}
public static function de9E9E0D836B5D86($D4253f9520627819, $B08e7d3cd339391a = false, $E18c40e895ee55c2 = '', $c59ec257c284c894 = null, $b3374866087774a1 = null)
{
goto a21204888c51c5f5;
a21204888c51c5f5:
if (!($D4253f9520627819["\155\x61\x78\x5f\143\157\156\x6e\x65\x63\x74\x69\x6f\156\x73"] != 0)) {
goto a6e4d5a160c6a777;
}
if (!$B08e7d3cd339391a) {
goto f9233f5ddc451bc7;
}
self::D2985c63279EA4cD(null, $D4253f9520627819["\155\141\x78\x5f\x63\157\156\156\x65\x63\x74\x69\157\156\163"], $B08e7d3cd339391a, $E18c40e895ee55c2, $c59ec257c284c894, $b3374866087774a1);
goto e596f0aefd00669e;
f9233f5ddc451bc7:
goto d2ff45d47c059690;
d2ff45d47c059690:
if (empty($D4253f9520627819["\x70\141\x69\x72\x5f\x69\x64"])) {
goto F9e3718bcf481a7e;
}
self::D2985c63279EA4cd($D4253f9520627819["\160\141\x69\x72\137\x69\x64"], $D4253f9520627819["\155\141\x78\137\x63\x6f\x6e\x6e\145\x63\x74\x69\x6f\156\163"], null, '', $c59ec257c284c894, $b3374866087774a1);
F9e3718bcf481a7e:
self::D2985C63279ea4cd($D4253f9520627819["\151\x64"], $D4253f9520627819["\155\141\170\x5f\x63\x6f\156\156\145\143\x74\x69\157\x6e\x73"], null, '', $c59ec257c284c894, $b3374866087774a1);
e596f0aefd00669e:
goto f2fe220935634ae5;
f2fe220935634ae5:
a6e4d5a160c6a777:
goto Ddbdcde1a828f672;
Ddbdcde1a828f672:
}
public static function getBouquetMap($F26087d31c2bbe4d)
{
$B7c4b912a2afc994 = igbinary_unserialize(file_get_contents(CACHE_TMP_PATH . "\142\157\165\x71\x75\x65\164\x5f\155\141\160"));
$a85e1b7d42c346a0 = $B7c4b912a2afc994[$F26087d31c2bbe4d] ?: array();
unset($B7c4b912a2afc994);
return $a85e1b7d42c346a0;
}
public static function AD41BF0664804fA8($F26087d31c2bbe4d)
{
goto Caffd0513255d6e8;
a92f62f3828922cc:
Bbd97114e4ea0290:
$f433193a3297ffde["\x62\x6f\165\x71\165\x65\164\x73"] = self::getBouquetMap($F26087d31c2bbe4d);
$f433193a3297ffde["\x69\156\x66\x6f"] = $bb0071da5a239b0c;
$f433193a3297ffde["\163\145\162\x76\145\x72\163"] = $a8bb73cba48fb7f6;
D6b69b930364d3dd:
goto fe0c82004b9b8954;
fe0c82004b9b8954:
return !empty($f433193a3297ffde) ? $f433193a3297ffde : false;
goto a2a509cc092d214e;
Caffd0513255d6e8:
$f433193a3297ffde = array();
self::$db->query("\x53\x45\114\105\103\x54\40\x2a\40\x46\122\x4f\x4d\x20\140\163\164\162\x65\141\x6d\163\x60\40\164\x31\x20\114\105\x46\124\x20\x4a\x4f\x49\116\40\140\163\164\x72\x65\x61\x6d\x73\x5f\164\171\x70\x65\x73\140\x20\164\x32\x20\117\x4e\40\x74\62\x2e\x74\x79\x70\145\137\x69\144\x20\75\x20\x74\61\x2e\164\171\160\x65\x20\x57\110\x45\x52\x45\40\164\61\56\x60\151\x64\x60\x20\x3d\40\x3f", $F26087d31c2bbe4d);
if (!(self::$db->num_rows() > 0)) {
goto D6b69b930364d3dd;
}
$bb0071da5a239b0c = self::$db->get_row();
$a8bb73cba48fb7f6 = array();
goto b8068be1b986353b;
b8068be1b986353b:
if (!($bb0071da5a239b0c["\x64\x69\162\145\143\164\x5f\x73\157\165\162\x63\145"] == 0 or $bb0071da5a239b0c["\144\151\162\x65\x63\x74\137\160\x72\x6f\x78\171"] == 1)) {
goto Bbd97114e4ea0290;
}
self::$db->query("\123\105\x4c\x45\103\124\40\52\40\x46\122\x4f\115\x20\140\x73\164\x72\145\x61\x6d\163\137\163\x65\162\x76\x65\162\163\x60\40\x57\x48\105\122\105\40\x60\x73\x74\162\x65\x61\155\x5f\151\x64\140\40\75\40\x3f", $F26087d31c2bbe4d);
if (!(self::$db->num_rows() > 0)) {
goto e0dfe5d4e9222968;
}
$a8bb73cba48fb7f6 = self::$db->get_rows(true, "\163\x65\x72\x76\145\x72\x5f\x69\144");
e0dfe5d4e9222968:
goto a92f62f3828922cc;
a2a509cc092d214e:
}
public static function cB50F783B960a4EF()
{
foreach (self::$rServers as $d58b4f8653a391d8 => $e81220b4451f37c9) {
if (!$e81220b4451f37c9["\x69\x73\137\155\141\151\x6e"]) {
goto ef23147d89b028de;
}
return $d58b4f8653a391d8;
ef23147d89b028de:
c11dbbbef58c34c4:
}
Dfc1588683e8dff2:
return null;
}
public static function a2aa2B94d2D97a7f($F26087d31c2bbe4d, $e91e92047b92eb25)
{
$d919bf727d78c4ca = $c078f3ed0fe7b4fa = array();
if (!file_exists(SIGNALS_TMP_PATH . "\161\x75\145\x75\145\137" . intval($F26087d31c2bbe4d))) {
goto A47d16a3d7ba9db3;
}
$c078f3ed0fe7b4fa = igbinary_unserialize(file_get_contents(SIGNALS_TMP_PATH . "\161\165\x65\165\145\137" . intval($F26087d31c2bbe4d)));
A47d16a3d7ba9db3:
foreach ($c078f3ed0fe7b4fa as $f9b07d216a168dcc) {
if (!self::dd714eE89C59Fbf2($f9b07d216a168dcc, "\160\150\x70\x2d\x66\160\x6d")) {
goto E41177e4ad2c0bd7;
}
$d919bf727d78c4ca[] = $f9b07d216a168dcc;
E41177e4ad2c0bd7:
a5dc573d372fc2b5:
}
F0886bd194f92340:
if (in_array($d919bf727d78c4ca, $e91e92047b92eb25)) {
goto F98a527e2eb11c88;
}
$d919bf727d78c4ca[] = $e91e92047b92eb25;
F98a527e2eb11c88:
file_put_contents(SIGNALS_TMP_PATH . "\x71\165\145\x75\x65\x5f" . intval($F26087d31c2bbe4d), igbinary_serialize($d919bf727d78c4ca));
}
public static function CA490cE3385C630E($F26087d31c2bbe4d, $f9b07d216a168dcc)
{
$d919bf727d78c4ca = array();
foreach (igbinary_unserialize(file_get_contents(SIGNALS_TMP_PATH . "\x71\165\145\165\x65\x5f" . intval($F26087d31c2bbe4d))) ?: array() as $adbe9b306d12ef6b) {
if (!(self::Dd714EE89C59FBf2($adbe9b306d12ef6b, "\160\x68\160\55\146\x70\x6d") && $f9b07d216a168dcc != $adbe9b306d12ef6b)) {
goto D7e8555da893e2be;
}
$d919bf727d78c4ca[] = $adbe9b306d12ef6b;
D7e8555da893e2be:
f00264b72029bbe4:
}
afe0415678150d32:
if (count($d919bf727d78c4ca) > 0) {
goto Df0bcde99098ebd2;
}
unlink(SIGNALS_TMP_PATH . "\161\165\x65\165\145\x5f" . intval($F26087d31c2bbe4d));
goto b9e493e1f3d1f7f0;
Df0bcde99098ebd2:
file_put_contents(SIGNALS_TMP_PATH . "\161\x75\x65\x75\145\x5f" . intval($F26087d31c2bbe4d), igbinary_serialize($d919bf727d78c4ca));
b9e493e1f3d1f7f0:
}
public static function Bb7f1b0eD6C4b87D($f0434521ea9d1547 = 10)
{
goto bcd01f811b6f6d01;
F636556be0000f48:
if (!($Ea22c4a9ab5b2176 < $f0434521ea9d1547)) {
goto ae88501713303f17;
}
$Faf50feea3df4ce1 .= $b5808391c52eb3a3[rand(0, $ad13d88d0f09412f)];
A710576e068e97e5:
$Ea22c4a9ab5b2176++;
goto ed8d35e8a270204d;
goto fef4b1012f369ccb;
bcd01f811b6f6d01:
$b5808391c52eb3a3 = "\101\102\103\x44\105\106\x47\x48\x49\112\x4b\114\115\116\x4f\120\x51\x52\123\124\x55\x56\x57\130\x59\x5a\60\61\x32\x33\64\x35\x36\67\x38\71\161\x77\145\x72\x74\171\x75\151\157\160\141\x73\x64\x66\x67\x68\152\153\x6c\x7a\x78\143\x76\142\156\155";
$Faf50feea3df4ce1 = '';
$ad13d88d0f09412f = strlen($b5808391c52eb3a3) - 1;
$Ea22c4a9ab5b2176 = 0;
ed8d35e8a270204d:
goto F636556be0000f48;
fef4b1012f369ccb:
ae88501713303f17:
return $Faf50feea3df4ce1;
goto c4000e914f722c5b;
c4000e914f722c5b:
}
public static function AE6bb580Baa323C2($c608db3e24256b76, $A02729c83b6cd395)
{
goto F7dff8ceeac22042;
dfb2c411f99a4bae:
goto E0f441cf5c60a4f1;
C3bf4843db38a83b:
return trim($c608db3e24256b76) . "\x20\x28{$A02729c83b6cd395}\51";
E0f441cf5c60a4f1:
f7026cbce6a10d6b:
goto e038524a2d3393f3;
e038524a2d3393f3:
return $c608db3e24256b76;
goto B2ca66a18946c064;
F7dff8ceeac22042:
if (!(is_numeric($A02729c83b6cd395) && $A02729c83b6cd395 >= 1900 && $A02729c83b6cd395 <= intval(date("\131") + 1))) {
goto f7026cbce6a10d6b;
}
if (self::$rSettings["\155\157\166\x69\145\x5f\171\x65\141\162\137\x61\160\x70\x65\x6e\x64"] == 0) {
goto C3bf4843db38a83b;
}
if (!(self::$rSettings["\x6d\x6f\x76\151\145\137\x79\145\141\x72\x5f\141\160\160\x65\156\x64"] == 0)) {
goto F150b68d657319b0;
}
return trim($c608db3e24256b76) . "\x20\x2d\40{$A02729c83b6cd395}";
F150b68d657319b0:
goto dfb2c411f99a4bae;
B2ca66a18946c064:
}
public static function E43cb741aA22a6d8($f46da30a01f7b2d7)
{
goto D212de41f0338c78;
D4ebcee9ffd00235:
return $f46da30a01f7b2d7;
goto Ab86cd881a9ffb2a;
F10a5177fc3b9788:
B4a5770b6407def6:
if (!(count($F8dd9a1b55d9bf0b) > 0)) {
goto D2ff07d9ecc53ff4;
}
return $F8dd9a1b55d9bf0b;
D2ff07d9ecc53ff4:
E9f9ba80e9f43677:
goto D4ebcee9ffd00235;
D212de41f0338c78:
if (!(count($f46da30a01f7b2d7) > 0 && file_exists(CACHE_TMP_PATH . "\143\x68\x61\156\156\145\x6c\137\x6f\x72\x64\x65\162") && self::$rSettings["\143\x68\141\156\x6e\x65\x6c\x5f\x6e\x75\155\x62\x65\x72\137\x74\x79\x70\145"] != "\142\x6f\165\x71\x75\145\x74")) {
goto E9f9ba80e9f43677;
}
$c6c389b9adf3a40c = igbinary_unserialize(file_get_contents(CACHE_TMP_PATH . "\x63\150\x61\156\156\x65\154\x5f\157\x72\144\145\x72"));
$f46da30a01f7b2d7 = array_flip($f46da30a01f7b2d7);
$F8dd9a1b55d9bf0b = array();
foreach ($c6c389b9adf3a40c as $C3c8913edb801c35) {
if (!isset($f46da30a01f7b2d7[$C3c8913edb801c35])) {
goto b6f217818bf51096;
}
$F8dd9a1b55d9bf0b[] = $C3c8913edb801c35;
b6f217818bf51096:
d74e84782d3f7198:
}
goto F10a5177fc3b9788;
Ab86cd881a9ffb2a:
}
public static function sortSeries($bbc84f53c534450d)
{
goto E28ce24874373745;
d94c139d3408f097:
D239bd26d5cca1a9:
if (!(count($F8dd9a1b55d9bf0b) > 0)) {
goto c9cb95ed5d376717;
}
return $F8dd9a1b55d9bf0b;
c9cb95ed5d376717:
Bf14841f76b4b733:
goto E2150d02d3ae222e;
E28ce24874373745:
if (!(count($bbc84f53c534450d) > 0 && file_exists(CACHE_TMP_PATH . "\x73\145\162\151\145\x73\137\157\x72\x64\x65\x72"))) {
goto Bf14841f76b4b733;
}
$c6c389b9adf3a40c = igbinary_unserialize(file_get_contents(CACHE_TMP_PATH . "\163\145\162\x69\x65\x73\137\157\162\144\145\x72"));
$bbc84f53c534450d = array_flip($bbc84f53c534450d);
$F8dd9a1b55d9bf0b = array();
foreach ($c6c389b9adf3a40c as $C3c8913edb801c35) {
if (!isset($bbc84f53c534450d[$C3c8913edb801c35])) {
goto ce988953be5c051c;
}
$F8dd9a1b55d9bf0b[] = $C3c8913edb801c35;
ce988953be5c051c:
D1cc1ffa7c1e1894:
}
goto d94c139d3408f097;
E2150d02d3ae222e:
return $bbc84f53c534450d;
goto f7207182c4b24ee5;
f7207182c4b24ee5:
}
public static function CbfCf0c8CE3D62B9($f338147e1f8d2e97)
{
$c07026622e355713 = new DateTime("\x55\124\x43", new DateTimeZone(date_default_timezone_get()));
$af336dce58c6bd50 = new DateTime("\125\x54\x43", new DateTimeZone($f338147e1f8d2e97));
return $af336dce58c6bd50->getTimestamp() - $c07026622e355713->getTimestamp();
}
public static function CC61dBEfe4F00951()
{
$a85e1b7d42c346a0 = array();
foreach (self::$rCategories as $A1925ae53e9307eb) {
if (!$A1925ae53e9307eb["\x69\x73\x5f\x61\x64\165\154\x74"]) {
goto D1eca453fcd95aaf;
}
$a85e1b7d42c346a0[] = intval($A1925ae53e9307eb["\151\144"]);
D1eca453fcd95aaf:
A9e7ee0f674b0c31:
}
f34e0091c33cb7da:
return $a85e1b7d42c346a0;
}
public static function bfa8B6FE314deD7F()
{
if (is_object(self::$redis)) {
goto a2c957396626c628;
}
try {
self::$redis = new Redis();
self::$redis->connect(self::$rConfig["\150\x6f\x73\x74\156\141\x6d\145"], 6379);
self::$redis->auth(self::$rSettings["\x72\145\144\151\163\137\x70\141\x73\163\x77\x6f\162\144"]);
} catch (Exception $c34ae71903f0d920) {
self::$redis = null;
return false;
}
a2c957396626c628:
return true;
}
public static function b0b419A0354a0297()
{
if (!is_object(self::$redis)) {
goto f70012376870bc82;
}
self::$redis->close();
self::$redis = null;
f70012376870bc82:
return true;
}
public static function b85cCcef157fB67B($B08b62d9f7870287)
{
if (is_object(self::$redis)) {
goto A6d8ddb599e1d650;
}
self::bfA8b6fe314deD7f();
A6d8ddb599e1d650:
return igbinary_unserialize(self::$redis->get($B08b62d9f7870287));
}
public static function E0C928A3a83F24e9($a27e64cc6ce01033)
{
goto daf916e7942ef035;
C3018450b7c5c371:
$F42a951cf0a3370a->zAdd("\x4c\111\116\x45\x5f\x41\114\114\43{$a27e64cc6ce01033["\x69\144\x65\x6e\x74\x69\x74\171"]}", $a27e64cc6ce01033["\x64\141\164\145\137\x73\x74\141\x72\x74"], $a27e64cc6ce01033["\x75\x75\151\144"]);
$F42a951cf0a3370a->zAdd("\x53\124\122\x45\101\x4d\x23{$a27e64cc6ce01033["\x73\x74\162\x65\x61\x6d\x5f\x69\144"]}", $a27e64cc6ce01033["\144\141\x74\x65\137\x73\x74\x61\162\164"], $a27e64cc6ce01033["\x75\x75\x69\144"]);
$F42a951cf0a3370a->zAdd("\x53\105\x52\126\x45\122\x23{$a27e64cc6ce01033["\x73\x65\x72\166\x65\162\137\x69\x64"]}", $a27e64cc6ce01033["\144\x61\164\145\x5f\163\164\141\x72\164"], $a27e64cc6ce01033["\x75\165\151\144"]);
if (!$a27e64cc6ce01033["\165\x73\145\162\x5f\x69\144"]) {
goto f3a65de8d7e40645;
}
$F42a951cf0a3370a->zAdd("\x53\105\122\126\105\122\x5f\114\111\116\105\x53\43{$a27e64cc6ce01033["\163\145\162\x76\145\162\137\151\144"]}", $a27e64cc6ce01033["\x75\163\145\162\x5f\151\144"], $a27e64cc6ce01033["\x75\x75\x69\144"]);
goto cbcf5cee04129833;
b457b19a12d5a8ae:
$F42a951cf0a3370a->zAdd("\x4c\x49\x56\105", $a27e64cc6ce01033["\x64\x61\164\145\137\x73\164\x61\x72\x74"], $a27e64cc6ce01033["\x75\165\151\144"]);
$F42a951cf0a3370a->set($a27e64cc6ce01033["\x75\x75\x69\x64"], igbinary_serialize($a27e64cc6ce01033));
return $F42a951cf0a3370a->exec();
goto C5942f425f729d03;
cbcf5cee04129833:
f3a65de8d7e40645:
if (!$a27e64cc6ce01033["\160\162\157\170\x79\137\151\x64"]) {
goto dd37e2ca561a2078;
}
$F42a951cf0a3370a->zAdd("\x50\x52\117\130\x59\43{$a27e64cc6ce01033["\x70\x72\157\x78\x79\x5f\x69\x64"]}", $a27e64cc6ce01033["\x64\141\164\145\x5f\163\x74\141\x72\x74"], $a27e64cc6ce01033["\x75\x75\x69\144"]);
dd37e2ca561a2078:
$F42a951cf0a3370a->zAdd("\x43\117\x4e\116\x45\x43\124\x49\117\x4e\x53", $a27e64cc6ce01033["\x64\141\x74\x65\137\x73\x74\141\162\x74"], $a27e64cc6ce01033["\165\165\151\x64"]);
goto b457b19a12d5a8ae;
daf916e7942ef035:
if (is_object(self::$redis)) {
goto Ad508023f91b9e01;
}
self::BFA8b6Fe314ded7f();
Ad508023f91b9e01:
$F42a951cf0a3370a = self::$redis->multi();
$F42a951cf0a3370a->zAdd("\114\111\116\105\43{$a27e64cc6ce01033["\151\144\145\156\164\151\x74\171"]}", $a27e64cc6ce01033["\144\141\164\x65\137\x73\x74\x61\x72\x74"], $a27e64cc6ce01033["\165\165\151\x64"]);
goto C3018450b7c5c371;
C5942f425f729d03:
}
public static function e3484F74d3c8B5a7($a27e64cc6ce01033, $a6b40128767dfe4f = array(), $ec42cf0557b72e6f = null)
{
goto ea451f481338b711;
E00045cb4feee4c9:
$F42a951cf0a3370a->zRem("\x4c\111\x56\x45", $a27e64cc6ce01033["\165\165\x69\x64"]);
$F42a951cf0a3370a->zRem("\114\111\x4e\105\43{$d9b341c05baed5be["\151\x64\145\x6e\x74\151\x74\x79"]}", $a27e64cc6ce01033["\165\165\x69\x64"]);
$F42a951cf0a3370a->zRem("\123\124\122\x45\101\115\x23{$d9b341c05baed5be["\163\164\162\x65\x61\155\137\151\x64"]}", $a27e64cc6ce01033["\165\165\x69\144"]);
$F42a951cf0a3370a->zRem("\123\105\122\126\105\122\x23{$d9b341c05baed5be["\x73\x65\x72\x76\x65\162\137\151\144"]}", $a27e64cc6ce01033["\x75\x75\x69\x64"]);
if (!$a27e64cc6ce01033["\160\x72\x6f\x78\171\x5f\x69\144"]) {
goto fcaaf6a58a96f2c6;
}
goto C84cfdd103c0a950;
f1bb407d97919a8f:
$F42a951cf0a3370a->zRem("\123\x45\x52\x56\x45\x52\x5f\x4c\111\x4e\x45\123\x23{$d9b341c05baed5be["\x73\x65\162\x76\145\162\x5f\151\144"]}", $a27e64cc6ce01033["\x75\165\151\x64"]);
Fc24bb384cb4c200:
F6e19f205319a8ee:
Eb7642111701f91c:
goto cc8ea7534c0559d5;
goto C1c890fb4670faac;
ff7709d3d8ddaf0e:
c0e0ba3edd5d8ce4:
$F42a951cf0a3370a = self::$redis->multi();
if ($ec42cf0557b72e6f == "\x6f\x70\x65\156") {
goto E536066336481619;
}
if (!($ec42cf0557b72e6f == "\x63\154\x6f\163\145")) {
goto Eb7642111701f91c;
}
$F42a951cf0a3370a->sAdd("\x45\116\x44\105\104", $a27e64cc6ce01033["\x75\165\x69\144"]);
goto E00045cb4feee4c9;
C84cfdd103c0a950:
$F42a951cf0a3370a->zRem("\120\122\117\130\131\43{$d9b341c05baed5be["\160\x72\157\x78\171\x5f\151\x64"]}", $a27e64cc6ce01033["\x75\165\151\144"]);
fcaaf6a58a96f2c6:
if (!($a27e64cc6ce01033["\150\x6c\163\137\145\156\144"] == 0)) {
goto F6e19f205319a8ee;
}
$a27e64cc6ce01033["\150\x6c\x73\x5f\145\x6e\144"] = 1;
if (!$a27e64cc6ce01033["\165\163\x65\162\137\151\144"]) {
goto Fc24bb384cb4c200;
}
goto f1bb407d97919a8f;
F2c8da6e19ef12af:
$F42a951cf0a3370a->zAdd("\x53\x45\122\126\x45\122\x23{$a27e64cc6ce01033["\163\145\x72\166\x65\x72\137\151\144"]}", $a27e64cc6ce01033["\x64\141\x74\145\137\163\164\141\162\x74"], $a27e64cc6ce01033["\165\x75\x69\144"]);
if (!$a27e64cc6ce01033["\x70\162\157\x78\171\137\151\x64"]) {
goto a24c0d0dfb1469c4;
}
$F42a951cf0a3370a->zAdd("\120\x52\x4f\130\x59\43{$a27e64cc6ce01033["\x70\x72\157\x78\171\x5f\151\144"]}", $a27e64cc6ce01033["\144\141\164\145\x5f\163\x74\x61\x72\164"], $a27e64cc6ce01033["\x75\x75\151\x64"]);
a24c0d0dfb1469c4:
if (!($a27e64cc6ce01033["\x68\154\x73\x5f\x65\156\144"] == 1)) {
goto Fca00f5d2f21149e;
}
goto A77a87d4baddde08;
Eee4b6096bf6aeeb:
Ce4a7441f92ad7d1:
return $a27e64cc6ce01033;
E32eae34197b5046:
goto A82a16891635041d;
ea451f481338b711:
if (is_object(self::$redis)) {
goto e732efa1ab9d5e1f;
}
self::Bfa8B6FE314DeD7F();
e732efa1ab9d5e1f:
$d9b341c05baed5be = $a27e64cc6ce01033;
foreach ($a6b40128767dfe4f as $D3fa098be3f297cd => $b6842cb20051e925) {
$a27e64cc6ce01033[$D3fa098be3f297cd] = $b6842cb20051e925;
bdfcdbd0cbe56cf6:
}
goto ff7709d3d8ddaf0e;
A77a87d4baddde08:
$a27e64cc6ce01033["\150\154\163\137\x65\156\x64"] = 0;
if (!$a27e64cc6ce01033["\165\163\x65\162\137\x69\x64"]) {
goto cfce38c6d93a61b7;
}
$F42a951cf0a3370a->zAdd("\123\x45\122\126\105\122\137\x4c\111\116\105\123\x23{$a27e64cc6ce01033["\163\145\162\x76\145\162\x5f\151\144"]}", $a27e64cc6ce01033["\x75\x73\x65\x72\137\151\144"], $a27e64cc6ce01033["\165\x75\151\144"]);
cfce38c6d93a61b7:
Fca00f5d2f21149e:
goto b52fc7aa8d359703;
C1c890fb4670faac:
E536066336481619:
$F42a951cf0a3370a->sRem("\x45\116\104\x45\104", $a27e64cc6ce01033["\x75\165\151\x64"]);
$F42a951cf0a3370a->zAdd("\114\111\x56\105", $a27e64cc6ce01033["\x64\141\164\x65\137\x73\164\141\162\164"], $a27e64cc6ce01033["\165\x75\151\144"]);
$F42a951cf0a3370a->zAdd("\x4c\x49\x4e\x45\43{$a27e64cc6ce01033["\x69\144\x65\x6e\164\x69\x74\171"]}", $a27e64cc6ce01033["\144\x61\x74\145\x5f\163\164\x61\162\164"], $a27e64cc6ce01033["\165\165\151\x64"]);
$F42a951cf0a3370a->zAdd("\x53\x54\122\105\x41\115\x23{$a27e64cc6ce01033["\163\x74\162\x65\x61\155\x5f\151\144"]}", $a27e64cc6ce01033["\144\141\x74\145\137\163\x74\141\162\x74"], $a27e64cc6ce01033["\x75\x75\x69\144"]);
goto F2c8da6e19ef12af;
b52fc7aa8d359703:
cc8ea7534c0559d5:
$F42a951cf0a3370a->set($a27e64cc6ce01033["\165\x75\x69\x64"], igbinary_serialize($a27e64cc6ce01033));
if ($F42a951cf0a3370a->exec()) {
goto Ce4a7441f92ad7d1;
}
return null;
goto E32eae34197b5046;
goto Eee4b6096bf6aeeb;
A82a16891635041d:
}
public static function BC23764Ed0732f3F($D78ff1d0edade5eb, $ccf88201f4394db1 = false, $f16991461acd03bf = false)
{
goto Ec2f64d65e28f3ce;
F7d0c6c523fb4fa9:
E31fd3b1f7f044af:
return $f16991461acd03bf;
fe1e5221a7088f1f:
goto B31b41bd640ecc42;
Ec2f64d65e28f3ce:
if (is_object(self::$redis)) {
goto C3418121c04ac688;
}
self::BFa8B6fE314DEd7f();
C3418121c04ac688:
$f16991461acd03bf = self::$redis->zRangeByScore(($ccf88201f4394db1 ? "\x4c\111\116\x45\x23" : "\x4c\111\116\x45\137\101\114\114\43") . $D78ff1d0edade5eb, "\x2d\x69\x6e\146", "\x2b\151\x6e\x66");
if ($f16991461acd03bf) {
$f16991461acd03bf = array_map("unicode_decode", $f16991461acd03bf);
goto E31fd3b1f7f044af;
}
goto ec001be2a3f993e9;
ec001be2a3f993e9:
if (!(count($f16991461acd03bf) > 0)) {
goto f6ff5b02d1413bf7;
}
return array_map("unicode_decode", self::$redis->mGet($f16991461acd03bf));
f6ff5b02d1413bf7:
return array();
goto fe1e5221a7088f1f;
goto F7d0c6c523fb4fa9;
B31b41bd640ecc42:
}
public static function aA941cF79C4f48cf($f9b07d216a168dcc, $d58b4f8653a391d8, $C2897f488ae9e7fe, $Bccc89fc1174404a = null)
{
if (is_object(self::$redis)) {
goto ce63dcfc92d59f8a;
}
self::BFA8B6fe314dEd7f();
ce63dcfc92d59f8a:
$D3fa098be3f297cd = "\123\x49\x47\x4e\101\x4c\x23" . md5($d58b4f8653a391d8 . "\43" . $f9b07d216a168dcc . "\43" . $C2897f488ae9e7fe);
$a27e64cc6ce01033 = array("\x70\x69\144" => $f9b07d216a168dcc, "\163\145\x72\166\x65\x72\137\151\x64" => $d58b4f8653a391d8, "\162\x74\x6d\x70" => $C2897f488ae9e7fe, "\x74\151\155\x65" => time(), "\143\165\x73\x74\157\155\x5f\144\141\x74\x61" => $Bccc89fc1174404a, "\x6b\145\171" => $D3fa098be3f297cd);
return self::$redis->multi()->sAdd("\x53\111\107\x4e\101\x4c\123\43" . $d58b4f8653a391d8, $D3fa098be3f297cd)->set($D3fa098be3f297cd, igbinary_serialize($a27e64cc6ce01033))->exec();
}
public static function findClosestValue($targetValue, $array)
{
$closestValue = null;
$minDifference = PHP_INT_MAX;
foreach ($array as $value) {
$difference = abs($targetValue - $value);
if ($difference < $minDifference) {
$minDifference = $difference;
$closestValue = $value;
}
}
return $closestValue;
}
public static function GenerateURL($isSecure = false)
{
goto Start;
SecureCheck:
$protocol = "https";
ProxyCheck:
$isProxyEnabled = self::$rServers[$serverId]["enable_proxy"];
if (!$isProxyEnabled) {
goto ProxyDisabled;
}
goto ProxyEnabled;
ProxyDisabled:
$url = $protocol . "://" . $host . ":" . self::$rServers[$serverId]["http_port"] . "/";
if (!(self::$rServers[$serverId]["server_type"] == 1 && $mainServerId && self::$rServers[$mainServerId]["is_main"] == 0)) {
goto End;
}
$url .= md5($serverId . "_" . $mainServerId . "_" . OPENSSL_EXTRA) . "/";
End:
return $url;
ProxyEnabled:
$proxyKeys = array_keys(self::getProxies($serverId));
if (!(count($proxyKeys) == 0)) {
goto ProxyAvailable;
}
$proxyKeys = array_keys(self::getProxies($serverId, false));
ProxyAvailable:
if (!(count($proxyKeys) == 0)) {
goto ProxySelected;
}
return '';
ProxySelected:
$mainServerId = $serverId;
$serverId = $proxyKeys[array_rand($proxyKeys)];
goto ProxyDisabled;
Start:
$mainServerId = null;
$serverId = SERVER_ID;
if ($isSecure) {
goto SecureCheck;
}
if (isset($_SERVER["SERVER_PORT"]) && self::$rSettings["keep_protocol"]) {
$protocol = !empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] !== "off" || $_SERVER["SERVER_PORT"] == 443 ? "https" : "http";
goto ProxyCheck;
}
$protocol = self::$rServers[$serverId]["server_protocol"];
goto SecureCheck;
}
public static function getStreamingURL($serverId = null, $parentId = null, $useRandomIp = false)
{
if (isset($serverId)) {
$serverId = SERVER_ID;
}
if ($useRandomIp) {
$protocol = "http";
} else {
if (self::$rSettings["keep_protocol"]) {
$protocol = !empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] !== "off" || $_SERVER["SERVER_PORT"] == 443 ? "https" : "http";
} else {
$protocol = self::$rServers[$serverId]["server_protocol"];
}
}
$host = null;
if (strlen(HOST) > 0 && in_array(strtolower(HOST), array_map("strtolower", self::$rServers[$serverId]["domains"]["urls"]))) {
$host = HOST;
} elseif (self::$rServers[$serverId]["random_ip"] && count(self::$rServers[$serverId]["domains"]["urls"]) > 0) {
$host = self::$rServers[$serverId]["domains"]["urls"][array_rand(self::$rServers[$serverId]["domains"]["urls"])];
}
$url = "";
if ($host) {
$url = $protocol . "://" . $host . ":" . self::$rServers[$serverId][$protocol . "_broadcast_port"] . "/";
} else {
$url = rtrim(self::$rServers[$serverId][$protocol . "_url"], "/");
}
if (self::$rServers[$serverId]["server_type"] == 1 && $parentId && self::$rServers[$parentId]["is_main"] == 0) {
$url .= "/" . md5($serverId . "_" . $parentId . "_" . OPENSSL_EXTRA);
}
return $url;
}
public static function getProxies($serverId, $includeOffline = true)
{
$proxies = array();
foreach (self::$rServers as $id => $server) {
if (!($server["server_type"] == 1 && (in_array($serverId, $server["parent_id"]) && ($server["server_online"] or !$includeOffline)))) {
$proxies[$id] = $server;
}
}
return $proxies;
}
}
Function Calls
None |
Stats
MD5 | 873a2b5f41246f86ca8a6e6709d376ab |
Eval Count | 0 |
Decode Time | 408 ms |