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
- *
- */
- function halimPlayerInit($post_id, $episode_link, $episode_type, $tracks, $list_sub, $list_sub_label)
- {
- if (has_filter('halim_custom_player_types')) {
- $obf_DT0kEiwCGj4WHj8fARUFXBQsORAfMgE = apply_filters('halim_custom_player_types', (object) ['post_id' => $post_id, 'link' => $episode_link, 'episode_type' => $episode_type, 'player_type' => '', 'subtitle' => $list_sub, 'sublabel' => $list_sub_label, 'sources' => '']);
- if ($obf_DT0kEiwCGj4WHj8fARUFXBQsORAfMgE->player_type == 'custom_api') {
- $sources = $obf_DT0kEiwCGj4WHj8fARUFXBQsORAfMgE->sources;
- halimBuildPlayer($post_id, $sources, $tracks, $obf_DT0kEiwCGj4WHj8fARUFXBQsORAfMgE->link);
- }
- else if ($obf_DT0kEiwCGj4WHj8fARUFXBQsORAfMgE->player_type == 'custom_iframe') {
- if ($obf_DT0kEiwCGj4WHj8fARUFXBQsORAfMgE->sources) {
- echo $obf_DT0kEiwCGj4WHj8fARUFXBQsORAfMgE->sources;
- }
- else {
- halim_detect_embed(['post_id' => $post_id, 'link' => $obf_DT0kEiwCGj4WHj8fARUFXBQsORAfMgE->link, 'subtitle' => $obf_DT0kEiwCGj4WHj8fARUFXBQsORAfMgE->subtitle, 'sublabel' => $obf_DT0kEiwCGj4WHj8fARUFXBQsORAfMgE->sublabel]);
- }
- }
- else if ($obf_DT0kEiwCGj4WHj8fARUFXBQsORAfMgE->episode_type == 'link') {
- $array_filter = (object) ['post_id' => $post_id, 'link' => $episode_link, 'type' => $episode_type, 'subtitle' => $list_sub, 'sublabel' => $list_sub_label, 'sources' => ''];
- $obf_DSsIPlsCLTMYJA44Aj4OW1wOwouEzI = apply_filters('halim_type_filter', $array_filter);
- if (has_filter('halim_type_filter')) {
- if ($obf_DSsIPlsCLTMYJA44Aj4OW1wOwouEzI->type == 'embed') {
- halim_detect_embed(['post_id' => $post_id, 'link' => $obf_DSsIPlsCLTMYJA44Aj4OW1wOwouEzI->link, 'subtitle' => $obf_DSsIPlsCLTMYJA44Aj4OW1wOwouEzI->subtitle, 'sublabel' => $obf_DSsIPlsCLTMYJA44Aj4OW1wOwouEzI->sublabel]);
- }
- else if ($obf_DSsIPlsCLTMYJA44Aj4OW1wOwouEzI->type == 'jwplayer') {
- $sources = $obf_DSsIPlsCLTMYJA44Aj4OW1wOwouEzI->sources;
- halimBuildPlayer($post_id, $sources, $tracks, $obf_DSsIPlsCLTMYJA44Aj4OW1wOwouEzI->link);
- }
- else {
- do_action('halim_custom_type_filter_sources', $array_filter);
- }
- }
- else {
- $sources = halim_detect_server($obf_DT0kEiwCGj4WHj8fARUFXBQsORAfMgE->link, $post_id)->sources;
- halimBuildPlayer($post_id, $sources, $tracks, $obf_DT0kEiwCGj4WHj8fARUFXBQsORAfMgE->link);
- }
- }
- else if ($obf_DT0kEiwCGj4WHj8fARUFXBQsORAfMgE->episode_type == 'mp4') {
- $result[] = ['file' => $obf_DT0kEiwCGj4WHj8fARUFXBQsORAfMgE->link, 'label' => 'FULL HD', 'type' => 'video/mp4'];
- $sources = json_encode($result);
- halimBuildPlayer($post_id, $sources, $tracks, $obf_DT0kEiwCGj4WHj8fARUFXBQsORAfMgE->link);
- }
- else if ($obf_DT0kEiwCGj4WHj8fARUFXBQsORAfMgE->episode_type == 'embed') {
- halim_detect_embed(['post_id' => $post_id, 'link' => $obf_DT0kEiwCGj4WHj8fARUFXBQsORAfMgE->link, 'subtitle' => $obf_DT0kEiwCGj4WHj8fARUFXBQsORAfMgE->subtitle, 'sublabel' => $obf_DT0kEiwCGj4WHj8fARUFXBQsORAfMgE->sublabel]);
- }
- else {
- echo '<div class="alert alert-danger text-center" role="alert">Episode Type "<strong>' . $obf_DT0kEiwCGj4WHj8fARUFXBQsORAfMgE->episode_type . '</strong>" chưa được hỗ trợ, vui lòng thiết lập API tùy chỉnh!</div>';
- }
- }
- else if ($episode_type == 'link') {
- $array_filter = (object) ['post_id' => $post_id, 'link' => $episode_link, 'type' => $episode_type, 'subtitle' => $list_sub, 'sublabel' => $list_sub_label, 'sources' => ''];
- $obf_DSsIPlsCLTMYJA44Aj4OW1wOwouEzI = apply_filters('halim_type_filter', $array_filter);
- if (has_filter('halim_type_filter')) {
- if ($obf_DSsIPlsCLTMYJA44Aj4OW1wOwouEzI->type == 'embed') {
- halim_detect_embed(['post_id' => $post_id, 'link' => $obf_DSsIPlsCLTMYJA44Aj4OW1wOwouEzI->link, 'subtitle' => $obf_DSsIPlsCLTMYJA44Aj4OW1wOwouEzI->subtitle, 'sublabel' => $obf_DSsIPlsCLTMYJA44Aj4OW1wOwouEzI->sublabel]);
- }
- else if ($obf_DSsIPlsCLTMYJA44Aj4OW1wOwouEzI->type == 'jwplayer') {
- $sources = $obf_DSsIPlsCLTMYJA44Aj4OW1wOwouEzI->sources;
- halimBuildPlayer($post_id, $sources, $tracks, $obf_DSsIPlsCLTMYJA44Aj4OW1wOwouEzI->link);
- }
- else {
- do_action('halim_custom_type_filter_sources', $array_filter);
- }
- }
- else {
- $sources = halim_detect_server($episode_link, $post_id)->sources;
- halimBuildPlayer($post_id, $sources, $tracks, $episode_link);
- }
- }
- else if ($episode_type == 'mp4') {
- $result[] = ['file' => $episode_link, 'label' => 'FULL HD', 'type' => 'video/mp4'];
- $sources = json_encode($result);
- halimBuildPlayer($post_id, $sources, $tracks, $episode_link);
- }
- else if ($episode_type == 'embed') {
- halim_detect_embed(['post_id' => $post_id, 'link' => $episode_link, 'subtitle' => $list_sub, 'sublabel' => $list_sub_label]);
- }
- else {
- echo '<div class="alert alert-danger text-center" role="alert">Episode Type "<strong>' . $episode_type . '</strong>" chưa được hỗ trợ, vui lòng thiết lập API tùy chỉnh!</div>';
- }
- }
- if (!function_exists('halim_detect_server')) {
- function halim_detect_server($link, $post_id)
- {
- $enable_cache = cs_get_option('player_cache');
- $cache_time = cs_get_option('player_cache_time');
- $cache = new Cache();
- $cache->timeCache = $cache_time;
- $getlink = new HALIM_GetLink();
- $getlink->init($link);
- if ($enable_cache) {
- $cacheData = $cache->readCache($link);
- .........................................................................
- ..........................................
- .................
Add Comment
Please, Sign In to add comment