Jump to content

admin help


Tropickz

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/132234-admin-help/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/132234-admin-help/#findComment-687415
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.