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 Flussonic_ModuleControl
- {
- public $config;
- public $dirsep = '\\';
- public function __construct($config = false)
- {
- if ($config) {
- $this->config = $config;
- }
- else {
- $handler = new PluginHandler('Flussonic', 'server');
- $this->config = $handler->config_load();
- }
- if (defined('IS_WINDOWS')) {
- $this->dirsep = (IS_WINDOWS ? '\\' : '/');
- }
- }
- public function get_ip($id, $serverData = false)
- {
- global $_SERVER;
- global $setting;
- global $userdata;
- global $db_prefix;
- $mediaService = new MediaCP\MediaService($id, false);
- return $this->is_cdn($mediaService) ? $mediaService->pluginConfig()['EdgeUrl'] : $setting['host_add'];
- }
- public function get_port($id, $serverData = false)
- {
- global $_SERVER;
- global $db_prefix;
- $mediaService = new MediaCP\MediaService($id, false);
- if ($this->is_cdn($mediaService)) {
- return 443;
- }
- return !empty($mediaService->system()->pluginConfig['HttpsPort']) ? $mediaService->system()->pluginConfig['HttpsPort'] : $mediaService->system()->pluginConfig['HttpPort'];
- }
- public function get_address($id, $serverData = false, $full = false, ?MediaCP\MediaService $mediaService = NULL)
- {
- if (!$mediaService) {
- $mediaService = new MediaCP\MediaService($id, false);
- }
- return ($full ? 'http://' : '') . 'localhost' . ($full ? ':' . $mediaService->system()->pluginConfig['StreamingPort'] : '');
- }
- public function get_secure_state($id, $mediaService = NULL)
- {
- if (!$mediaService) {
- $mediaService = new MediaCP\MediaService($id, false);
- ................................................................
- ......................................
- ....................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement