Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'includes.inc.php';
- class LoginAction implements IAction
- {
- public function __construct ()
- {
- }
- public function actionIsset ()
- {
- $user = $t_POST["username"];
- $pass = $t_POST["password"];
- if (isempty($user) || isempty($pass))
- {
- return false;
- }
- //check in baza de date sa vad daca exista userul si parola asta -> vezi lab2
- return true;
- }
- public function execute ()
- {
- if(actionIsset() == true)
- }
- else
- {
- throw new ActionNotSetException;
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement