Page: Program_Root/configfile.inc.php

Constant Summary
CONSTANT NAMECONSTANT VALUEDESCRIPTION
AUTO_CONFIG true Set auto-configuration, e.g. dynamically loading of modules
TEMPLATE_DIR ./templates/ The directory where the templates reside
CONFIGFILE_OVERRIDE false Configfile options override form-options
CONFIG_SEP : Seperator for configoptions array
CONFIG_DIR config Directory with configfile(s)
MODULES_DIR modules Directories for modules
INCLUDE_DIR include Directories for include-files
DEFAULT_VAR_CONTENT %s: %s\n Default string for showing options
DEFAULT_VAR_HTMLCONTENT
  • %s: %s\n
  • Default string for showing options in HTML
    TITLE Form output Default Title information for content-modules (also via optons)
    LINE ------------------------------------------------------------\n Definition of a line
    HTML_LINE
    \n
    Definition of an HTML line
    CONTENT_HEADER \n Default header
    CONTENT_FOOTER EndForm Default footer
    CONTENT_HEADER_HTML \n Default header in HTML
    CONTENT_FOOTER_HTML

    EndForm

    Default footer in HTML
    TRANS_BY_DEFAULT true Set the translation function
    VARIABLE_COLOR red Color of substituted variables in messages
    INDEX_COLOR blue Color of index of messages
    ENV_SEPERATOR , Seperator for Environment variables array
    DEFAULT_ENV HTTP_HOST:HTTP_REFERER:HTTP_USER_AGENT Default environment variables report
    FIELDCHECK_SEP : Seperator for Fieldcheck array
    REFEREROPTION_SEP : Seperator for refereroptions array
    REQUIRED_SEP , Seperator for required array
    DEFAULT_MAIL herman@suijsmail.com Default mailaddress to send the forminfo to
    DEFAULT_SUBJECT FH Mailscript Default subject to use for the mail
    DEFAULT_FROM Website form <> Default from to use for the mail
    COOKIE_SEP , Define sperator
    COOKIE_EXPIRE 5*24*60*60 Define expire time of cookies
    CONTENT 1 It is better to leave the rest of the file untouched
    MAIL_CONTENT 1
    DISPLAY_CONTENT 2
    ERROR_CONTENT 3
    DEBUG_CONTENT 4
    REPLY_CONTENT 5
    VARS 0
    ALL_VARS VARS
    SHOW_VARS 1
    SYS_VARS 2
    USR_VARS 3
    COOKIE_VARS 4
    EXIT_ACTION 1 Error level (depricated)
    EXIT_EXECUTION 2 Error level (depricated)
    ERR_DEBUG 1 Error level
    ERR_INP_CONT 2 Error level
    ERR_INP_END 3 Error level with exit
    ERR_CONF_CONT 4 Error level
    ERR_CONF_END 5 Error level with exit
    ERR_DEV_CONT 6 Error level
    ERR_DEV_END 7 Error level with exit
    ERR_CRIT_CONT 8 Error level
    ERR_CRIT_END 9 Error level with exit
    DB_INIT -1 Constant name for debuglevel
    DB_ERROR 1 Constant name for debuglevel
    DB_WARN 2 Constant name for debuglevel
    DB_FLOW 3 Constant name for debuglevel
    DB_INPUT 4 Constant name for debuglevel
    DB_CONF 5 Constant name for debuglevel
    DB_XFLOW 6 Constant name for debuglevel
    DB_INFO 7 Constant name for debuglevel
    DB_DEV 8 Constant name for debuglevel
    DB_ALL 9 Constant name for debuglevel
    LOG_REFERER 1 Constant name for loglevel
    LOG_EMAIL 2 Constant name for loglevel
    LOG_?? 3 Constant name for loglevel
    LOG_VARIABLES 4 Constant name for loglevel
    LOG_ALL 9 Constant name for loglevel
    STEP_EXECLEVEL 10 Number of sub executionlevels
    MAX_STEPS 3 Number of top executionlevels
    MAX_ACTION 3 Number of executionsteps per module
    LOCAL_DIR .
    MOD_EXT .mod.php Modulefile extension
    DEF_EXT .def.xml Includefile extension
    CFG_AUTO_CONFIG 1 Autoconfiguration optionname
    REGEX_MAIL (^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$) Regular expression to recognize an emailaddress
    REGEX_URL ^((http|ftp)://)?([-a-zA-Z0-9]+\.){1,2}([a-zA-Z]{2,4})(/[a-zA-Z0-9_?&/\.]*)*$ Regular expression for URL
    REGEX_TIME ^[0-2]?[0-9] ?[:] ?[0-5][0-9]( ?[:] ?+[0-5][0-9])$ Regular expression for Time
    REGEX_DATE ^([0-2]?[0-9]|3[01]) ?[/-] ?(0?[0-9]|1[012]) ?[/-] ?[0-9]{1 -,4} Regular expression for Date
    REGEX_PHONE ^[-\+0-9\(\) ]+$ Regular expression for Phone nrs
    COMMENT_LINE (#|\/\/|\/\*| ?\*).*$ Regular expression to recognize commentlines in files
    _FALSE (false|0) Define all boolean false values in options as a regex (case insensitive)
    REPLACE true Define addto_vars replace value
    DONT_REPLACE false Define addto_vars donot_replace value


    Function Summary

    Constant Detail

    AUTO_CONFIG

    AUTO_CONFIG = ->true<-

    Set auto-configuration, e.g. dynamically loading of modules
     This option includes a routine to check all options to match with
     defined options in a specific module. If it does it is automatically
     loaded. This decreases performance, because it uses an XML-routine for
     the XML-configuration files of the modules
    
    

    TEMPLATE_DIR

    TEMPLATE_DIR = ->./templates/<-

    The directory where the templates reside
    
    

    CONFIGFILE_OVERRIDE

    CONFIGFILE_OVERRIDE = ->false<-

    Configfile options override form-options
     Make options in configfile override options in form
    
    

    CONFIG_SEP

    CONFIG_SEP = ->:<-

    Seperator for configoptions array
    
    

    CONFIG_DIR

    CONFIG_DIR = ->config<-

    Directory with configfile(s)
    
    

    MODULES_DIR

    MODULES_DIR = ->modules<-

    Directories for modules
    
    

    INCLUDE_DIR

    INCLUDE_DIR = ->include<-

    Directories for include-files
    
    

    DEFAULT_VAR_CONTENT

    DEFAULT_VAR_CONTENT = ->%s: %s\n<-

    Default string for showing options
    
    

    DEFAULT_VAR_HTMLCONTENT

    DEFAULT_VAR_HTMLCONTENT = ->

  • %s: %s\n<-

    Default string for showing options in HTML
    
    

    TITLE

    TITLE = ->Form output<-

    Default Title information for content-modules (also via optons)
    
    

    LINE

    LINE = ->------------------------------------------------------------\n<-

    Definition of a line
    
    

    HTML_LINE

    HTML_LINE = ->


    \n<-

    Definition of an HTML line
    
    

    CONTENT_HEADER

    CONTENT_HEADER = ->\n<-

    Default header
    
    

    CONTENT_FOOTER

    CONTENT_FOOTER = ->EndForm<-

    Default footer
    
    

    CONTENT_HEADER_HTML

    CONTENT_HEADER_HTML = ->\n<-

    Default header in HTML
    
    

    CONTENT_FOOTER_HTML

    CONTENT_FOOTER_HTML = ->

    EndForm

    <-

    Default footer in HTML
    
    

    TRANS_BY_DEFAULT

    TRANS_BY_DEFAULT = ->true<-

    Set the translation function
    
    

    VARIABLE_COLOR

    VARIABLE_COLOR = ->red<-

    Color of substituted variables in messages
    
    

    INDEX_COLOR

    INDEX_COLOR = ->blue<-

    Color of index of messages
    
    

    ENV_SEPERATOR

    ENV_SEPERATOR = ->,<-

    Seperator for Environment variables array
    
    

    DEFAULT_ENV

    DEFAULT_ENV = ->HTTP_HOST:HTTP_REFERER:HTTP_USER_AGENT<-

    Default environment variables report
    
    

    FIELDCHECK_SEP

    FIELDCHECK_SEP = ->:<-

    Seperator for Fieldcheck array
    
    

    REFEREROPTION_SEP

    REFEREROPTION_SEP = ->:<-

    Seperator for refereroptions array
    
    

    REQUIRED_SEP

    REQUIRED_SEP = ->,<-

    Seperator for required array
    
    

    DEFAULT_MAIL

    DEFAULT_MAIL = ->herman@suijsmail.com<-

    Default mailaddress to send the forminfo to
    
    

    DEFAULT_SUBJECT

    DEFAULT_SUBJECT = ->FH Mailscript<-

    Default subject to use for the mail
    
    

    DEFAULT_FROM

    DEFAULT_FROM = ->Website form <><-

    Default from to use for the mail
    
    

    COOKIE_SEP

    COOKIE_SEP = ->,<-

    Define sperator
    
    

    COOKIE_EXPIRE

    COOKIE_EXPIRE = ->5*24*60*60<-

    Define expire time of cookies
    
    

    CONTENT

    CONTENT = ->1<-

    It is better to leave the rest of the file untouched
    
    

    MAIL_CONTENT

    MAIL_CONTENT = ->1<-

    
    

    DISPLAY_CONTENT

    DISPLAY_CONTENT = ->2<-

    
    

    ERROR_CONTENT

    ERROR_CONTENT = ->3<-

    
    

    DEBUG_CONTENT

    DEBUG_CONTENT = ->4<-

    
    

    REPLY_CONTENT

    REPLY_CONTENT = ->5<-

    
    

    VARS

    VARS = ->0<-

    
    

    ALL_VARS

    ALL_VARS = ->VARS<-

    
    

    SHOW_VARS

    SHOW_VARS = ->1<-

    
    

    SYS_VARS

    SYS_VARS = ->2<-

    
    

    USR_VARS

    USR_VARS = ->3<-

    
    

    COOKIE_VARS

    COOKIE_VARS = ->4<-

    
    

    EXIT_ACTION

    EXIT_ACTION = ->1<-

    Error level (depricated)
    
    

    EXIT_EXECUTION

    EXIT_EXECUTION = ->2<-

    Error level (depricated)
    
    

    ERR_DEBUG

    ERR_DEBUG = ->1<-

    Error level
    
    

    ERR_INP_CONT

    ERR_INP_CONT = ->2<-

    Error level
    
    

    ERR_INP_END

    ERR_INP_END = ->3<-

    Error level with exit
    
    

    ERR_CONF_CONT

    ERR_CONF_CONT = ->4<-

    Error level
    
    

    ERR_CONF_END

    ERR_CONF_END = ->5<-

    Error level with exit
    
    

    ERR_DEV_CONT

    ERR_DEV_CONT = ->6<-

    Error level
    
    

    ERR_DEV_END

    ERR_DEV_END = ->7<-

    Error level with exit
    
    

    ERR_CRIT_CONT

    ERR_CRIT_CONT = ->8<-

    Error level
    
    

    ERR_CRIT_END

    ERR_CRIT_END = ->9<-

    Error level with exit
    
    

    DB_INIT

    DB_INIT = ->-1<-

    Constant name for debuglevel
    
    

    DB_ERROR

    DB_ERROR = ->1<-

    Constant name for debuglevel
    
    

    DB_WARN

    DB_WARN = ->2<-

    Constant name for debuglevel
    
    

    DB_FLOW

    DB_FLOW = ->3<-

    Constant name for debuglevel
    
    

    DB_INPUT

    DB_INPUT = ->4<-

    Constant name for debuglevel
    
    

    DB_CONF

    DB_CONF = ->5<-

    Constant name for debuglevel
    
    

    DB_XFLOW

    DB_XFLOW = ->6<-

    Constant name for debuglevel
    
    

    DB_INFO

    DB_INFO = ->7<-

    Constant name for debuglevel
    
    

    DB_DEV

    DB_DEV = ->8<-

    Constant name for debuglevel
    
    

    DB_ALL

    DB_ALL = ->9<-

    Constant name for debuglevel
    
    

    LOG_REFERER

    LOG_REFERER = ->1<-

    Constant name for loglevel
    
    

    LOG_EMAIL

    LOG_EMAIL = ->2<-

    Constant name for loglevel
    
    

    LOG_??

    LOG_?? = ->3<-

    Constant name for loglevel
    
    

    LOG_VARIABLES

    LOG_VARIABLES = ->4<-

    Constant name for loglevel
    
    

    LOG_ALL

    LOG_ALL = ->9<-

    Constant name for loglevel
    
    

    STEP_EXECLEVEL

    STEP_EXECLEVEL = ->10<-

    Number of sub executionlevels
    
    

    MAX_STEPS

    MAX_STEPS = ->3<-

    Number of top executionlevels
     Be carefull: when setting smaller than 10. The execnumbers used in the
     modules is build as follows: 10 means runlevel 1 step 0 (first), 19
     means runlevel 1 step 9 (10th). If MAX_STEPS is set to 9 then 19, 29,
     29, etc are not executed anymore.
    
    

    MAX_ACTION

    MAX_ACTION = ->3<-

    Number of executionsteps per module
    
    

    LOCAL_DIR

    LOCAL_DIR = ->.<-

    
    

    MOD_EXT

    MOD_EXT = ->.mod.php<-

    Modulefile extension
    
    

    DEF_EXT

    DEF_EXT = ->.def.xml<-

    Includefile extension
    
    

    CFG_AUTO_CONFIG

    CFG_AUTO_CONFIG = ->1<-

    Autoconfiguration optionname
     Because the file xml.inc.php is quite large and may downgrade the
     performance of the whole script, you can turn of auto-configuration in
     the configfile.mod.php (must become xml config one day) Config-options
     numbered. This option can dynamically be turned on or off.
    
    

    REGEX_MAIL

    REGEX_MAIL = ->(^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$)<-

    Regular expression to recognize an emailaddress
    
    

    REGEX_URL

    REGEX_URL = ->^((http|ftp)://)?([-a-zA-Z0-9]+\.){1,2}([a-zA-Z]{2,4})(/[a-zA-Z0-9_?&/\.]*)*$<-

    Regular expression for URL
    
    

    REGEX_TIME

    REGEX_TIME = ->^[0-2]?[0-9] ?[:] ?[0-5][0-9]( ?[:] ?+[0-5][0-9])$<-

    Regular expression for Time
    
    

    REGEX_DATE

    REGEX_DATE = ->^([0-2]?[0-9]|3[01]) ?[/-] ?(0?[0-9]|1[012]) ?[/-] ?[0-9]{1 -,4}<-

    Regular expression for Date
    
    

    REGEX_PHONE

    REGEX_PHONE = ->^[-\+0-9\(\) ]+$<-

    Regular expression for Phone nrs
    
    

    COMMENT_LINE

    COMMENT_LINE = ->(#|\/\/|\/\*| ?\*).*$<-

    Regular expression to recognize commentlines in files
    
    

    _FALSE

    _FALSE = ->(false|0)<-

    Define all boolean false values in options as a regex (case insensitive)
    
    

    REPLACE

    REPLACE = ->true<-

    Define addto_vars replace value
    
    

    DONT_REPLACE

    DONT_REPLACE = ->false<-

    Define addto_vars donot_replace value
    
    


    Function Detail