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 : 5.0.1.0
- * @ Author : DeZender
- * @ Release on : 22.04.2022
- * @ Official site : http://DeZender.Net
- *
- */
- function getOutputFormats($rFormats)
- {
- $rFormatArray = [1 => 'm3u8', 2 => 'ts', 3 => 'rtmp'];
- $rReturn = [];
- foreach ($rFormats as $rFormat) {
- $rReturn[] = $rFormatArray[$rFormat];
- }
- return $rReturn;
- }
- function shutdown()
- {
- global $rDeny;
- if ($rDeny) {
- XCMS::checkFlood();
- }
- if (is_object(XCMS::$db)) {
- XCMS::$db->close_mysql();
- }
- }
- register_shutdown_function('shutdown');
- require './stream/init.php';
- set_time_limit(0);
- if (XCMS::$rSettings['force_epg_timezone']) {
- date_default_timezone_set('UTC');
- }
- $rDeny = true;
- if (XCMS::$rSettings['disable_player_api']) {
- $rDeny = false;
- generateError('PLAYER_API_DISABLED');
- }
- $rPanelAPI = false;
- if (strtolower(explode('.', ltrim(parse_url($_SERVER['REQUEST_URI'])['path'], '/'))[0]) == 'panel_api') {
- if (!XCMS::$rSettings['legacy_panel_api']) {
- $rDeny = false;
- generateError('LEGACY_PANEL_API_DISABLED');
- }
- else {
- $rPanelAPI = true;
- }
- }
- $rIP = $_SERVER['REMOTE_ADDR'];
- $rUserAgent = trim($_SERVER['HTTP_USER_AGENT']);
- $rOffset = (empty(XCMS::$rRequest['params']['offset']) ? 0 : abs((int) XCMS::$rRequest['params']['offset']));
- $rLimit = (empty(XCMS::$rRequest['params']['items_per_page']) ? 0 : abs((int) XCMS::$rRequest['params']['items_per_page']));
- $rNameTypes = ['live' => 'Live Streams', 'movie' => 'Movies', 'created_live' => 'Created Channels', 'radio_streams' => 'Radio Stations', 'series' => 'TV Series'];
- $rDomainName = XCMS::getDomainName();
- $rDomain = parse_url($rDomainName)['host'];
- $rValidActions = [0 => 'get_epg', 200 => 'get_vod_categories', 201 => 'get_live_categories', 202 => 'get_live_streams', 203 => 'get_vod_streams', 204 => 'get_series_info', 205 => 'get_short_epg', 206 => 'get_series_categories', 207 => 'get_simple_data_table', 208 => 'get_series', 209 => 'get_vod_info'];
- $rOutput = [];
- $rAction = (!empty(XCMS::$rRequest['action']) && (in_array(XCMS::$rRequest['action'], $rValidActions) || array_key_exists(XCMS::$rRequest['action'], $rValidActions)) ? XCMS::$rRequest['action'] : '');
- if (isset($rValidActions[$rAction])) {
- $rAction = $rValidActions[$rAction];
- }
- if ($rPanelAPI && empty($rAction)) {
- $rGetChannels = true;
- }
- else {
- $rGetChannels = in_array($rAction, ['get_series' => true, 'get_vod_streams' => true, 'get_live_streams' => true]);
- }
- if ($rGetChannels) {
- XCMS::$rBouquets = XCMS::getCache('bouquets');
- }
- if (($rPanelAPI && empty($rAction)) || in_array($rAction, ['get_vod_categories' => true, 'get_series_categories' => true, 'get_live_categories' => true])) {
- XCMS::$rCategories = XCMS::getCache('categories');
- }
- $rExtract = ['offset' => $rOffset, 'items_per_page' => $rLimit];
- if (isset(XCMS::$rRequest['username']) && isset(XCMS::$rRequest['password'])) {
- $rUsername = XCMS::$rRequest['username'];
- $rPassword = XCMS::$rRequest['password'];
- .....................................................................
- ............................................
- ......................
Advertisement
Add Comment
Please, Sign In to add comment