<?php require_once "header_painel.php"; require_once "classes_admin/adm_classes.php"; if (isset($_POST['validacao']) && $_POST['validacao'] == 'enviado') { require_once '../includes/fixture/conexao.php'; $conn = conexao(); $login = new Do_Admin($conn); $login_verify = $login->redirect(); } ?> <div class="container"> <div class="row clearfix"> <div class="espaco_superior"></div> <div class="col-md-4 column"> </div> <div class="col-md-4 column"> <?php if (isset($login_verify) && $login_verify == false) { echo '<center><h4 style="color:red;">Falhou !!! Tente novamente .</h4></center>'; } ?> <div class="form_login"> <form role="form" method="post"> <fieldset> <center><legend>Login</legend></center> <div class="form-group"> <label for="usuario">Usuário</label> <input class="form-control" id="usuario" type="text" name="usuario"required /> </div>
<?php session_start(); if (isset($_SESSION['logado']) && $_SESSION['logado'] == 1) { require_once "header_painel.php"; ?> <div class="container"> <div class="col-md-12"> <?php require_once "classes_admin/adm_classes.php"; require_once '../includes/fixture/conexao.php'; $conn = conexao(); $logout = new Do_Admin($conn); $sair = $logout->LogOut(); if ($sair == true) { echo "Você saiu do sistema. Será redirecionado para Home em 5 segundos."; echo '<meta http-equiv=REFRESH CONTENT=5;url=http://localhost>'; } ?> </div> </div> <?php } require_once "footer_painel.php";