Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.62 KB | None | 0 0
  1. <?php
  2. /*
  3. * -------------------------------------------------------------------------------------
  4. * @author: emeza
  5. * @author URI: https://doothemes.com/
  6. * @aopyright: (c) 2017 Doothemes. All rights reserved
  7. * -------------------------------------------------------------------------------------
  8. *
  9. * @since 1.2.0
  10. * @date: 2017-04-02 / 20:58:25
  11. * @last modified by: Erick Meza
  12. * @last modified time: 2017-04-02 / 23:15:19
  13. *
  14. */
  15. $dt_player  = get_post_meta($post->ID, 'repeatable_fields', true);
  16. $reports    = get_post_meta($post->ID, 'numreport', true);
  17. $views      = dt_get_meta('dt_views_count');
  18. $light      = get_option('dt_player_luces','true');
  19. $report     = get_option('dt_player_report','true');
  20. $ads        = get_option('dt_player_ads','not');
  21. $qual       = get_option('dt_player_quality','true');
  22. $viewsc     = get_option('dt_player_views','true');
  23. $clic       = get_option('dt_player_ads_hide_clic','true');
  24. $time       = get_option('dt_player_ads_time','20');
  25. $ads_300    = get_option('dt_player_ads_300');
  26. $serie = dt_get_meta('serie');
  27. $ids = dt_get_meta('ids');
  28. $temp = dt_get_meta('temporada');
  29. $epis = dt_get_meta('episodio');
  30. $backdrop = dt_get_meta('dt_backdrop');
  31. $dt_images = dt_get_meta('imagenes');
  32. // Player
  33. ?>
  34. <div id="playex" class="player_sist <?php if(get_cookie('dt_player_width') == 'full') { echo 'fullplayer'; } ?>">
  35.     <?php get_template_part('inc/parts/single/report-video'); ?>
  36.     <?php  if ( $dt_player ) : ?>
  37.     <div class="playex">
  38.         <?php  if ($ads =='true') : ?>
  39.         <div id="playerads" class="ads_player">
  40.             <div class="ads_box">
  41.                 <div class="ads">
  42.                     <?php if($ads_300) : echo '<div class="code">'. stripslashes($ads_300). '</div>'; endif; ?>
  43.                     <?php if ($clic =='true'): ?><span class="notice"><?php _d('Skip Ad'); ?></span><?php endif; ?>
  44.                 </div>
  45.             </div>
  46.         </div>
  47.         <?php endif; ?>
  48.         <?php $numerado = 1; { foreach ( $dt_player as $field ) { ?>
  49.         <?php if($field['select'] == 'iframe') {  ?>
  50.             <div id="option-<?php echo $numerado; ?>" class="play-box-iframe fixidtab">
  51.                 <<?php echo 'iframe'; ?> class="metaframe rptss" src="<?php
  52.                 $whitelist = array(
  53.                 's.vstreaming.net',
  54.                 'cdn.vstreaming.net',
  55.                 's.mmfilmes.com',
  56.                 );
  57.                 if (strpos($field['url'], "animekaionline")){
  58.                     $link = file_get_contents($field['url']);
  59.                     $player = explode('<source src=" ', $link);
  60.                     $player = explode('"', $player[1]);
  61.                     $player = $player[0];
  62.                     $player = str_replace("http://", "https://", $player);
  63.                     $player = str_replace(" ", "", $player);
  64.                     $field['url'] = $player;
  65.                 }
  66.                 if (strpos($field['url'], "assistindoanime")){
  67.                     $link = file_get_contents("http://".$field['url']);
  68.                     $player = explode("javascript:downloadFile('", $link);
  69.                     $player = explode("''", $player[1]);
  70.                     $player = $player[0];
  71.                     $player = str_replace("http://", "https://", $player);
  72.                     $player = str_replace(" ", "", $player);
  73.                     $field['url'] = $player;
  74.                 }
  75.                 if (strpos($field['url'], "assistindoanimesonline")){
  76.                     $link = file_get_contents($field['url']);
  77.                     $player = explode('<video src="', $link);
  78.                     $player = explode('"', $player[1]);
  79.                     $player = $player[0];
  80.                     $field['url'] = $player;
  81.                 }
  82.                 if (strpos($field['url'], "anitubex")){
  83.                     $link = file_get_contents("http://".$field['url']);
  84.                     $player = explode('http://www.anitubex.net/players.php?bfo=', $link);
  85.                     $player = explode('"', $player[1]);
  86.                     $player = $player[0];
  87.                     $field['url'] = "https://www.blogger.com/video-play.mp4?contentId=".$player;
  88.                 }
  89.                 if (strpos($field['url'], "animedbs")){
  90.                     $link = file_get_contents($field['url']);
  91.                     $player = explode('http://www.animedbs.com/players.php?bfo=', $link);
  92.                     $player = explode('"', $player[1]);
  93.                     $player = $player[0];
  94.                     $field['url'] = "https://www.blogger.com/video-play.mp4?contentId=".$player;
  95.                 }
  96.  
  97.                 require_once "Class.php";
  98.                 $matheus = new Matheus();
  99.                 echo 'http://player.anibr.net/player.php?url='.$matheus->Encode($field['url']).'&qualidade='.$field['qualidades'].'&subt='.$field['subt'].'&img='.$backdrop.'&serie='.$serie.'&temporada='.$temp.'&ep='.$epis.'&t='.$name   = dt_get_meta('episode_name').'&tipo='.get_post_type();?>" frameborder="0" scrolling="no" allowfullscreen></iframe>
  100.             </div>
  101.         <?php } if($field['select'] == 'dtshcode') {  ?>
  102.             <div id="option-<?php echo $numerado; ?>" class="play-box-shortcode fixidtab">
  103.                 <?php echo do_shortcode($field['url']); ?>
  104.             </div>
  105.         <?php } $numerado++; } } ?>
  106.     </div>
  107.     <?php endif; ?>
  108.     <div class="control">
  109.         <nav class="player">
  110.             <ul class="options">
  111.                 <li>
  112.                     <a class="sources"><i class="icon-menu listsormenu"></i> <b><?php _d('Opções'); ?></b></a>
  113.                     <?php  if ( $dt_player ) : ?>
  114.                         <ul class="idTabs sourceslist scrolling">
  115.                         <?php $numerado = 1; { foreach ( $dt_player as $field ) { ?>
  116.                             <li><a class="options" href="#option-<?php echo $numerado; ?>">
  117.                             <b class="icon-play_arrow"></b> <?php echo $field['name']; ?>
  118.                             <?php if($field['idioma']) { ?><span class="dt_flag"><img src="<?php echo DT_DIR_URI, '/assets/img/flags/',$field['idioma'],'.png'; ?>"></span><?php } ?>
  119.                             </a></li>
  120.                         <?php $numerado++; } } ?>
  121.                         </ul>
  122.                     <?php endif; ?>
  123.                 </li>
  124.             </ul>
  125.         </nav>
  126.         <?php if ($qual =='true') : if($quali = $terms = strip_tags( $terms = get_the_term_list( $post->ID, 'dtquality'))) {  ?>
  127.             <?php if($mostrar = $terms = strip_tags( $terms = get_the_term_list( $post->ID, 'dtquality'))) {  ?><span class="qualityx"><?php echo $mostrar; ?></span><?php } ?>
  128.         <?php } endif; ?>
  129.         <?php if ($viewsc =='true') : if($views) { echo '<span class="views"><strong>'. comvert_number($views) .'</strong> '. __d('Visualizações') .'</span>'; } endif; ?>
  130.         <nav class="controles">
  131.             <ul class="list">
  132.                 <?php  if ($ads =='true') : ?><li id="count" class="contadorads"><?php _d('Ad skip in '); ?> <i id="contador"><?php echo $time; ?>s</i></li><?php endif; ?>
  133.                 <?php  if ($light =='true') : ?><li><a class="lightSwitcher" href="javascript:void(0);"><i class="icon-wb_sunny"></i></a></li><?php endif; ?>
  134.                 <?php  if ($report =='true') : if($reports=='10') { /* none*/ } else { ?><li><a class="report-video"><i class="icon-notification"></i> <span><?php _d('Reportar'); ?></span></a></li><?php } endif; ?>
  135.                 <li><a class="wide <?php if(get_cookie('dt_player_width') == 'full') { echo 'recox'; } else { echo 'reco'; } ?>">
  136.                     <i class="icons-enlarge2 <?php if(get_cookie('dt_player_width') == 'full') { echo 'icons-shrink2'; } ?>"></i>
  137.                 </a></li>
  138.             </ul>
  139.         </nav>
  140.     </div>
  141. </div>
  142. <script type='text/javascript'>
  143.     jQuery(document).ready(function($){
  144.     $("#oscuridad").css("height", $(document).height()).hide();
  145.     $(".lightSwitcher").click(function(){
  146.     $("#oscuridad").toggle();
  147.     if ($("#oscuridad").is(":hidden"))
  148.     $(this).html("<i class='icon-wb_sunny'></i>").removeClass("turnedOff");
  149.         else
  150.     $(this).html("<i class='icon-wb_sunny'></i>").addClass("turnedOff");
  151.         });
  152. <?php  if ($ads =='true') : ?>
  153.     var segundos = <?php echo $time; ?>;
  154.     function ads_time(){  
  155.         var t = setTimeout( ads_time, 1000);
  156.         document.getElementById('contador').innerHTML = '' +segundos--+'';  
  157.         if (segundos==0){
  158.             $('#playerads').fadeOut('slow');
  159.             $('#count').fadeOut('slow');
  160.             clearInterval(setTimeout);
  161.         }  
  162.     }
  163.     ads_time();
  164. <?php endif; ?>
  165. <?php if ($clic =='true'): ?>
  166.         $(".code").click(function() {
  167.           $("#playerads").fadeOut("slow");
  168.           $("#count").fadeOut("slow");
  169.         });
  170.         $(".notice").click(function() {
  171.           $("#playerads").fadeOut("slow");
  172.           $("#count").fadeOut("slow");
  173.         });
  174. <?php endif; ?>
  175.     $(".options").click(function() {
  176.       $('.rptss').attr('src', function ( i, val ) { return val; });
  177.     });
  178.     });
  179. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement