Page 1 of 1 1
Topic Options
#8156 - 2001-04-18 09:38 AM Administrators
attiahia Offline
Hey THIS is FUN

Registered: 2000-03-27
Posts: 268
Is the following function the best way to identify whether the user is an Administrator or not?

IF INGROUP ( "\\@WKSTA\Administrators" ) = 2
$USRTYP= "ADMINSTRATOR"
ELSE
$USRTYP= "USER"


Is there any other method or function?

Top
#8157 - 2001-04-18 09:49 AM Re: Administrators
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6372
Loc: Stuttgart, Germany
attiahia,

if you add an endif , this will work !


Jochen

_________________________



Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (adamlevine) and 165 anonymous users online.
Newest Members
katherinknul, phamthuy, xuantu075, skygreen2031, amelindarķe
17629 Registered Users

Generated in 0.072 seconds in which 0.041 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org