header.php only for Admin header.php only for Admin
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

header.php only for Admin

Started by docjackdaniel, October 04, 2025, 04:33:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

docjackdaniel

Hello, is there any way to secure the header.php only for admins ?

I put some links there to make a databasecopy and some other tools.
but i don`t want that every user couls follow my Links..
can i put a query in the header that the links are only shown for an admin user ?!
Or, better.. Some Links if it´s a user and other Links if it`s a admin ?!

Daniel

ron4mac

#1
There is no header.php so I'm not sure what you are referring to. But you can place the shell of an admin tool in tools to just present said links to you.

{edit} corrected an error in the sample tool