Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // AUTENTICANDO O USUÁRIO //
- $usuario = strtolower($_POST['usuario']);
- $senha = $_POST['senha'];
- $arquivo = './administradores/' . $usuario . '.txt';
- $senhaencriptada = md5($senha);
- $senhadoarquivo = file_get_contents($arquivo);
- if (file_exists($arquivo)) {
- if($senhaencriptada == $senhadoarquivo){
- // AQUI FICARÁ O SISTEMA DE ADMINISTRAÇÃO //
- echo "certo";
- }else{
- echo "errado";
- }
- } else {
- echo "usuario nao existe";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement