Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //...
- public function LogIn($user, $password){
- if($user === $this->user && $password === $this->password){
- $_SESSION["LoggedIn"] = 1;
- return true;
- }
- else if($user === $this->user && $password === md5($this->password)){
- $_SESSION["LoggedIn"] = 1;
- return true;
- }
- else{
- return false;
- }
- }
- //...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement