Advertisement
Guest User

Untitled

a guest
Nov 26th, 2022
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.43 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class XUI
  15. {
  16. static public $db;
  17. static public $redis;
  18. static public $rRequest = [];
  19. static public $rConfig = [];
  20. static public $rSettings = [];
  21. static public $rBouquets = [];
  22. static public $rServers = [];
  23. static public $rSegmentSettings = [];
  24. static public $rBlockedUA = [];
  25. static public $rBlockedISP = [];
  26. static public $rBlockedIPs = [];
  27. static public $rBlockedServers = [];
  28. static public $rAllowedIPs = [];
  29. static public $rProxies = [];
  30. static public $rAllowedDomains = [];
  31. static public $rCategories = [];
  32. static public $rFFMPEG_CPU;
  33. static public $rFFMPEG_GPU;
  34. static public $rFFPROBE;
  35. static public $rCached;
  36.  
  37. static public function init($e7143add1c60b48a = false)
  38. {
  39. goto label2;
  40.  
  41. label2:
  42.  
  43. if (empty($_GET)) {
  44. goto label9;
  45. }
  46.  
  47. self::f1ae9b540a9F0990($_GET);
  48.  
  49. label9:
  50.  
  51. if (empty($_POST)) {
  52. goto label228;
  53. }
  54.  
  55. self::F1aE9B540A9f0990($_POST);
  56. goto label228;
  57.  
  58. label17:
  59.  
  60. 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'])];
  61.  
  62. switch (self::$rSettings['ffmpeg_cpu']) {
  63. case '4.4':
  64. self::$rFFMPEG_CPU = FFMPEG_BIN_44;
  65. self::$rFFPROBE = FFPROBE_BIN_44;
  66. goto label72;
  67. case '4.3':
  68. self::$rFFMPEG_CPU = FFMPEG_BIN_43;
  69. self::$rFFPROBE = FFPROBE_BIN_43;
  70. goto label72;
  71. default:
  72. self::$rFFMPEG_CPU = FFMPEG_BIN_40;
  73. self::$rFFPROBE = FFPROBE_BIN_40;
  74. goto label72;
  75. }
  76.  
  77. label72:
  78.  
  79. self::$rFFMPEG_GPU = FFMPEG_BIN_40;
  80. goto label114;
  81.  
  82. label76:
  83.  
  84. self::$rAllowedIPs = self::DC774E986fC9A9b4();
  85. self::$rCategories = self::a671BF4968302591();
  86. self::b63227C34407356e();
  87. goto label159;
  88.  
  89. label87:
  90.  
  91. goto label88;
  92.  
  93. label88:
  94.  
  95. self::$rServers = self::eA711305e7E007FB('servers');
  96. self::$rBouquets = self::EA711305e7e007Fb('bouquets');
  97. self::$rBlockedUA = self::eA711305E7E007Fb('blocked_ua');
  98. self::$rBlockedISP = self::Ea711305e7e007Fb('blocked_isp');
  99. self::$rBlockedIPs = self::ea711305e7E007fB('blocked_ips');
  100. goto label202;
  101.  
  102. label114:
  103.  
  104. self::$rCached = self::$rSettings['enable_cache'];
  105.  
  106. if ($e7143add1c60b48a) {
  107. goto label87;
  108. }
  109.  
  110. self::$rServers = self::da2060A9BebcA8e8();
  111. self::$rBouquets = self::fe4f19Da210cb139();
  112. self::$rBlockedUA = self::c0699B488095F23e();
  113. goto label160;
  114.  
  115. label133:
  116.  
  117. date_default_timezone_set(self::$rSettings['default_timezone']);
  118.  
  119. label138:
  120.  
  121. if (!(self::$rSettings['on_demand_wait_time'] == 0)) {
  122. goto label147;
  123. }
  124.  
  125. self::$rSettings['on_demand_wait_time'] = 15;
  126.  
  127. label147:
  128.  
  129. goto label17;
  130.  
  131. label148:
  132.  
  133. goto label154;
  134.  
  135. label149:
  136.  
  137. self::$rSettings = self::eA711305e7E007FB('settings');
  138.  
  139. label154:
  140.  
  141. if (empty(self::$rSettings['default_timezone'])) {
  142. goto label138;
  143. }
  144.  
  145. goto label133;
  146.  
  147. label159:
  148.  
  149. goto label268;
  150.  
  151. label160:
  152.  
  153. self::$rBlockedISP = self::D73ac2Db650413fd();
  154. self::$rBlockedIPs = self::e17eeCb6c9E9dd2F();
  155. self::$rProxies = self::B6e2cdf6d8Fb8797();
  156. self::$rBlockedServers = self::f0E4619E2F57F030();
  157. self::$rAllowedDomains = self::aECC1708e96255C3();
  158. goto label76;
  159.  
  160. label181:
  161.  
  162. if (defined('SERVER_ID')) {
  163. goto label195;
  164. }
  165.  
  166. define('SERVER_ID', intval(self::$rConfig['server_id']));
  167.  
  168. label195:
  169.  
  170. if ($e7143add1c60b48a) {
  171. goto label149;
  172. }
  173.  
  174. self::$rSettings = self::FACFF398a740c925();
  175. goto label148;
  176.  
  177. label202:
  178.  
  179. self::$rProxies = self::EA711305E7E007FB('proxy_servers');
  180. self::$rBlockedServers = self::Ea711305E7e007fB('blocked_servers');
  181. self::$rAllowedDomains = self::ea711305e7E007Fb('allowed_domains');
  182. self::$rAllowedIPs = self::eA711305e7e007FB('allowed_ips');
  183. self::$rCategories = self::ea711305E7e007FB('categories');
  184. goto label159;
  185.  
  186. label228:
  187.  
  188. if (empty($_SESSION)) {
  189. goto label235;
  190. }
  191.  
  192. self::f1ae9b540A9f0990($_SESSION);
  193.  
  194. label235:
  195.  
  196. if (empty($_COOKIE)) {
  197. goto label243;
  198. }
  199.  
  200. goto label239;
  201.  
  202. label239:
  203.  
  204. self::f1ae9B540A9F0990($_COOKIE);
  205.  
  206. label243:
  207.  
  208. $fc888d0bde27d15a = @self::cd722F82c92073Cd($_GET, []);
  209. self::$rRequest = @self::cD722F82c92073CD($_POST, $fc888d0bde27d15a);
  210. self::$rConfig = parse_ini_file(CONFIG_PATH . 'config.ini');
  211. goto label181;
  212.  
  213. label268:
  214. }
  215.  
  216. static public function B1D19F3b55089188($cf479aeecdf91a76)
  217. {
  218. $E06d0c9150204665 = new DateTime('UTC', new DateTimeZone(date_default_timezone_get()));
  219. $efd3754e79d24e9a = new DateTime('UTC', new DateTimeZone($cf479aeecdf91a76));
  220. return $efd3754e79d24e9a->getTimestamp() - $E06d0c9150204665->getTimestamp();
  221. }
  222.  
  223. static public function aECC1708E96255c3($Fd0c432582d28863 = false)
  224. {
  225. goto label2;
  226.  
  227. label2:
  228.  
  229. if ($Fd0c432582d28863) {
  230. goto label48;
  231. }
  232.  
  233. $f430dda0502d060e = self::eA711305e7E007Fb('allowed_domains', 20);
  234.  
  235. if (!($f430dda0502d060e !== false)) {
  236. goto label14;
  237. }
  238.  
  239. return $f430dda0502d060e;
  240.  
  241. label14:
  242.  
  243. goto label48;
  244.  
  245. label15:
  246.  
  247. self::$db->query('SELECT `reseller_dns` FROM `users` WHERE `status` = 1;');
  248.  
  249. foreach (self::$db->get_rows() as $cfb2e7b89194298d) {
  250. if (!$cfb2e7b89194298d['reseller_dns']) {
  251. goto label32;
  252. }
  253.  
  254. $C79515e740ad914d[] = $cfb2e7b89194298d['reseller_dns'];
  255.  
  256. label32:
  257. }
  258.  
  259. $C79515e740ad914d = array_filter(array_unique($C79515e740ad914d));
  260. self::cc9A7992443fA00d('allowed_domains', $C79515e740ad914d);
  261. goto label46;
  262.  
  263. label46:
  264.  
  265. return $C79515e740ad914d;
  266. goto label88;
  267.  
  268. label48:
  269.  
  270. $C79515e740ad914d = ['127.0.0.1', 'localhost'];
  271. self::$db->query('SELECT `server_ip`, `private_ip`, `domain_name` FROM `servers` WHERE `enabled` = 1;');
  272.  
  273. foreach (self::$db->get_rows() as $cfb2e7b89194298d) {
  274. foreach (explode(',', $cfb2e7b89194298d['domain_name']) as $Cdf0ca8278b4298e) {
  275. $C79515e740ad914d[] = $Cdf0ca8278b4298e;
  276. }
  277.  
  278. if (!$cfb2e7b89194298d['server_ip']) {
  279. goto label77;
  280. }
  281.  
  282. $C79515e740ad914d[] = $cfb2e7b89194298d['server_ip'];
  283.  
  284. label77:
  285.  
  286. if (!$cfb2e7b89194298d['private_ip']) {
  287. goto label85;
  288. }
  289.  
  290. $C79515e740ad914d[] = $cfb2e7b89194298d['private_ip'];
  291.  
  292. label85:
  293. }
  294.  
  295. goto label15;
  296.  
  297. label88:
  298. }
  299.  
  300. static public function b6e2CDF6D8fb8797($Fd0c432582d28863 = false)
  301. {
  302. goto label30;
  303.  
  304. label2:
  305.  
  306. $c778695c4daf0b40 = [];
  307.  
  308. foreach (self::$rServers as $e31cfba8409de8bc) {
  309. if (!($e31cfba8409de8bc['server_type'] == 1)) {
  310. goto label23;
  311. }
  312.  
  313. $c778695c4daf0b40[$e31cfba8409de8bc['server_ip']] = $e31cfba8409de8bc;
  314.  
  315. if (!$e31cfba8409de8bc['private_ip']) {
  316. goto label23;
  317. }
  318.  
  319. $c778695c4daf0b40[$e31cfba8409de8bc['private_ip']] = $e31cfba8409de8bc;
  320.  
  321. label23:
  322. }
  323.  
  324. self::CC9a7992443fA00D('proxy_servers', $c778695c4daf0b40);
  325. goto label43;
  326.  
  327. label30:
  328.  
  329. if ($Fd0c432582d28863) {
  330. goto label2;
  331. }
  332.  
  333. $f430dda0502d060e = self::EA711305E7e007fB('proxy_servers', 20);
  334.  
  335. if (!($f430dda0502d060e !== false)) {
  336. goto label42;
  337. }
  338.  
  339. return $f430dda0502d060e;
  340.  
  341. label42:
  342. ...............................................................................
  343. ..............................................
  344. ...................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement