Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.9.0
- * @ Author : DeZender
- * @ Release on : 08.08.2019
- * @ Official site : http://DeZender.Net
- *
- */
- class Login extends CI_Controller
- {
- public function __construct()
- {
- parent::__construct();
- $this->load->helper('form');
- $this->load->helper('url');
- $this->load->helper('security');
- $this->load->library('session');
- $this->load->model('LoginModel');
- }
- public function Index()
- {
- $this->load->view('LoginView');
- }
- public function Ingresar()
- {
- $username = $this->input->post('username');
- $passwd = $this->input->post('passwd');
- $data = $this->LoginModel->Ingresar($username, $passwd);
- if ($data) {
- $r = $data->result();
- $newdata = ['IdUsuario' => $r[0]->IdUsuario, 'nombres' => $r[0]->nombres, 'idperfil' => $r[0]->idperfil];
- $this->session->set_userdata($newdata);
- ......................................................................
- ........................................
- .............
Advertisement
Add Comment
Please, Sign In to add comment