<?php
include("conexao.php");
include_once("functions.php");
include_once(Idioma(1));
global $_TRA;
$idioma = empty($_COOKIE['idioma']) ? "br" : $_COOKIE['idioma'];

$VerificarInfoSite = VerificarInfoSite();

$SQL = "SELECT status FROM captcha";
$SQL = $painel_geral->prepare($SQL);
$SQL->execute();
$Ln = $SQL->fetch();
$captcha = $Ln['status'];
?>
<!DOCTYPE html>
<html lang="<?php echo $idioma; ?>" class="body-full-height">
    <head>        
        <!-- META SECTION -->
        <title><?php echo $VerificarInfoSite[0]. " - " .$_TRA['Entrar']; ?></title>            
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        
        <link rel="icon" href="favicon.ico" type="image/x-icon" />
        <!-- END META SECTION -->
        
        <!-- CSS INCLUDE -->        
        <link rel="stylesheet" type="text/css" id="theme" href="css/<?php echo $VerificarInfoSite[2]; ?>.css"/>
        <!-- EOF CSS INCLUDE -->                                     
    </head>
    <body>

        <div class="login-container">
        
            <div class="login-box animated fadeInDown">
                <div class="login-logo"><?php echo $VerificarInfoSite[0]; ?></div>
				<div class="login-legenda"><?php echo $VerificarInfoSite[1]; ?></div>
                <div class="login-body">
                    <div class="login-title"><strong><?php echo $_TRA['SBV']; ?></strong>, <?php echo $_TRA['Entrar']; ?></div>
                    <form id="FormLogin" name="FormLogin" class="FormLogin form-horizontal" method="POST" action="javascript:FormLogin()">
                    <div class="form-group">
                        <div class="col-md-12">
                            <input type="text" name="usuario" id="usuario" class="form-control" placeholder="<?php echo $_TRA['Usuario']; ?>"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-md-12">
                            <input type="password" name="senha" id="senha" class="form-control" placeholder="<?php echo $_TRA['Senha']; ?>"/>
                        </div>
                    </div>
                    
                    <?php
					if($captcha == "S"){
					?>
                    
                    <div class="form-group">
                   		<center>
                   	 		<div id="StatusCaptcha">
           						<?php include "CaptchaImg.php"; ?>
           					</div>
                        </center>
                    </div>
                    
                    <div class="form-group pointer" onClick="NovoCaptcha()">
                   	 	<div class="col-md-12 text-right">
                    		Novo Captcha
                    	</div>
                    </div>
                    
                    <div class="form-group">
                        <div class="col-md-12">
                            <input type="text" name="captcha" id="captcha" class="form-control" placeholder="Digite o Captcha"/>
                        </div>
                    </div>
                    
                    <?php
					}
					?>
                    
                    <div class="form-group">
                   	    <div id="StatusLogin"></div>
                    	<div class="col-md-12">
                            <button onClick="FazerLoginIPTV()" style="color: #ffffff;" class="btn btn-danger btn-block"><?php echo $_TRA['Entrar']; ?></button>
                        </div>
                    </div>
                    
                    </form>
                </div>
                <div class="login-footer">
                    <div class="pull-left">
                        &copy; 2020 <?php echo $VerificarInfoSite[0]; ?>
    </div>
            </div>
<center>

<!--<a class="btn btn-warning btn btn-succew" href="https://api.whatsapp.com/send?phone=5541991927813" style="color: #ffffff;" target="_blank"> 𝙎𝙪𝙥𝙤𝙧𝙩𝙚 𝙑𝙞𝙖 𝙒𝙝𝙖𝙩𝙨𝙖𝙥𝙥 𝘾𝙡𝙞𝙦𝙪𝙚 𝘼𝙦𝙪𝙞 &nbsp</a><br/>

<center>
<a class="btn btn-info btn btn-succet" href="https://api.whatsapp.com/send?phone=5541997127795" style="color: #ffffff;" target="_blank"> 𝙎𝙪𝙥𝙤𝙧𝙩𝙚 𝙑𝙞𝙖 𝙒𝙝𝙖𝙩𝙨𝙖𝙥𝙥 𝘾𝙡𝙞𝙦𝙪𝙚 𝘼𝙦𝙪𝙞 &nbsp</a><br/>

<style>marquee{border-top: 0px ridge; green; border-bottom: 0px ridge; green;align: center; width: 4
300px; color: red; font-size: 30px;}
</style><marquee><b><p><span style="color: #ffffff;">𝑂 𝑀𝐸𝐿𝐻𝑂𝑅 𝑆𝐸𝑅𝑉𝐼𝐷𝑂𝑅 𝐷𝑂 𝐵𝑅𝐴𝑆𝐼𝐿 𝟣𝟢𝟢% 𝑂𝑠𝑐𝑎𝑚 ➠➠➠&nbsp; 𝑆𝐼𝑆𝑇𝐸𝑀𝐴 𝐷𝐼𝑆𝑃𝑂𝑁𝐼𝑉𝐸𝐿 - 𝐶𝑆 𝑆𝐴𝑇 ✔ 𝐶𝐴𝐵𝑂 ✔ 𝐼𝑃𝑇𝑉 ✔ ➠➠➠&nbsp; 𝑂𝑆 𝑀𝐸𝐿𝐻𝑂𝑅𝐸𝑆 𝐶𝐴𝑁𝐴𝐼𝑆 𝑉𝑂𝐶𝐸 𝐸𝑁𝐶𝑂𝑁𝑇𝑅𝐴 𝐴𝑄𝑈𝐼! 📺 ➠➠➠&nbsp;  𝑄𝑈𝐴𝐿𝐼𝐷𝐴𝐷𝐸 💯    𝑆𝑈𝑃𝑂𝑅𝑇𝐸 💯  𝐴𝑇𝐸𝑁𝐷𝐼𝑀𝐸𝑁𝑇𝑂 💯 &nbsp; 𝒫𝑜𝓇𝓉𝒶𝓁 ℬ𝓇𝒶𝓋𝑜🖊 </strong></strong></strong></strong></strong></span></p><b></marquee>

</div>
<style>marquee{border-top: 0px ridge; green; border-bottom: 0px ridge; green;align: center; width: 4
300px; color: red; font-size: 30px;}
</style><marquee><b><p><span style="color: #ffffff;"><img src= "http://painel.brplus.top/images/claro.gif" alt="70" width="70" height="70" /> &nbsp;<img src="http://painel.brplus.top/images/sky.png" alt="" width="70" height="70" /> &nbsp;<img src="http://painel.brplus.top/images/net.png" alt="" width="70" height="70" /> &nbsp;<img src="http://painel.brplus.top/images/IPTV.png" alt="" width="70" height="70" /> ➠ &nbsp;<img src="http://painel.brplus.top/images/A&E.png" alt="" width="70" height="70" /> &nbsp;<img src="http://painel.brplus.top/images/AnimalPlanet.png" alt="" width="70" height="70" /> &nbsp;<img src="http://painel.brplus.top/images/AXN.png" alt="" width="70" height="70" /> &nbsp;<img src="http://painel.brplus.top/images/Bandeirantes.png" alt="" width="70" height="70" /> &nbsp;<img src="http://painel.brplus.top/images/BBB.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/Boomerang.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/CartoonNetwork.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/Cinemax.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/Combate.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/DiscoveryH&H.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/DisneyChannel.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/EIMaxx.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/EIMaxxII.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/ESPN.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/ESPNBrasil.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/FOX.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/FoxSport.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/FoxSport2.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/FX.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/Globo.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/GNT.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/H2.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/HBO.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/HBOFamily.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/HBOPlus.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/IDInvestigacaoDiscovery.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/Max.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/MaxPrime.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/Megapix.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/MTV.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/Multishow.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/NatGeo.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/NatGeoWild.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/Nickelodeon.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/Off.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/Paramount.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/Playboy.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/PremiereFC.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/Radio.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/RecordNews.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/RecordTV.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/RedeTV.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/SBT.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/Sony.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/Space.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/SporTV.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/SporTV2.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/SporTV3.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/StudioUniversal.png" alt="" width="70" height="70" /> &nbsp;<img src="http://painel.brplus.top/images/TelecineAction.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/TelecinePipoca.png" alt="" width="70" height="70" /> &nbsp; <img src="http://painel.brplus.top/images/TelecinePremium.png" alt="" width="70" height="70" /> &nbsp;<img src="http://painel.brplus.top/images/TNT.png" alt="" width="70" height="70" /> &nbsp;<img src="http://painel.brplus.top/images/TNTSeries.png" alt="" width="70" height="70" /> &nbsp;<img src="http://painel.brplus.top/images/Viva.png" alt="" width="70" height="70" /> &nbsp;<img src="http://painel.brplus.top/images/WarnerChannel.png" alt="" width="70" height="70" /> &nbsp; 🖊 </strong></strong></strong></strong></strong></span></p><b></marquee>
  -->              
                </div>
            </div>
            
        </div>

<script type="text/javascript" src="js/plugins/jquery/jquery.min.js"></script>
<script type="text/javascript" src="js/plugins.js"></script>  
<script type="text/javascript" src="js/actions.js"></script>

<script>
<?php
if($captcha == "S"){
?>
function NovoCaptcha(){
			
			panel_refresh($(".login-container"));

			$.post('CaptchaImg.php', function(resposta) {
				
			setTimeout(panel_refresh($(".login-container")),500);
				
			$("#StatusCaptcha").html('');
			$("#StatusCaptcha").html(resposta);
						
			});
				
}
<?php
}
?>
	
function FazerLoginIPTV(){
 
	    var Data = $(".FormLogin").serialize();
		 
		panel_refresh($(".login-container"));
				
		$.post('validar-login.php', Data, function(resposta) {
			
				setTimeout(panel_refresh($(".login-container")),500);
			
				$("#StatusGeral").html('');
				$("#StatusGeral").append(resposta);
		});
}
</script>

<div id="StatusGeral"></div>

    </body>
</html>