Tropickz Posted November 11, 2008 Share Posted November 11, 2008 Hello, I am needing to know some php codes I can use to secure my admincp to check if user has permission (ie..admin/mod) to be in admin folder. (my dbsql has table users.... $status = admin, regular, mod, vip and so on) #1. What can I add to each file to look for permissions ? or #2. Is there a code I could use to create a php page and just add include ../blah.php on each page? or #3. Is is possible to add some kind of token to my admin folder so all files within the admin folder don't need to look since they past the token to get into admin folder ? Any help or a link I could read upon is appreciated. I searched this forum already and found something from 2006, but not exactly what I'm asking. Quote Link to comment Share on other sites More sharing options...
DeanWhitehouse Posted November 11, 2008 Share Posted November 11, 2008 What can I add to each file to look for permissions ? A .htaccess file maybe using it's password protection feature, or a page that checks and include it in all the folders files. Is there a code I could use to create a php page and just add include ../blah.php on each page? Yes, i don't quite get the question so i can't say much more. Is is possible to add some kind of token to my admin folder so all files within the admin folder don't need to look since they past the token to get into admin folder ? Yes, if i understand you correct, you can put a date in the file and check the date in comparison. Quote Link to comment Share on other sites More sharing options...
Tropickz Posted November 11, 2008 Author Share Posted November 11, 2008 Ahh Ok thanks Blade. Ill read up on option 3 now I know what to search for. Thanks ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.