<?php include "autoload.php"; use Lib\Produto; if ($_POST) { $produto = new Produto(); if ($produto->logar($_POST['email'], $_POST['senha'])) { header("Location: consulta_produto.php"); } else { $msg = "Usuário ou senha inválidos"; } } ?> <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <meta name="description" content=""> <meta name="author" content=""> <title>Autenticação | Controle de Estoque</title> <!-- Bootstrap core CSS --> <link href="css/bootstrap.min.css" rel="stylesheet"> <!-- IE10 viewport hack for Surface/desktop Windows 8 bug --> <link href="css/ie10-viewport-bug-workaround.css" rel="stylesheet">