Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. <?php
  2. require_once '../config.php';
  3. require_once 'config.php';
  4. ?>
  5. <!doctype html>
  6. <html>
  7. <head>
  8.  
  9. <meta charset='utf-8'>
  10. <title><?php echo $constantes->getTituloSite(); ?> - Administração - Login</title>
  11. <meta name='viewport' content='width=device-width,initial-scale=1.0'>
  12. <link type='image/x-png' rel='shortcut icon' href=<?php echo URL_BASE . 'img/icones/favicon.png'; ?> >
  13. <link type='text/css' rel='stylesheet' href=<?php echo URL_BASE . 'scripts/css/resset.css'; ?> >
  14. <link type='text/css' rel='stylesheet' href=<?php echo URL_BASE . 'scripts/css/site.css'; ?> >
  15. <script type='text/javascript' src=<?php echo URL_BASE . 'scripts/js/jquery-3.4.1.min.js'; ?> ></script>
  16. <script type='text/javascript' src=<?php echo URL_BASE . 'scripts/js/jquery.mask.js'; ?> ></script>
  17. <script type='text/javascript' src=<?php echo URL_BASE . 'scripts/js/mascaras.js'; ?> ></script>
  18.  
  19. </head>
  20.  
  21. <body>
  22.  
  23. <?php
  24. if (isset ($_SESSION["login"])) require_once "home.php";
  25. else {
  26.  
  27. echo '<div id=login>
  28.  
  29. <form action="?" method="post">
  30. <input type="hidden" name="logar" />
  31. <input type="text" name="login" id="login" required placeholder="Usuário" />
  32. <input type="password" name="senha" id="senha" required placeholder="Senha" />
  33.  
  34. <input type="submit" value="Entrar" />
  35.  
  36. </form>
  37.  
  38. </div>';
  39. }
  40.  
  41.  
  42.  
  43. if (isset($_POST["logar"])) {
  44.  
  45. print_r($_POST);
  46.  
  47. $administradoresDao = new AdministradoresDao();
  48.  
  49. $administradoresDao->buscarTodos ("WHERE login='" . $_POST["login"] . "' AND senha = '" . $_POST["senha"] . "'");
  50.  
  51. $administradoresModelos = new AdministradoresModelos();
  52.  
  53.  
  54. }
  55. ?>
  56.  
  57. </body>
  58.  
  59. </html>
  60.  
  61. $administradoresDao = new AdministradoresDao();
  62.  
  63. if (isset($_POST["logar"])) {
  64.  
  65. <?php
  66.  
  67. use classesmvcmodelosAdministradoresModelos;
  68. use classesmvcmodelosAdministradoresDao;
  69.  
  70. if (isset($_POST["logar"])) {
  71.  
  72. print_r($_POST);
  73.  
  74. $administradoresDao = new AdministradoresDao();
  75.  
  76. $administradoresDao->buscarTodos ("WHERE login='" . $_POST["login"] . "' AND senha = '" . $_POST["senha"] . "'");
  77.  
  78. $administradoresModelos = new AdministradoresModelos();
  79.  
  80.  
  81. };
  82. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement