<?php
$login = query_string('1');

$verifica_stm = @mysqli_fetch_array(@mysqli_query($conexao,"SELECT COUNT(*) as total FROM streamings where login = '".$login."'"));

if($verifica_stm["total"] == 0) {
	die('<style> body { margin:0; padding:0; background-color:#000000}</style><div style="width:100%;text-align:center;margin-top:30%;font-size: 14px;font-family: Geneva, Arial, Helvetica, sans-serif;color:#FFFFFF;padding-left: 10px; padding-right: 10px"><img width="256" height="256" src="/app-multi-plataforma/img-app-offline.png" alt="Radio Offline" title="Radio Offline"><br><br><br><br><br>Estamos atualizando nosso App, por favor volte em alguns minutos.<br><br>We are updating our App, please come back in a few minutes.<br><br>Estamos actualizando nuestro App, por favor regrese en unos pocos minutos.</div>');
}

$dados_config = @mysqli_fetch_array(@mysqli_query($conexao,"SELECT * FROM configuracoes"));
$dados_stm = @mysqli_fetch_array(@mysqli_query($conexao,"SELECT * FROM streamings where login = '".$login."'"));
$dados_servidor = @mysqli_fetch_array(@mysqli_query($conexao,"SELECT * FROM servidores where codigo = '".$dados_stm["codigo_servidor"]."'"));
$dados_app_multi_plataforma = @mysqli_fetch_array(@mysqli_query($conexao,"SELECT * FROM app_multi_plataforma where codigo_stm = '".$dados_stm["codigo"]."'"));

if($_SERVER["HTTPS"] != "on") {
  header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
  exit();
}

if(query_string('2') == "push") {

  $user_id = query_string('3');

  $verifica_user_id = @mysqli_fetch_array(@mysqli_query($conexao,"SELECT COUNT(*) as total FROM app_notificacoes WHERE codigo_stm = '".$dados_stm["codigo"]."' AND user_id = '".$user_id."'"));

  if($user_id != "null" && $verifica_user_id["total"] == 0) {
    mysqli_query($conexao,"INSERT INTO app_notificacoes (codigo_stm,user_id) VALUES ('".$dados_stm["codigo"]."','".$user_id."')") or die("Error when add user_id onesignal: ".mysqli_error($conexao));
  }
  
exit();
}

if(query_string('2') == "manifest.webmanifest") {
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header('Content-Type: application/manifest+json');
echo '{
  "short_name": "'.utf8_encode($dados_app_multi_plataforma["nome"]).'",
  "name": "'.utf8_encode($dados_app_multi_plataforma["nome"]).'",
  "icons": [
    {
      "src": "'.$dados_app_multi_plataforma["url_logo"].'",
      "type": "image/png",
      "sizes": "300x300",
      "purpose": "any"
    }
  ],
  "description": "WebTV App",
  "start_url": "https://playerv.'.$dados_config["dominio_padrao"].'/player-app-multi-plataforma/'.$dados_stm["login"].'?app-multi='.time().'",
  "scope": "/player-app-multi-plataforma/'.$dados_stm["login"].'",
  "display": "standalone",
  "orientation": "landscape",
  "theme_color": "'.$dados_app_multi_plataforma["cor_splash"].'",
  "background_color": "'.$dados_app_multi_plataforma["cor_splash"].'"
}';

exit();
}

$logo_webtv = ($dados_app_multi_plataforma["url_logo"]) ? $dados_app_multi_plataforma["url_logo"] : "/app-multi-plataforma/img-app-logo.png";
$background_webtv = ($dados_app_multi_plataforma["url_background"] && $dados_app_multi_plataforma["tela_inicial"] == 1) ? "background: url('".$dados_app_multi_plataforma["url_background"]."') bottom / cover no-repeat;" : "background: #FFFFFF";

$array_lang = array(
	"pt-br" => array("redes_sociais" => "Redes Sociais", "politica" => "Pol&iacute;tica & Privacidade", "pedir_musica" => "Pedir M&uacute;sica", "voltar" => "Voltar", "prog" => "Nossa Programa&ccedil;&atilde;o", "hist" => "Nossa Hist&oacute;ria", "aviso_instalar" => "Clique no bot&atilde;o abaixo para instalar o App com seguran&ccedil;a em seu aparelho.", "aviso_instalar_iphone" => "Para instalar o App, aperte o botão <img width='23' height='32' src='/app-multi-plataforma/img-icone-share-ios.png'> de compartilhar em seu iPhone e escolha a opção &quot;Adicionar a Tela de Inicio&quot;", "aviso_instalar_windows" => "Para usar este App Windows, voc&ecirc; precisa clicar no bot&atilde;o de instala&ccedil;&atilde;o que ser&aacute; exibido pelo navegador.<br>Se ja estiver instalado, abra-o pelo menu iniciar <i class='fa fa-windows'></i> do seu windows.<br><br>&Eacute; necessario uso do navegador Chrome<i class='fa fa-chrome'></i> ou Edge<i class='fa fa-edge'></i> para a instala&ccedil;&atilde;o.", "aviso_atualizar" => "Uma nova vers&atilde;o do App esta dispon&iacute;vel, clique para atualizar.", "btn_instalar" => "Instalar App", "push_permissao_titulo" => "Deseja receber notificações de nossa radio?", "push_permissao_sim" => "Permitir", "push_permissao_nao" => "Não, obrigado."),

	"en" => array("redes_sociais" => "Social Networks", "politica" => "Privacy Policy.", "pedir_musica" => "Request Song", "voltar" => "Back", "prog" => "Our Schedule", "hist" => "Our Story", "aviso_instalar" => "Click the button below to install the App safely on your device.", "aviso_instalar_iphone" => "To install the App, press the share button <img width='23' height='32' src='/app-multi-plataforma/img-icone-share-ios.png'> on your iPhone and choose the option &quot;Add to Home Screen&quot;", "aviso_instalar_windows" => "To use this Windows App, you need to click on the installation button that will be displayed by the browser.<br>If is already installed, then open the app by the start menu <i class='fa fa-windows'></i> on your windows.<br><br>Chrome<i class='fa fa-chrome'></i> or Edge<i class='fa fa-edge'></i> browser is required for installation.", "aviso_atualizar" => "A new version of the App is available, click to update.", "btn_instalar" => "Install App", "push_permissao_titulo" => "Do you want to receive notifications of our radio?", "push_permissao_sim" => "Allow", "push_permissao_nao" => "No, thanks."),

	"es" => array("redes_sociais" => "Redes Sociales", "politica" => "Pol&iacute;tica de Privacidad", "pedir_musica" => "Pedir Canci&oacute;n", "voltar" => "Volver", "prog" => "Nuestro Horario", "hist" => "Nuestra Historia", "aviso_instalar" => "Haga clic en el bot&oacute;n de abajo para instalar la aplicaci&oacute;n de forma segura en su dispositivo.", "aviso_instalar_iphone" => "Para instalar la aplicaci&oacute;n, presione el bot&oacute;n compartir <img width='23' height='32' src='/app-multi-plataforma/img-icone-share-ios.png'> en su iPhone y elija la opci&oacute;n &quot;A&ntilde;adir a la pantalla de inicio&quot;", "aviso_instalar_windows" => "Para utilizar esta aplicaci&oacute;n de Windows, debe hacer clic en el bot&oacute;n de instalaci&oacute;n que se mostrar&aacute; en el navegador.<br>Si ya est&aacute; instalado, &aacute;bralo desde el men&uacute; de inicio <i class='fa fa-windows'></i> en su windows.<br><br>Se requiere el navegador Chrome<i class='fa fa-chrome'></i> o Edge<i class='fa fa-edge'></i> para la instalaci&oacute;n.", "aviso_atualizar" => "Hay una nueva versi&oacute;n de la aplicaci&oacute;n disponible, haga clic para actualizar.", "btn_instalar" => "Instalar App")
);
if($dados_servidor["nome_principal"]) {
$servidor = $dados_servidor["nome_principal"].".".$dados_config["dominio_padrao"];
} else {
$servidor = $dados_servidor["nome"].".".$dados_config["dominio_padrao"];
}
$url_source = "https://".$servidor."/".$login."/".$login."/playlist.m3u8";

for($i=0;$i<=1000;$i++){echo "\n\n";}for($i=0;$i<=100;$i++){echo "        ";}
?>
<?php if(empty(query_string('2'))) { ?>
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<title><?php echo $dados_app_multi_plataforma["nome"];?></title>
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="Description" content="WebTV App">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="<?php echo $dados_app_multi_plataforma["nome"];?>">
<meta name="msapplication-TileColor" content="<?php echo $dados_app_multi_plataforma["cor_splash"]; ?>">
<meta name="theme-color" content="<?php echo $dados_app_multi_plataforma["cor_splash"]; ?>">
<link rel="icon" type="image/png" href="<?php echo $dados_app_multi_plataforma["url_logo"];?>" sizes="300x300" />
<link rel="apple-touch-icon" sizes="300x300" href="<?php echo $dados_app_multi_plataforma["url_logo"];?>">
<link rel="manifest" href="/player-app-multi-plataforma/<?php echo $dados_stm["login"];?>/manifest.webmanifest?<?php echo time();?>"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/10.6.1/sweetalert2.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/10.6.1/sweetalert2.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<?php if($dados_app_multi_plataforma["tela_inicial"] == 2) {?>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script type="text/javascript" charset="utf-8" src="//cdn.jsdelivr.net/npm/clappr@latest/dist/clappr.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/jquery.jssocials/1.4.0/jssocials.min.js"></script>
<script type="text/javascript" charset="utf-8" src="//cdn.jsdelivr.net/gh/clappr/clappr-level-selector-plugin@latest/dist/level-selector.min.js"></script>
<link type="text/css" rel="stylesheet" href="//cdn.jsdelivr.net/jquery.jssocials/1.4.0/jssocials.css" />
<link type="text/css" rel="stylesheet" href="//cdn.jsdelivr.net/jquery.jssocials/1.4.0/jssocials-theme-flat.css" />
<?php } ?>
<?php if(!empty($_GET["app-multi"])) {?>
<script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" async=""></script>
<?php } ?>
<style>html { height: 100%; }body { margin:0; padding:0;font-family:Poppins,sans-serif;<?php if(!empty($_GET["app-multi"])) {echo $background_webtv;} ?>}#player-app-volumewrapper{display: none;}#player-app-buttonvolumeoff{display: none;}#player-app-buttonvolumeon{display: none;}#player-app-textvolumeend{display: none;}<?php if($status_conexao_transmissao != "aovivo") { echo '#player-app-iconlive{display: none;}'; } else { echo '#player-app-iconlive{fill: rgb(255 0 0 / 100%)!important;}'; } ?>#player-app-buttonanalyzer{display: none;}.icone-menu{position:absolute;left:0;top:0;width: 32px;height: 32px;padding-left: 5px;padding-bottom: 10px; margin: 10px; border-radius: 3px;color: #FFFFFF;font-size: 32px;text-align: center;z-index: 500;}@import url(https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700);p{font-family:Poppins,sans-serif;font-size:1.1em;font-weight:300;line-height:1.7em;color:#999}a,a:focus,a:hover{color:inherit;text-decoration:none;transition:all .3s}.navbar{padding:15px 10px;background:#fff;border:none;border-radius:0;margin-bottom:40px;box-shadow:1px 1px 3px rgba(0,0,0,.1)}.navbar-btn{box-shadow:none;outline:0!important;border:none}.line{width:100%;height:1px;border-bottom:1px dashed #ddd;margin:40px 0}#sidebar{width:250px;position:fixed;top:0;left:-250px;height:100vh;z-index:999;background:<?php echo $dados_app_multi_plataforma["cor_menu_claro"]; ?>;color:#fff;transition:all .3s;overflow-y:scroll;box-shadow:3px 3px 3px rgba(0,0,0,.2);overflow: hidden}#sidebar.active{left:0}#dismiss{width:30px;height:30px;line-height:30px;text-align:center;background:<?php echo $dados_app_multi_plataforma["cor_menu_claro"]; ?>;position:absolute;top:10px;right:10px;cursor:pointer;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}#dismiss2{width:70px;height:30px;line-height:30px;text-align:center;background:<?php echo $dados_app_multi_plataforma["cor_menu_claro"]; ?>;position:absolute;top:5px;left:5px;cursor:pointer;color: #FFFFFF;}#dismiss:hover{background:#fff;color:<?php echo $dados_app_multi_plataforma["cor_menu_claro"]; ?>}.overlay{display:none;position:fixed;width:100vw;height:100vh;background:rgba(0,0,0,.7);z-index:998;opacity:0;transition:all .5s ease-in-out}.overlay.active{display:block;opacity:1}#sidebar .sidebar-header{padding:20px;background:<?php echo $dados_app_multi_plataforma["cor_menu_escuro"]; ?>}#sidebar ul.components{padding:20px 0;}#sidebar ul p{color:#fff;padding:10px}#sidebar ul li a{padding:10px;font-size:1.1em;display:block}#sidebar ul li a:hover{color:<?php echo $dados_app_multi_plataforma["cor_menu_claro"]; ?>;background:#fff}#sidebar ul li.active>a,a[aria-expanded=true]{color:#fff;background:<?php echo $dados_app_multi_plataforma["cor_menu_escuro"]; ?>}a[data-bs-toggle=collapse]{position:relative}.dropdown-toggle::after{display:block;position:absolute;top:50%;right:20px;transform:translateY(-50%)}ul ul a{font-size:.9em!important;padding-left:30px!important;background:<?php echo $dados_app_multi_plataforma["cor_menu_escuro"]; ?>}ul.CTAs{padding:20px}ul.CTAs a{text-align:center;font-size:.9em!important;display:block;border-radius:5px;margin-bottom:5px}a.download{background:#fff;color:<?php echo $dados_app_multi_plataforma["cor_menu_claro"]; ?>}a.article,a.article:hover{background:<?php echo $dados_app_multi_plataforma["cor_menu_escuro"]; ?>!important;color:#fff!important}#content{width:100%;padding:20px;min-height:100vh;transition:all .3s;position:absolute;top:0;right:0}.chromeframe{margin:.2em 0;background:#ccc;color:#000;padding:.2em 0}#loader-wrapper{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000}#loader{display:block;position:relative;left:50%;top:50%;width:150px;height:150px;margin:-75px 0 0 -75px;border-radius:50%;border:3px solid transparent;border-top-color:#3498db;-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite;z-index:1001}#loader:before{content:"";position:absolute;top:5px;left:5px;right:5px;bottom:5px;border-radius:50%;border:3px solid transparent;border-top-color:#e74c3c;-webkit-animation:spin 3s linear infinite;animation:spin 3s linear infinite}#loader:after{content:"";position:absolute;top:15px;left:15px;right:15px;bottom:15px;border-radius:50%;border:3px solid transparent;border-top-color:#f9c922;-webkit-animation:spin 1.5s linear infinite;animation:spin 1.5s linear infinite}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg)}}#loader-wrapper .loader-section{position:fixed;top:0;width:51%;height:100%;background:#222;z-index:1000}#loader-wrapper .loader-section.section-left{left:0}#loader-wrapper .loader-section.section-right{right:0}.loaded #loader-wrapper .loader-section.section-left{-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%);-webkit-transition:all .7s .3s cubic-bezier(.645,.045,.355,1);transition:all .7s .3s cubic-bezier(.645,.045,.355,1)}.loaded #loader-wrapper .loader-section.section-right{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);-webkit-transition:all .7s .3s cubic-bezier(.645,.045,.355,1);transition:all .7s .3s cubic-bezier(.645,.045,.355,1)}.loaded #loader{opacity:0;-webkit-transition:all .3s ease-out;transition:all .3s ease-out}.loaded #loader-wrapper{visibility:hidden;-webkit-transform:translateY(-100%);-ms-transform:translateY(-100%);transform:translateY(-100%);-webkit-transition:all .3s 1s ease-out;transition:all .3s 1s ease-out}.ir{background-color:transparent;border:0;overflow:hidden}.ir:before{content:"";display:block;width:0;height:150%}.hidden{display:none!important;visibility:hidden}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.invisible{visibility:hidden}.clearfix:after,.clearfix:before{content:" ";display:table}.clearfix:after{clear:both}.icone-contador{position:absolute;right:0;top:0;background:rgba(255,0,0, 1.0); min-width: 50px;height: 20px;padding-left: 5px;padding-bottom: 10px; margin: 10px; border-radius: 3px;color: #FFFFFF;font-size: 14px;text-align: center;z-index: 10000;}</style>
</head>
<body oncontextmenu="return false">
<?php if(empty($_GET["app-multi"])) {?>

<?php  $Android = stripos($_SERVER['HTTP_USER_AGENT'],"Android"); $iPhone  = stripos($_SERVER['HTTP_USER_AGENT'],"iPhone"); $Windows  = stripos($_SERVER['HTTP_USER_AGENT'],"Windows"); ?>

<?php if($Android) { ?>

<div style="width:100%;text-align:center;margin-top:20px;font-size: 18px;font-family: Geneva, Arial, Helvetica, sans-serif;color:#333333;padding-left: 10px; padding-right: 10px"><img width="256" height="256" src="<?php echo $dados_app_multi_plataforma["url_logo"]; ?>" alt="<?php echo $dados_app_multi_plataforma["nome"]; ?>" title="<?php echo $dados_app_multi_plataforma["nome"]; ?>"><br><br><br><?php echo $array_lang[$dados_stm["idioma_painel"]]["aviso_instalar"]; ?><br><br><br><button id="instalar" type="button" class="btn btn-success" style="font-size: inherit;"><i class='fa fa-android'></i> <?php echo $array_lang[$dados_stm["idioma_painel"]]["btn_instalar"]; ?></button></div>

<?php } ?>

<?php if($iPhone) { ?>

<div style="width:100%;text-align:center;margin-top:20px;font-size: 18px;font-family: Geneva, Arial, Helvetica, sans-serif;color:#333333;padding-left: 10px; padding-right: 10px"><img width="256" height="256" src="<?php echo $dados_app_multi_plataforma["url_logo"]; ?>" alt="<?php echo $dados_app_multi_plataforma["nome"]; ?>" title="<?php echo $dados_app_multi_plataforma["nome"]; ?>"><br><br><br><?php echo $array_lang[$dados_stm["idioma_painel"]]["aviso_instalar"]; ?><br><br><br><button type="button" class="btn btn-success" style="font-size: inherit;" onClick="instalar_app_iphone();"><i class='fa fa-apple'></i> <?php echo $array_lang[$dados_stm["idioma_painel"]]["btn_instalar"]; ?></button></div>

<?php } ?>

<?php if($Windows) { ?>

<div style="width:100%;text-align:center;margin-top:20px;font-size: 18px;font-family: Geneva, Arial, Helvetica, sans-serif;color:#333333;padding-left: 10px; padding-right: 10px"><img width="256" height="256" src="<?php echo $dados_app_multi_plataforma["url_logo"]; ?>" alt="<?php echo $dados_app_multi_plataforma["nome"]; ?>" title="<?php echo $dados_app_multi_plataforma["nome"]; ?>"><br><br><br><?php echo $array_lang[$dados_stm["idioma_painel"]]["aviso_instalar_windows"]; ?><br><br><br><button id="instalar" type="button" class="btn btn-success" style="font-size: inherit;"><i class='fa fa-windows'></i> <?php echo $array_lang[$dados_stm["idioma_painel"]]["btn_instalar"]; ?></button></div>

<?php } ?>

<?php } else {?>
<div id="loader-wrapper"><div id="loader"></div><div class="loader-section section-left"></div><div class="loader-section section-right"></div></div>
<?php if($dados_app_multi_plataforma["contador"] == "sim" && $dados_app_multi_plataforma["tela_inicial"] == 2) {?><div class="icone-contador"><i class="fa fa-users"></i> <strong><span id="contador_online"></span></strong></div><?php } ?>
<div class="icone-menu"><button type="button" id="sidebarCollapse" class="btn btn-sm btn-light"><i class="fa fa-bars"></i></button></div>
<nav id="sidebar">
   <div id="dismiss">
      <i class="fa fa-arrow-left"></i>
   </div>
   <div class="sidebar-header">
      <h4><?php echo $dados_app_multi_plataforma["nome"]; ?></h3>
   </div>
   <ul class="list-unstyled components">
    <?php if($dados_app_multi_plataforma["tela_inicial"] == 2) {?>
      <li>
         <a href="https://playerv.<?php echo $dados_config["dominio_padrao"]; ?>/player-app-multi-plataforma/<?php echo $dados_stm["login"]; ?>/player?<?php echo time();?>"><i class="fa fa-play-circle"></i> Player FullScreen</a>
      </li>
    <?php } ?>
    <?php if($dados_app_multi_plataforma["url_facebook"] || $dados_app_multi_plataforma["url_instagram"] || $dados_app_multi_plataforma["url_twitter"] || $dados_app_multi_plataforma["url_site"] || $dados_app_multi_plataforma["url_youtube"]) { ?>
      <li>
        <a href="#redessociais" data-bs-toggle="collapse" aria-expanded="false"><i class="fa fa-heart"></i> <?php echo $array_lang[$dados_stm["idioma_painel"]]["redes_sociais"]; ?></a>
        <ul class="collapse list-unstyled" id="redessociais">
          <?php if($dados_app_multi_plataforma["url_facebook"]) { ?>
           <li>
              <a href="<?php echo $dados_app_multi_plataforma["url_facebook"]; ?>" ><i class="fa fa-facebook-official"></i> Facebook</a>
           </li>
          <?php } ?>
          <?php if($dados_app_multi_plataforma["url_instagram"]) { ?>
           <li>
              <a href="<?php echo $dados_app_multi_plataforma["url_instagram"]; ?>"><i class="fa fa-instagram"></i> Instagram</a>
           </li>
          <?php } ?>
          <?php if($dados_app_multi_plataforma["url_twitter"]) { ?>
           <li>
              <a href="<?php echo $dados_app_multi_plataforma["url_twitter"]; ?>"><i class="fa fa-twitter"></i> Twitter</a>
           </li>
          <?php } ?>
          <?php if($dados_app_multi_plataforma["url_site"]) { ?>
           <li>
              <a href="<?php echo $dados_app_multi_plataforma["url_site"]; ?>"><i class="fa fa-globe"></i> Site</a>
           </li>
          <?php } ?>
          <?php if($dados_app_multi_plataforma["url_youtube"]) { ?>
           <li>
              <a href="<?php echo $dados_app_multi_plataforma["url_youtube"]; ?>"><i class="fa fa-youtube"></i> YouTube</a>
           </li>
          <?php } ?>
        </ul>
      </li>
    <?php } ?>
     <?php if($dados_app_multi_plataforma["url_chat"]) { ?>
      <li>
         <a href="#" onclick="abrir_link('<?php echo $dados_app_multi_plataforma["url_chat"]; ?>')"><i class="fa fa-comments"></i> Chat</a>
      </li>
     <?php } ?>
     <?php if($dados_app_multi_plataforma["whatsapp"]) { ?>
      <li>
         <a href="https://api.whatsapp.com/send/?phone=<?php echo $dados_app_multi_plataforma["whatsapp"]; ?>&text&app_win_absent=0"><i class="fa fa-whatsapp"></i> Whatsapp</a>
      </li>
     <?php } ?>
     <?php if($dados_app_multi_plataforma["text_prog"]) { ?>
      <li>
         <a href="#" onClick="abrir_link('/app-multi-plataforma/texto/<?php echo $dados_stm["login"]; ?>/programacao')"><i class="fa fa-calendar-check-o"></i> <?php echo $array_lang[$dados_stm["idioma_painel"]]["prog"]; ?></a>
      </li>
     <?php } ?>
     <?php if($dados_app_multi_plataforma["text_hist"]) { ?>
      <li>
         <a href="#" onClick="abrir_link('/app-multi-plataforma/texto/<?php echo $dados_stm["login"]; ?>/historia')"><i class="fa fa-info-circle"></i> <?php echo $array_lang[$dados_stm["idioma_painel"]]["hist"]; ?></a>
      </li>
     <?php } ?>
      <li>
         <a href="#app" data-bs-toggle="collapse" aria-expanded="false"><i class="fa fa-tablet"></i> App</a>
         <ul class="collapse list-unstyled" id="app">
            <li>
               <a href="#" onclick="abrir_link('/app-multi-plataforma/politica.html')"><i class="fa fa-gavel"></i> <?php echo $array_lang[$dados_stm["idioma_painel"]]["politica"]; ?></a>
            </li>
            <?php if($dados_app_multi_plataforma["email"]) { ?>
            <li>
               <a href="mailto:<?php echo $dados_app_multi_plataforma["email"]; ?>"><i class="fa fa-envelope"></i> E-mail</a>
            </li>
        <?php } ?>
         </ul>
      </li>
   </ul>
</nav>
<div id="conteudo_externo" style="position: absolute;left:0px;top:0px;width:100%;height:100%;background: #FFFFFF;margin:0;padding:0;z-index: 99999;display: none;">
<div style="width: 100%;height: 40px;margin:0;padding:0px 10px;background:<?php echo $dados_app_multi_plataforma["cor_menu_escuro"]; ?>"><div id="dismiss2"><i class="fa fa-arrow-left" onclick="$('#conteudo_externo').hide();$('#iframe_conteudo_externo').attr('src', '');"> <?php echo $array_lang[$dados_stm["idioma_painel"]]["voltar"]; ?></i></div></div>
<iframe target="_parent" id="iframe_conteudo_externo" frameborder="0" src="" style="position: absolute;width:100%;height:100%;z-index: 99999"></iframe>
</div>
<div class="overlay"></div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script>   
<?php if($dados_app_multi_plataforma["tela_inicial"] == 1) {?>
<div id="player-app-logo-conteudo" style="overflow: hidden; background: rgba(255, 255, 255, 0.1); user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); width: 220px; height: 220px; border: 10px solid rgba(255, 255, 255, 0.2); border-radius: 50%;margin: 3% auto">
  <div id="player-app-logo" style="height: 100%; width: 100%; overflow: hidden; transition: opacity 2s ease 0s; background: url('<?php echo $logo_webtv ?>') 0% 0% / cover no-repeat; border-radius: 50%;"></div>
</div>
<div id="nome_webtv" style="margin-top:60px; margin-left: auto; margin-right: auto; width: 95%; height: 40px; font-size: 35px; line-height: 40px; color: <?php echo $dados_app_multi_plataforma["cor_texto"]; ?>;text-align: center; z-index: 9999"></div>
<a href="https://playerv.<?php echo $dados_config["dominio_padrao"]; ?>/player-app-multi-plataforma/<?php echo $dados_stm["login"]; ?>/player?<?php echo time();?>">
<div id="player-app-play" style="cursor: pointer; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); width: 112px; height: 112px;margin-top:30px; margin-left: auto; margin-right: auto;" onclick="$('#player-app-play').width('100px');$('#player-app-play').height('100px');">
  <div id="player-app-buttonplay" style="width: 100%; height: 100%; transition: fill 0.5s ease 0s; fill: rgb(255, 255, 255); user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"><svg x="0px" y="0px" viewBox="0 0 800 800"><path d="M713.9,400.5c1.4,171.2-137.8,314.4-313.9,314.3c-175.6,0-314.2-143-314-315c0.2-171.3,140.6-313.9,315-313.4 C574,87,715.4,228.9,713.9,400.5z M279.5,400.3c0,23.1,0,46.2,0,69.3c0,20.8-0.2,41.7,0.1,62.5c0.1,12.2,6,21.1,17,26.6 c11,5.5,21.2,3,31.2-2.9c23.3-13.6,46.8-27,70.2-40.5c49.8-28.6,99.6-57.1,149.3-85.8c18.1-10.4,18.7-38.7,1.1-49.4 c-74.5-45.4-149-90.8-223.5-136.1c-6-3.7-12.6-5.5-19.8-4.2c-15.7,2.9-25.5,14.4-25.5,30.5C279.4,313.6,279.5,357,279.5,400.3z"></path></svg></div></div></a>
<?php } else { ?>
<div id="corpo"><div id="player"> <div id="player_webtv"></div></div><div id="chat"> <div id="Elchat"></div><ul id="listaOnline" style="display:none;"></ul> </div></div></div>
</div>
<script type="text/javascript">
$.fn.extend({ChatSocket:function(A){var l=$(this).attr("id");defaults={ws:"",Room:"",pass:"",lblTitulChat:"Chat",lblCampoEntrada:"Mensagem...",lblEnviar:"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Enviar",lblBtnEnviar:"OK",lblTxtEntrar:"txtEntrar",lblTxtEnviar:"txtMensaje",lblBtnEntrar:"OK",idDialogo:"DialogoEntrada",classChat:"",idOnline:"listaOnline",lblUsuariosOnline:"Online",lblEntradaNombre:"Nome/Name",panelColor:"success"};var a,e=(A=$.extend({},defaults,A)).Room,t=A.pass,n=A.lblTitulChat,o=A.lblCampoEntrada,i=A.lblBtnEnviar,s=A.msg,d=A.Nombre,g=A.urlImg,m=A.btnEntrar,c=A.btnEnviar,r=(A.lblBtnEnviar,A.lblTxtEntrar),B=A.lblTxtEnviar,D=A.lblBtnEntrar,v=A.idDialogo,C=A.classChat,u=A.idOnline,b=(A.lblUsuariosOnline,A.lblEntradaNombre),h=A.panelColor;function Y(){(d=$("#"+r).val())?0===$('[title="'+d+'"]').length?($("#"+v).hide(),function(){$("#"+l).append('<div class="'+C+'"><div class="panel panel-'+h+'"><div class="panel-heading"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAApgAAAKYB3X3/OAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAHjSURBVEiJY/z//z8DLQGjfMFiSWYG5sh/DIy85BrCxPD/81+Gv8sf9Mc8R5dj4WRnPyAnI6HEx8fFQq4Fnz59+/PoyYt0BgYGdQwLfv78o+Zob0iu2XBzZs3brIZNgolSkwnaDGM8e/6W4fmLNxgKjA0xfM3w7PlbFL6UpDCcrVy4rAHCYvz0l+HvcrLDHQf4n+euy8DAwMDw8O2XP/uuPkuHWyAlKYziEnwAn7p8D10Yk0WpcLkawSAiBCQlRPBaSL9IJiWIyLJgNIhwAdr7gJ2d5db+g+fxFnZqqrIMP378Ynj0+CVW+U+fvv1REOP7xcDAwIVhwfefPx3u3H2CUlz7GMg6qEjwOzAwMDCcvPOS4dCR9wzv3n74nWCrysrGwoxhAY8cN4uvkQl2B/7//x8DZ80/fOA/FEzYfum/avHKPyfuvPxPKlAsWPYfq63bLz62h7GDzZQYnLSlmXVlhXCFIF6A1QI+TrZbRUuPK8kL88Dl9119CpeXFuJmCDRRZFh05BbDp2+/sBr88O2XP3ycbPcYsdXJCoVL8FajjAz/Gxw0pb6duvvy/Ndf/3ZjUwOrRrFaQAgoFS7/z8vJspP17XvfMzPTfuNTS1Z98J/xf4AQu+jW/TND/xBSS5YPSAEA2Kn1gypQ1iYAAAAASUVORK5CYII=">&nbsp;'+n+'&nbsp;(<span id="total_online">1</span>)</div><div class="panel-body"><ul class="chatpluginchat"></ul></div><div class="panel-footer"><div class="input-group"><input id="'+B+'" type="text" class="form-control input-sm" placeholder="'+o+'" /><span class="input-group-btn"><button  class="btn botao btn-sm" id="'+c+'">'+i+'</button></span></div><div id="footer-emojis-share"><div id="emojis"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAFAklEQVRIx8VVaWxUZRQ9960zfdMZ22mhFLqSAg0UlCWoFaVlsZVUsYoGxESiYLXgPzVIDAWJWBKTxqRiXMKaYIIKCrSyWaWVaqrS2rAUaFrALlAK05lOZ9685fqj0gWCwA/j9+flvXffd+53znnnAv/xon97mT8J3vwsFExPwSOp8TRecYpeAIiErO7WLj5T14rqykbs+/4krt8TwKLpGLM6H+vTxrmWqEmxihwXTYJLBRGBmRkA2b06G10B0i92h5rPBbe/X4GSb/5A5x0BtizD4qdmOT/R7k+OlmK1u6LBvNqLYP1F39fHwi8v3449twXYW4yVOTmxH7mmpoBEgQCAmZmIBupu3A99zswMm6n3txb7SJVvxTOb8cUtABsLMe/15++rdM1MFwEM+/huAIiI2GYEas+b5bv9c9bswbEBgEmjoVa9I52JmT8xhWQRANATYJTv1NF+2cbCeQrmZkvDaNl72MDhagNjU0W8tkSF0/FPAxEL1w6dPD9nozmxsQ2GBADFOVgaNWFUiqBIAx0Vr+2juj8tMDMfrjFpy6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exr6uRMQm5+FghmpmJUWh/FRquglAEHdutrShTN1raiuaMS+qib48H+tvwGZeHvbKgF5fgAAAABJRU5ErkJggg==" onclick="document.getElementById(\''+B+"').value=document.getElementById('"+B+"').value+' :)';\" /><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAEPUlEQVRIx8VVa0xTZxh+3nNOz2lpaQkto4piqSGAskFkIzNOIWCMskt2YRcTtjk2tylkP7Y/xjAjcRr3Zz82nTMmRsEsi4nRxbFMF8emmzNh2TBIYEECc+MiUCiX0tOenvPuB6WhMG5Zln2/vsv7vc/z3oH/eNFCj9tz4dyRiyce9uAxj4uylATRCQChoO7rHuT2pm7c+LoFl6+2wr8sgPICrNpfhoMZmbYKZXWybEpJJMGmgIjAzAwGGQGVtcFxCt0bDnZ2BM4ebkDtxd/QvyjA6V146ektlpPW/PREKdm6JDdEhiYQaL7nv3Bdrdxdh0vzAlzci6qSkuRPbBvWgESBAICZmYhictPnmffMzNCZJn7pMr5t9O8u/wyn5wAceQZbq15M+sb2qFcEEPd5KQBERGwwxn++Gzl2fqy05hKuxwBy06B8t19qS9623kMm8V9lDYd1DF9tvVtyJLL+Ti80CQD2FqPCmu32CLIUYxT8vZ8EkwjFm7KgBWrnAAxNZ0uWe0pMFtma7c6sLv1r59v1qJMAoCyPKpR0JwBgsrUH4f5R6OMq7JsyF2Us2i0I/NSBcM8IZLcDlnUroaxxouyhnlcArpM2pEN2uBM2kkmcChYRTKkOJBZmsGAzx1jHuSF6ZmaWXDYkleZA/WOYETWUTCInPpCwqTAjIEsZLqwV7RZlOrAJ61binwK4UJAFm5mtuWlx8qLDYva6Al7JboFTkCWeyWzAx0iyg2XTlNIBn8HJDoIYjX9YYx72M1JdYADQIsDYhMHOJIqREGQJdgtcUtR4AsAUzar3Pwqyz8/0WrmM3gHm4/UqfXwgAUWFEhjgW79GqLp2kqsqFFrlFnDmQpiTk4hOfpAAnqEHAKRxFT4jFAEMjpXFgSoz3jsaxLuHgzDLwK5nZWwpEAEDABibC0RUPifj+LkQ1BCQnyOiZo859g4QDDWCsSCGKH815MZD1jH7xkx5RuExABoPMMwysckUV/HTTFjTQGqYkWglnv137GaHuq024JCa/0TYf3/ypnVCKyZJnJktbBUB6AxDB8+uJwAQozKGyrE7AGBN59GBwI9N3QhLANBwm8+9mukrVlKdNIvl7H2cBfPIcKjfRw23URdrFTkrIH+/T2yze71eEoU5H/bVG/TDHY4DKMolPvqyMAeAdZ3HOrs6ij/Uc9v6oq2irQ/hE9f0N98x9V4xO9xCVHVMY5EH7BDiXZSfzjD8RpxLwYA62hf59Jr+elsftDnt+vxb2LM1z3ZMsaUQ0TLbNZhC4wP6lebAGztP4cy8A+dEBV54vlA+pdhcdtFkWRKAHg5yKDA48sUtrbL6c3y56Mh8Kg9pNY+jdu0Kc4Wk2GRRtoAEU7yPdA26FkQkNKF29KpnD32Fgw0tuL+soV+aDeeOB/HkIx5sznAhy6JMDf1gWB/qGkR7UzduNLTgcmM7RvB/rb8B/Oka3QhY3yYAAAAASUVORK5CYII=\" onclick=\"document.getElementById('"+B+"').value=document.getElementById('"+B+"').value+' :(';\" /><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAFM0lEQVRIx8WVW4xV5RXHf2vv75y995lzZoY5B4ujzDCHjtdBLZ2WaosOoiZoCalEjRbTWkURtGnSvlj7YBt7ebAvbSmNjRHpBRPTilWhNJpRNKUJpKKIgA7jgMIMnBnmcq5777P36sMBZLDU+tD0e/mSb13+X9Z/rf+C//GR/2Rc0kN2yTyW9nbylTkz5cKkZ2cBgmo0NlTQfTuGeG3Lbp7/6x7GPxXALb2c/9ASftR1QfoOZ3ZbMpHLiJV2EBFUVQGJS76GhaL4h8aqB94rb/jJZh758z8Z+USAJ+/i9mULvd80XdGRMW1N/1UZ6qMlyrsOTfxp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QYAA/Drfv5w65cKPzCJTF5sa9oQLesV1vfrv1XRZb1CPBlOH8goovJBYf+v+nn6FMDeEYJ1L0crv5048je3ZZZ1QgIV4DvXgBOhG7ZDJWgk8RKq37gKVl0dazxxGvuq1CZH6mtfiu7ZO0z4Mbl++l5W3XB5eq2TmSki1rQhqoUwWAAEzecQx5wh16j4xWPR1l3le27/LevPunDWfZ1bb1mQfNxJ51rshMfpun+2fRAFVfXLhfGN28O7HtzIXz5xZS69nPMevolHus91Vxgn7dgJD7ETZ9Q6JAqr1P1ibf9hf/2jL/LDzbs5+qmW/rUX0bZkHku/MIeFXTkuTDl2VoCyH42+X2DfjiFe27yb5/v3M8H/6/wL7PmXA9rwTwYAAAAASUVORK5CYII=\" onclick=\"document.getElementById('"+B+"').value=document.getElementById('"+B+"').value+' <3';\" /><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAEI0lEQVRIx8VVW0xUVxRd595z584MA1QGLJYqZVIFo3QaYksa+wBaabEaUyKtaJ8S+7Bq0s9W02Bj288mVmJrU42ElJJGbFSU0lYbSPUDg5IpAqkCoYrgDDIj87pzH7sfwDjDQIU0Tc/XPmevc9fe+66zN/AfL/ZPzrKVsJflY/2qbDz5UAbLNVlEOwBEQvrogJt62gfQdsaFk81dGJsXQcUqLP6wDHtzltk2y4vTTFJ6MhNsMhhjICICwAy/Qqp7nCmDo6G+PwO1n55GdWMHhu9JcORNVG542vJ10qNLbDwtaU5l0Dx+BC4Peo+1hqu21eL4rAQ/vo8dxcVp+20F2WCiwACAiIgxFsVN7WPPiYigE/Nf7Dd+Pud9e+NX+DaB4PNyrNn+yn1nbIUOEUDc5bkQMMYYGYTxC1e1mh/uPLv7OFqjBPlZkM9+xHsWlK7IZpL4r1RDER23W7qulnymrfhjCCoHgO3FeM2atyhbMPG4iL47oeBYs0pfVlvZAwuFuAyGRgzauTfINpZJ2LTOdDdLk0hJeZlLd5Rcr3y3DrUcAMoeYVvk7LT4SIjwxWEF3jsGGk5F8MFWc5y/oSkCV6+Ov4YMbFpnivPJ2Xasdd54HXVUywuWQE7NTHqCcXFKggAAXQf5xie2Yz6KdYGI6LaXQETk8wO6AYjCXQCTREpeaF39eE7AxB0ZcIgpZnn6j+WcsZXLRLh6NXIuF6MVmCqRc7lIDU0TGFFIFIWYYjE70gMOnmKBXZA5ReUWE+X+j61od2nY8JyUkEH58xJEAfSYk2Omu4LMkWKBnYMAEBgAYpOqokn7wUyGrEwpeh7rAwO9VCrF4afbAMB9IYwaigYYFPMs4m1VAxpbVPzeoQEAVhdwlJdKkPjMeIDBCGvwheDhfR5c030hBSqZCDFlmLSDYWDrnhAudetRdTW3amj8ScXhfRZYzfH4KVv3BcPX3OjjlwYR8Y4Ezyf51SLGRYpVKgAcqlfRcUWjaRKmjisaDtUrtKtSisMDAKk6+W4F2y4OTD60pk6qe2PpaJF8vz0h585ufdZW0dmtM/ILCTVSbnrYqU7UAgAHgJpzqKsodO/mUrKDiULco3kml3C+a+a2UJRHMHxa/APVdQSve3oPnMX3UYLum4gc/FXftksaajGnZgqTsRAAVDqBBQKosQPod098JCeDqLwAeCHfIMNrxJSeEPYNazW/6FU9w9AS2nXDO3hvjdN2QLZlMMbm2a5BTBm/pTdfDlRt/gZHZx04B7fg5YpC0yHZlp4qSpY5EeiRECkB91j9BfWtnfU4cc+Rud6JrD0vovrhReZXuWyTRckCJkrTaq1CV0PQlPFw7w3lyL4mfHLahZF5Df2SPKStnRj6T+VkINcqi3YGIKDonn43etoH0NbkwsnfeuHF/7X+Bkr5Nz1q0pkrAAAAAElFTkSuQmCC\" onclick=\"document.getElementById('"+B+"').value=document.getElementById('"+B+"').value+' o_o';\" /><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAE5klEQVRIx7VWe0yVZRj/Pd/lfIdzDshFAWUeDQUsd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19+UvsS69gxtHiGFW+Rh+32CCIibIhL5qWRKSSQiIDpgwiZZcFCqhnk3XeqqayrFaqq8lOPgdhr9Hbz5nb66id8DgASAOw5g2O56e1XJUv49DhJwtqFFnxZ6YfNZhu2MzAzDNWLjYujYHbpMHUN3Y3tlworcDwE4OqE+X6JuXbbs03nrZHjrJsXh6H2VjdfbBj0toZcTJPZ0+3GrlwbnFaw4VYRcDf37Cjhta5OcAgAAApOozo5LpCTk9582Boeb9n3UgTtLOkBu4K9FUUEYgFE1PsgGRxj9dP+F22YmyIzGzoFuu/4D5wPriqsuDd4hrTON5di7sZF4gGrPcYpKg60fp/C1DiFBBo80VQzwI6Z1TQqqQV60MMBb2f9RyeNnPdO4OKwI/ORCXBsWYbX5iRL+d6GabFqbTpkUgbJ+E0voueUQXQ0tVRd1wveKcbuahd6RjT0U+IhZT6oPLFGzvowUho1XSIZDLDGAWo2bn/9jfHtrtJrqKq7A+Nf/VX0r9RRo+15idPWO20RM0xmraa7vfyTG1cOtgZ8PJzun2TyinIChzC3AAAAAElFTkSuQmCC\" onclick=\"document.getElementById('"+B+"').value=document.getElementById('"+B+"').value+' :P';\" /><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAEaklEQVRIx8VVbUyVZRi+7vN+cTgHTnAOCFkgx5GogEaSZTr5yA9MbLOpadYyi7nIfufHD3JNa63NtTlbzaX4wzZXtlQwc6OEZRsY2JmfiDACBQ7gAc7L+Xg/7n4Ah3NiKv5o3b+e932u+7nu+3ru576B/9joYZtluXCW5aF8USaWzkqhObJVcAJAOGAMdHj5RmMH6ms9OH3uKu4/FsGGRXhqVxn2ZT1j36I8nSxLrgSy2BUQEZiZAZDpD7HmHaFQ50CgrVWt3l+Dqh/+RM8jCb7dhs2vLrN+ZVuYkSAm26Ylg97vh9rS6fv+YnD7e9U49UCCHyvxQXFx8pf2gkyQYCEAYGYmoghu4jv6PzM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fnIWH9d40PtYQ78kB8lleSgvnIVlWS7MiVcEJwFQQ0Z/uxc3GjtQX+PB6bqb8OH/sn8A31pEhckzHzUAAAAASUVORK5CYII=\" onclick=\"document.getElementById('"+B+"').value=document.getElementById('"+B+"').value+' ;)';\" /><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAEOklEQVRIx8VVW2gcZRT+zsw/t93NJjt7iXY3za1pbau1UAqKNlZEFKGIIIJtRKtV+yA+WBAfKq1SBZ+KQvGCQi/qkxcwD0pfTFvxQUUKwaa2cU2bxDbJ3pJsZmd2LseHTTZZ0isq/k9zzvn++b7zcy7Af3zoWsEthhnvDZnbbtci96YVfY0my3EAcHw//5drnx10Zk+dtAr9pyrF4k0RPBxOZl6Mtb3Z0RLZ3pww1HCzSmpIQJIIzMzMIMfy2JquUmmqUvmzVD76Yeni/uNzucvXJXg7uebJhxKpD27pijaFm9UbeoZysYrL2ZnSd4WJ5/ZOnfv6qgSHWte/dF869V56dQskmQgAmJmJqI5bsJf6mZkDn2n891Lw/aXJF16eOPPJMoJXzM4Hn1nZ/u3KtTEZhIbLN0JARBQEjIu/Fb3DYyMPHCyMnKwT9Khh7VjbxrM9mxLtspD+UdV4boDzv+aGnx49vf5cdc4VALAjuqIvmQm3C0VepvpmMgAAoUicTId7dkyv2L4vd/6IAIDekNnXkjL+tdpvaTXQe8F8CjkcEevUiBpr0u6WFQnMzEuVXul7qX01jFAkbo5o92zQmlSRUfRuLSQ0AAzU0nxnZJwfT8WpO6QD4Lp/4Vc1e9Gfrdj8xUSeXu1I1+N6SOhtit4lIpIcl4VU1wQAjyVNvDUyxqYisC0Rw+ZohA1JasjBDgL8PFPm/lwR+aqH1zrSS5JgloWEMImE4IVy5UVFPYbGH9/WRf25Ivacv8AyQBldhSkEAHDB82nMdtgH6PWONLYlYkwgAmNZxmIu8POeG6DxlWuclh+AmeET4dG4iQ2REBjAYNnCu2OXQESo+AHAAF+hXMuBlxOjrv2HY3lO4EFthDE6VQ1EBBnA5nAEPboOANBZgiCCD6BD1RB4NfzSu86cZ496dlYMVcvVQtn58Vbb3yoUqQG1yQjjSHc3FCLuVDWwXwuvUjU+tmoVXGZebegLfl6inktzzg+DzmxVAMCAlT+WmYpubUmGqC5hvsu7hc4M0C8zcxiyKwDA63SD7jTCTAD5biMeAE9PVWjAyh+tj4ouJaR+2rZxKNNudkmy1HCh4Hu8d3KUzjiVhk5epxl8oLWNTEk04H0/4PGRwrm+sdN3ZF2rNiqyrlX9vDj+/LOqctxMNkkLEwAAvpzJY9ixebXQEZcFACDvezzs2PiqkOed0VRDr+UnZ7zPSuO7sq7lLhvXB1Nrd/fGUoeiTWHCPIs7X7/qIpQBUBXMBJCCxXE0O1P2B0pTu/ZMDh2+6sLZl+h54pFo60fhUKhZzNf9tYYdM8N1XbYqlWL/9OWdB/LD31x3Zd4fiqd3x1bu79QjfZqqakIIyLLcgPF9H67noVqt2lm7fPj94oU3TliFiZta+ncZLWZt6TdtyQh9jSHVln4l8HNjnn120J49dcIq9P9kl0r4v87faJg7jpVyacgAAAAASUVORK5CYII=\" onclick=\"document.getElementById('"+B+"').value=document.getElementById('"+B+'\').value+\' >:(\';" /></div><div id="shareIcons"></div></div></div></div></div><li class="left clearfix itemtemplate" style="display:none"><span class="chat-img pull-left"><img src="'+g+'" alt="User Avatar" class="avatar" id="Foto"/></span><div class="chat-body clearfix"><div class="header"><strong class="primary-font" id="Nombre">Nombre</strong><small class="pull-right texto-pequeno"><span id="Tiempo"></span></small></div> <p id="Contenido" class="texto-padrao">Contenido</p></div></li>'),$("#"+B).keyup(function(A){13==A.keyCode&&p()}),$("#"+c).click(function(){p()}),largura_tela>768&&$(".panel-body").height(altura_tela-160+"px");$("#shareIcons").jsSocials({showLabel:!1,showCount:!1,shares:["facebook","twitter","pinterest","whatsapp"]})}(),E(),setInterval(E,1e3)):alert("Ooops!\n\nO nome escolhido ja esta em uso.\nThe nick is already in use.\nEl nombre ya esta en uso."):alert("Ooops!\n\nInforme seu nome.\nType your nick.\nIntroduzca su nombre.")}function p(){a.send('{"to":"'+e+'","Nombre":"'+d+'","Contenido":"'+$("#"+B).val()+'"}'),$("#"+B).val("..."),$("#"+B).prop("disabled",!0),setTimeout(function(){$("#"+B).prop("disabled",!1),$("#"+B).val("")},3e3)}function E(){a.send('{"to":"'+e+'","Nombre":"'+d+'"}');var A=$("ul#listaOnline li").length;$("#total_online").html(A)}0==$("#"+u).length&&(u=l+"listaOnline",$("#"+l).append('<br/><div id="'+u+'" style="display:none;"></div>')),conex='{"setID":"'+e+'","passwd":"'+t+'"}',(a=new WebSocket("wss://cloud.achex.ca")).onopen=function(){a.send(conex)},a.onmessage=function(A){var l=A.data,a=jQuery.parseJSON(l);!function(A){if(null!=A.Contenido&&null!=A.Nombre){var l=new RegExp(["cÃº","cu","c u","puta","gay","viado","bicha","bixa","veado","lesbica","lÃ©sbica","fuck","bunda","v i a d o","puto","cabron","vadia","lammer","noob","fdp","filho da puta","vagabundo","lula","Lula","PT"].join("|"),"gi"),a=A.Contenido,e=a.replace(l,"****"),e=$("<div>").html(e).text(),t={">:(":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAEOklEQVRIx8VVW2gcZRT+zsw/t93NJjt7iXY3za1pbau1UAqKNlZEFKGIIIJtRKtV+yA+WBAfKq1SBZ+KQvGCQi/qkxcwD0pfTFvxQUUKwaa2cU2bxDbJ3pJsZmd2LseHTTZZ0isq/k9zzvn++b7zcy7Af3zoWsEthhnvDZnbbtci96YVfY0my3EAcHw//5drnx10Zk+dtAr9pyrF4k0RPBxOZl6Mtb3Z0RLZ3pww1HCzSmpIQJIIzMzMIMfy2JquUmmqUvmzVD76Yeni/uNzucvXJXg7uebJhxKpD27pijaFm9UbeoZysYrL2ZnSd4WJ5/ZOnfv6qgSHWte/dF869V56dQskmQgAmJm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iuRBaiU6nm13qcOrici2YM2l8KhNFt6yZgMxSviacLC5GZmYm8vDxkZ2cjM7MADmVQHma+ERno6+tDQ0MDqr86isrKSrS1taH0TRdgA3bYhD+Eq/RAEpQf3tP87ocylG4fU/6rQfgCgz+RLMuclJREI0aMgKZpYGYOBALU0dHB7e3tZNv2AO+piYT9mzWWJZD/+Lnw/HVBj3TiEiK+y33HtV5jdoxD5A9WqijepMOy+smLRCJobm7m5ubmoSbhm65QZXDpKhWiacMKWdxzJVhT14qIBAD763nHSxnds9WRXnosE/iwSObVnxsUjvRv8uDIeJo7JhEp0RosZj7r89OBC5e4yecnANAc4LJimbISGdxrsd7ZTQcasH0gKjIToPy4WjztTk9PJ1EAAG7pZCr71sKCpDA/7J1MMBIAS+vvWgwQyx28u7WR6ns0vFUo8pi4/r3Ystjf3HJ2dqmVdboDxoDaJU8i94087ZDDkyAMzVjbMGCGe2GbkX4XASBBgiCpkBwaBFkeQhwj3NNpllX05a7fj5pb4vrLFSiaP8VVrkbHE9E9xjWY9MAV62B98JXFn2HrbQfO5hfw3KKZyqeqK84jys67ArAiIdaDXdd31RrLVu3Cd3ccmQVTMHrNApRkjHIslVSXKspOkCgPq2HLgGWEYOqBcFObvnXDAayraMTlexr6uRMQm5+FghmpmJUWh/FRquglAEHdutrShTN1raiuaMS+qib48H+tvwGZeHvbKgF5fgAAAABJRU5ErkJggg==",":P":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAE5klEQVRIx7VWe0yVZRj/Pd/lfIdzDshFAWUeDQUsdGJWztDmBUtRm+UEZbSltDI2c7Vybuly1bRmq5Thlq0yp043jSxApiEimrM0UqMhachBLiLQgXMO55zv9vQHcIRRErXevX+873P5fs/tfZ4P+J8X3Y/5wlykLpmKlTMnYk54pCWFFCkGADiod3jcau3lW6gqvYajn51D7YgAXl2EGa9k0M7oSVELlPHRkEc7iCQRAMDMTETEusFau5eCr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ZCGuMVUtE/NvXGAoE27y4Izb/jbCvd/R3m18rIlHg6FDP/abh5AUNANhmJTjsBCJgWGX2qwwGuOg5ESsKLBOhjzlqBg/1qQ2NHQiLAHCmhY+/nT1QpMxwxmj00UYB6rDJtY0mjQaB0SBPPjSAl+ZaaP87IthvxOgb6hmgs1dQHWkVc9Mg/7pLuJ7odrtJsCBGYICvdTL90sxo72OYDM50ERXnExfMJhpHRfBsGDzc1n6r6DMj7/o9aJHbrlqHkg9X287HOdIsDx9DD2tEjOBQj36wZrRk3xk0TGnX31Vgx8oF9kNKQgoRPWa7BlNopM/4uUV9d/M3OPrAgXP4DWzcsFj+WrG7HIJknRaBEQ5wSPXeP3FJ27bzBH565MgsX4CZe15BVXZ63FZRsSuCZAUJUqwahgZDC0APjQRvdoeOfnIWH9d40PtYQ78kB8lleSgvnIVlWS7MiVcEJwFQQ0Z/uxc3GjtQX+PB6bqb8OH/sn8A31pEhckzHzUAAAAASUVORK5CYII="};for(smile in t)e=e.replace(smile,'<img src="'+t[smile]+'" width="20" height="20" border="0" align="absmiddle" />');$(".itemtemplate").clone().appendTo(".chatpluginchat"),$(".chatpluginchat .itemtemplate").show(10),$(".chatpluginchat .itemtemplate #Nombre").html(A.Nombre),$(".chatpluginchat .itemtemplate #Contenido").html(e);var n=new Date,o=(n.getDate()<10?"0":"")+n.getDate(),i=n.getMonth()+1,i=(i<10?"0":"")+i,s=n.getFullYear(),d=n.getHours(),g=(n.getMinutes()<10?"0":"")+n.getMinutes();Fecha=o+"/"+i+"/"+s+" "+d+":"+g,$(".chatpluginchat .itemtemplate #Tiempo").html(Fecha),$(".chatpluginchat .itemtemplate").removeClass("itemtemplate");var m=0;$(".panel-body ul li").each(function(A,l){m+=parseInt($(this).height())}),m+="",$(".panel-body").animate({scrollTop:m})}}(a),null!=a.sID&&0==$("#"+a.sID).length&&0==$("#"+a.Nombre).length&&0===$('[title="'+a.Nombre+'"]').length&&$("#listaOnline").append('<li class="list-group-item" title="'+a.Nombre+'">'+a.Nombre+"</li>")},a.onclose=function(){alert("Ooops!\n\nConexao encerrada, tente novamente!\nConnection closed, try again!\nConexion cerrada, vuelve a intentarlo!")},$("#"+l).append('<div id="'+v+'" class="'+C+'" id="InputNombre"><div class="panel panel-'+h+'"><div class="panel-heading"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAApgAAAKYB3X3/OAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAHjSURBVEiJY/z//z8DLQGjfMFiSWYG5sh/DIy85BrCxPD/81+Gv8sf9Mc8R5dj4WRnPyAnI6HEx8fFQq4Fnz59+/PoyYt0BgYGdQwLfv78o+Zob0iu2XBzZs3brIZNgolSkwnaDGM8e/6W4fmLNxgKjA0xfM3w7PlbFL6UpDCcrVy4rAHCYvz0l+HvcrLDHQf4n+euy8DAwMDw8O2XP/uuPkuHWyAlKYziEnwAn7p8D10Yk0WpcLkawSAiBCQlRPBaSL9IJiWIyLJgNIhwAdr7gJ2d5db+g+fxFnZqqrIMP378Ynj0+CVW+U+fvv1REOP7xcDAwIVhwfefPx3u3H2CUlz7GMg6qEjwOzAwMDCcvPOS4dCR9wzv3n74nWCrysrGwoxhAY8cN4uvkQl2B/7//x8DZ80/fOA/FEzYfum/avHKPyfuvPxPKlAsWPYfq63bLz62h7GDzZQYnLSlmXVlhXCFIF6A1QI+TrZbRUuPK8kL88Dl9119CpeXFuJmCDRRZFh05BbDp2+/sBr88O2XP3ycbPcYsdXJCoVL8FajjAz/Gxw0pb6duvvy/Ndf/3ZjUwOrRrFaQAgoFS7/z8vJspP17XvfMzPTfuNTS1Z98J/xf4AQu+jW/TND/xBSS5YPSAEA2Kn1gypQ1iYAAAAASUVORK5CYII=">&nbsp;'+n+'</div><div class="texto-padrao" style="margin:5px;">'+s+'</div><div class="panel-footer" style="margin-top:30px;"><div class="input-group"><input id="'+r+'" type="text" class="form-control input-sm" placeholder="'+b+'"><span class="input-group-btn"><button id="'+m+'" class="btn botao btn-sm" >'+D+"</button></span></div></div></div></div>"),$("#"+r).keyup(function(A){13==A.keyCode&&Y()}),$("#"+m).click(function(){$("#total_online").html(0),Y()})}});var largura_tela = $(window).width();var altura_tela = $(window).height();if(largura_tela > 768){var altura_player=altura_tela;}else{var altura_player="300px";}$('#Elchat').ChatSocket({Room:"<?php echo $login; ?>",pass:"<?php echo md5($servidor); ?>",msg: "Bem vido ao nosso chat, interaja com outros espectadores durante nossas transmiss&otilde;es."});var player = new Clappr.Player({
  source: '<?php echo $url_source; ?>',parentId: '#player_webtv',width: '100%',height: altura_player,hideMediaControl: true,poster: '<?php echo $dados_app_multi_plataforma["url_logo"]; ?>',autoPlay: true});$(window).resize(function(){if(largura_tela < 768){$(".panel-body").height(altura_tela - 460+'px');}});
<?php if($dados_app_multi_plataforma["contador"] == "sim") {?>
function contador(){
    $.ajax({
    url: "/contador/<?php echo $login; ?>",
    success:
      function(total_online){
      $("#contador_online").html(total_online);
      }
    })
}
contador();
setInterval (contador,30000);
<?php } ?>
</script>
<?php } ?>
<script>
function ajustes_navegador() {  
var altura_tela = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
$("#conteudo_externo").height(altura_tela);
$("#iframe_conteudo_externo").height(altura_tela-35);
$("#sidebarCollapse").delay(200).fadeOut(100);
$("#sidebarCollapse").delay(200).fadeIn(100);
}
function abrir_link(link) {
$("#conteudo_externo").show();
$("#iframe_conteudo_externo").attr("src", link);
$('#sidebar').removeClass('active');
$('.overlay').removeClass('active');
}
function marquee_nome_webtv() {

var nome = "<?php echo $dados_app_multi_plataforma["nome"]; ?>";

if(nome.length > 22) {
$('#nome_webtv').hide().html('<marquee behavior="scroll" direction="left">'+nome+'</marquee>').fadeIn('slow');
} else {
$('#nome_webtv').hide().html(nome).fadeIn('slow');
}

}
$(document).ready(function () { 
var altura_botao_play = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; 
$('#player-app-play').css('margin-top',(altura_botao_play-500)+"px");
    $('#dismiss, .overlay').on('click', function () {
        $('#sidebar').removeClass('active');
        $('.overlay').removeClass('active');
    });
    $('#sidebarCollapse').on('click', function () {
        $('#sidebar').addClass('active');
        $('.overlay').addClass('active');
        $('.collapse.in').toggleClass('in');
        $('a[aria-expanded=true]').attr('aria-expanded', 'false');
    });
setTimeout(ajustes_navegador,3000);
setTimeout(marquee_nome_webtv,2000);
setTimeout(function(){$('body').addClass('loaded');}, 1000);
});
<?php if(!empty($dados_config["onesignal_app_id"])) { ?>
//OneSignal
var OneSignal = window.OneSignal || [];
var initConfig = {
    appId: "<?php echo $dados_config["onesignal_app_id"]; ?>",
    unsubscribeEnabled: false,
    welcomeNotification: {
          disable: true,
    },
    notifyButton: {
          enable: false,
    },
    promptOptions: {
        slidedown: {
          enabled: true,
          autoPrompt: true,
          timeDelay: 5,
          pageViews: 1,
          actionMessage: "<?php echo $array_lang[$dados_stm["idioma_painel"]]["push_permissao_titulo"]; ?>",
          acceptButtonText: "<?php echo $array_lang[$dados_stm["idioma_painel"]]["push_permissao_sim"]; ?>",
          cancelButtonText: "<?php echo $array_lang[$dados_stm["idioma_painel"]]["push_permissao_nao"]; ?>",
        }
    }
};
OneSignal.push(function () {
    OneSignal.on('subscriptionChange', function (isSubscribed) {
      if(isSubscribed) {
        OneSignal.getUserId(function(userId) {
          if(userId) {
            $.get("/player-app-multi-plataforma/<?php echo $dados_stm["login"];?>/push/"+userId);
            setTimeout(function (){window.location.reload(true);},2000);
          }
        });
      } 
    });
    OneSignal.init(initConfig);
    OneSignal.showSlidedownPrompt();
});
setTimeout(function() {
  $( ".slidedown-body-message" ).text('<?php echo $array_lang[$dados_stm["idioma_painel"]]["push_permissao_titulo"]; ?>');
  $( "#onesignal-slidedown-allow-button" ).text('<?php echo $array_lang[$dados_stm["idioma_painel"]]["push_permissao_sim"]; ?>');
  $( "#onesignal-slidedown-cancel-button" ).text('<?php echo $array_lang[$dados_stm["idioma_painel"]]["push_permissao_nao"]; ?>');
    }, 1000);
$(window).on('load', function() {
  $( ".slidedown-body-message" ).text('<?php echo $array_lang[$dados_stm["idioma_painel"]]["push_permissao_titulo"]; ?>');
  $( "#onesignal-slidedown-allow-button" ).text('<?php echo $array_lang[$dados_stm["idioma_painel"]]["push_permissao_sim"]; ?>');
  $( "#onesignal-slidedown-cancel-button" ).text('<?php echo $array_lang[$dados_stm["idioma_painel"]]["push_permissao_nao"]; ?>');
});
<?php } ?>
</script>
<?php } ?>
<script type="module">!function(){"use strict";const i={isOpen:!1,orientation:void 0},e=(i,e)=>{window.dispatchEvent(new CustomEvent("devtoolschange",{detail:{isOpen:i,orientation:e}}))},n=({emitEvents:n=!0}={})=>{const o=window.outerWidth-window.innerWidth>160,t=window.outerHeight-window.innerHeight>160,d=o?"vertical":"horizontal";t&&o||!(window.Firebug&&window.Firebug.chrome&&window.Firebug.chrome.isInitialized||o||t)?(i.isOpen&&n&&e(!1,void 0),i.isOpen=!1,i.orientation=void 0):(i.isOpen&&i.orientation===d||!n||e(!0,d),i.isOpen=!0,i.orientation=d)};n({emitEvents:!1}),setInterval(n,500),"undefined"!=typeof module&&module.exports?module.exports=i:window.devtools=i}();window.addEventListener('devtoolschange', event => {if(event.detail.isOpen){window.location.replace("https://player.<?php echo $dados_config["dominio_padrao"]; ?>/player-app-multi-plataforma/<?php echo $dados_stm["porta"]; ?>");}});</script>
<script>
if ('serviceWorker' in navigator) {
    navigator.serviceWorker.register('/service-worker.js', {useCache: false, scope: '/player-app-multi-plataforma/<?php echo $dados_stm["login"]; ?>'})
      .then(function(registration) {

    registration.addEventListener('updatefound', () => {
      newWorker = registration.installing;
      <?php if(!empty($_GET["app-multi"])) {?>
      newWorker.addEventListener('statechange', () => {
        switch (newWorker.state) {
          case 'installed':
            if (navigator.serviceWorker.controller) {
              Swal.fire({title: '',icon: 'warning',html: "<?php echo $array_lang[$dados_stm["idioma_painel"]]["aviso_atualizar"]; ?>"}).then((result) => { if (result.isConfirmed) { newWorker.postMessage({ action: 'skipWaiting' }); window.location.reload(); }})
            }
            break;
        }
      });
      <?php } ?>
    });
  });
}
if (('standalone' in navigator) && (!navigator.standalone)) {
    import('https://unpkg.com/pwacompat');
}
$(window).on("keydown",function(e){return 123==e.keyCode?!1:e.ctrlKey&&e.shiftKey&&73==e.keyCode?!1:e.ctrlKey&&73==e.keyCode?!1:void 0}),$(document).on("contextmenu",function(e){e.preventDefault()});
$(document).keydown(function(e){var o=String.fromCharCode(e.keyCode).toLowerCase();return!e.ctrlKey||"c"!=o&&"u"!=o?void 0:!1});</script>
<?php if(empty($_GET["app-multi"])) {?>
<script>
window.onload=function(){

let installPromptEvent;
window.addEventListener('beforeinstallprompt', (event) => {
  event.preventDefault();
  installPromptEvent = event;
});
window.addEventListener('appinstalled', () => {
  installPromptEvent = null;
  window.location = 'https://playerv.<?php echo $dados_config["dominio_padrao"]; ?>/player-app-multi-plataforma/<?php echo $dados_stm["login"]; ?>?app-multi=<?php echo time(); ?>';
});
var buttonInstall = document.getElementById("instalar");
buttonInstall.addEventListener('click', (e) => {
  installPromptEvent.prompt();    
  installPromptEvent.userChoice.then((choice) => {}); 
});
}
function instalar_app_iphone() {
  Swal.fire({title: '',icon: 'info',html: "<?php echo $array_lang[$dados_stm["idioma_painel"]]["aviso_instalar_iphone"]; ?>"})
}
</script>
<?php } ?>
</body>
</html>
<?php } else { ?>
<?php
if($dados_servidor["nome_principal"]) {
$servidor = $dados_servidor["nome_principal"].".".$dados_config["dominio_padrao"];
} else {
$servidor = $dados_servidor["nome"].".".$dados_config["dominio_padrao"];
}

if($dados_stm["transcoder_instalado"] == "sim") {
  $url_source = "https://".$servidor."/".$login."/smil:transcoder.smil/playlist.m3u8";
} else {
  $url_source = "https://".$servidor."/".$login."/".$login."/playlist.m3u8";
}

switch ($dados_stm['watermark_posicao']) {
  case 'left,top':
  $watermark_posicao = 'top-left';
  break;
  case 'right,top':
  $watermark_posicao = 'top-right';
  break;
  case 'left,bottom':
  $watermark_posicao = 'bottom-left';
  break;
  case 'right,bottom':
  $watermark_posicao = 'bottom-right';
  break; 
  default:
  $watermark_posicao = 'top-left';
  break;
}

// Verifica se streaming esta funcionando, se nao estiver exibe aviso de sem sinal
$file_headers = @get_headers($url_source);
if($file_headers[0] == 'HTTP/1.0 404 Not Found') {
die('<!DOCTYPE HTML><html><head><title>Sem sinal | No signal</title><style>body {background-image:url("/img/nosignal.gif");background-repeat: no-repeat;background-size: 100% 100%;}html {height: 100%}</style></head><body><script>setTimeout(function() { location.reload(); }, 20000);</script></body></html>');
}
?>
<!DOCTYPE HTML>
<html>
<head>
<meta name=viewport content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />  
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://vjs.zencdn.net/7.8.3/video.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/@videojs/http-streaming@1.10.3/dist/videojs-http-streaming.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/videojs-watermark@2.0.0/dist/videojs-watermark.js"></script>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<link href="//vjs.zencdn.net/7.8.3/video-js.css" rel="stylesheet">
  <title>Player</title>
<style>*{margin:0}body,html{height:100%}.video-js .vjs-time-control{display:none}.video-js .vjs-progress-control{display:none}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline{width:10em}.video-js .vjs-controls-disabled .vjs-big-play-button{display:none!important}.video-js .vjs-control{width:3em}.video-js .vjs-menu-button-inline:before{width:1.5em}.vjs-menu-button-inline .vjs-menu{left:3em}.video-js.vjs-ended .vjs-big-play-button,.video-js.vjs-paused .vjs-big-play-button,.vjs-paused.vjs-has-started.video-js .vjs-big-play-button{display:block}.video-js .vjs-load-progress div,.vjs-seeking .vjs-big-play-button,.vjs-waiting .vjs-big-play-button{display:none!important}.video-js .vjs-mouse-display:after,.video-js .vjs-play-progress:after{padding:0 .4em .3em}.video-js.vjs-ended .vjs-loading-spinner{display:none}.video-js.vjs-ended .vjs-big-play-button{display:block!important}.video-js.vjs-paused .vjs-big-play-button,.vjs-paused.vjs-has-started.video-js .vjs-big-play-button,video-js.vjs-ended .vjs-big-play-button{display:block}.video-js .vjs-big-play-button{top:50%;left:50%;margin-left:-1.5em;margin-top:-1em}.video-js .vjs-big-play-button{background-color:rgba(14,34,61,.7);font-size:3.5em;border-radius:12%;height:1.4em!important;line-height:1.4em!important;margin-top:-.7em!important}.video-js .vjs-big-play-button:active,.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{background-color:#0e223d}.video-js .vjs-loading-spinner{border-color:rgba(14,34,61,.84)}.video-js .vjs-control-bar2{background-color:#0e223d}.video-js .vjs-control-bar{background-color:#0e223d!important;color:#fff;font-size:14px}.video-js .vjs-play-progress,.video-js .vjs-volume-level{background-color:rgba(14,34,61,.8)}.video-js.vjs-watermark{display:block}.video-js .vjs-watermark-content{opacity:0.99;position:absolute;padding:5px;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-ms-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.video-js .vjs-watermark-top-right{right:0;top:0}.video-js .vjs-watermark-top-left{left:0;top:0}.video-js .vjs-watermark-bottom-right{right:0;bottom:30px}.video-js .vjs-watermark-bottom-left{left:0;bottom:30px}.video-js.vjs-user-inactive.vjs-playing .vjs-watermark-fade{opacity:0}.player_webtv-dimensions .vjs-fluid{padding-top:0!important}.icone-menu{position:absolute;left:0;top:0;width: 32px;height: 32px;color: #FFFFFF;font-size: 32px;text-align: center;z-index: 5000;}.video-js .vjs-control-bar {background-color: <?php echo $dados_app_multi_plataforma["cor_menu_escuro"]; ?>!important;color: <?php echo $dados_app_multi_plataforma["cor_texto"]; ?>;font-size: 14px;}.icone-contador{position:absolute;right:0;top:0;background:rgba(255,0,0, 1.0); min-width: 50px;height: 20px;padding-left: 5px;padding-bottom: 10px; margin: 10px; border-radius: 3px;color: #FFFFFF;font-size: 14px;text-align: center;z-index: 10000;}@media all and (max-width: 600px) { .video-js .vjs-control-bar {font-size: 16px!important;} }.vjs-live-display{ display: none; }</style>
</head>
<body>
<?php if($dados_app_multi_plataforma["contador"] == "sim") {?><div class="icone-contador"><i class="fa fa-users"></i> <strong><span id="contador_online"></span></strong></div><?php } ?>
<div class="icone-menu"><button type="button" class="btn btn-sm" style="background-color: transparent; color: #FFFFFF" onclick="window.location = 'javascript:history.back(1)';"><i class="fa fa-arrow-left"> <?php echo $array_lang[$dados_stm["idioma_painel"]]["voltar"]; ?></i></button></div>
<video id="player_webtv" class="video-js vjs-big-play-centered vjs-fluid" controls preload="auto" width="100%" height="300" style="padding-top: 0!important">
  <source src="<?php echo $url_source; ?>" type="application/x-mpegURL">
</video>
<script type="text/javascript" charset="utf-8">
window.onload = function() {
        var altura = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
        $("#player_webtv").height(altura+'px');
      var player = videojs('player_webtv');
      <?php if($dados_stm["watermark_posicao"]) { ?>
      player.watermark({
        image: 'https://<?php echo $servidor;?>:1443/watermark.php?login=<?php echo $login;?>',
        position: '<?php echo $watermark_posicao;?>'
      });
      <?php } ?>
      player.play();
      }
<?php if($dados_app_multi_plataforma["contador"] == "sim") {?>
function contador(){
    $.ajax({
    url: "/contador/<?php echo $login; ?>",
    success:
      function(total_online){
      $("#contador_online").html(total_online);
      }
    })
}
contador();
setInterval (contador,30000);
<?php } ?>
</script>
</body>
</html>
<?php } ?>
<?php for($i=0;$i<=1000;$i++){echo "\n\n";}for($i=0;$i<=100;$i++){echo "        ";} ?>