|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
Permission Question
Hello fellas. I created my first login and password authorization pages the other day. However, I was wondering what the concept is behind permissions. In other words, say I am an administrator. When I login I should be able to see things that a 'normal' user cannot see. can someone explain this concept to me?
Thanks in advance -- Jason |
|
#2
|
|||
|
|||
|
RE: Permission Question
i have this on my site aswell. In the members table, i have a permission column, and the default is 1, admin is 2. When the user logs in, the page checks to see what permission level the user has, if its 1, just displays the normal links, if it is 2, then it displays my admin features, such as being able to delete news threads, and members etc...very useful on my site
|
|
#3
|
|||
|
|||
|
RE: Permission Question
can you show me a snippet of the code? I am trying to understand how you actually do the checking.
TIA -- Jason |
|
#4
|
|||||
|
|||||
|
RE: Permission Question
php Code:
okay, what i have done, is everyone, no matter what user level, sees the normal links in the members area, so i didnt need to do anything for that, all i do, is create my admin links (my special privledges) on a different page, (adminLinks.php) and if that user has a permission LEVEL of 2, then it includes the special features. Does that make sense? |
|
#5
|
|||
|
|||
|
RE: Permission Question
LOL,....after I posted the 2nd time I got to thinking about it,....you posted exactly what I was thinking,...lol,.... but thanks for the code post.
-- Jason |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Permission Question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|