Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.1.0.1
- * @ Author : DeZender
- * @ Release on : 29.08.2020
- * @ Official site : http://DeZender.Net
- *
- */
- class XUI
- {
- static public $db;
- static public $redis;
- static public $rRequest = [];
- static public $rConfig = [];
- static public $rSettings = [];
- static public $rBouquets = [];
- static public $rServers = [];
- static public $rSegmentSettings = [];
- static public $rBlockedUA = [];
- static public $rBlockedISP = [];
- static public $rBlockedIPs = [];
- static public $rBlockedServers = [];
- static public $rAllowedIPs = [];
- static public $rProxies = [];
- static public $rAllowedDomains = [];
- static public $rCategories = [];
- static public $rFFMPEG_CPU;
- static public $rFFMPEG_GPU;
- static public $rFFPROBE;
- static public $rCached;
- static public function init($e7143add1c60b48a = false)
- {
- goto label2;
- label2:
- if (empty($_GET)) {
- goto label9;
- }
- self::f1ae9b540a9F0990($_GET);
- label9:
- if (empty($_POST)) {
- goto label228;
- }
- self::F1aE9B540A9f0990($_POST);
- goto label228;
- label17:
- self::$rSegmentSettings = ['seg_type' => self::$rSettings['segment_type'], 'seg_time' => intval(self::$rSettings['seg_time']), 'seg_list_size' => intval(self::$rSettings['seg_list_size']), 'seg_delete_threshold' => intval(self::$rSettings['seg_delete_threshold'])];
- switch (self::$rSettings['ffmpeg_cpu']) {
- case '4.4':
- self::$rFFMPEG_CPU = FFMPEG_BIN_44;
- self::$rFFPROBE = FFPROBE_BIN_44;
- goto label72;
- case '4.3':
- self::$rFFMPEG_CPU = FFMPEG_BIN_43;
- self::$rFFPROBE = FFPROBE_BIN_43;
- goto label72;
- default:
- self::$rFFMPEG_CPU = FFMPEG_BIN_40;
- self::$rFFPROBE = FFPROBE_BIN_40;
- goto label72;
- }
- label72:
- self::$rFFMPEG_GPU = FFMPEG_BIN_40;
- goto label114;
- label76:
- self::$rAllowedIPs = self::DC774E986fC9A9b4();
- self::$rCategories = self::a671BF4968302591();
- self::b63227C34407356e();
- goto label159;
- label87:
- goto label88;
- label88:
- self::$rServers = self::eA711305e7E007FB('servers');
- self::$rBouquets = self::EA711305e7e007Fb('bouquets');
- self::$rBlockedUA = self::eA711305E7E007Fb('blocked_ua');
- self::$rBlockedISP = self::Ea711305e7e007Fb('blocked_isp');
- self::$rBlockedIPs = self::ea711305e7E007fB('blocked_ips');
- goto label202;
- label114:
- self::$rCached = self::$rSettings['enable_cache'];
- if ($e7143add1c60b48a) {
- goto label87;
- }
- self::$rServers = self::da2060A9BebcA8e8();
- self::$rBouquets = self::fe4f19Da210cb139();
- self::$rBlockedUA = self::c0699B488095F23e();
- goto label160;
- label133:
- date_default_timezone_set(self::$rSettings['default_timezone']);
- label138:
- if (!(self::$rSettings['on_demand_wait_time'] == 0)) {
- goto label147;
- }
- self::$rSettings['on_demand_wait_time'] = 15;
- label147:
- goto label17;
- label148:
- goto label154;
- label149:
- self::$rSettings = self::eA711305e7E007FB('settings');
- label154:
- if (empty(self::$rSettings['default_timezone'])) {
- goto label138;
- }
- goto label133;
- label159:
- goto label268;
- label160:
- self::$rBlockedISP = self::D73ac2Db650413fd();
- self::$rBlockedIPs = self::e17eeCb6c9E9dd2F();
- self::$rProxies = self::B6e2cdf6d8Fb8797();
- self::$rBlockedServers = self::f0E4619E2F57F030();
- self::$rAllowedDomains = self::aECC1708e96255C3();
- goto label76;
- label181:
- if (defined('SERVER_ID')) {
- goto label195;
- }
- define('SERVER_ID', intval(self::$rConfig['server_id']));
- label195:
- if ($e7143add1c60b48a) {
- goto label149;
- }
- self::$rSettings = self::FACFF398a740c925();
- goto label148;
- label202:
- self::$rProxies = self::EA711305E7E007FB('proxy_servers');
- self::$rBlockedServers = self::Ea711305E7e007fB('blocked_servers');
- self::$rAllowedDomains = self::ea711305e7E007Fb('allowed_domains');
- self::$rAllowedIPs = self::eA711305e7e007FB('allowed_ips');
- self::$rCategories = self::ea711305E7e007FB('categories');
- goto label159;
- label228:
- if (empty($_SESSION)) {
- goto label235;
- }
- self::f1ae9b540A9f0990($_SESSION);
- label235:
- if (empty($_COOKIE)) {
- goto label243;
- }
- goto label239;
- label239:
- self::f1ae9B540A9F0990($_COOKIE);
- label243:
- $fc888d0bde27d15a = @self::cd722F82c92073Cd($_GET, []);
- self::$rRequest = @self::cD722F82c92073CD($_POST, $fc888d0bde27d15a);
- self::$rConfig = parse_ini_file(CONFIG_PATH . 'config.ini');
- goto label181;
- label268:
- }
- static public function B1D19F3b55089188($cf479aeecdf91a76)
- {
- $E06d0c9150204665 = new DateTime('UTC', new DateTimeZone(date_default_timezone_get()));
- $efd3754e79d24e9a = new DateTime('UTC', new DateTimeZone($cf479aeecdf91a76));
- return $efd3754e79d24e9a->getTimestamp() - $E06d0c9150204665->getTimestamp();
- }
- static public function aECC1708E96255c3($Fd0c432582d28863 = false)
- {
- goto label2;
- label2:
- if ($Fd0c432582d28863) {
- goto label48;
- }
- $f430dda0502d060e = self::eA711305e7E007Fb('allowed_domains', 20);
- if (!($f430dda0502d060e !== false)) {
- goto label14;
- }
- return $f430dda0502d060e;
- label14:
- goto label48;
- label15:
- self::$db->query('SELECT `reseller_dns` FROM `users` WHERE `status` = 1;');
- foreach (self::$db->get_rows() as $cfb2e7b89194298d) {
- if (!$cfb2e7b89194298d['reseller_dns']) {
- goto label32;
- }
- $C79515e740ad914d[] = $cfb2e7b89194298d['reseller_dns'];
- label32:
- }
- $C79515e740ad914d = array_filter(array_unique($C79515e740ad914d));
- self::cc9A7992443fA00d('allowed_domains', $C79515e740ad914d);
- goto label46;
- label46:
- return $C79515e740ad914d;
- goto label88;
- label48:
- $C79515e740ad914d = ['127.0.0.1', 'localhost'];
- self::$db->query('SELECT `server_ip`, `private_ip`, `domain_name` FROM `servers` WHERE `enabled` = 1;');
- foreach (self::$db->get_rows() as $cfb2e7b89194298d) {
- foreach (explode(',', $cfb2e7b89194298d['domain_name']) as $Cdf0ca8278b4298e) {
- $C79515e740ad914d[] = $Cdf0ca8278b4298e;
- }
- if (!$cfb2e7b89194298d['server_ip']) {
- goto label77;
- }
- $C79515e740ad914d[] = $cfb2e7b89194298d['server_ip'];
- label77:
- if (!$cfb2e7b89194298d['private_ip']) {
- goto label85;
- }
- $C79515e740ad914d[] = $cfb2e7b89194298d['private_ip'];
- label85:
- }
- goto label15;
- label88:
- }
- static public function b6e2CDF6D8fb8797($Fd0c432582d28863 = false)
- {
- goto label30;
- label2:
- $c778695c4daf0b40 = [];
- foreach (self::$rServers as $e31cfba8409de8bc) {
- if (!($e31cfba8409de8bc['server_type'] == 1)) {
- goto label23;
- }
- $c778695c4daf0b40[$e31cfba8409de8bc['server_ip']] = $e31cfba8409de8bc;
- if (!$e31cfba8409de8bc['private_ip']) {
- goto label23;
- }
- $c778695c4daf0b40[$e31cfba8409de8bc['private_ip']] = $e31cfba8409de8bc;
- label23:
- }
- self::CC9a7992443fA00D('proxy_servers', $c778695c4daf0b40);
- goto label43;
- label30:
- if ($Fd0c432582d28863) {
- goto label2;
- }
- $f430dda0502d060e = self::EA711305E7e007fB('proxy_servers', 20);
- if (!($f430dda0502d060e !== false)) {
- goto label42;
- }
- return $f430dda0502d060e;
- label42:
- ...............................................................................
- ..............................................
- ...................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement