<?php session_start(); include_once 'functions/config/config.php'; try { carregaIncludes(array("conexao", "login"), "login"); } catch (Exception $e) { echo $e->getMessage(); } if ($_SERVER['REQUEST_METHOD'] == 'POST') { if (isset($_POST['logar'])) { $login = addslashes($_POST['login']); $password = addslashes(md5($_POST['password'])); if (logar($login, $password)) { $_SESSION['logado_admin'] = true; header("Location: inc/painel.php"); } else { $erro = "Usuário ou senha inválidos!"; } } } ?> <html> <head> <meta charset=utf-8> <title>Painel do Administrador</title> <link rel="stylesheet" type="text/css" href="css/style_login.css"> </head> <body>
<?php session_start(); include_once '../functions/config/config.php'; try { carregaIncludes(array("conexao", "login", "url", "categoria", "utils", "administrador", "client", "meta", "pizza", "Pager", "Common", "Jumping", "foto"), "admin"); } catch (Exception $e) { echo $e->getMessage(); } verificaLogado('logado_admin'); ?> <html> <head> <meta charset=utf-8> <meta name=description content=""> <meta name=viewport content="width=device-width, initial-scale=1"> <title>Painel Administrativo</title> <link rel="stylesheet" type="text/css" href="/treinos/php/siteCompleto/admin/css/style_painel.css"> <script type="text/javascript" src="/treinos/php/siteCompleto/admin/inc/js/jquery.js"></script> <script type="text/javascript" src="/treinos/php/siteCompleto/admin/inc/js/tiny_mce/tinymce.min.js"></script> <!-- <script type="text/javascript" src="localhost/treinos/php/siteCompleto/admin/inc/js/tiny.js"></script> --> <script type="text/javascript" src="/treinos/php/siteCompleto/admin/inc/js/meta.js"></script> <script type="text/javascript" src="/treinos/php/siteCompleto/admin/inc/js/buscar.js"></script> </head> <body> <div id="container"> <div id="header">