<?php if (isset($_POST['sair'])) { include "../controle/ValidarAcesso.php"; $validarAcesso = new ValidarAcesso(); $validarAcesso->logout(); } ?> <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> <!-- Jquery --> <script src="visao/scriptsDeApoio/jquery.min.js"></script> <!-- Bootstrap --> <link rel="stylesheet" href="visao/bootstrap-3.3.5-dist/css/bootstrap.min.css"> <link rel="stylesheet" href="visao/bootstrap-3.3.5-dist/css/bootstrap-theme.min.css"> <script src="visao/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script> <!-- Fim Bootstrap --> <!-- IE10 viewport hack for Surface/desktop Windows 8 bug --> <script src="visao/scriptsDeApoio/ie10-viewport-bug-workaround.js"></script> <link rel="stylesheet" href="visao/estilo.css"> <!-- Apoio a elementos HTML5 e media queries no IE8 --> <!--[if lt IE 9]> <script src="visao/scriptsDeApoio/html5shiv.min.js"></script>
<?php session_start(); if ($_SERVER['REQUEST_METHOD'] == 'POST' and isset($_SESSION[$_SERVER['PHP_SELF']]) and $_SESSION[$_SERVER['PHP_SELF']] == $_POST['submit']) { include "controle/ValidarAcesso.php"; $validarAcesso = new ValidarAcesso(); $validarAcesso->validar($_POST['tipo'], $_POST['usuario'], $_POST['senha']); } ?> <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>Trabalho PSS</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Bootstrap --> <link rel="stylesheet" href="visao/bootstrap-3.3.5-dist/css/bootstrap.min.css"> <link rel="stylesheet" href="visao/bootstrap-3.3.5-dist/css/bootstrap-theme.min.css"> <script src="visao/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script> <!-- fim Bootstrap --> <!-- Estilos personalizados da página --> <link rel="stylesheet" href="visao/estilo.css"> <!-- validações <script src="visao/scriptsDeApoio/jquery.maskedinput.js"></script> <script src="visao/scriptsDeApoio/validacoes.js"></script> -->