Showing posts with label Configuration section. Show all posts
Showing posts with label Configuration section. Show all posts

Monday, September 20, 2010

Default section

Default section contains configuration that will be applied to any virtual host that does not have its own configuration section.
Here's an example:
[default]
DisableWB=F
AbsolutePath=Off
Upload=Off
FileCommands=Off
Execute=JavaScript
HiddenEnvVars=PATH,COMP*,System*,Win*
TimeOutSec=10
DefaultDocument=index.wbsp
ADOConnectionString=F
ActivateCGIByExt=wbsp
CGISecurityString=LhBv3KP
MaxInstances=30
HideDocuments=sr,ic,inc,aut,mdb,dbf
The next example will disable usage of WBSP on all virtual hosts, but those that are defined in Servers section:
[default]
DisableWB=T
 

Wednesday, September 15, 2010

Configuration section

This section should be placed on top of the WBSP file and separated from rest of the file with comment. This way WBSP engine will not send anything from this section to the client (e.g. visitor's browser), and all variables and file paths will stay hidden from visitor. Configuration section contains definitions for WBSP variables needed for a specific task. It can have one to seven subsections, depending on purpose of the WBSP page – Include, FormFields, Upload, MsgAndLbl, Referrer check, ErrorMessages and UserData. To learn more about these sections please read the explanations for each section in chapter "Configuration section subsections".

Here's an example (configuration section is marked blue)




Titles


Year published Title ISBN
$wbf[Year published] $wbf[title] $wbf[ISBN]


$wbnavigator[]