Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Admin check  (Read 2281 times)

0 Members and 1 Guest are viewing this topic.

mundus

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Admin check
« on: March 11, 2006, 08:37:29 pm »

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
Logged

Nibbler

  • Guest
Re: Admin check
« Reply #1 on: March 11, 2006, 08:38:51 pm »

Code: [Select]
if (GALLERY_ADMIN_MODE){
    echo 'hello admin';
} else {
    echo 'hello normal user';
}
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.