Guest User

Untitled

a guest
Oct 26th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.0.9.0
  8. * @ Author : DeZender
  9. * @ Release on : 08.08.2019
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class Login extends CI_Controller
  15. {
  16. public function __construct()
  17. {
  18. parent::__construct();
  19. $this->load->helper('form');
  20. $this->load->helper('url');
  21. $this->load->helper('security');
  22. $this->load->library('session');
  23. $this->load->model('LoginModel');
  24. }
  25.  
  26. public function Index()
  27. {
  28. $this->load->view('LoginView');
  29. }
  30.  
  31. public function Ingresar()
  32. {
  33. $username = $this->input->post('username');
  34. $passwd = $this->input->post('passwd');
  35. $data = $this->LoginModel->Ingresar($username, $passwd);
  36.  
  37. if ($data) {
  38. $r = $data->result();
  39. $newdata = ['IdUsuario' => $r[0]->IdUsuario, 'nombres' => $r[0]->nombres, 'idperfil' => $r[0]->idperfil];
  40. $this->session->set_userdata($newdata);
  41. ......................................................................
  42. ........................................
  43. .............
Advertisement
Add Comment
Please, Sign In to add comment