2.58. Variable *global*
Defines a global variable that will be available in all catalogs with the notation @@VARIABLENAME@@. Variable identifiers must begin with a capital letter, and can contain only word characters (A-Z,a-z,0-9 and underscore). They are case-sensitive. If using the ParseVariables directive, only variables in ALL CAPS will be parsed. These are substituted first in any Interchange page, and can contain any valid Interchange tags including catalog variables.
Variable DOCUMENT_ROOT /usr/local/etc/httpd/htdocs
If a variable is called with @_VARIABLE_@, and there is no catalog Variable with its name, the global Variable value will be inserted.
There are several standard variables which should not be used:
MV_FILE
-
Name of the last file read in, as in [file ...] or an externally located perl routine.
MV_NO_CRYPT
-
Set this to 1 to disable encrypted passwords for the AdminUser.
MV_PAGE
-
Name of the last page read in, as in the page called with mv_nextpage or mv_orderpage.
CURRENCY, MV_CURRENCY
-
The current locale for currency.
LANG, MV_LANG
-
The current locale for language.
Some global variables can be set to affect Interchange:
MV_DOLLAR_ZERO
-
This determines what Interchange does to Perl's $0 variable, which contains the operating system's name of the running process, for example in the ps(1) or top(1) commands. Valid settings are:
Setting | Result |
(not set) | 'interchange' |
0 | (do nothing) |
1 | 'interchange --> (CATROOT)' |
string | 'string' |
-
Note that this is set globally once only when the Interchange daemon is started, so it's pointless to change the variable after that.