Hi,
Ok, I have a feeling there is gonna be a really easy solution for this - but I can't work it out :(
At the moment, I need to work out if a user is "admin" - to give them access to a certain function. Now, I'm already doing stuff via the "action", so only members/mods/admins can view the functions I'm working on - but doing:
use Data::Dumper;
print Dumper($USER);
..doesn't really give me the info I need.
Furthermore, I'm looking in the UserGroups table - and I can't see any obviouse way to determine if a username is classed as "admin" (only seems there are groups for Guest/Registered/Moderators).
Am I missing something really stupid? (been a long day, so wouldn't suprise me :P)
TIA
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Ok, I have a feeling there is gonna be a really easy solution for this - but I can't work it out :(
At the moment, I need to work out if a user is "admin" - to give them access to a certain function. Now, I'm already doing stuff via the "action", so only members/mods/admins can view the functions I'm working on - but doing:
Code:
print $IN->header; use Data::Dumper;
print Dumper($USER);
..doesn't really give me the info I need.
Furthermore, I'm looking in the UserGroups table - and I can't see any obviouse way to determine if a username is classed as "admin" (only seems there are groups for Guest/Registered/Moderators).
Am I missing something really stupid? (been a long day, so wouldn't suprise me :P)
TIA
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!