<?php

$error = $_GET['error'];

include('/home/devworks/public_html/auanews/config/auanews.config.php');

$sql = $conecta->query("SELECT nome_site FROM `config_site` WHERE id = '1'");
while ($consulta = $sql->fetch_assoc())
{$nome_site = $consulta['nome_site'];}

?>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
    <title><?php echo $nome_site; ?> - Painel de Controle</title>
	<link rel="icon" type="image/x-icon" href="https://www.noharbar.com.br/site/visuais/assets/images/favicon.ico" />
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="fonts/ionicons.min.css">
    <link rel="stylesheet" href="css/Login-Form-Dark.css">
    <link rel="stylesheet" href="css/styles.css">
	<link href="images/favicon-blue.png" rel="shortcut icon" type="image/vnd.microsoft.icon" />
	<link rel="preconnect" href="https://fonts.googleapis.com">
	<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
	<link href="https://fonts.googleapis.com/css2?family=Ubuntu&display=swap" rel="stylesheet">
	
</head>

<body>
    <div class="login-dark">
        <form method="post" action="enter.php">
            <h2 class="sr-only">Painel de Controle</h2>
            <div class="illustration"<p align="center"><img src="images/locked-icon.svg" height="180px"></p></div>
			<div class="form-group"><input class="form-control" type="text" name="email" value="<?php echo $email; ?>" placeholder="E-mail"></div>
            <div class="form-group"><input class="form-control" type="password" name="password" value="<?php echo $password; ?>" placeholder="Senha"></div>
            <div class="form-group"><button class="btn btn-primary btn-block" type="submit">Log In</button></div>
			<?php
			if ($_GET['error'] == 1)
			{echo "<span style='color: #ff0000; font-size: 10pt;'>E-mail e/ou senha incorretos!</span>";}
			?></form>
    </div>
    <script src="https://kit.fontawesome.com/4e2ec11868.js"></script>
	<script src="js/jquery-3.3.1.min.js"></script>
    <script src="bootstrap/js/bootstrap.min.js"></script>
    <script id="bs-live-reload" data-sseport="49720" data-lastchange="1588443735284" src="js/livereload.js"></script>
</body>

</html>