Cek User/Admin Login

 1 = Pengguna Admin

2 = Pengguna Users


public function __construct(){

parent :: __construct();

if($this->session->userdata('role') !=1 ){

$this->session->set_flashdata('pesan','<div class="alert alert-warning alert-dismissible">

                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>

                <h4><i class="icon fa fa-warning"></i> Anda Belum Login!</h4>


              </div>');

redirect('Auth');

}


}




Cek User/Admin Login Cek User/Admin Login Reviewed by Leo on 23:48 Rating: 5

No comments