Advertisement
iCherry

Untitled

Jul 22nd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1. <?php
  2. $user = $_POST['user'];
  3. $pass = $_POST['pass'];
  4.  
  5. if(hash("sha256", $user) == file_get_contents('../data/username')
  6. && hash("sha256", $pass) == file_get_contents('../data/password')) {
  7.         include '../data/secure.html';
  8. } else {
  9.     if(isset($_POST)) {
  10.         include '../data/login.html';
  11.     }
  12. }
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement