The following environment variables are currently available in NeoWebScript:
webenv
contains information from the
webserver as key-value pairs. (In a normal CGI application, this data
would be passed in through Unix environment variables.)
The following variables are normally present:
the time the file was last modified in integer-seconds-since-1970 format
the default time format passed to strftime in C, or clock in NeoWebScript
load_response
and
load_cookies
are available to parse out the variables
passed from a form, in the former case, and from the persistent
data "cookie" mechanism, in the latter.
<Directory>
). Format is
- NeoWebServerConf key value
which results in the equivalent of the Tcl code
- set NeoWebServerConf($key) $value
in the trusted interpreter. Further interpretation is
up to the Tcl code. If value
contains spaces,
it must be quoted with double quotes.
- NeoWebDirConf key value
set NeoWebDirConf($key) $value
value
contains spaces,
it must be quoted with double quotes.
The following configurations are supported:
NeoWebDirConf Supervisor 1
which creates trusted interpreter (the default is to create a safe interpreter)
NeoWebDirConf Postgres value
If value is "Yes", then a Postgres-enabled NeoWebScript server will know to connect to a database owned by the user. If value is "Any" the server can connect to any database owned by any user. See httpd/conf/postgres.tcl for details.