Advertisement
Guest User

Untitled

a guest
May 20th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <?php
  2. include 'includes.inc.php';
  3.  
  4. class LoginAction implements IAction
  5. {
  6. public function __construct ()
  7. {
  8.  
  9. }
  10. public function actionIsset ()
  11. {
  12. $user = $t_POST["username"];
  13. $pass = $t_POST["password"];
  14. if (isempty($user) || isempty($pass))
  15. {
  16. return false;
  17. }
  18. //check in baza de date sa vad daca exista userul si parola asta -> vezi lab2
  19.  
  20. return true;
  21. }
  22.  
  23.  
  24. public function execute ()
  25. {
  26. if(actionIsset() == true)
  27. }
  28. else
  29. {
  30. throw new ActionNotSetException;
  31. }
  32. }
  33. }
  34.  
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement