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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.