Welcome Guest, Not a member yet? Register   Sign In
hosting problem
#11

[eluser]mhungou04[/eluser]
this is my processuer controler
Code:
<?php
class ProcessUser extends Controller
{
    function ProcessUser()
    {
        parent::Controller();
        $data['title']="Login";
        $this->load->view('common/header',$data);
            
    }
    function index()
    {
        $this->load->view('user/login');
        $this->load->view('common/footer');
    }
    function Login()//check user
    {
        $this->simplelogin->login($this->input->post('username'),$this->input->post('password'));
        if($this->session->userdata('logged_in'))
          {
            redirect('Order/ListOrderByStatus/0');
          }
        else
        {
               //User is not logged in
            redirect('/ProcessUser', 'refresh');
        }
    }

    function Logout()
    {    
        $this->simplelogin->logout();
    }
}


Messages In This Thread
hosting problem - by El Forum - 07-14-2008, 04:06 AM
hosting problem - by El Forum - 07-14-2008, 04:09 AM
hosting problem - by El Forum - 07-14-2008, 04:19 AM
hosting problem - by El Forum - 07-14-2008, 04:43 AM
hosting problem - by El Forum - 07-14-2008, 04:49 AM
hosting problem - by El Forum - 07-14-2008, 04:53 AM
hosting problem - by El Forum - 07-14-2008, 04:56 AM
hosting problem - by El Forum - 07-14-2008, 04:56 AM
hosting problem - by El Forum - 07-14-2008, 05:08 AM
hosting problem - by El Forum - 07-14-2008, 05:43 AM
hosting problem - by El Forum - 07-14-2008, 05:50 AM
hosting problem - by El Forum - 07-14-2008, 06:14 AM
hosting problem - by El Forum - 07-14-2008, 06:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB