Welcome Guest, Not a member yet? Register   Sign In
Best Login script
#11

[eluser]aataqwa[/eluser]
Hi, stuffradio

how to implementation function
Code:
function set_permission($level)
in controller ??:

thank you
#12

[eluser]stuffradio[/eluser]
In the controller go:

Code:
<?php

Class YourController extends Controller
{

function YourController()
{
  parent::Controller();
  $this->load->library('pbmauth', '', true);
}

function index()
{
  $this->pbmauth->set_permission(2);
}

}

Then it would check what permission the user logged in has. If it has under 2, it wouldn't let you in... if it has 2 or more it would let you in.




Theme © iAndrew 2016 - Forum software by © MyBB