Advertisement
Guest User

user

a guest
Apr 19th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <?php
  2. class user
  3. {
  4. private $username;
  5.  
  6. function __construct($username)
  7. {
  8. $this->username=$username;
  9. }
  10.  
  11. function authenticate($username, $password)
  12. {
  13. if ($username == 'tim' && $password == 'ttt') {
  14. return true;
  15. } else {
  16. return false;
  17. }
  18. }
  19. }
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement