Admin check Admin check
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Admin check

Started by mundus, March 11, 2006, 08:37:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mundus

Hello guys,

I need some help, I want to check if the user is a admin but I can't get the code right, does anyone knows the right code?

Thanks in advance,

Arjen

Nibbler


if (GALLERY_ADMIN_MODE){
    echo 'hello admin';
} else {
    echo 'hello normal user';
}