<?php
ini_set("memory_limit", "128M");
ini_set("max_execution_time", 300);

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

$pasta = (query_string('1')) ? query_string('1') : "/";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="cache-control" content="no-cache">
<title>Streaming <?php echo $_SESSION["porta_logada"]; ?> - Upload de Musicas</title>
<link rel="preload" href="/inc/file-manager-ui/_next/static/v1/pages/index.js" as="script" crossorigin="anonymous"/>
    <link rel="preload" href="/inc/file-manager-ui/_next/static/v1/pages/_app.js" as="script" crossorigin="anonymous"/>
    <link rel="preload" href="/inc/file-manager-ui/_next/static/runtime/webpack-c338d2af2513c103e40f.js" as="script" crossorigin="anonymous"/>
    <link rel="preload" href="/inc/file-manager-ui/_next/static/chunks/commons.67a9413127497509dab3.js" as="script" crossorigin="anonymous"/>
    <link rel="preload" href="/inc/file-manager-ui/_next/static/runtime/main-a2b8fbdec40056ac5ef4.js" as="script" crossorigin="anonymous"/>
    <style id="jss-server-side">html{box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,*::after,*::before{box-sizing:inherit}body{color:rgba(0, 0, 0, 0.87);margin:0;font-size:0.875rem;font-family:"Roboto", "Helvetica", "Arial", sans-serif;font-weight:400;line-height:1.43;letter-spacing:0.01071em;background-color:#fafafa}@media print{body{background-color:#fff}</style>
</head>

<body>
<?php if($dados_stm["espaco_usado"] >= $dados_stm["espaco"]) { ?>
<center style="color: #ff0000; font-weight: bold;font-size: 20px;">O limite de espa&ccedil;o do seu plano foi atingido! Para efetuar novos uploads por favor entre em contato com suporte.</center>
<?php } else { ?>
<div style=" padding-top:150px">
<center><div id="__next"><div></center>
</div>
<script type="text/javascript" src="/inc/ajax-streaming-musicas.js" charset="utf-8"></script>

    <script id="__NEXT_DATA__" type="application/json" crossorigin="anonymous">{"dataManager":"[]","props":{"pageProps":{}},"page":"/","query":{},"buildId":"v1","dynamicBuildId":false,"assetPrefix":"/inc/file-manager-ui","nextExport":true}</script>
    <script async="" id="__NEXT_PAGE__/" src="/inc/file-manager-ui/_next/static/v1/pages/index.js" crossorigin="anonymous"></script>
    <script async="" id="__NEXT_PAGE__/_app" src="/inc/file-manager-ui/_next/static/v1/pages/_app.js" crossorigin="anonymous"></script>
    <script src="/inc/file-manager-ui/_next/static/runtime/webpack-c338d2af2513c103e40f.js" async="" crossorigin="anonymous"></script>
    <script src="/inc/file-manager-ui/_next/static/chunks/commons.67a9413127497509dab3.js" async="" crossorigin="anonymous"></script>
    <script src="/inc/file-manager-ui/_next/static/runtime/main-a2b8fbdec40056ac5ef4.js" async="" crossorigin="anonymous"></script>

    <script type="text/javascript">
      //window.upload_url = 'https://<?php echo strtolower($dados_servidor["nome"]); ?>.<?php echo $dados_config["dominio_padrao"]; ?>:1443/upload-musicas.php'
      window.upload_url = 'https://<?php echo strtolower($dados_servidor["nome"]); ?>.<?php echo $dados_config["dominio_padrao"]; ?>:1443/upload-musicas.php';
      window.upload_porta = '<?php echo $dados_stm["porta"]; ?>';
      window.upload_folder = '<?php echo $pasta; ?>';
    
      function recarregar_pasta() {
        carregar_musicas_pasta('<?php echo $porta_code; ?>', window.upload_folder);
        carregar_pastas('<?php echo $porta_code; ?>');
      }
    </script>
<?php } ?>
</body>
</html>
