Guest User

Untitled

a guest
Mar 12th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. public function loginFunc()
  2. {
  3. $username = (string)$this->input->post('username');
  4. $password = (string)$this->input->post('password');
  5.  
  6. if((strlen($username)<1)||(strlen($password)<1)){
  7. $blank = 1;
  8. }
  9.  
  10. $actualPass = (string)$this->db->query("SELECT password FROM usersas6 WHERE username = '$username' ");
  11.  
  12.  
  13.  
  14. if($actualPass == $password){
  15. header("Location: /CodeIgniter-3.1.7/index.php/admin");
  16. }else{
  17. header("Location: /CodeIgniter-3.1.7/index.php/members");
  18. }
  19.  
  20. }
Add Comment
Please, Sign In to add comment