Showing posts with label command. Show all posts
Showing posts with label command. Show all posts

Wednesday, October 20, 2010

HTUSER ($WBFN)

Availability
HTUSER is available for use with all WBSP commands when authentication is used.
Syntax
$WBFN{HTUSER}
$WBFN[HTUSER]

ArgumentsHTUSER function does not have any arguments.
 
Returns
User name used for authentication (WB_HTUsr).

read more

Tuesday, October 19, 2010

HTPASS ($WBFN)

Availability
HTPASS is available for use with all WBSP commands when authentication is used.
Syntax
$WBFN{HTPASS}
$WBFN[HTPASS]

ArgumentsHTPASS function does not have any arguments.
 
Returns
Password used for authentication (WB_HTPass).

read more

HTAccess File

HTAccess file is ordinary ASCII text file that contains WhizBase variables WB_Realm, WB_LoginPage and username/password pairs, organized by following structure:
[Authentication]
WB_AuthType=type (valid settings B-Basic, C-Cookie)
WB_LoginFile=filename (ignored if WB_AuthType=B)
WB_Realm=Realm

[AuthUsers]
username=password
username1=password1
...
usernameN=passwordN

For security reasons we strongly recommend to use wbsp extension for HTAccess file and to add WB_Command=R and in it.
e.g.
[FormFields]
WB_Command=R
[Authentication]
WB_HTAccess=C
WB_LoginFile=/login.htm
[AuthUsers]
username=password
username1=password1


You can not read content of this file!

You can also use aut extension and set the server to handle  files with that extension by WBSP and do not change HiddeDocuments SSC variable, or you can place HTAccess file above wwwroot directory and use absolute path. For this you have to change AbsolutePath SSC variable.

read more

Tuesday, October 5, 2010

HEX ($WBFN)

Availability
HEX is available for use with all WBSP commands.
Syntax
$WBFN{HEX(decnumber)}
$WBFN[HEX(decnumber)]

Arguments
decnumber - any integer in range 0 to 2147483647.

Returns
A string representing the hexadecimal value of the number passed as an argument.
Example



Hexadecimal value of letter A is $wbfn[HEX(65)]!

Result
Hexadecimal value of letter A is 41! 
 

Wednesday, September 22, 2010

DF (WB_Command) - Delete file

Description
This command is used for irreversibly deleting file specified in variable WB_FileName. The file will not be sent to recycle bin, but deleted permanently.

read more

Monday, September 20, 2010

DU (WB_Command) - Delete DB user or group

Description
This command is used for deleting specified user (WB_DBUser) or specified group (WB_DBGroup) from workgroup file (WB_System). The result can be displayed using $WBAdmin[] tag.

read more

DG (WB_Command) - Delete DB user from group

Description
This command is used for deleting specified user (WB_DBUser) from specified group (WB_DBGroup)  in workgroup file (WB_System). The user will not be deleted from workgroup file, but simply will not be a member of the group. The result can be displayed using $WBAdmin[] tag.

read more

Tuesday, September 14, 2010

CD (WB_Command) - Compact database

Description
This command is used for compacting MS Access database *.MDB file. Variable WB_BaseName is required.


read more

CP (WB_Command) - Change DB user password

Description
This command is used for setting a new password for specified user (WB_DBUser) in workgroup file (WB_System), using old password value (WB_DBOldPass) and new password value (WB_DBNewPass) that can be verified using control password value (WB_DBNPassCh). The result can be displayed using $WBAdmin[] tag.

read more