Exemple #1
0
 public function login()
 {
     $this->user = new admins();
     $login = SANATIZE::escape($_POST['name']);
     $password = SANATIZE::escape($_POST['password']);
     $login = $this->user->login($login, $password);
     return $login;
 }
Exemple #2
0
 public static function get($item)
 {
     if (isset($_POST[$item])) {
         return SANATIZE::escape($_POST[$item]);
     } else {
         if (isset($_GET[$item])) {
             return SANATIZE::escape($_GET[$item]);
         }
     }
     return null;
 }
Exemple #3
0
 public function process()
 {
     $this->user = new Users();
     $remember = false;
     if (isset($_POST['remember']) && $_POST['remember'] == 'on') {
         $remember = true;
     }
     $login = SANATIZE::escape($_POST['log-id']);
     $password = SANATIZE::escape($_POST['log-password']);
     $login = $this->user->login($login, $password, $remember);
     return $login;
 }