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
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
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
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

