Table of Contents
As mentioned when discussing applications in Chapter 9, Applications and Variable Scope, application preferences are defined in the "Biferno.config.bfr" file located in the application folder. The default file "Biferno.config.bfr " created by Biferno on its first run in the home directory has the following content:
<?
APPLICATION_NAME = "BifernoMain"; /* Name of the application */
SESSION = false; /* Use session variables? */
SESSION_TIMEOUT = 15; /* Timeouts for session users (minutes) */
MAX_ERRFILES = 2048; /* Max error files in folder ERRORS_FOLDER */
DEVELOPER_IP = "*,local"; /* IPs of developers */
ERRORS_FOLDER = ""; /* Folder for error files */
ERROR_PAGE = ""; /* Page error for non-developer users */
ADMIN_PASSWORD = ""; /* Password for bifernoadmin */
object.Hide(ADMIN_PASSWORD);
ADMIN_IP = ""; /* IPs allowed to access bifernoadmin */
ADMIN_PROTOCOL = "https"; /* Protocols allowed by bifernoadmin */
FILE_NOT_FOUND_PAGE = ""; /* Page to serve if file not found */
CACHE = false; /* Cache files in memory? */
TIMEOUT = 2; /* Scripts Timeout (minutes) */
HEADER = ""; /* Header file path */
FOOTER = ""; /* Footer file path */
ACCESS_CONTROL = ""; /* Security check file */
ACCESS_CONTROL_NOACCESS = ""; /* Security no access file */
ACCESS_CONTROL_REALM = ""; /* Security realm name */
DATE_FORMAT = "d-m-y h:m:s"; /* Default format for dates */
WEBMASTER = "webmaster@mysite.com"; /* WebMaster */
MAIL_HOST = "smtp@mysite.com"; /* Smtp Mail Server Host */
NOTIFY_MAIL_ERR = false; /* Send mail to webmaster if error */
DECIMAL_SEP = ","; /* Decimal separator */
THOUSAND_SEP = "."; /* Thousand separator */
SEARCH_AND = "&"; /* Default search AND operator */
SEARCH_OR = "|"; /* Default search OR operator */
SEARCH_NOT = "!"; /* Default search NOT operator */
SEARCH_WILD = "*"; /* Default search WILD char */
?>
Table 3.1, “Biferno Configuration File Variables” provides a listing and explanation of the meaning of all variables. We refer to the corresponding chapter for the details.
Table 3.1. Biferno Configuration File Variables
| Variable | Meaning |
|---|---|
| APPLICATION_NAME | Application name (Chapter 9, Applications and Variable Scope). |
| SESSION | Specifies if session variables can be used in the application (Chapter 9, Applications and Variable Scope). |
| SESSION_TIMEOUT | The number of minutes of user inactivity after which unutilized session variables will be release (Chapter 9, Applications and Variable Scope). |
| MAX_ERRFILES | The maximum number of files that can be saved in the error folder (Chapter 9, Applications and Variable Scope and Chapter 16, Error Handling and Debugging). |
| DEVELOPER_IP | The IP address authorized to receive complete debugging information in error dialogs (Chapter 9, Applications and Variable Scope and Chapter 16, Error Handling and Debugging). Its value can be a mask identifying multiple addresses, as in "local,194.125.123.*,215.132.125.10". The "local" keyword allows local scripts to display the complete error screen (see Appendix 2, Executing and Scheduling Local Scripts). |
| ERRORS_FOLDER | The folder where error files are saved for users that are not authorized to receive complete debugging information in error dialogs (Chapter 9, Applications and Variable Scope and Chapter 16, Error Handling and Debugging). |
| ERROR_PAGE | The error page displayed users that are not authorized to receive complete debugging information (Chapter 9, Applications and Variable Scope and Chapter 16, Error Handling and Debugging). |
| ADMIN_PASSWORD | The password to access the bifernoadmin application on
http://
(see "Biferno: bifernoadmin Guide"). |
| ADMIN_IP | The IP address that is allowed to access the bifernoadmin
application on
http://.
Its value can be a mask identifying multiple addresses, as in
"194.125.123.*,215.132.125.10" (see "Biferno: bifernoadmin Guide"). |
| ADMIN_PROTOCOL | The protocol (e.g. http or https) allowed for communication with
the bifernoadmin application on
http://.
It may be a set of protocols. (see "Biferno: bifernoadmin Guide"). |
| FILE_NOT_FOUND_PAGE | The error page displayed users that are not authorized to receive complete debugging information for the "script file not found" error (Chapter 9, Applications and Variable Scope and Chapter 16, Error Handling and Debugging). |
| CACHE | Specifies if application scripts should be cached to optimize execution time (Chapter 22, Cache Management). |
| TIMEOUT | The maximum script execution time of a script in minutes, after which script execution is interrupted (Chapter 9, Applications and Variable Scope). |
| HEADER | The header file to insert before every script of the application (Chapter 9, Applications and Variable Scope and Chapter 17, HTML Integration). |
| FOOTER | The footer file to insert after every script of the application (Chapter 9, Applications and Variable Scope and Chapter 17, HTML Integration). |
| ACCESS_CONTROL | The access control file (Chapter 21, Access Control). |
| ACCESS_CONTROL_NOACCESS | The file to display to users that are not authorized to enter the application (Chapter 21, Access Control). |
| ACCESS_CONTROL_REALM | The name to display to users when they are authenticated for access to protected applications (Chapter 21, Access Control). |
| DATE_FORMAT | The default format for dates (Chapter 14, Date and Time Functionality). |
| WEBMASTER | The webmaster name to use in error pages for users that are not authorized to receive complete debugging (Chapter 9, Applications and Variable Scope and Chapter 16, Error Handling and Debugging). |
| MAIL_HOST | The email server used to send email to the webmaster in case of errors (Chapter 16, Error Handling and Debugging). |
| NOTIFY_MAIL_ERR | If true enables sending emails to the webmaster in case of errors
(Chapter 16, Error Handling and Debugging). |
| DECIMAL_SEP | The decimal separator for numbers (Chapter 12, String Manipulation). |
| THOUSAND_SEP | The thousands separator for numbers (Chapter 12, String Manipulation). |
| SEARCH_AND | The search character in AND for the search class (Chapter 15, Database Interaction). |
| SEARCH_OR | The search character in OR for the search class (Chapter 15, Database Interaction). |
| SEARCH_WILD | The wildcard search character for the search class (Chapter 15, Database Interaction). |