Advertisement
Guest User

Untitled

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