Welcome Guest, Not a member yet? Register   Sign In
Best Login script
#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.


Messages In This Thread
Best Login script - by El Forum - 06-03-2008, 11:33 PM
Best Login script - by El Forum - 06-03-2008, 11:52 PM
Best Login script - by El Forum - 06-04-2008, 12:53 AM
Best Login script - by El Forum - 06-04-2008, 01:44 AM
Best Login script - by El Forum - 06-04-2008, 01:46 AM
Best Login script - by El Forum - 06-04-2008, 02:06 AM
Best Login script - by El Forum - 06-04-2008, 02:13 AM
Best Login script - by El Forum - 06-04-2008, 02:32 AM
Best Login script - by El Forum - 06-04-2008, 12:06 PM
Best Login script - by El Forum - 06-04-2008, 04:09 PM
Best Login script - by El Forum - 07-14-2008, 06:28 AM
Best Login script - by El Forum - 07-14-2008, 04:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB