Advertisement
Guest User

Untitled

a guest
Oct 6th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. //...
  2.  
  3. public function LogIn($user, $password){
  4. if($user === $this->user && $password === $this->password){
  5. $_SESSION["LoggedIn"] = true;
  6. return true;
  7. }
  8.  
  9. else if($user === $this->user && $password === md5($this->password)){
  10. $_SESSION["LoggedIn"] = true;
  11. return true;
  12. }
  13.  
  14. else{
  15. return false;
  16. }
  17. }
  18.  
  19. //...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement