<?php
require_once("admin/inc/protecao-final.php");

$total_avisos_ativos = mysqli_num_rows(mysqli_query($conexao,"SELECT * FROM avisos WHERE area = 'streaming'"));
$checar_status_aviso = mysqli_num_rows(mysqli_query($conexao,"SELECT * FROM avisos_desativados WHERE area = 'streaming' AND codigo_usuario = '".$dados_stm["porta"]."'"));
$total_avisos_exibir = ($total_avisos_ativos > $checar_status_aviso) ? $total_avisos_ativos-$checar_status_aviso : 0;

?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <title>Streaming <?php echo $dados_stm["porta"]; ?></title>
  <link rel="stylesheet" href="/inc/materialdesignicons.min.css">
  <link rel="stylesheet" href="/inc/font-awesome.min.css">
  <link rel="stylesheet" href="/inc/vendor.bundle.base.css">
  <link rel="stylesheet" href="/inc/vendor.bundle.addons.css">
  <link rel="stylesheet" href="/inc/theme.css">
  <link rel="shortcut icon" href="/img/favicon.ico">
  <script type="text/javascript" src="/inc/ajax-streaming.js"></script>
  <script type="text/javascript" src="/inc/javascript.js"></script>
  <style type="text/css">ul#lista-musicas-pasta{padding:0;color:#000;font-family:Tahoma,Arial,sans-serif;font-size:11px;font-weight:400;margin:0 auto}ul#lista-musicas-pasta li{list-style:none;display:block;padding-top:2px;padding-bottom:2px}ul#lista-musicas-pasta li:hover{background-color:#EEE}ul#lista-musicas-pasta a{text-decoration:none;color:#000}ul#lista-musicas-pasta a:hover{text-decoration:underline}ul#lista-pastas{padding:0;color:#000;font-family:Tahoma,Arial,sans-serif;font-size:11px;font-weight:400;margin:0 auto}</style>
</head>

<body>
  <div class="container-scroller">
      <nav class="navbar col-lg-12 col-12 p-0 fixed-top d-flex flex-row">
      <div class="text-center navbar-brand-wrapper d-flex align-items-center justify-content-center">
        <?php if($dados_revenda["url_logo"]) { ?>
        <a class="navbar-brand brand-logo" href="/dashboard"><img id="logo" src="<?php echo $dados_revenda["url_logo"]; ?>" title="Painel" height="60" border="0"></a>
        <?php } else { ?>
        <a class="navbar-brand brand-logo" href="/dashboard"><span>Painel Streaming</span></a>
        <?php } ?>
        <a class="navbar-brand brand-logo-mini" href="/dashboard"><img src="/img/icones/img-icone-logo.png" title="Painel" width="32" height="32" border="0"></a>
      </div>
      <div class="navbar-menu-wrapper d-flex align-items-center justify-content-end justify-content-lg-start">
        <button class="navbar-toggler navbar-toggler align-self-center" type="button" data-toggle="minimize">
          <span class="mdi mdi-menu text-icones"></span>
        </button>
        <ul class="navbar-nav navbar-nav-right">
          <li class="nav-item nav-profile dropdown show">
            <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" id="profileDropdown" aria-expanded="true">
              <i class="fa fa-power-off f-18 text-icones" data-toggle="tooltip" data-placement="bottom" title="<?php echo $lang['lang_botao_titulo_ligar']; ?>/<?php echo $lang['lang_botao_titulo_desligar']; ?>"></i>
            </a>
            <div class="dropdown-menu dropdown-menu-right navbar-dropdown" aria-labelledby="profileDropdown">
              <a class="dropdown-item text-success" href="javascript:ligar_streaming('<?php echo $porta_code; ?>');"> <?php echo $lang['lang_botao_titulo_ligar']; ?> Streaming</a>
              <a class="dropdown-item text-danger" href="javascript:desligar_streaming('<?php echo $porta_code; ?>');"> <?php echo $lang['lang_botao_titulo_desligar']; ?> Streaming</a>
              <?php if($dados_stm["autodj"] == "sim") { ?>
              <div class="dropdown-divider"></div>              
              <a class="dropdown-item text-success" href="javascript:carregar_opcoes_ligar_autodj('<?php echo $porta_code; ?>');"> <?php echo $lang['lang_botao_titulo_ligar']; ?> AutoDJ</a>
              <a class="dropdown-item text-danger" href="javascript:desligar_autodj('<?php echo $porta_code; ?>');"> <?php echo $lang['lang_botao_titulo_desligar']; ?> AutoDJ</a>
              <?php } ?>
            </div>
          </li>
          <li class="nav-item dropdown">
            <a class="nav-link count-indicator dropdown-toggle d-flex align-items-center justify-content-center" id="notificationDropdown" href="#" data-toggle="dropdown" aria-expanded="false">
              <i class="mdi mdi-bell f-22 text-icones" data-toggle="tooltip" data-placement="bottom" title="<?php echo $lang['lang_info_pagina_informacoes_tab_avisos']; ?>"></i>
              <?php if($total_avisos_exibir > 0) { ?><span class="count bg-success"><?php echo $total_avisos_exibir; ?></span><?php } ?>           
            </a>
            <div class="dropdown-menu dropdown-menu-right navbar-dropdown preview-list" aria-labelledby="notificationDropdown">
              <a class="dropdown-item">
                <p class="mb-0 font-weight-normal float-left"><?php echo $lang['lang_info_pagina_informacoes_tab_avisos']; ?></p>
              </a>
              <div class="dropdown-divider"></div>
              <?php carregar_avisos_streaming($conexao,$dados_stm["porta"],$dados_servidor["codigo"]); ?>
            </div>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="/sair"><i class="mdi mdi-logout f-22 text-icones" data-toggle="tooltip" data-placement="bottom" title="Sair/logout"></i></a>
          </li>
          <li>
            <button type="button" class="btn btn-info" id="status-streaming" onClick="status_streaming('<?php echo $porta_code; ?>');" style="margin: 10px;min-width: 150px; min-height: 40px"><i class="fa fa-refresh"></i></button>
          </li>
        </ul>
        <button class="navbar-toggler navbar-toggler-right d-lg-none align-self-center" type="button" data-toggle="offcanvas">
          <span class="mdi mdi-menu text-icones"></span>
        </button>
      </div>
    </nav>

    <!-- modal -->
      <div class="modal fade" id="avisos" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title"><?php echo $lang['lang_info_pagina_informacoes_tab_avisos']; ?></h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                </div>
                <div class="modal-body" id="avisos-conteudo"><img src="/img/ajax-loader.gif" align="center" /></div>
            </div>
        </div>
      </div>
                
      <div class="modal fade" id="playlists-autodj" tabindex="-1" role="dialog" aria-hidden="true">
          <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title">AutoDJ</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                </div>
                <div class="modal-body text-center" id="playlists-autodj-conteudo" style="text-align: center;"><img src="/img/ajax-loader.gif" /></div>
            </div>
          </div>
      </div>
                
      <div class="modal fade" id="log-sistema" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-dialog-centered" role="document">
            <div class="modal-content">
                <div class="modal-body" id="log-sistema-conteudo" style="text-align:center"><img src="/img/ajax-loader.gif" /></div>
            </div>
        </div>
      </div>
      
    <div class="container-fluid page-body-wrapper">      
    <?php require_once("menu.php"); ?>
      <div class="main-panel">
        <div class="content-wrapper">
          <div id="local-status-acoes"><?php echo $_SESSION['status_acao'];unset($_SESSION['status_acao']); ?></div>
          <div class="row">            

            <?php if($dados_stm["download_programetes_programas"] ==  "nao") { ?>
            <div class="col-lg-6">
              <div class="card">
                  <div class="card-header">
                    <header>Download Programas & Programetes</header>
                  </div>
                <div class="card-body text-center">
                    Ooops! Voc&ecirc; n&atilde;o tem acesso a este conte&uacute;do, para acessar, entre em contato com nosso atendimento.
                </div>
              </div>
            </div>
          <?php } else { ?>
            <div class="col-xl-12 col-md-12">
              <div class="card">
                  <div class="card-header">
                    <header>Download Programas</header>
                  </div>
                <div class="card-body">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                      <tr>
                        <td height="25" class="texto_padrao" align="left">
<?php
$count_pastas_programas = 1;

$xml_pastas_programas = @simplexml_load_file("http://".$dados_servidor["ip"].":555/download-pp-listar-pastas.php?tipo=programas");

$total_pastas_programas = count($xml_pastas_programas->pasta);

if($total_pastas_programas > 0) {

for($i=0;$i<$total_pastas_programas;$i++){

$total_arquivos_programas = $xml_pastas_programas->pasta[$i]->total;

if($total_arquivos_programas > 0) {

if(($count_pastas_programas % 2)){ $alinhamento = " margin-right:10px;"; } else { $alinhamento = ""; }

echo '<table width="49%" border="0" align="left" cellpadding="0" cellspacing="0" style="background-color:#F4F4F7; border:#CCCCCC 1px solid;'.$alinhamento.'margin-bottom:10px"><tr>';

echo '<tr><td width="90%" height="30" align="left" class="texto_padrao_destaque">&nbsp;&nbsp;'.str_replace("SABADO","SAB",$xml_pastas_programas->pasta[$i]->nome).'</td><td width="10%" align="center"><a href="https://'.strtolower($dados_servidor["nome"]).'.'.$dados_config["dominio_padrao"].':1443/download-pp.php?tipo=programas&pasta='.$xml_pastas_programas->pasta[$i]->nome.'" title="Download Pasta '.$xml_programas->musica[$i]->nome.'" target="_blank"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAFQUlEQVR42pWVa2xTZRjHn/ectqe3tVsvZ+3asZ3uQoFBGRnKCMiYQcELmDACREmQxFtEg2MjDAPxkoAu3DFE4z5A9IMSE4MBBwLRAZ+8gcA62WADxhjXwS719Fxf33NONwaF6d7kTdP0fZ5f/v/nUgT/4zQ3vkYJouLgk0qOLKscALkIcRgQR5ttHDdxOhWOLp/yqFg0/Evbz7V+msYlFMIcRSkcYJUTRDlfleU8RVX9kiwxiqJgWVEBmezA5pegADcemy0MUMwsakTA2UPVLo/H1uX3Mk7AEmByRUGCpHZ5kXzKwCdlUMACgYJS8OcWAG0y3U/EVKIRAecOr+bGjHG3WxnAoOoAJAkS1gA8LyICwMmkjDyR6TjIcYPBCAN5Tw5lnTOygviRmkg47Lr4AEAkgOQwgCAjf+FMzIZDw+MNgH3uyICWozWRUEgHgAbQbBJFYo8GSBKLiD2aTb5IOWSHg2mJKOf8kS2KH62NhEODCkQCkA0FgkgAEiIAXYE3vwyzoUCaRbRrITV6gKRZ9BBgzGTM5mQPRiPy2gBkLfkvi2p1i2zEIpyyiADSLPLkToTsHH9aItqzbDQW6YCUAg0i6gp4osATGo/ZoDfNIpN/xWgsegggEACfAuQUYw/LQlLJBBUcJF7FNO6DeJ/ZXj5hYXJUAFlKzYFWA17CvIhRRu5LuI12woErv8Ol3m5komgczcqDeTlPdA0kBj7qU/mGRVOfw4+YAwLIdd+vAbmybNTA6CQKcHgxbGhphBNdZ8Fjd4OJpsljDJKiQC/fD6+OnwdzPVO/7EzefGNRmQEZVuQ1xeFc13nGklKgEgWy0UVa9yjeBfitcwdRR+IGzmDM4LPaoaFyI2rv68Yrmz4GE2VBvTyPq7gKqHTHVj0dm7lzCHDm0JqY2239Khh0TETaHkopUGRjF/GqD/ZTRfBZ87fAOe3gNmPw2ZywveJzaL3XCWuO14DVZIG7JKy9rx8ayuvuJBK9Bc9PfrbXABxeuyU6jn2PJEck+ZACRTZqoLifQbVt+7AgSyiTobCDJMuyuKFu2hbUercT1//2PmQxZnRPFHBCViHqmYRmZZQvrZhQ8Y0OiB9bt6uwyPd2GkAxukhgl6CN8XU44PChKYHF2GnJhwNtDbBp1m4d8MXpTVA9dR3afWYP9phOQY/oQ1XB1z+ZUlhWNwjYUVTsf1efYFUmFomGRYpRZCH7Fdj692qIZvlgflE9eO0ROHWzBUrZcXCTv0eKzEPIGYTGS8cgfmM79MseWBRavaOEi63SAc1H67YWjWVXIfVBBapi7CLsr0I72zdjG7qMLJQdvzxpL3htEfKnhhAmR8vxy9UTqLH1HRywW8FqrUQzMquqY5GybTrg3JG6zcVRtvpxANk2GR0Wb+ALtxsQIoPlYgKgQXz2Ah3QdPUk/Ni6EmWYEljCFpid/6nqUjylZYUzzhqAn+rqx45ja1OJh7pIVVNzQByT85bDnvPV5LfLelu7mRAsi30NzT1dsL/lTXCZB7SRAKdtBizMW38wL1DwwlCbkhrUFBb76x+hQCFddFmQqCbRWdbGe4vX/9C21vqP2AHaCspgstFtfgAzVEJbd8jreBK/yG24dqe/e1op99TVIUDnrx/aHQ7zCppSt1ktcIWs6uOqIjZhVT4uSXKHe9JW3eeOa6fn2OzuvX/c+i5woecYJKUesrAp0lVBKPEvQGNds/+8k+heOiF3WmvaqtDOrb8+yLEy1PWM6AYVHnMuXjqZZU1c/94aLseCkowgREsmZI7zQv8+SRX2FQRj4vD3/wIdUD9GqLx3kQAAAABJRU5ErkJggg==" width="20" height="20" border="0" /></a></td></tr>';

$xml_programas = @simplexml_load_file("http://".$dados_servidor["ip"].":555/download-pp-listar-audios.php?tipo=programas&pasta=".$xml_pastas_programas->pasta[$i]->nome."&ordenar=sim");

$total_programas = count($xml_programas->musica);

echo '<tr><td colspan="2" align="center"><div style="background-color:#FFFFFF; width:96%; height:88px; text-align:left; padding:5px; overflow: auto;">';

echo '<ul id="lista-musicas-pasta">';

for($ii=0;$ii<$total_programas;$ii++){

echo '<li style=" height:18px;">'; 

echo '<a href="javascript:abrir_player(\'https://'.strtolower($dados_servidor["nome"]).'.'.$dados_config["dominio_padrao"].':1443/play.php?tipo=programa&musica='.$xml_pastas_programas->pasta[$i]->nome.'/'.$xml_programas->musica[$ii]->nome.'\');" title="Play '.$xml_programas->musica[$ii]->nome.'"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACaElEQVR42o2T30sUURTHv/fe+eH6i6YtKRFXMzdXU4ReQkL6Ab1IYEQUUah/wvwH7Vsvwj70UhBtCAVRtBBE0A99DiHNCCOC1c32h7bN6s64u7MztzujBoLWHjh3Bi7nc875nnMJhHWPTL0ghI6C0jihVP+auGagRiPeEb70mJ8ZPo0fK1ms/MwYjgt98dnleM2AE6NP+cDgIArFKgIqQTqTQdEszoBQ/cuTkbn/AnquPOe9fQNI5SwwRtHUoMK2K8jns3CcaowQEv08ddHYFxC5muDhnj6kf5VEUuI7Ywz1ARWbloGNgmG4rqsvPLoQ3xPQe/0lP3Y8glVDAEQFOxDP6+tk1Im2ctk1WEXRFqAvPDw3txtw4xVv7wjDMCugjIBTCtsBXHHncgJJoggekCETG+lUFpVyJQbOowvx84YP6Lv5mre2dWO9VMGmzcEJhSQzMJn6QKGBn80T+EhQRno5h/yq4VUS829O3nrDmw914rdVhqQwyMK9rw8R2bfjRTsUWoOYUmoV+VxB//RgeBsw9pYrTSGU3SqUOgmyKiCqtAUSVSgKRYsmw1q3sPQ9h5JVis7fG7r9V4P+8fe8XmvHpuNACUg+RPVc/Ac1BY0q8G1xDUbenOGuM/Hx7qnkLhH7x6d5c0sIpl0VQbIfqGkqWoKK2IUSlpcKSe44+uxkb2LPMfZPTPODRzuwUa6ioVFBW2sAIpNYbRNlG1EhYuzDna79F8lr4XB7p9gBAk2MK5ctwLScGcKkidnJSBL/sC3A2DseCnfBskxRcjEpAnXRZwI12M4UpgmVzhLGooSy2Pz9oZqf8x92PPIRqGSghwAAAABJRU5ErkJggg==" width="13" height="13" border="0" /></a>&nbsp;<a href="https://'.strtolower($dados_servidor["nome"]).'.'.$dados_config["dominio_padrao"].':1443/download-pp.php?tipo=programas&pasta='.$xml_pastas_programas->pasta[$i]->nome.'&audio='.$xml_programas->musica[$ii]->nome.'" title="Download '.$xml_programas->musica[$ii]->nome.'" target="_blank"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAApZJREFUOI19k81rXFUYxn/nfszMndRk8jEjGTNtpDUtiGCL6KagiyKCWEpBt3HRLFwqFArFTQkF24Wav8FNQIO0axeRMbgIpKA2VWrUJilNmkkyd3rnfpx7zuuiqWRi2wde3s05v/McnvdVIsITra+tnS+VSq85SiEACpDHzVhLkiS/jjUa37FfIvJftcNwIcsy0WkseRaLyRPRez1NU2nv7i7tPy8iePthQcF1t8KUW+uCq6DbzRiu+DzcSTl9okyl5LsckHPADqJc/lgztCKfvsoA1u+jf3gQ5bgorDwXYK3gui5xGCE6w2pNrjW5saTWYTcWX52b73Ht9QIMjnLoKxfohAliNJko7m5B51GZOLb102+ceAv46akAbSylgsvxowP0BS61YZckgxvfhPzyd0Ju7EAcue88G5BbhvqFd18tIEaT64i2ePyzZYhSwXXAddTQM7/weCYUm1sPub+xQaw9drpwqFqHBHxP4YoN1MSd4f6TQdaePdLpAYCQpCmbmw+ItM/1pTpd41EeUphY8H1Fydqpt6dGP4m7+jJw9YADyLTGKoeXq2Wuvh9w7RasbCuCoiG3ivILntcY974dHCl89ZQUbO45DghsdyJq/fe5UM+5WWmwtFukEWDrxfzrL94sfva/OZifn68bY2qO4zA4UMFYw0Y7YlB1+DBY4b3qDmeKf9376PsPPt//qLN3eSIMw6ks02r5zjK/Ly/zUm2U0dqLjFTrtFb/5JXVnzlVCIsrr398aWFh4UxPCkEQrCwuLraKxYIzMlKVVqulbt/+7YdyENy1IqPb7fDsxMQx6USPktW19XtjjcM/9kT3pKanp8eazebFubm5LycnJw/vrfqh2dnZK81m89OZmZnxg9v4LwkDZzg9PllKAAAAAElFTkSuQmCC" width="16" height="16" border="0" /></a>&nbsp;'.$xml_programas->musica[$ii]->nome;

echo '</li>';

}
echo '</ul>';

echo '</div></td></tr>';

echo '</table>';
$count_pastas_programas++;

}
}
}
?>
                        </td>
                      </tr>
      </table>
                </div>
              </div>
            </div>

            <div class="col-xl-12 col-md-12">
              <div class="card">
                  <div class="card-header">
                    <header>Download Programetes</header>
                  </div>
                <div class="card-body">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                      <tr>
                        <td height="25" class="texto_padrao" align="left">
<?php
$count_pastas_programetes = 1;

$xml_pastas_programetes = @simplexml_load_file("http://".$dados_servidor["ip"].":555/download-pp-listar-pastas.php?tipo=programetes");

$total_pastas_programetes = count($xml_pastas_programetes->pasta);

if($total_pastas_programetes > 0) {

for($i=0;$i<$total_pastas_programetes;$i++){

$total_arquivos_programetes = $xml_pastas_programetes->pasta[$i]->total;

if($total_arquivos_programetes > 0) {

if(($count_pastas_programetes % 2)){ $alinhamento = " margin-right:10px;"; } else { $alinhamento = ""; }

echo '<table width="49%" border="0" align="left" cellpadding="0" cellspacing="0" style="background-color:#F4F4F7; border:#CCCCCC 1px solid;'.$alinhamento.'margin-bottom:10px"><tr>';

echo '<tr><td width="90%" height="30" align="left" class="texto_padrao_destaque">&nbsp;&nbsp;'.str_replace("SABADO","SAB",$xml_pastas_programetes->pasta[$i]->nome).'</td><td width="10%" align="center"><a href="https://'.strtolower($dados_servidor["nome"]).'.'.$dados_config["dominio_padrao"].':1443/download-pp.php?tipo=programetes&pasta='.$xml_pastas_programetes->pasta[$i]->nome.'" title="Download Pasta '.$xml_programetes->musica[$i]->nome.'" target="_blank"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAFQUlEQVR42pWVa2xTZRjHn/ectqe3tVsvZ+3asZ3uQoFBGRnKCMiYQcELmDACREmQxFtEg2MjDAPxkoAu3DFE4z5A9IMSE4MBBwLRAZ+8gcA62WADxhjXwS719Fxf33NONwaF6d7kTdP0fZ5f/v/nUgT/4zQ3vkYJouLgk0qOLKscALkIcRgQR5ttHDdxOhWOLp/yqFg0/Evbz7V+msYlFMIcRSkcYJUTRDlfleU8RVX9kiwxiqJgWVEBmezA5pegADcemy0MUMwsakTA2UPVLo/H1uX3Mk7AEmByRUGCpHZ5kXzKwCdlUMACgYJS8OcWAG0y3U/EVKIRAecOr+bGjHG3WxnAoOoAJAkS1gA8LyICwMmkjDyR6TjIcYPBCAN5Tw5lnTOygviRmkg47Lr4AEAkgOQwgCAjf+FMzIZDw+MNgH3uyICWozWRUEgHgAbQbBJFYo8GSBKLiD2aTb5IOWSHg2mJKOf8kS2KH62NhEODCkQCkA0FgkgAEiIAXYE3vwyzoUCaRbRrITV6gKRZ9BBgzGTM5mQPRiPy2gBkLfkvi2p1i2zEIpyyiADSLPLkToTsHH9aItqzbDQW6YCUAg0i6gp4osATGo/ZoDfNIpN/xWgsegggEACfAuQUYw/LQlLJBBUcJF7FNO6DeJ/ZXj5hYXJUAFlKzYFWA17CvIhRRu5LuI12woErv8Ol3m5komgczcqDeTlPdA0kBj7qU/mGRVOfw4+YAwLIdd+vAbmybNTA6CQKcHgxbGhphBNdZ8Fjd4OJpsljDJKiQC/fD6+OnwdzPVO/7EzefGNRmQEZVuQ1xeFc13nGklKgEgWy0UVa9yjeBfitcwdRR+IGzmDM4LPaoaFyI2rv68Yrmz4GE2VBvTyPq7gKqHTHVj0dm7lzCHDm0JqY2239Khh0TETaHkopUGRjF/GqD/ZTRfBZ87fAOe3gNmPw2ZywveJzaL3XCWuO14DVZIG7JKy9rx8ayuvuJBK9Bc9PfrbXABxeuyU6jn2PJEck+ZACRTZqoLifQbVt+7AgSyiTobCDJMuyuKFu2hbUercT1//2PmQxZnRPFHBCViHqmYRmZZQvrZhQ8Y0OiB9bt6uwyPd2GkAxukhgl6CN8XU44PChKYHF2GnJhwNtDbBp1m4d8MXpTVA9dR3afWYP9phOQY/oQ1XB1z+ZUlhWNwjYUVTsf1efYFUmFomGRYpRZCH7Fdj692qIZvlgflE9eO0ROHWzBUrZcXCTv0eKzEPIGYTGS8cgfmM79MseWBRavaOEi63SAc1H67YWjWVXIfVBBapi7CLsr0I72zdjG7qMLJQdvzxpL3htEfKnhhAmR8vxy9UTqLH1HRywW8FqrUQzMquqY5GybTrg3JG6zcVRtvpxANk2GR0Wb+ALtxsQIoPlYgKgQXz2Ah3QdPUk/Ni6EmWYEljCFpid/6nqUjylZYUzzhqAn+rqx45ja1OJh7pIVVNzQByT85bDnvPV5LfLelu7mRAsi30NzT1dsL/lTXCZB7SRAKdtBizMW38wL1DwwlCbkhrUFBb76x+hQCFddFmQqCbRWdbGe4vX/9C21vqP2AHaCspgstFtfgAzVEJbd8jreBK/yG24dqe/e1op99TVIUDnrx/aHQ7zCppSt1ktcIWs6uOqIjZhVT4uSXKHe9JW3eeOa6fn2OzuvX/c+i5woecYJKUesrAp0lVBKPEvQGNds/+8k+heOiF3WmvaqtDOrb8+yLEy1PWM6AYVHnMuXjqZZU1c/94aLseCkowgREsmZI7zQv8+SRX2FQRj4vD3/wIdUD9GqLx3kQAAAABJRU5ErkJggg==" width="20" height="20" border="0" /></a></td></tr>';

$xml_programetes = @simplexml_load_file("http://".$dados_servidor["ip"].":555/download-pp-listar-audios.php?tipo=programetes&pasta=".$xml_pastas_programetes->pasta[$i]->nome."&ordenar=sim");

$total_programetes = count($xml_programetes->musica);

echo '<tr><td colspan="2" align="center"><div style="background-color:#FFFFFF; width:96%; height:88px; text-align:left; padding:5px; overflow: auto;">';

echo '<ul id="lista-musicas-pasta">';

for($ii=0;$ii<$total_programetes;$ii++){

echo '<li style=" height:18px;">'; 

echo '<a href="javascript:abrir_player(\'https://'.strtolower($dados_servidor["nome"]).'.'.$dados_config["dominio_padrao"].':1443/play.php?tipo=programete&musica='.$xml_pastas_programetes->pasta[$i]->nome.'/'.$xml_programetes->musica[$ii]->nome.'\')" title="Play '.$xml_programetes->musica[$ii]->nome.'"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACaElEQVR42o2T30sUURTHv/fe+eH6i6YtKRFXMzdXU4ReQkL6Ab1IYEQUUah/wvwH7Vsvwj70UhBtCAVRtBBE0A99DiHNCCOC1c32h7bN6s64u7MztzujBoLWHjh3Bi7nc875nnMJhHWPTL0ghI6C0jihVP+auGagRiPeEb70mJ8ZPo0fK1ms/MwYjgt98dnleM2AE6NP+cDgIArFKgIqQTqTQdEszoBQ/cuTkbn/AnquPOe9fQNI5SwwRtHUoMK2K8jns3CcaowQEv08ddHYFxC5muDhnj6kf5VEUuI7Ywz1ARWbloGNgmG4rqsvPLoQ3xPQe/0lP3Y8glVDAEQFOxDP6+tk1Im2ctk1WEXRFqAvPDw3txtw4xVv7wjDMCugjIBTCtsBXHHncgJJoggekCETG+lUFpVyJQbOowvx84YP6Lv5mre2dWO9VMGmzcEJhSQzMJn6QKGBn80T+EhQRno5h/yq4VUS829O3nrDmw914rdVhqQwyMK9rw8R2bfjRTsUWoOYUmoV+VxB//RgeBsw9pYrTSGU3SqUOgmyKiCqtAUSVSgKRYsmw1q3sPQ9h5JVis7fG7r9V4P+8fe8XmvHpuNACUg+RPVc/Ac1BY0q8G1xDUbenOGuM/Hx7qnkLhH7x6d5c0sIpl0VQbIfqGkqWoKK2IUSlpcKSe44+uxkb2LPMfZPTPODRzuwUa6ioVFBW2sAIpNYbRNlG1EhYuzDna79F8lr4XB7p9gBAk2MK5ctwLScGcKkidnJSBL/sC3A2DseCnfBskxRcjEpAnXRZwI12M4UpgmVzhLGooSy2Pz9oZqf8x92PPIRqGSghwAAAABJRU5ErkJggg==" width="13" height="13" border="0" /></a>&nbsp;<a href="https://'.strtolower($dados_servidor["nome"]).'.'.$dados_config["dominio_padrao"].':1443/download-pp.php?tipo=programetes&pasta='.$xml_pastas_programetes->pasta[$i]->nome.'&audio='.$xml_programetes->musica[$ii]->nome.'" title="Download '.$xml_programetes->musica[$ii]->nome.'" target="_blank"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAApZJREFUOI19k81rXFUYxn/nfszMndRk8jEjGTNtpDUtiGCL6KagiyKCWEpBt3HRLFwqFArFTQkF24Wav8FNQIO0axeRMbgIpKA2VWrUJilNmkkyd3rnfpx7zuuiqWRi2wde3s05v/McnvdVIsITra+tnS+VSq85SiEACpDHzVhLkiS/jjUa37FfIvJftcNwIcsy0WkseRaLyRPRez1NU2nv7i7tPy8iePthQcF1t8KUW+uCq6DbzRiu+DzcSTl9okyl5LsckHPADqJc/lgztCKfvsoA1u+jf3gQ5bgorDwXYK3gui5xGCE6w2pNrjW5saTWYTcWX52b73Ht9QIMjnLoKxfohAliNJko7m5B51GZOLb102+ceAv46akAbSylgsvxowP0BS61YZckgxvfhPzyd0Ju7EAcue88G5BbhvqFd18tIEaT64i2ePyzZYhSwXXAddTQM7/weCYUm1sPub+xQaw9drpwqFqHBHxP4YoN1MSd4f6TQdaePdLpAYCQpCmbmw+ItM/1pTpd41EeUphY8H1Fydqpt6dGP4m7+jJw9YADyLTGKoeXq2Wuvh9w7RasbCuCoiG3ivILntcY974dHCl89ZQUbO45DghsdyJq/fe5UM+5WWmwtFukEWDrxfzrL94sfva/OZifn68bY2qO4zA4UMFYw0Y7YlB1+DBY4b3qDmeKf9376PsPPt//qLN3eSIMw6ks02r5zjK/Ly/zUm2U0dqLjFTrtFb/5JXVnzlVCIsrr398aWFh4UxPCkEQrCwuLraKxYIzMlKVVqulbt/+7YdyENy1IqPb7fDsxMQx6USPktW19XtjjcM/9kT3pKanp8eazebFubm5LycnJw/vrfqh2dnZK81m89OZmZnxg9v4LwkDZzg9PllKAAAAAElFTkSuQmCC" width="16" height="16" border="0" /></a>&nbsp;'.$xml_programetes->musica[$ii]->nome;

echo '</li>';

}
echo '</ul>';

echo '</div></td></tr>';

echo '</table>';
$count_pastas_programetes++;

}
}
}
?>
                        </td>
                      </tr>
      </table>
                </div>
              </div>
            </div>
          <?php } ?>

          </div>
        </div>
      </div>      

    </div>
  </div>
  <script src="/inc/vendor.bundle.base.js"></script>
  <script src="/inc/vendor.bundle.addons.js"></script>
  <script src="/inc/theme.js"></script>
  <script>
  status_streaming('<?php echo $porta_code; ?>');
  setInterval("status_streaming('<?php echo $porta_code; ?>')",60000);
  function abrir_player( url ) {
var left = (screen.width/2)-(200/2);
var top = (screen.height/2)-(40/2);
window.open( url, "","width=200,height=40,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=NO,top="+top+",left="+left+"" );

}
  </script>
</body>
</html>