<?php require 'php/Usuarios.php'; $usuarios = new Usuarios(); $usuarios->protege(); ?> <!DOCTYPE html> <html lang="pt-br"> <head> <link rel="stylesheet" type="text/css" href="../css/bootstrap.css"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <!-- Static navbar --> <div class="navbar navbar-default navbar-static-top" role="navigation"> <div class="container"> <div class="navbar-header"> <a class="navbar-brand" href="#">Sistema de login</a> </div> </div> </div> <div class="container"> <!-- Main component for a primary marketing message or call to action --> <div class="jumbotron"> <h1>Login realizado em sucesso!</h1> <p>Parabéns você acessou a página protegida.</p> <p>
<?php header('Content-Type: text/html; charset=utf-8'); define('DS', DIRECTORY_SEPARATOR); define('ROOT', dirname(__DIR__)); include ROOT . DS . 'config/Config.php'; include ROOT . DS . 'src/Usuarios.php'; $users = new Usuarios(new Config()); $users->protege(); $users->cadastrar($_POST); ?> <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <title>Administrador - ADMIN</title> <link rel="stylesheet" href="../view/css/reset.css"> <link rel="stylesheet" href="../view/css/style.css"> </head> <body> <header> <center> <h1>BASE WEBDEV! - ADMIN</h1> </center> </header> <main> <section class="content"> <h1>CADASTRO USUARIO</h1> <form action="cadastrar.php" method="POST"> Nome: <input type="text" name="nome"><br /> Email: <input type="email" name="email"><br />