1
Mods & Plugins (Requests & Discussions) / display for admin only
« on: December 08, 2002, 07:33:49 PM »
I would like to know the code to add things viewable for admins only.
A simple example would be the Control Panel link at the bottom of a page for admins.
I'd like to add stats to my pages and only have them viewable to admins using the define('PRINT_STATS', '1'); command.
It currently works, but is viewable by all.
Something like : if admin define('PRINT_STATS', '1');
Thank you
A simple example would be the Control Panel link at the bottom of a page for admins.
I'd like to add stats to my pages and only have them viewable to admins using the define('PRINT_STATS', '1'); command.
It currently works, but is viewable by all.
Code: [Select]
Page generated in 0.896900 seconds with 9 queries, spending 0.051000 seconds doing MySQL queries and 0.845900 doing PHP things. GZIP compression enabled
Something like : if admin define('PRINT_STATS', '1');
Thank you