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: 6380
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, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 466 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.05 seconds in which 0.025 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