[eluser]Cristian Gilè[/eluser]
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Security
{
var $ci;
function __construct()
{
$this->ci =& get_instance();
}
function is_logged_in($logged_in)
{
........
........
........
then, to access to uri and session libraries methods:
Code:
$segment = $this->ci->uri->segment();
$priv = $this->ci->session->userdata($segment);
Cristian Gilè