Advertisement
Guest User

Untitled

a guest
Oct 6th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. function login($user,$pass) {
  2. if(isset( $_POST["login"] )) {
  3.  
  4. if($user == strtolower(trim($_REQUEST["username"])) && $pass == sha1($_REQUEST["password"])) {
  5. $_SESSION["user_online"] = true;
  6. $_SESSION["username"] = $_REQUEST["username"];
  7. }
  8. elseif(mysql_num_rows($result) < 1) {
  9. echo "Fehlerhafte Login Daten!";
  10. echo '<meta http-equiv="refresh" content="1; url=index.php">';
  11. }
  12.  
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement