Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once '../config.php';
- require_once 'config.php';
- ?>
- <!doctype html>
- <html>
- <head>
- <meta charset='utf-8'>
- <title><?php echo $constantes->getTituloSite(); ?> - Administração - Login</title>
- <meta name='viewport' content='width=device-width,initial-scale=1.0'>
- <link type='image/x-png' rel='shortcut icon' href=<?php echo URL_BASE . 'img/icones/favicon.png'; ?> >
- <link type='text/css' rel='stylesheet' href=<?php echo URL_BASE . 'scripts/css/resset.css'; ?> >
- <link type='text/css' rel='stylesheet' href=<?php echo URL_BASE . 'scripts/css/site.css'; ?> >
- <script type='text/javascript' src=<?php echo URL_BASE . 'scripts/js/jquery-3.4.1.min.js'; ?> ></script>
- <script type='text/javascript' src=<?php echo URL_BASE . 'scripts/js/jquery.mask.js'; ?> ></script>
- <script type='text/javascript' src=<?php echo URL_BASE . 'scripts/js/mascaras.js'; ?> ></script>
- </head>
- <body>
- <?php
- if (isset ($_SESSION["login"])) require_once "home.php";
- else {
- echo '<div id=login>
- <form action="?" method="post">
- <input type="hidden" name="logar" />
- <input type="text" name="login" id="login" required placeholder="Usuário" />
- <input type="password" name="senha" id="senha" required placeholder="Senha" />
- <input type="submit" value="Entrar" />
- </form>
- </div>';
- }
- if (isset($_POST["logar"])) {
- print_r($_POST);
- $administradoresDao = new AdministradoresDao();
- $administradoresDao->buscarTodos ("WHERE login='" . $_POST["login"] . "' AND senha = '" . $_POST["senha"] . "'");
- $administradoresModelos = new AdministradoresModelos();
- }
- ?>
- </body>
- </html>
- $administradoresDao = new AdministradoresDao();
- if (isset($_POST["logar"])) {
- <?php
- use classesmvcmodelosAdministradoresModelos;
- use classesmvcmodelosAdministradoresDao;
- if (isset($_POST["logar"])) {
- print_r($_POST);
- $administradoresDao = new AdministradoresDao();
- $administradoresDao->buscarTodos ("WHERE login='" . $_POST["login"] . "' AND senha = '" . $_POST["senha"] . "'");
- $administradoresModelos = new AdministradoresModelos();
- };
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement