Welcome Guest, Not a member yet? Register   Sign In
how to create premission ..!
#1

[eluser]Unknown[/eluser]
i mean when i login as user , i cant go to the admin page also i type the link true ,
example : my admin page like : http://localhost/exam/index.php/admin/admincp
when i am a normal user it will return some false information like : you are not admin ..! something like this ..! and when i login as admin , i can come in ..!
i have trie use session put in the admin controller
Code:
class admin extends controller
{
    
    function admin()
    {
        parent::Controller();
        if($this->session->userdata('level')==1)
        {
            return true;
        }
        else
        {
            return false;
        }
    }

i know i was wrong , because when i type the url i can come in the admin page also i'm just a normal user ..! please help me to fix this problem ..! Thank so much ..!


Messages In This Thread
how to create premission ..! - by El Forum - 11-30-2009, 08:16 AM
how to create premission ..! - by El Forum - 11-30-2009, 10:26 AM
how to create premission ..! - by El Forum - 11-30-2009, 10:54 AM
how to create premission ..! - by El Forum - 12-01-2009, 05:30 AM
how to create premission ..! - by El Forum - 12-01-2009, 07:06 AM
how to create premission ..! - by El Forum - 02-18-2010, 04:40 PM
how to create premission ..! - by El Forum - 02-19-2010, 05:59 AM
how to create premission ..! - by El Forum - 02-19-2010, 10:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB