Page 2 of 2 <12
Topic Options
#113580 - 2004-11-18 02:32 AM Re: How to password protect a script?
1984 Offline
Starting to like KiXtart

Registered: 2003-08-14
Posts: 150
eyyy dont blame me :-)

I solve my issue, using
if @Userid not ingroup "balblabla" ...

dont realy need any password...

If u got better idea.... lets rock then :-)
_________________________
"... Great minds talk about idea' s, average minds talk about events and samll minds talks about people...!"

Top
#113581 - 2004-11-18 02:51 AM Re: How to password protect a script?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Code:

if @Userid not ingroup "balblabla"


is not KiXtart-compliant code and thus will not have solved your problem.
_________________________
There are two types of vessels, submarines and targets.

Top
#113582 - 2004-11-18 06:01 PM Re: How to password protect a script?
1984 Offline
Starting to like KiXtart

Registered: 2003-08-14
Posts: 150
This will:

Break On
If NOT InGroup ("kixart")

$Form = CreateObject("Kixtart.FORM")
$Form.CAPTION = "Authentication for @FULLNAME"
$Form.SCALEWIDTH = 300
$Form.SCALEHEIGHT = 70
$Form.FONTSIZE = 8
$Form.forecolor = &000AAA
$Form.FONTbold = "true"
$Form.FONTNAME = "Verdana"
$Form.PrintXY(15,5," Authentication faild!")
$Form.PrintXY(15,20,"Please conntact your local helpdesk!")

$Form.CENTER


$Obtn = $form.Button("OK",100,40,100,20)
$Obtn.OnClick = "OKbtn()"

$Form.Show
While $Form.Visible
$=Execute($Form.DoEvents())
Loop
$Form=0

Exit
EndIf

Function OKbtn()

Quit

EndFunction
_________________________
"... Great minds talk about idea' s, average minds talk about events and samll minds talks about people...!"

Top
#113583 - 2004-11-18 07:25 PM Re: How to password protect a script?
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Two items I see.

If NOT InGroup ("kixart")
Would be faster and easier to find if you also specified the Domain
If NOT InGroup ("MyDomain\kixart")


When using the QUIT it might be a good idea to set some sort of error level as well.

Top
#113584 - 2004-11-18 07:39 PM Re: How to password protect a script?
1984 Offline
Starting to like KiXtart

Registered: 2003-08-14
Posts: 150
Will do, thanx Doc :-)

What r u suggesting on the other thread Tracking/log system

_________________________
"... Great minds talk about idea' s, average minds talk about events and samll minds talks about people...!"

Top
Page 2 of 2 <12


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

Who's Online
0 registered and 248 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.095 seconds in which 0.072 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