/*
 *  $Id$
 *  $Revision$
 *
 *  Settings LCL's die vroeger in ASP werden gedefinieerd
 *  Synchroniseert compleet, met behoud van customer-overrules
/*

 */

CREATE GLOBAL TEMPORARY TABLE tmp_set (
  fac_setting_module
    VARCHAR2(3) NOT NULL,
  fac_setting_flags
    NUMBER(10) DEFAULT 0, -- invisible
  fac_functie_key
    NUMBER(10) NOT NULL,
  fac_setting_name
    VARCHAR2(64) UNIQUE NOT NULL,
  fac_setting_type
    VARCHAR2(32) NOT NULL,
  fac_setting_default
    VARCHAR2(1024),
  fac_setting_description
    VARCHAR2(250) UNIQUE NOT NULL,
  fac_setting_comment
    VARCHAR2(2000)
) ON COMMIT PRESERVE ROWS;

// LET OP: naam wordt altijd naar lowercase geconverteerd
#define DEFINE_SETTING(m, f, fn, n, t, v, d, c)\
INSERT INTO tmp_set (fac_setting_module, fac_setting_flags, fac_functie_key, fac_setting_name, fac_setting_type, fac_setting_default, fac_setting_description, fac_setting_comment) \
 SELECT m, f, fac_functie_key, LOWER(n), t, v, COALESCE(d, n), NULL \
   FROM fac_functie WHERE fac_functie_code = fn;

DELETE FROM tmp_set;
COMMIT;

// _FACILITOR ziet altijd alles en mag alles wijzigen
//    0 = Onzichtbaar, alleen via script te wijzigen
//    1 = PRSSYS zichtbaar
//    8 = Default waarde wordt gezet in ASP (met name custpath afhankelijk)
// WEB_FACFAC (vroegere _FACILITOR), door FACILITOR medewerker te wijzigen
// WEB_PRSSYS Functioneel Applicatie Beheer, mag klant zelf wijziging
// WEB_FACTAB Technisch applicatie beheer, server instellingen
DEFINE_SETTING('FAC', 0000, 'WEB_FACFAC', 'licensed_fe_users'                     , 'number'                      , '0'                           , 'Licensed nr of fe-users')
DEFINE_SETTING('FAC', 0000, 'WEB_FACFAC', 'licensed_key_users'                    , 'number'                      , '0'                           , 'Licensed nr of key-users')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'logoff_return_url'                     , 'string'                      , '../../'                      , 'Return url to go to after log off')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'checkBrowser'                          , 'number'                      , '0'                           , 'Check for IE6 at login (1) or not.')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'ProxyServerIPAddress'                  , 'string'                      , NULL                          , 'For webserver to reach outside world')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'language_toggles'                      , 'array'                       , 'NL'                          , 'Allow language toggle for alternate languages')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'multi_language_option'                 , 'number'                      , '0'                           , 'Enable multi language')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'hiresTimer'                            , 'number'                      , '0'                           , 'internal use only')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'crypto_provider'                       , 'number'                      , '1'                           , '0=JavaScript, 1=Slnkdwf.dll')
DEFINE_SETTING('FAC', 0000, 'WEB_FACTAB', '_optimizer_use_feedback'               , 'string'                      , ''                            , '_optimizer_use_feedback (Future use)')
DEFINE_SETTING('FAC', 0000, 'WEB_FACTAB', 'optimizer_features_enable'             , 'string'                      , ''                            , 'optimizer_features_enable (Future use)')
DEFINE_SETTING('FAC', 0000, 'WEB_FACTAB', 'cursor_sharing'                        , 'string'                      , ''                            , 'cursor_sharing (Future use)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'cache_changecounter'                   , 'number'                      , '0'                           , 'Increment by one to reset FCLT caching.')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'csstemplate'                           , 'json'                        , '{}'                          , 'Color scheme.')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'csscust'                               , 'string'                      , ''                            , 'cust.css replacement (Future use)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'cssenvcust'                            , 'string'                      , ''                            , 'custenv.css replacement (Future use)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'cssfordesktop'                         , 'string'                      , ''                            , 'jQuery themeroller desktop replacement')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'cssformobile'                          , 'string'                      , ''                            , 'jQuery themeroller mobile replacement')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'autoscrollmode'                        , 'number'                      , '255'                         , 'autoscroll mode (Future use)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'image_path_local'                      , 'string'                      , '\\'                          , 'path used by LAN for flexproperties of type X (fclt.ini:Documentdir)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'image_path_local_regexp'               , 'string'                      , NULL                          , 'Reguliere expressie, bijvoorbeed /^G:/i')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'image_path_virtual'                    , 'string'                      , NULL                          , 'path used by WEB for flexproperties of type X')
DEFINE_SETTING('FAC', 0000, 'WEB_FACTAB', 'flexFilesPath'                         , 'string'                      , NULL                          , 'Path for Flexbestanden type ''F'' en ''M'', zonder eindslash')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'flexAllowedExt'                        , 'string'                      , '.*\.(doc|docx|xls|xlsx|jpg|jpeg|png|gif|bmp|dwg|dwf|eml|pdf|msg|zip|vsd|txt|ppt|pptx|oft|rtf|tif|tiff|csv|dot|xml|mcw|rar|encrypted|gz|gzip|7z)$', 'Allowed extensions')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'flexPreviewExt'                        , 'string'                      , '.*\.(jpg|jpeg|png|gif|bmp)$' , 'Extentions of attachments to preview in show_mld')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'allowedLinkRegex'                      , 'string'                      , '^((ftp|http|https):\/\/|(mailto|tel):)' , 'Allowed link-regex in between [link][/link]-tags')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'allowedImgRegex'                       , 'string'                      , '^((http|https):\/\/)'    , 'Allowed url-regex in between [img][/img]-tags')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'flex_mimetypes'                        , 'json'                        , '{ "jpg": "image/jpeg", "jpeg": "image/jpeg" , "png": "image/png", "bmp": "image/bmp", "gif": "image/gif", "pdf": "application/pdf" }', 'Supported streaming mimetypes')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'flex_min_size'                         , 'number'                      , '64'                          , 'E-mail attachments smaller (in bytes) than this are silently ignored')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'impAllowedExt'                         , 'string'                      , '.*\.(txt|csv|xml)$'          , 'Allowed importfile extensions')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'flexExtensionFilter'                   , 'string'                      , NULL                          , 'All files can be uploaded. "PDF DOC TIFF XLS" would filter')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'flexFilesOrdering'                     , 'number'                      , '0'                           , 'Ordering for list of flexfilenames {0=ascending | 1=descending}')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'MaxDownloadSize'                       , 'number'                      , '-1'                          , 'Should match IIS Metabase AspBufferingLimit for download warning (Future use)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'flex_X_is_URL'                         , 'number'                      , '1'                           , '0=browse-knop 1=gewoon input field. Deprecated 2018.1')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'fac_tabframes'                         , 'number'                     , '0'                            , 'Turn all subframes into tabs')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'fac_accept_terms'                      , 'number'                     , '0'                            , '0 (default) no accept, 1=must accept L("lcl_terms_filename")')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'menu_start_open'                       , 'boolean'                     , 'true'                        , 'Menu is open by default')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'portalmenu_combine_single'             , 'boolean'                     , 'false'                       , 'If a portalmenukop consists of 1 item, should the image be moved in between the menukop and the menuitem?')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'favorites_on_portal_menu'              , 'number'                      , '1'                           , 'Display pinned favorites on the -desktop- portal menu { 0=no, 1=yes (default) } ')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'menu_collapse_threshold'               , 'number'                      , '5'                           , 'Max number menugroups in a tab before we will collapse')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'menu_tab_toggles_portalmenu'           , 'number'                      , '1'                           , 'Also activate corresponding portal_menu in body (1) or not (0)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'menu_image_path'                       , 'string'                      , NULL                          , 'relative! path to folder storing menu pictures and files')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'menu_use_menuicons'                    , 'number'                      , '1'                           , 'Use the images of the portalmenu in the regular menu as well (1) or do not (0)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'fac_gui_counter_menu_daily'            , 'boolean'                     , 'true'                        , 'Compress menu usage count to anonymous daily or personal count')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'custfunctionspath'                     , 'string'                      , NULL                          , 'path to custfunctions.wsc')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'view_dwf_with_slnkdwf'                 , 'boolean'                     , 'false'                       , 'View DWF document files using SLNKDWF')
DEFINE_SETTING('INS', 0001, 'WEB_FACTAB', 'ins_history'                           , 'string'                      , '1'                           , 'historymode for flexproperties {0 | 1}')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'os_logon'                              , 'boolean'                     , 'false'                       , 'enable NT domain logon {true | false}')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'os_logon_exclude'                      , 'array'                       , ''                            , 'Disable NT domain logon, for example  "HTTP_VIA,HTTP_REVERSE_VIA,HTTP_X_BLUECOAT_VIA"')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'aut_login_strip_domain'                , 'number'                     , '1'                            , 'Strip AD domain from login name { 0=no, 1=yes (default) } (Future use)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'helppage_url'                          , 'string'                      , 'https://help.facilitor.nl/fac_wrapper.php', 'Helppage')
DEFINE_SETTING('FAC', 0000, 'WEB_FACFAC', 'helppage_secret'                       , 'string'                      , 'yuszkRZXlGqjOgyE'            , 'Helppage hmac secret')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'logcenter_url'                         , 'string'                      , 'https://logcentre.facilitor.nl/?SSO=CUSTOMER', 'Logcenter url')
DEFINE_SETTING('FAC', 0000, 'WEB_FACFAC', 'logcenter_secret'                      , 'string'                      , 'd1RLxRhQMvuU7MkdVeLlcBdYKZkUNh7N', 'Logcenter jwt secret')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'forum_url'                             , 'string'                      , 'http://wordpress.facilitor.nl', 'Forum url (future use)')
DEFINE_SETTING('FAC', 0000, 'WEB_FACFAC', 'forum_secret'                          , 'string'                      , 'rQf1yKO1VWP4xm3iGef1WgzFo5LPKBEz', 'Forum jwt secret (future use)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'timepickercolumns'                     , 'number'                      , '4'                           , 'Nr of columns for timepicker (increase for long days or short intervals)')
DEFINE_SETTING('PRS', 0001, 'WEB_FACTAB', 'prs_max_dep_level'                     , 'number'                      , '2'                           , 'number of levels between prs_bedijf and prs_perslid (max = 5)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'qp_maxrows'                            , 'number'                      , '100'                         , 'Maximum number of rows to show, displays ''lcl_qp_maxrows1/2'' if exceeded')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'qp_maxrows2'                           , 'number'                      , '1000'                        , 'Maximum number of rows to show, displays ''lcl_qp_maxrows3'' if exceeded')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'rs_maxchar'                            , 'number'                      , '150'                         , 'vanaf hier afgekapt en ''Meer...'' tonen.')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'rs_mobile_maxchar'                     , 'number'                      , '80'                          , 'vanaf hier afgekapt en ''...'' tonen.')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'max_tracking_length'                   , 'number'                      , '30'                          , 'Max. displayed length of single value in a tracking line before ellipsis...')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'asp_timeout'                           , 'number'                      , '-1'                          , 'Copy the IIS configuration asp AspScriptTimeout setting (future use)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'asp_max_upload'                        , 'number'                      , '-1'                          , 'Copy the IIS configuration setting AspMaxRequestEntityAllowed (future use)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'asp_max_download'                      , 'number'                      , '-1'                          , 'Copy the IIS configuration setting AspBufferingLimit (future use)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'prodsearch_rank'                       , 'array'                       , 'faq,besartikel,resruimte,mldstdm,prsperslid,resartikel,resdeel', 'Ranking in product search')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'kosten_klant_default'                  , 'number'                      , '1'                           , 'initial status of kosten klant checkbox { 0 - unchecked | 1 - checked }')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'prs_password_validation'               , 'string'                      , '.{8,}'                       , 'At least 8 characters')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'prs_password_fail_limit'               , 'number'                      , '999'                         , 'Lockout after many password failures (Future use)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'prs_password_expiration'               , 'number'                      , '-1'                          , 'Password expire days (Future use)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'prs_password_hash_factor'              , 'number'                      , '16'                          , 'Password hash workfactor (2^x)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'prs_password_hash_length'              , 'number'                      , '20'                          , 'Password hash length')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'prs_password_otp_window'               , 'number'                      , '60'                          , 'OTP windows (x seconds early/late allowed)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'prs_password_otp_window2'              , 'number'                      , '600'                         , 'OTP windows for resync (x seconds early/late allowed, future use)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'prs_password_otp_mode'                 , 'number'                      , '0'                           , 'OTP mode (0=off,1=prssys only, 2=everyone with password, 3=everyone)')

DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'prs_login_lockout_delay'               , 'float'                       , '0.2'                         , 'Lockout seconds after each failed attempt (exponential)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'prs_login_lockout_delayfactor'         , 'float'                       , '2'                           , 'Exponent base for prs_login_lockout_delay')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'prs_login_attempts'                    , 'number'                      , '5'                           , 'Lockout username after this many failed attempts')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'prs_login_lockout_expire'              , 'number'                      , '15'                          , 'Lockout minutes after prs_login_attempts failed attempts')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'prs_einddatum_login_grace'             , 'number'                      , '-1'                          , 'Disallow login after prs_einddatum. (-1=disabled, >=0 disallow after einddatum+nnn days')

DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'prs_allow_impersonate'                 , 'boolean'                     , 'false'                       , 'Allow impersonation by PRSSYS')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'prs_personal_noti_options'             , 'number'                      , '15'                          , 'Options that are provided for personal notification overrules (+8:popup,+4:sms,+2:mail,+1:portal)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'iconcolumns'                           , 'number'                      , '6'                           , 'number of columns in an iconmenu page.')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'NotifyMessageInterval'                 , 'number'                      , '0'                           , 'time (seconds) between NotifyMessage.asp [=Check for popups] refreshes. 0=disable')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'usrrap_refreshrate'                    , 'number'                      , '60'                          , 'time between auto refresh of selected usrraps (seconds)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'refresher_doubleauto'                  , 'number'                      , '3'                           , 'Double buffering delay (seconds)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'PerformInterval'                       , 'number'                      , '0'                           , 'time (seconds) between shared/performancetester.asp refreshes 0=disable')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'perfmon_threshold'                     , 'number'                      , '-1'                          , 'time threshold for statements to be monitored for performance {milliseconds | -1}')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'login_url'                             , 'string'                      , 'appl/shared/login.asp'       , 'url providing login-services')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'login_pda_url'                         , 'string'                      , 'appl/shared/login.asp'       , 'url providing login-services when pda detected. Future use')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'login_use_email'                       , 'number'                      , '0'                           , 'use email to check user authentication { 0 - use oslogin | 1 - use email }')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'login_remember_days'                   , 'number'                      , '30'                          , 'Days to remember login. { 0 disable }')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'fac_firstlogin_url'                    , 'string'                      , 'appl/fac/welcome.asp'        , 'Url to show upon first login of user')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'fac_firstlogin_expire'                 , 'number'                      , '14'                          , 'Remove firstlogin_url automatically after nn days')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'email_password'                        , 'number'                      , '0'                           , 'Show ''wachtwoord vergeten'' optie (1=voor mensen met wachtwoord, 2=voor iedereen)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'self_register'                         , 'number'                      , '0'                           , 'Can user self-register? ( 0 disable )')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'self_register_expire'                  , 'number'                      , '60'                          , 'Minutes to respond to confirmation e-mail ( default 60 )')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'self_register_groep_keys'              , 'array'                       , ''                            , 'Custom fac_groep options for the self_registerscreen, 1 option: auto pick that one, 2+ gives a dropdown menu')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'self_register_srtperslid_key'          , 'number'                      , '-1'                          , 'Default srtperslid key')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'self_register_afdeling_key'            , 'number'                      , '-1'                          , 'Default afdeling key')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'self_register_email_whitelist'         , 'string'                      , ''                            , 'Regexp email-restriction eg. \@facilitor\.nl$')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'self_fromaddress'                      , 'string'                      , 'FACILITOR registratie <no_reply@facilitor.nl>', 'From-address for confirmation e-mail self-registration')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'self_replyaddress'                     , 'string'                      , 'no_reply@facilitor.nl'       , 'Reply-address for confirmation e-mail self-registration')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'sys_ip_restrict'                       , 'string'                      , ''                            , 'Regexp ip-restriction')
DEFINE_SETTING('FAC', 0000, 'WEB_FACFAC', 'sys_ip_restrict_internal'              , 'string'                      , ''                            , 'Regexp ip-restriction internal')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'sys_ip_jail'                           , 'string'                      , ''                            , 'Regexp ip-jail to prevent roaming (future use)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'sys_ip_lockmode'                       , 'number'                      , '1'                           , 'Automatic logoff on ip-change (0 disable)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'auto_https'                            , 'number'                      , '3'                           , '0=not https, 1=http redirects to https, (3=also all cookies ;Secure)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'hsts_maxage'                           , 'number'                      , '31536000'                    , 'HTTP Strict Transport Security max-age (0=off, eg. 31536000 for one year)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'qrc_enable'                            , 'number'                      , '1'                           , 'Enable QRC-authentication feature (1) or not (0)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'qr_auth_expire'                        , 'number'                      , '5'                           , 'Minutes QRC-code is valid (default 5)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'qr_color'                              , 'number'                      , '5452544'                     , 'QRC color')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'fac_nieuws_forum_url'                  , 'string'                      , 'http://wordpress.facilitor.nl/api/get_category_posts/?category_id=40&count=15&date_format=d-m-Y', NULL)
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'fac_nieuws_forum_max'                  , 'number'                      , '6'                           , 'Max number of news items to show (<0 to disable)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'fac_emailtoken_auth_expire'            , 'number'                      , '0'                           , 'Minutes e-mail login token is valid (default 0)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'fac_apitoken_auth_expire'              , 'number'                      , '0'                           , 'Minutes api auth token is valid (default 0)')
DEFINE_SETTING('PRS', 0001, 'WEB_FACTAB', 'prs_dep_all'                           , 'boolean'                     , 'false'                       , 'allow attaching persons on all department level { true | false }')
DEFINE_SETTING('PRS', 0001, 'WEB_FACFAC', 'prs_dep_string'                        , 'string'                      , 'd.prs_afdeling_naam'         , NULL)
DEFINE_SETTING('PRS', 0001, 'WEB_FACFAC', 'prs_pers_string'                       , 'string'                      , ' p.prs_perslid_naam|| NVL2( p.prs_perslid_voorletters, '', '' ||  p.prs_perslid_voorletters, '''')|| NVL2( p.prs_perslid_tussenvoegsel, '' '' || p.prs_perslid_tussenvoegsel, '''')|| NVL2( p.prs_perslid_voornaam, '' ('' || p.prs_perslid_voornaam || '')'', '''')', NULL)
DEFINE_SETTING('PRS', 0001, 'WEB_FACFAC', 'prs_contactpers_string'                , 'string'                      , 'cp.prs_contactpersoon_naam || NVL2(cp.prs_contactpersoon_voorletters, '', '' || cp.prs_contactpersoon_voorletters, '''')|| NVL2(cp.prs_contactpersoon_tussenv, '' '' || cp.prs_contactpersoon_tussenv, '''')|| NVL2(cp.prs_contactpersoon_voornaam, '' ('' || cp.prs_contactpersoon_voornaam || '')'', '''')', NULL)
DEFINE_SETTING('PRS', 0001, 'WEB_FACFAC', 'prs_kpn_string'                        , 'string'                      , ' NVL2(k.prs_kostenplaats_nr, prs_kostenplaats_nr || '' ''|| lcl.x(''prs_kostenplaats_omschrijving'', k.prs_kostenplaats_key, k.prs_kostenplaats_omschrijving), '''')', NULL)
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'alg_loc_string'                        , 'string'                      , ' l.alg_locatie_omschrijving || '' ('' || l.alg_locatie_code || '')'' ', NULL)
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'email_regexp'                          , 'string'                      , '^\s*[A-Z0-9&\._%+-]+@[A-Z0-9\.-]+\.[A-Z]{2,4}\s*([,;]\s*[A-Z0-9&\._%+-]+@[A-Z0-9\.-]+\.[A-Z]{2,4}\s*)*$', 'Meerdere gescheiden door , of ;')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'email_regexp_single'                   , 'string'                      , '^\s*[A-Z0-9&\._%+-]+@[A-Z0-9\.-]+\.[A-Z]{2,4}\s*$', 'Eén email adres')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'ReplyAddress'                          , 'string'                      , ''                            , 'ReplyTo Address when e-mailing manually')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'widgetportal'                          , 'number'                      , '0'                           , 'Use a widgetpage as startpage (1) or the standard page (0)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'portalnewslength'                      , 'number'                      , '96'                          , 'Max. length of a line in statusinfo frame for hyperlinked messages {0..512}')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'portalnewsmax'                         , 'number'                      , '25'                          , 'Max. number of messages in statusinfo frame {-1=unlimited | n=limit to n most recent messages}')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'portalmsgmax'                          , 'number'                      , '5'                           , 'Max. number of messages in messages frame {-1=unlimited | n=limit to n most recent messages | 0=no messages}')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'portalmenucols'                        , 'number'                      , '2'                           , 'Nr cols in portal menu')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'portalmenulines'                       , 'number'                      , '5'                           , 'Max lines in protalmenu (incl. "More..."')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'facilitiespast_bes'                    , 'number'                      , '2'                           , 'Number of days in the past to show (my) facilities for orders')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'facilitiesfuture_bes'                  , 'number'                      , '31'                          , 'Number of days in the future to show (my) facilities for orders')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'facilitiespast_bez'                    , 'number'                      , '2'                           , 'Number of days in the past to show (my) facilities for visitors')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'facilitiesfuture_bez'                  , 'number'                      , '31'                          , 'Number of days in the future to show (my) facilities for visitors')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'facilitiespast_mld'                    , 'number'                      , '10'                          , 'Number of days in the past to show (my) facilities for calls')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'facilitiesfuture_mld'                  , 'number'                      , '31'                          , 'Number of days in the future to show (my) facilities for calls')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'facilitiespast_res'                    , 'number'                      , '2'                           , 'Number of days in the past to show (my) facilities for reservations')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'facilitiesfuture_res'                  , 'number'                      , '31'                          , 'Number of days in the future to show (my) facilities for reservations')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'personal_satisfaction_period'          , 'number'                      , '100'                         , 'Number of days for which the personal satisfaction rating is calculated')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'currency_icon'                         , 'string'                      , 'fa-eur'                      , 'Currency icon. Use fa-money for generic')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'currency_pref'                         , 'string'                      , 'EUR '                        , 'Currency prefix')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'currency_suff'                         , 'string'                      , ''                            , 'Currency suffix')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'cal_showOn'                            , 'string'                      , 'button'                      , '''button'' or ''focus'' or ''both''')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'show_ordernr'                          , 'number'                      , '0'                           , '0=never,>0=always, 3=also bo-list')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'can_selfapprove'                       , 'number'                      , '999999'                      , 'I can approve myself below or equal this limit or someone else must approve always above this limit')
DEFINE_SETTING('PRS', 0001, 'WEB_FACFAC', 'prs_approvemethod'                     , 'number'                      , '1'                           , 'Approval tree: 1 = kp.budgethouder, kpngroep.verantwoordelijke, 2 = traverse up departments if kp.budgethouder undefined, 3=traverse up departments for budgethouder with adequate profile')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'use_simple_sso'                        , 'number'                      , '0'                           , 'Use user id decoding UID_DEC (Simple Single Signon uit of aan zetten) {0=no | 1=yes}')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'fclt_web_url'                          , 'string'                      , ''                            , 'Url to the FACILITOR software (future use)')
DEFINE_SETTING('FAC', 0000, 'WEB_FACFAC', 'idp_internal_anyuser'                  , 'boolean'                     , 'false'                       , 'AUT_IDP_INTERNAL sso can be used to login for any user')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'note_collapsed'                        , 'number'                      , '1'                           , 'Notes overview collapsed/fold up (=1 default) or unfold (=0)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'workflow_collapsed'                    , 'number'                      , '1'                           , 'Workflow overview collapsed/fold up (=1 default) or unfold (=0)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'use_capacity_planning'                 , 'number'                      , '0'                           , 'De inzetbaarheid van personen en uitvoerbaarheid bij opdrachten kan worden aangegeven (0=nee {default}, 1=ja)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'allow_framed_facilitor'                , 'boolean'                     , 'false'                       , 'Is it allowed to use FACILITOR in an (i)frame?')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'p3p_header'                            , 'string'                      , ''                            , 'P3P privacy policy')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'cors_header'                           , 'string'                      , ''                            , 'CORS header (future use)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'http_meta_head'                        , 'string'                      , '<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">', 'Submitted in each html <head>')
DEFINE_SETTING('ALG', 0001, 'WEB_PRSSYS', 'alg_onrgoed_recent'                    , 'number'                      , '60'                          , 'Tijdsinterval voor de recente onroerendgoed wijzigingen in minuten')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_melding_recent'                    , 'number'                      , '60'                          , 'Tijdsinterval voor de recente wijzigingen in minuten')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_opdracht_recent'                   , 'number'                      , '60'                          , 'Tijdsinterval voor de recente opdracht wijzigingen in minuten')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_opdracht_flags'                    , 'number'                      , '0'                           , 'Number of flags fo/bo can define for orders. Max 10')
DEFINE_SETTING('CNT', 0001, 'WEB_PRSSYS', 'cnt_contract_recent'                   , 'number'                      , '60'                          , 'Tijdsinterval voor de recente contract wijzigingen in minuten')
DEFINE_SETTING('CNT', 0001, 'WEB_PRSSYS', 'cnt_contract_requestor_required'       , 'boolean'                     , 'false'                       , 'Set the contract requestor field as required (true) or optional (false)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_reservering_recent'                , 'number'                      , '60'                          , 'Tijdsinterval voor de recente reserverings wijzigingen in minuten')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'mobile_enabled'                        , 'number'                      , '0'                           , 'Is FACILITOR Mobile available {0 | 1}')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'mobile_imageportal'                    , 'boolean'                     , 'true'                        , 'Use the fancy mobile icon portal (true) or text portal (false)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'qp_maxrows_mobile'                     , 'number'                      , '50'                          , 'Maximum number of rows to show mobile, displays ''lcl_qp_maxrows'' if exceeded')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'mobile_password'                       , 'number'                      , '0'                           , 'get the login password sent to your mobile')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'mobile_password_pda'                   , 'number'                      , '0'                           , 'get the login password sent your mobile when using a mobile')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'mobile_password_exp'                   , 'number'                      , '15'                          , 'time to enter the login code received on the mobile in minutes.')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_restrict_mobile_to_me'             , 'number'                      , '0'                           , 'For mobile, show calls within scope (0) or only list calls assigned to me (1) with scope')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'mobile_alg_level'                      , 'string'                      , 'G'                           , 'Level to use for mobile scoping: L(ocatie), G(ebouw) of V(erdieping)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'mobile_position_required'              , 'number'                      , '1'                           , 'A current position is required for geo-scoping (1) or not (0)')
DEFINE_SETTING('CAD', 0001, 'WEB_FACFAC', 'fg_dwf_path'                           , 'string'                      , NULL                          , 'full filepath to FACILITOR Graphics DWF files')
DEFINE_SETTING('CAD', 0001, 'WEB_FACFAC', 'fg_dwf_path_concept'                   , 'string'                      , NULL                          , NULL)
DEFINE_SETTING('CAD', 0001, 'WEB_FACFAC', 'fg_vlucht_path'                        , 'string'                      , NULL                          , 'full filepath to FACILITOR Graphics vlucht DWF files')
DEFINE_SETTING('CAD', 0001, 'WEB_FACFAC', 'fg_symbols_path'                       , 'string'                      , NULL                          , 'full filepath to FACILITOR Graphics symbol files')
DEFINE_SETTING('CAD', 0001, 'WEB_FACFAC', 'fg_dwf_path_prj'                       , 'string'                      , NULL                          , 'full filepath to FACILITOR Graphics DWF files for scenarios')
DEFINE_SETTING('CAD', 0001, 'WEB_FACFAC', 'fg_rap_alg'                            , 'string'                      , '../cad/rap_alg.asp'          , NULL)
DEFINE_SETTING('CAD', 0001, 'WEB_FACFAC', 'fg_rap_algc'                           , 'string'                      , '../cad/rap_algc.asp'         , 'concept')
DEFINE_SETTING('CAD', 0001, 'WEB_FACFAC', 'fg_rap_cnt'                            , 'string'                      , '../cad/rap_cnt.asp'          , NULL)
DEFINE_SETTING('CAD', 0001, 'WEB_FACFAC', 'fg_rap_ins'                            , 'string'                      , '../cad/rap_ins.asp'          , NULL)
DEFINE_SETTING('CAD', 0001, 'WEB_FACFAC', 'fg_rap_mld'                            , 'string'                      , '../cad/rap_mld.asp'          , NULL)
DEFINE_SETTING('CAD', 0001, 'WEB_FACFAC', 'fg_rap_prs'                            , 'string'                      , '../cad/rap_prs.asp'          , NULL)
DEFINE_SETTING('CAD', 0001, 'WEB_FACFAC', 'fg_rap_sch'                            , 'string'                      , ''                            , NULL)
DEFINE_SETTING('CAD', 0001, 'WEB_FACFAC', 'fg_rap_sle'                            , 'string'                      , '../cad/rap_sle.asp'          , NULL)
DEFINE_SETTING('CAD', 0001, 'WEB_FACFAC', 'fg_rap_mov'                            , 'string'                      , '../cad/rap_move.asp'         , NULL)
DEFINE_SETTING('CAD', 0001, 'WEB_FACFAC', 'fg_rap_alg2'                           , 'string'                      , '../cad/rap_alg2.asp'         , NULL)
DEFINE_SETTING('CAD', 0001, 'WEB_FACFAC', 'fg_rap_cnt2'                           , 'string'                      , '../cad/rap_cnt.asp'          , NULL)
DEFINE_SETTING('CAD', 0001, 'WEB_FACFAC', 'fg_rap_ins2'                           , 'string'                      , '../cad/rap_ins2.asp'         , NULL)
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_paperColor'                         , 'number'                      , '15395820'                    , 'paper background or -1 for ''as published''')
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_contourColor'                       , 'number'                      , '65280'                       , 'Default roomcontour coloring')
DEFINE_SETTING('CAD', 0001, 'WEB_FACTAB', 'fg_contourAlpha'                       , 'number'                      , '0'                           , 'Default roomcontour transparancy. 0==invisible!')
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_contourWeight'                      , 'number'                      , '100'                         , 'Default roomcontour width. 100mm;')
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_areaThreshold'                      , 'number'                      , '7000100'                     , 'Bij kleiner oppervlakte dunnere contour en kleiner label')
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_paperColorCpt'                      , 'number'                      , '13684944'                    , 'paper background concept')
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_contourColorCpt'                    , 'number'                      , '16776960'                    , 'Default roomcontour coloring concept new rooms')
DEFINE_SETTING('CAD', 0001, 'WEB_FACTAB', 'fg_ThemaAlpha'                         , 'number'                      , '224'                         , 'Default roomcontour transparancy. 255==solid!')
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_inLabelSize'                        , 'number'                      , '800'                         , 'Binnen ruimtelabels grootte (mm)')
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_inWPLabelSize'                      , 'number'                      , '400'                         , 'Binnen wekrpleklabels grootte')
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_inINSLabelSize'                     , 'number'                      , '250'                         , 'Binnen objectlabels grootte')
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_outLabelSize'                       , 'number'                      , '16000'                       , 'Buiten terreinsectorlabels grootte')
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_outINSLabelSize'                    , 'number'                      , '8000'                        , 'Buiten objectlabels grootte')
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_labelPosition'                      , 'number'                      , '1'                           , '1=default, 2=center, 3=topleft')
DEFINE_SETTING('CAD', 0001, 'WEB_FACTAB', 'fg_startBuiten'                        , 'boolean'                     , 'false'                       , 'Bij binnenkomst van FGII buiten/terrein-situatie tonen')
DEFINE_SETTING('CAD', 0001, 'WEB_FACTAB', 'fg_translateprintcolor'                , 'json'                        , '[]'                          , 'Kleurvertalingen bij printen')
DEFINE_SETTING('CAD', 0001, 'WEB_FACTAB', 'fg_antialias'                          , 'number'                      , '2'                           , 'Antialias, 1=off, 2=pleasant, 4=slower')
DEFINE_SETTING('CAD', 0001, 'WEB_FACTAB', 'fg_dobbelScale'                        , 'float'                       , '0.5'                         , 'Schaal voor de dobbelsymbolen versus normale grootte')
DEFINE_SETTING('CAD', 0001, 'WEB_FACTAB', 'fg_dobbelDist'                         , 'number'                      , '1400'                        , 'Afstand dobbel symbolen (mm)')
DEFINE_SETTING('CAD', 0001, 'WEB_FACTAB', 'fg_WPScale'                            , 'float'                       , '1'                           , 'Schaal voor werkplek symbolen tov 1.0')
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_ins_symbols'                        , 'boolean'                     , 'false'                       , 'Objecten als symbolen in de tekening plaatsen.')
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_bitmapsymbolsize'                   , 'number'                      , '1000'                        , 'Symbool hoogte bitmap symbolen.')
DEFINE_SETTING('CAD', 0001, 'WEB_FACTAB', 'fg_maximize'                           , 'boolean'                     , 'true'                        , 'Maximaliseer plaatje naar wat echt zichtbaar is.')
DEFINE_SETTING('CAD', 0001, 'WEB_FACFAC', 'fg_syncruimteview'                     , 'string'                      , 'cad_v_sync_alg_ruimte'       , NULL)
DEFINE_SETTING('CAD', 0001, 'WEB_FACFAC', 'fg_syncterreinview'                    , 'string'                      , 'cad_v_sync_alg_terrein'      , NULL)
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_contourlayers'                      , 'string'                      , '{CONT!.}|{CONT\|.*}'         , NULL)
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_labellayers'                        , 'string'                      , '{CONT!.}|{CONT\|.*}'         , NULL)
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_contourlayers_alt1'                 , 'string'                      , ''                            , NULL)
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_labellayers_alt1'                   , 'string'                      , ''                            , NULL)
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_contourlayers_alt2'                 , 'string'                      , ''                            , NULL)
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_labellayers_alt2'                   , 'string'                      , ''                            , NULL)
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_contour_minArea'                    , 'number'                      , '200010'                      , 'minimale mm2 om herkend te worden als ruimte (millimeter! dus)')
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_dwgscale'                           , 'float'                       , '1000'                        , 'AutoCAD Drawing scale units/meter (future use)')
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_mobile_thema'                       , 'number'                      , '-1'                          , 'Fixed theme to use on Mobile plans (key, -1 = let user select theme)')
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_mobile_label'                       , 'number'                      , '-1'                          , 'Label theme to be used on Mobile plans (key)')
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_werkpleksymbool'                    , 'string'                      , 'WERKPLEK'                    , 'Symbol for workplace in Graphics, file must exist in fg_symbols_path')
DEFINE_SETTING('CAD', 0001, 'WEB_PRSSYS', 'fg_publiclayers'                       , 'array'                       , ''                            , 'ins_disc_keys of layers visible without INSUSE')
DEFINE_SETTING('ALG', 0001, 'WEB_FACTAB', 'alg_ruimtenr_aut_use'                  , 'number'                      , '0'                           , 'WEB_ALGUSE may change alg_ruimte_nr/omschrijving {0=WEB_ALGMAN required | 1=WEB_ALGUSE allowed too}')
DEFINE_SETTING('ALG', 0001, 'WEB_FACFAC', 'alg_ruimte_comm_opp_key'               , 'number'                      , '-1'                          , 'Key to be used for commercial ruimte oppervlakte')
DEFINE_SETTING('ALG', 0001, 'WEB_FACFAC', 'alg_terrein_comm_opp_key'              , 'number'                      , '-1'                          , 'Key to be used for commercial terrein oppervlakte')
DEFINE_SETTING('ALG', 0001, 'WEB_PRSSYS', 'alg_fg_remote_maps'                    , 'string'                      , ''                            , 'URL. if not empty use Google Maps for locations en buildings in FACILITOR Graphics')
DEFINE_SETTING('BES', 0001, 'WEB_FACFAC', 'bes_image_path'                        , 'string'                      , NULL                          , 'path to folder storing bes_srtdeel pictures')
DEFINE_SETTING('BES', 0001, 'WEB_PRSSYS', 'bes_show_RFO_price'                    , 'number'                      , '2'                           , 'show prices {0=no support | 1=FO support | 2=FE&FO support}')
DEFINE_SETTING('BES', 0001, 'WEB_PRSSYS', 'bes_datum_limiet'                      , 'number'                      , '90'                          , 'max days in the future')
DEFINE_SETTING('BES', 0001, 'WEB_PRSSYS', 'bes_bestelling_prefix'                 , 'string'                      , ''                            , 'prefix voor het aanvraagnummer van de bestelling')
DEFINE_SETTING('BES', 0001, 'WEB_PRSSYS', 'bes_bestelopdr_prefix'                 , 'string'                      , ''                            , 'prefix voor het opdrachtnummer van de bestelling')
DEFINE_SETTING('BES', 0001, 'WEB_PRSSYS', 'bes_afleverruimte_verplicht'           , 'number'                      , '0'                           , 'Afleverruimte required {0=no (default) | 1=yes}')
DEFINE_SETTING('BES', 0001, 'WEB_PRSSYS', 'bes_retour_need_approval'              , 'number'                      , '0'                           , 'retourbestelaanvraag wel(=1)/niet(=0) langs de BO laten gaan voor fiattering')
DEFINE_SETTING('BES', 0001, 'WEB_PRSSYS', 'bes_show_inkprijs'                     , 'number'                      , '0'                           , 'show inkoopprijs column with BES management info {0=no | 1=yes}')
DEFINE_SETTING('BES', 0001, 'WEB_PRSSYS', 'bes_pgb_fiattering'                    , 'number'                      , '0'                           , 'Algemene fiatteringsproces noodzakelijk naast PGB/AGB fiatering? {0=no | 1=yes}')
DEFINE_SETTING('BES', 0001, 'WEB_PRSSYS', 'bes_pgb_fe_fiat'                       , 'number'                      , '0'                           , 'Een bestelling van FE-er moet naast PGB/AGB fiattering ook altijd gefiatteerd worden, anders altijd afwijzen {0=no | 1=yes}')
DEFINE_SETTING('BES', 0001, 'WEB_PRSSYS', 'bes_confirm_order_before_submit'       , 'boolean'                     , 'false'                       , 'Bevestig bestelaanvraag voordat het uitgevoerd wordt')
DEFINE_SETTING('BES', 0001, 'WEB_PRSSYS', 'bes_approval_all'                      , 'number'                      , '0'                           , 'Goedkeuring bestelling vereist t.o.v. eerstvolgende limiet (=0 default) of t.o.v. totale kosten (in één keer)(=1)')
DEFINE_SETTING('BES', 0001, 'WEB_PRSSYS', 'bes_bestelopdr_flags'                  , 'number'                      , '0'                           , 'Number of flags that can be defined on purchase orders. Max 10')
DEFINE_SETTING('BGT', 0001, 'WEB_PRSSYS', 'bgt_extra_report_param'                , 'boolean'                     , 'false'                       , 'Extra parameter aan xml toevoegen waarop niet gefilterd wordt')
DEFINE_SETTING('BGT', 0001, 'WEB_PRSSYS', 'bgt_usrtab_vaste_factuurnummer'        , 'string'                      , ''                            , 'Naam van usertable waarin de standaard (niet unieke) factuurnummers in staan')
DEFINE_SETTING('CNT', 0001, 'WEB_FACTAB', 'cnt_srttype_rental'                    , 'number'                      , '2'                           , 'cnt_srtcontract_type of room rental contract type')
DEFINE_SETTING('CNT', 0001, 'WEB_PRSSYS', 'cnt_scopeverdeling'                    , 'number'                      , '0'                           , '0|1, cost distribution by scope weights 0=relative weight, 1=absolute amount')
DEFINE_SETTING('CNT', 0001, 'WEB_PRSSYS', 'cnt_inactivate_mode'                   , 'number'                      , '0'                           , 'inactivate contract with WEB_CNTMAN/WEB_CNTUSE read rights and WEB_CNTMSU rights (0) or with extra WEB_CNTMAN write rights (1)')
DEFINE_SETTING('CNT', 0001, 'WEB_PRSSYS', 'cnt_all_kostenplaats'                  , 'number'                      , '0'                           , 'show all (1) active kostenplaats values or only the one i have mandate for (0) in list')
DEFINE_SETTING('CNT', 0001, 'WEB_PRSSYS', 'cnt_rappel_abonnement'                 , 'number'                      , '3'                           , 'Rappel termijn van een abonnement contract')
DEFINE_SETTING('CNT', 0001, 'WEB_PRSSYS', 'cnt_contract_approval'                 , 'number'                      , '0'                           , 'Het contract approval mechanisme is wel (=1) of niet (=0) ingeschakeld')
DEFINE_SETTING('CNT', 0001, 'WEB_PRSSYS', 'cnt_contract_limit1'                   , 'number'                      , '0'                           , 'De eerste limiet van het contract approval mechanisme')
DEFINE_SETTING('CNT', 0001, 'WEB_PRSSYS', 'cnt_contract_limit2'                   , 'number'                      , '5000'                        , 'De tweede limiet van het contract approval mechanisme')
DEFINE_SETTING('CNT', 0001, 'WEB_PRSSYS', 'cnt_contract_limit3'                   , 'number'                      , '125000'                      , 'De derde limiet van het contract approval mechanisme')
DEFINE_SETTING('CNT', 0001, 'WEB_PRSSYS', 'cnt_contract_limit4'                   , 'number'                      , '1000000'                     , 'De vierde limiet van het contract approval mechanisme')
DEFINE_SETTING('CNT', 0001, 'WEB_PRSSYS', 'cnt_contract_limit5'                   , 'number'                      , '9999999'                     , 'De vijfde limiet van het contract approval mechanisme')
DEFINE_SETTING('CNT', 0001, 'WEB_PRSSYS', 'cnt_approval_all'                      , 'number'                      , '0'                           , 'Goedkeuring contract vereist t.o.v. eerstvolgende limiet (=0 default) of t.o.v. totale kosten (in één keer)(=1)')
DEFINE_SETTING('CNT', 0001, 'WEB_PRSSYS', 'cnt_factuur_totaalmarge'               , 'number'                      , '0'                           , 'De toegestane marge op de totaal factuur (default 0)')
DEFINE_SETTING('CNT', 0001, 'WEB_PRSSYS', 'cnt_internalnr_readonly'               , 'number'                      , '0'                           , 'Het interne contractnummer wordt automatisch bepaalt en is niet wijzigbaar')
DEFINE_SETTING('CNT', 0001, 'WEB_PRSSYS', 'cnt_enable_kostensoort'                , 'number'                      , '1'                           , 'can contract kostensoort be changed?')
DEFINE_SETTING('FAQ', 0001, 'WEB_FACTAB', 'faq_enabled'                           , 'number'                      , '0'                           , 'Is kennisbank available {0 | 1} licensed separately')
DEFINE_SETTING('FAQ', 0001, 'WEB_PRSSYS', 'faq_max_results'                       , 'number'                      , '25'                          , 'Limit the FAQ results to this number')
DEFINE_SETTING('FAQ', 0001, 'WEB_PRSSYS', 'faq_search_hints_only'                 , 'number'                      , '0'                           , 'When searching through the Knowledge base, only find matching hints {1=true | 0=false}')
DEFINE_SETTING('FAQ', 0001, 'WEB_PRSSYS', 'faq_kennisbank_popup'                  , 'number'                      , '3'                           , 'Show kennisbank popup {0=no | 01=1=FE | 10=2=FO | 11=3=FE+FO}')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'iLearning_enabled'                     , 'number'                      , '0'                           , 'Is iLearning available {0 | 1} licensed separately')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'kto_srtdiscipline_key'                 , 'number'                      , '-1'                          , 'key van KTO (klanttevredenheidsonderzoek) vakgroeptype')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'menu_photo_size'                       , 'string'                      , 'r512x512'                    , 'Resize uploads to this maximum MENU photo size. Ex: r200x150')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'fac_like_bad'                          , 'number'                      , '2'                           , 'Rating for bad service')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'fac_like_poor'                         , 'number'                      , '4'          , 'Rating for poor service')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'fac_like_normal'                       , 'number'                      , '6'                           , 'Rating for normal service')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'fac_like_good'                         , 'number'                      , '8'                           , 'Rating for good service')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'fac_like_excellent'                    , 'number'                      , '10'                          , 'Rating for excellent service')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'facilities_flike_past'                 , 'number'                      , '7'                           , 'Number of days in the past to show (my) facilities for rating')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'fac_mld_deeplike_expire'               , 'number'                      , '0'                           , 'Number of days melding deeplike bookmark is valid (default 0 is disabled)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'fac_res_deeplike_expire'               , 'number'                      , '0'                           , 'Number of days reservation deeplike bookmark is valid (default 0 is disabled) future use')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'fac_bes_deeplike_expire'               , 'number'                      , '0'                           , 'Number of days bestelling deeplike bookmark is valid (default 0 is disabled) future use')
DEFINE_SETTING('FIN', 0001, 'WEB_PRSSYS', 'fin_btw_default'                       , 'number'                      , '3'                           , 'Standaard btw tarief (1=NL|Nul, 2=NL|Laag, 3=NL|Hoog, enz.)')
DEFINE_SETTING('FIN', 0001, 'WEB_FACTAB', 'fin_defaultboekmaand'                  , 'number'                      , '1'                           , 'How to determine default "boekmaand" for entered invoice: 1=sysdate, 2=orderdate')
DEFINE_SETTING('FIN', 0001, 'WEB_PRSSYS', 'fin_new_after_save'                    , 'number'                      , '0'                           , 'Na het opslaan terugkomen met de factuur in de showmode of met nieuw leeg invulformulier (0=showmode || 1=nieuw formulier)')
DEFINE_SETTING('FIN', 0001, 'WEB_FACFAC', 'fin_import_app_key'                    , 'number'                      , '-1'                          , 'fac_import_app_key of customer ''FACTUUR'' import: -1=FACILITOR standard')
DEFINE_SETTING('FIN', 0001, 'WEB_PRSSYS', 'fin_enable_kostensoort'                , 'number'                      , '1'                           , 'can factuur kostensoort be changed?')
DEFINE_SETTING('FIN', 0001, 'WEB_PRSSYS', 'fin_kostensoort_verplicht'             , 'number'                      , '0'                           , 'Is kostensoort required? {0=not required | 1=required}')
DEFINE_SETTING('FIN', 0001, 'WEB_PRSSYS', 'fin_bof_mag_editen'                    , 'number'                      , '1'                           , 'Users/Approvers with FINBOF rights have edit possibilities {0=no edit (only approve) | 1=edit (default)}')
DEFINE_SETTING('FIN', 0001, 'WEB_PRSSYS', 'fin_enable_afwijzen'                   , 'number'                      , '1'                           , 'Is it possible to reject an invoice or not {0=Afwijzen unavailable | 1=Afwijzen available}')
DEFINE_SETTING('FIN', 0001, 'WEB_PRSSYS', 'fin_enable_goedkeuren'                 , 'number'                      , '0'                           , 'Is it possible to validate (''goedkeuren'') an invoice {0=validation unavailable | 1=validation optional | 2=validation required}')
DEFINE_SETTING('FIN', 0001, 'WEB_PRSSYS', 'fin_factuur_flags'                     , 'number'                      , '0'                           , 'Number of flags that can be defined on invoices. Max 10')
DEFINE_SETTING('FIN', 0001, 'WEB_PRSSYS', 'fin_match_lowerlimit'                  , 'number'                      , '0'                           , 'Check lowerlimit also for matching {0=Only upperlimit (invoice<order+tolerance | 1=Upper and lowerlimit (order-tolerance<invoice<order+tolerance)}')
DEFINE_SETTING('FIN', 0001, 'WEB_PRSSYS', 'fin_use_verkoopfacturen'               , 'number'                      , '0'                           , 'Provide direct access to generated salesinvoices (if any) from contract/order/reservation details {0=no | 1=yes}')
DEFINE_SETTING('FIN', 0001, 'WEB_PRSSYS', 'fin_factuur_verlegdmode'               , 'number'                      , '0'                           , 'Use and validation of field fin_factuur_gbedrag: {0=field invisible | &1=visible and enterable | &2=required if invoicelines has a shifted VAT-value | &4=all invoicelines must have shifted VAT-value or must have standard VAT values (=not shifted)}')
DEFINE_SETTING('MLD', 0001, 'WEB_FACFAC', 'mld_meldbron_key'                      , 'number'                      , '5'                           , 'MLD_MELDBRON_KEY of meldbron ''intranet''')
DEFINE_SETTING('MLD', 0001, 'WEB_FACTAB', 'mld_meldbron_extern'                   , 'array'                       , ''                            , 'Een array van meldbron_keys waarvoor geldt dat Extern nr. editable is')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_melding_autoprint'                 , 'number'                      , '0'                           , 'auto print melding form after insert by FO 2=unconditionally print complain | 1=print if ask_for_orders=0 | 0=no print')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_ask_for_orders'                    , 'boolean'                     , 'true'                        , 'ask for immediate order input after call entry { true | false }')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_rejected_is_open'                  , 'number'                      , '0'                           , 'show rejected meldingen as Open FE/FO {1=Open | 0=Closed}.')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_typeopdr_key'                      , 'number'                      , '5'                           , 'Default order type or -1 to select default (at order-creation) from most to least specific per vakgroep')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_fo_default_user'                   , 'boolean'                     , 'false'                       , 'user current user a default caller, { true=user default | false=empty default }')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_order_autoprint'                   , 'number'                      , '1'                           , 'orders will be printed {0=print only at insert for extern and intern | 1=print with any save | 2=print only at insert for extern | 3=never print}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_ord_show_cost'                     , 'number'                      , '1'                           , 'use standard cost fields for orders {0=don''t use | 1=use}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_ord_show_ordernr'                  , 'number'                      , '0'                           , 'show ordernr field for orders {0=don''t show(&use mld_melding_ordernr) | 1=show}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_ord_show_kostenplaats'             , 'number'                      , '1'                           , 'show kostenplaats field for orders {0=don''t show | 1=editable | 2=show}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_ord_change_type'                   , 'number'                      , '1'                           , 'Can change opdr_type (0=no, 1=yes, 2=undefined)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_opdr_show_requestor_in_list'       , 'number'                      , '1'                           , 'Show requestor (melder) column in opdr search list {0=no | 1=print only | 2=view only | 3=both}')
DEFINE_SETTING('MLD', 0001, 'WEB_FACTAB', 'mld_contract_startdate_key'            , 'number'                      , '-1'                          , 'key of flex prop in rental contract mutation call')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_enable_workflow'                   , 'number'                      , '1'                           , 'enable workflow in call handling {0=workflow disabled | 1=workflow enabled }')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_notify_workflowsteps'              , 'number'                      , '1'                           , 'Notify each workflowstep to caller {0=do not notify steps (blackbox) | 1=notify each step (whitebox)}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_workflow_set_defaults'             , 'number'                      , '0'                           , 'Set defaults for flexkenmerken if they weren''t set by the predecessor (0=do not set | 1=set defaults)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_notify_retract'                    , 'number'                      , '1'                           , 'Retract the MLDNEW notification on mld_accept, if still in queue {0=no|1=yes}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_copy_objects_in_workflow'          , 'number'                      , '0'                           , 'Copy object-references to the next step in workflow (0=do not copy | 1=copy)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_close_opdr_default'                , 'number'                      , '0'                           , 'De checkbox met de vraag of de open opdrachten ook afgemeld moeten worden is standaard niet(0=default) of wel(1) aangevinkt')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_bo_sort_descending'                , 'number'                      , '0'                           , 'Sort ordering of mld_melding for BO (0 = most urgent first | 1 = last made first );')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_max_history'                       , 'number'                      , '0'                           , 'Show calls and orders not longer then mld_max_history days ago (FE/FO/BO) ((mld_max_history <= 0) : show all finished calls and orders (default))')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_melding_close'                     , 'number'                      , '0'                           , 'Can close complain with orders in complain overview window without seeing complain details? {0=yes default | 1=no}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_opdr_close'                        , 'number'                      , '0'                           , 'Can close orders in order overview window without seeing order details? {0=yes default | 1=no}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_opdr_ask_mail_if_unknown'          , 'number'                      , '0'                           , 'Workaround for sending order by e-mail to ''externe relatie'' if address unknown (0=disabled default | 1=enabled)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_opdr_confirm_for_send'             , 'number'                      , '0'                           , 'Ask confirmation before sending an e-Order to a supplier (0=do not ask| 1=ask)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_note_sort_ascending'               , 'number'                      , '0'                           , 'Sort (of time) ordering of melding notes for FO and BO {0 = descending | 1 = ascending }')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_note_mode'                         , 'number'                      , '2'                           , 'Melding Notes mode: 1=oldstyle, 2=newstyle (default)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_note_autoscroll'                   , 'boolean'                     , 'true'                        , 'In note_mode=2 scroll to input field')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_afmelden_extern'                   , 'number'                      , '0'                           , 'Are external orders visible and/or changeble by ORDBO2 (0=not visible | 1=visible for ORDBO2 | 2=visible and changeble by ORDBO2)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_max_kosten_extern'                 , 'float'                       , '9999999'                     , 'limit order amount to be entered by external handlers')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_use_order_approval'                , 'number'                      , '1'                           , 'Approval mechanism is used for mld orders (0=disabled | 1=enabled)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_ord_flexsummary'                   , 'number'                      , '1'                           , 'User summary of melding-flexprop in initial order description {0=no | 1=yes}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_print_loc_address'                 , 'number'                      , '0'                           , 'Print location address details in backoffice overview orders {0=no | 1=yes | 2=show address+building}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_plandate_in_list'                  , 'number'                      , '0'                           , 'Show Planned Date as a column in backoffice overview orders {0=no | 1=yes}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_use_plandate2'                     , 'number'                      , '0'                           , 'Allow use of planned end date {0=no | 1=only show in list | 2=yes, but don''t show in list | 3=yes and show in list}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_show_order_details'                , 'number'                      , '1'                           , 'Show remark in backoffice Orders Management {0=no | 1=yes}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_show_search_similar'               , 'number'                      , '1'                           , 'Show a link to similar calls in the description block of a call {0=no | 1=yes}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_forward_all'                       , 'number'                      , '1'                           , 'Forward a complain 0= to a complain with the same srtdiscipline 1= (default) to a complain for all srtdisciplines')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_forward_can_assign'                , 'number'                      , '0'                           , 'Allow assignment to a specific handler-person while forwarding a call {0=no | 1=yes}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_forward_auto_fill'                 , 'number'                      , '0'                           , 'Use current discipline and call (and "assigned to") as defaults while forwarding. {0=no | 1=yes}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_forward_if_closed'                 , 'number'                      , '0'                           , 'WEB_MLDMSU can forward a complaint even with status ''afgemeld''')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_fixdatums_marge'                   , 'number'                      , '7'                           , 'WEB_MLDMSU can fix invoer/afgemeld dates')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_fe_show_statusnames'               , 'number'                      , '1'                           , 'Show name to FE of the users who changed the status of a melding {0=no | 1=yes}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_uren_weeks_back'                   , 'number'                      , '8'                           , 'Show this number of weeks in the overview, endig at the selected date')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_uren_omschrijving'                 , 'number'                      , '1'                           , 'Description to show in hour screen {1=melder (care)| 2=vakgroep/stdmelding}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_uren_more'                         , 'boolean'                     , 'true'                        , 'Overige opdrachten mogen ook getoond worden {true=link tonen (care) | false=link niet tonen}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_enforce_orderdates'                , 'number'                      , '0'                           , 'Enforce order start/ending dates to be within call start/ending dates')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_afhandeling_required_for_close'    , 'number'                      , '0'                           , 'Het veld afhandeling verplicht bij het afmelden van een melding (0=no, 1=yes)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_afhandeling_restrict_edit'         , 'number'                      , '0'                           , 'Het veld afhandeling alleen in te vullen bij afmelden/afwijzen (0=no, 1=yes)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_omschrijving_restrict_edit'        , 'number'                      , '0'                           , 'Het veld omschrijving alleen in te vullen als nog te accepteren (0=no, 1=yes)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_suppress_directklaar_notification' , 'number'                      , '0'                           , 'Suppress de notificatie bij DirectKlaar {0=no (default) | 1=yes}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_forward_if_active'                 , 'number'                      , '0'                           , 'A melding can be forwarded until status accept (0) of until afgemeld (1).')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_allow_for_others'                  , 'number'                      , '0'                           , 'Can i make calls for others ? {0=no | 1=yes}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_allow_parentmelding'               , 'number'                      , '0'                           , 'Allow attaching a call to another manually (0=not | 1=allow without orders | 2=allow with closed orders')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_ord_afmeld_future'                 , 'number'                      , '1'                           , 'Opdracht einddatum niet controleren bij afmelden {0=opdracht einddatum mag niet in de toekomst liggen, 1=default niets controleren)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_num_prefix_mode'                   , 'number'                      , '0'                           , 'Prefix to issue numbers {0=default none, 1=costcentre/department')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_show_endtime'                      , 'number'                      , '1'                           , 'Show endtime for complaints (0=only date, 1=with endtime)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_endate_ordbo2'                     , 'number'                      , '1'                           , 'Enddate can be editted by MLDORD/ORDBO2 {0=no | 1=yes (default}')
DEFINE_SETTING('MLD', 0001, 'WEB_FACTAB', 'mld_ordermaterial_fac_usrtab_key'      , 'number'                      , '-1'                          , 'fac_usrtab_key of ordermaterials')
DEFINE_SETTING('MLD', 0001, 'WEB_FACTAB', 'mld_ordermaterial_editable'            , 'boolean'                     , 'true'                        , 'ordermaterials can be edited (true) or are always readonly/remotely managed (false)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_accept_confirm'                    , 'boolean'                     , 'false'                       , 'bij accepteren melding direct afhandelingsveld invullen')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_msu_can_stop_workflows'            , 'boolean'                     , 'false'                       , 'mld_msu mag een nog actieve workflow afbreken')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_selector_mode'                     , 'number'                      , '0'                           , 'Selector mode vakgroep/melding voor de frontend. {0(=default)=vakgroep en melding (beide eerst te kiezen), 1=vakgroep readonly, 2=alleen melding}')
DEFINE_SETTING('MLD', 0001, 'WEB_FACTAB', 'mld_opdr_minuren'                      , 'boolean'                     , 'false'                       , 'registreren min uren toegestaan')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_melding_flags'                     , 'number'                      , '0'                           , 'Number of flags fo/bo can define on complaint. Max 10')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_flag_on_fenote'                    , 'number'                      , '0'                           , 'Set/Clear this mld_melding_flag when the FOBO/caller saves a note {0=no flag}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_flag_on_bonote'                    , 'number'                      , '0'                           , 'Value of flag when BO has to read note')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_note_default_notifyFE'             , 'number'                      , '0'                           , 'Default value for checkbox "Actie bij melder zetten" for notes {0=Nee(default) | 1=Ja}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_forward_opm_flags'                 , 'number'                      , '0'                           , 'remark/reason is required when forwarded {to comment field: 0=No(default) | 1=Yes | to note field: 2=No | 3=Yes}.')
DEFINE_SETTING('MLD', 0001, 'WEB_FACFAC', 'mlds_image_path'                       , 'string'                      , NULL                          , 'path to folder storing stdmelding symbols pictures')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_add_mldopmerk_on_opdrclose'        , 'number'                      , '0'                           , 'Automatically copy remark from order to call when supplier close last order {1=Yes | 0=No}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_reference_days'                    , 'number'                      , '100'                         , 'Het aantal dagen terug in de tijd van waaraf eigen referentie getoond dienen te worden')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_locked_expire'                     , 'number'                      , '30'                          , 'Minutes after which edit-lock automatically released')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_opdr_approval_all'                 , 'number'                      , '0'                           , 'Goedkeuring opdracht vereist t.o.v. eerstvolgende limiet (=0 default) of t.o.v. totale kosten (in één keer)(=1)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_opdr_ignore_caller_profile'        , 'number'                      , '0'                           , 'Ignore profile of caller in approving process {0=No (default) | 1=Yes}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_opdr_kpg_fin_limit1'               , 'number'                      , '15000'                       , 'De eerste kpg limiet van het opdracht fiattering mechanisme')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_opdr_kpg_fin_limit2'               , 'number'                      , '100000'                      , 'De tweede kpg limiet van het opdracht fiattering mechanisme')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_opdr_pref_contractors_only'        , 'boolean'                     , 'false'                       , 'Show only preferred contractors (true) or all contractors (false)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_object_filled_in_alert'            , 'number'                      , '1'                           , '{0=geen, 1=wel} alert tonen als er automatisch een object wordt ingevuld bij een melding.')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_pgb_fiattering'                    , 'number'                      , '0'                           , 'Voor een opdracht is het algemene fiatteringsproces noodzakelijk naast PGB/AGB fiatering? {0=no | 1=yes}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_show_urgent_as_new'                , 'boolean'                     , 'false'                       , 'Show urgent calls as new calls')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_opdr_refiat_preference'            , 'number'                      , '0'                           , 'Bij herfiattering opnieuw fiatteren {0=(default) fiatteur moet opnieuw fiatteren, 1=goedkeurder kan aangeven of dat moet}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_opdr_merge_notes_and_tracking'     , 'number'                      , '1'                           , 'Combine notes and tracking in one frame with order details (0=just notes | 1=both combined)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_opdr_alt_kostensoort'              , 'number'                      , '0'                           , 'Enable use of alternative cost category {0|1} default 0')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_hide_fe_tracking'                  , 'number'                      , '0'                           , '0=default, 1=hide all tracking for fe (might contain ''secrets'')')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_note_autocollapse'                 , 'string'                      , ''                            , 'Regexp note text that will allways start collepsed (for technical system notes))')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_merge_notes_and_tracking'          , 'number'                      , '1'                           , 'Combine notes and tracking with call details (0=just call notes | +1=plus call tracking, +2=plus order notes, +4=plus order tracking)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_autolink_regexp'                   , 'string'                      , '(?:(?:melding [A-Z]*)|(?:[A-Z \,\n]+\#[A-Z]*))(\d+)', 'Automatically turn MLD-references in texts into clickable links eg. (?:(?:melding [A-Z]*)|(?:[A-Z \,\n]+\#[A-Z]*))(\d+)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_edit_layout'                       , 'number'                      , '0'                           , 'Layout of mld edit screen {0=stdmelding first (default)| 1=place first}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'cnt_autolink_regexp'                   , 'string'                      , ''                            , 'Automatically turn CNT-references in texts into clickable links eg. (?:(?:contract [A-Z]*)|(?:[A-Z \,\n]+\#[A-Z]*))(\d+)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_continue_edit_issuer'              , 'boolean'                     , 'false'                       , 'Edit the issuer false= (default) of a continued complain')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_archive_by_gui'                    , 'boolean'                     , 'false'                       , 'Can a call be archived by a button (true) or just by export (false)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'nightly_mld2bo_emailaddress'           , 'string'                      , ''                            , 'Notification email address outside office hours')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_show_cards'                        , 'number'                      , '5'                           , 'Number of order cards shown under a contractor in order plan board {nn=number | -1=all}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_sla_indult_for_mldafr_only'        , 'number'                      , '0'                           , 'Uitsluiten voor SLA alleen beschikbaar voor MLDAFR (afronden) {0=no | 1=yes}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_workflowstep_in_xml'               , 'number'                      , '0'                           , 'Include all data of all other workflowsteps in XML for prints of a call from a workflow (0=no | 1=yes)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_show_parent_attachments'           , 'boolean'                     , 'true'                        , 'Show the attachments of parent calls {true (default) | false)')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_sel_single_closingtext'            , 'number'                      , '1'                           , 'Auto select closing text when just one available {2=yes | 1=no (default)}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_listagg_object_count'              , 'number'                      , '20'                          , 'Maximum number of objects to show in call-list {default=20}')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_listagg_object_delimiter'          , 'string'                      , 'comma'                       , 'Delimiter of objects in call-list {"comma" (default) | "newline"}')
DEFINE_SETTING('PRS', 0001, 'WEB_PRSSYS', 'prs_h'                                 , 'float'                       , '0.25'                        , 'Employability time stepsize')
DEFINE_SETTING('PRS', 0001, 'WEB_PRSSYS', 'prs_t1'                                , 'float'                       , '8'                           , 'Employability day start (hour)')
DEFINE_SETTING('PRS', 0001, 'WEB_PRSSYS', 'prs_t2'                                , 'float'                       , '18'                          , 'Employability day end (hour)')
DEFINE_SETTING('PRS', 0001, 'WEB_PRSSYS', 'prs_perslid_datums'                    , 'number'                      , '0'                           , 'show contract dates with perslid details {0=don''t show| 1=show}')
DEFINE_SETTING('PRS', 0001, 'WEB_PRSSYS', 'prs_telefoonnr_aut_use'                , 'number'                      , '0'                           , 'WEB_PRSUSE may change prs_perslid_telefoonnr {0=WEB_PRSMAN required | 1=WEB_PRSUSE allowed too}')
DEFINE_SETTING('PRS', 0001, 'WEB_PRSSYS', 'prs_use_edit_werkplek'                 , 'number'                      , '9'                           , 'enduser can change own location (9=no, 2=within location, 3=within building etc.)')
DEFINE_SETTING('PRS', 0001, 'WEB_PRSSYS', 'prs_use_edit_photo'                    , 'number'                      , '0'                           , 'enduser can upload own photo?')
DEFINE_SETTING('PRS', 0001, 'WEB_PRSSYS', 'prs_use_mld_wijzigkey'                 , 'number'                      , '-1'                          , 'enduser can create this ''melding'' to request change in information')
DEFINE_SETTING('PRS', 0001, 'WEB_PRSSYS', 'prs_bedrijf_leveranciernr_unique'      , 'number'                      , '0'                           , 'leveranciernr or prs_bedrijf unique (1) or not unique (0)')
DEFINE_SETTING('PRS', 0001, 'WEB_PRSSYS', 'prs_hide_fixed_fields'                 , 'number'                      , '0'                           , 'Do not (1) display phonenumber/tarif fields with person details')
DEFINE_SETTING('PRS', 0001, 'WEB_PRSSYS', 'prs_dep_default_kpn'                   , 'number'                      , '1'                           , 'A user can make costs for his own department by default {0=no | 1=yes}')
DEFINE_SETTING('PRS', 0001, 'WEB_FACTAB', 'prs_werkplek_implicit'                 , 'number'                      , '0'                           , 'Are workplaces treated as separate entitities (0) or implicitly/invisible used in person-room relations(1)')
DEFINE_SETTING('PRS', 0001, 'WEB_PRSSYS', 'prs_wpprefix_objectid'                 , 'number'                      , '0'                           , 'Workplace description as prefix in front of object id (at calls and contractscope) {0=no | 1=yes}')
DEFINE_SETTING('PRS', 0001, 'WEB_PRSSYS', 'prs_collegas_used'                     , 'number'                      , '9'                           , 'Can FE users indicate collegues for replacement. Use value as autlevel scope: everything (-1) ... nothing (9=default)')
DEFINE_SETTING('PRS', 0001, 'WEB_PRSSYS', 'prs_collegas_groep'                    , 'number'                      , '0'                           , 'Maximum number of group collegues (0=default)')
DEFINE_SETTING('PRS', 0001, 'WEB_PRSSYS', 'prs_dep_default_kpn_voor'              , 'number'                      , '0'                           , 'Gebruik de kostenplaatsen van de prs_perslid_voor indien gezet samen met mld_allow_for_others/bes_allow_for_others')
DEFINE_SETTING('PRS', 0001, 'WEB_PRSSYS', 'prs_default_kpn_empty'                 , 'number'                      , '0'                           , 'Costcentre always default empty {0=no | 1=yes}')
DEFINE_SETTING('PRS', 0001, 'WEB_FACTAB', 'prs_mgt_edit_login'                    , 'boolean'                     , 'false'                       , 'WEB_FACMGT may change login')
DEFINE_SETTING('PRS', 0001, 'WEB_PRSSYS', 'prs_restrict_kpedit'                   , 'number'                      , '0'                           , 'Wijzigen van de kostenplaats? {0=volgens autorisatie (default) | 1=alleen eigen kp/kpg wijzigen}')
DEFINE_SETTING('PHB', 0001, 'WEB_PRSSYS', 'prs_phonebook_info'                    , 'string'                      , ''                            , 'Message to be shown at the top of the phonebook')
DEFINE_SETTING('PHB', 0001, 'WEB_FACTAB', 'photo_kenmerk_key'                     , 'number'                      , '-1'                          , 'ALG_KENMERK_KEY of property Room picture')
DEFINE_SETTING('PHB', 0001, 'WEB_FACTAB', 'prs_photo_kenmerk_key'                 , 'number'                      , '-1'                          , 'PRS_KENMERK_KEY of property Person picture tonen Ja/Nee')
DEFINE_SETTING('PHB', 0001, 'WEB_FACFAC', 'prs_photo_kenmerk_showval'             , 'string'                      , '-1'                          , 'PRS_KENMERK_WAARDE indicating ''Yes''')
DEFINE_SETTING('PHB', 0001, 'WEB_PRSSYS', 'ph_export_advanced'                    , 'boolean'                     , 'false'                       , 'do not show advanced export button')
DEFINE_SETTING('PHB', 0001, 'WEB_FACFAC', 'locphone_kenmerk_key'                  , 'number'                      , '-1'                          , NULL)
DEFINE_SETTING('PHB', 0001, 'WEB_FACFAC', 'locfax_kenmerk_key'                    , 'number'                      , '-1'                          , NULL)
DEFINE_SETTING('PHB', 0001, 'WEB_FACFAC', 'phone_usrrap_key'                      , 'number'                      , '-1'                          , 'userrap key for custom phonebook')
DEFINE_SETTING('PHB', 0001, 'WEB_PRSSYS', 'phone_show_functie'                    , 'boolean'                     , 'true'                        , 'Toon Functie filter veld')
DEFINE_SETTING('PHB', 0001, 'WEB_FACFAC', 'prs_plaats_key'                        , 'number'                      , '-1'                          , 'PRS_KENMERK_KEY of property location, if -1, the workplace is used for the location')
DEFINE_SETTING('PHB', 0001, 'WEB_FACFAC', 'prs_image_path'                        , 'string'                      , NULL                          , 'path to folder storing person pictures')
DEFINE_SETTING('PHB', 0001, 'WEB_PRSSYS', 'ph_loc_search'                         , 'boolean'                     , 'true'                        , 'provide search on locations in phonebook (true) or not (false)')
DEFINE_SETTING('PHB', 0001, 'WEB_PRSSYS', 'ph_bedr_search'                        , 'boolean'                     , 'true'                        , 'provide search on companies in phonebook (true) or not (false)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'ph_rowdetails'                         , 'number'                      , '1'                           , 'Show phonebook details when click-on-row')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'ph_placeFG'                            , 'number'                      , '0'                           , 'Show FG popup when click on place')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'ph_showparentafdeling'                 , 'number'                      , '0'                           , 'Show parent afdeling')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'ph_showfunctie'                        , 'number'                      , '0'                           , 'Toon functie van de persoon {0=no (default)| 1=yes}')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'prs_mandaterequiresprofiel'            , 'number'                      , '0'                           , 'Alleen personen met een profiel kunnen worden (onder)gemandateerd (1) of iedereen (0)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'ph_persliddetails_page'                , 'string'                      , 'appl/fac/fac_user_info_phone.asp', NULL)
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'prs_ph_bedrijf'                        , 'number'                      , '1'                           , 'Bedrijven selectbox aanwezig in informatiegids overzichtscherm {0=no | 1=yes (default)}')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'ph_cust_flexsearch_key'                , 'number'                      , '-1'                          , 'custom flexsearchfield for phonebook. Must be ''Suggest'' type!')
DEFINE_SETTING('PRJ', 0001, 'WEB_PRSSYS', 'prj_fg_paperColor'                     , 'number'                      , '16777215'                    , 'paper background for projects {nn=color | -1=''as published''}')
DEFINE_SETTING('PRJ', 0001, 'WEB_FACFAC', 'fg_prj_syncruimteview'                 , 'string'                      , 'cad_v_sync_prj_ruimte'       , NULL)
DEFINE_SETTING('PRJ', 0001, 'WEB_PRSSYS', 'prj_discipline_key'                    , 'number'                      , '-1'                          , 'mld_discipline_key of discipline for moves')
DEFINE_SETTING('INS', 0001, 'WEB_FACFAC', 'ins_image_path'                        , 'string'                      , NULL                          , 'path to folder storing ins_srtdeel pictures')
DEFINE_SETTING('INS', 0001, 'WEB_PRSSYS', 'ins_fg_remote_maps'                    , 'string'                      , ''                            , 'URL. if not empty use Google Maps instead of FG if x,y coordinates of an object are available')
DEFINE_SETTING('INS', 0001, 'WEB_PRSSYS', 'ins_inspect_soon_days'                 , 'number'                      , '30'                          , 'Days margin for needs inspection ''soon''')
DEFINE_SETTING('INS', 0001, 'WEB_PRSSYS', 'ins_can_edit_own_objects'              , 'number'                      , '0'                           , 'Owner can edit objects {0|1, default 0}')
DEFINE_SETTING('INS', 0001, 'WEB_FACTAB', 'inspect_enabled'                       , 'number'                      , '0'                           , 'Is FACILITOR Inspect available {0 | 1} (future use)')
DEFINE_SETTING('INS', 0001, 'WEB_PRSSYS', 'ins_flex_uitgifte_empty'               , 'number'                      , '0'                           , 'Flexvelden die geen meetwaarden zijn leeg maken bij uitgifte {0=no (default) | 1=yes}')
DEFINE_SETTING('INS', 0001, 'WEB_PRSSYS', 'ins_occupationsensors_srtgroep_key'    , 'number'                      , '-1'                          , 'INS_SRTGROEP_KEY of sensor objects to be used for occupation/availability')
DEFINE_SETTING('INS', 0001, 'WEB_PRSSYS', 'ins_explode_objects'                   , 'number'                      , '1'                           , 'Explode the nummer of (new) object {0=no | 1=yes (default)}')
DEFINE_SETTING('INS', 0001, 'WEB_PRSSYS', 'ins_xcp_active_cost'                   , 'number'                      , '15'                          , 'Active cost fields used/shown {+1=kosten, +2=kosten2, +4=kosten3, +8=materiaal}')
DEFINE_SETTING('INS', 0001, 'WEB_PRSSYS', 'ins_auth_obj_lendout'                  , 'number'                      , '0'                           , 'Authorization scope for objects which are lent out for lending registration (INSFOF/fo) {0=owner(borrower) (default) | 1=basic place/owner}')
DEFINE_SETTING('INS', 0001, 'WEB_PRSSYS', 'ins_attach_obj_cntpers'                , 'number'                      , '0'                           , 'Een object koppelen aan een contactpersoon {0=Alleen tijdens bezoek(default) | 1=Altijd}')
DEFINE_SETTING('INS', 0001, 'WEB_FACFAC', 'mjb_enabled'                           , 'number'                      , '0'                           , 'Is MJOB available {0 | 1}')
DEFINE_SETTING('INS', 0001, 'WEB_PRSSYS', 'mjb_inflation'                         , 'float'                       , '1'                           , 'Default inflation mjob')
DEFINE_SETTING('INS', 0001, 'WEB_PRSSYS', 'mjb_show_years'                        , 'number'                      , '5'                           , 'Default number of years which should be shown in the MJOB console')
DEFINE_SETTING('INS', 0001, 'WEB_PRSSYS', 'mjb_operation_external'                , 'number'                      , '0'                           , 'Operational handling mjob {0=internal (default) | 1=external}')
DEFINE_SETTING('INS', 0001, 'WEB_PRSSYS', 'mjb_start_year'                        , 'number'                      , EXTRACT(YEAR FROM SYSDATE)    , 'Start/First year of freezing of MJOB')
DEFINE_SETTING('INS', 0001, 'WEB_PRSSYS', 'mjb_freeze_year'                       , 'number'                      , EXTRACT(YEAR FROM SYSDATE)    , 'Freeze year of MJOB')
DEFINE_SETTING('INS', 0001, 'WEB_FACFAC', 'ins_score_enabled'                     , 'number'                      , '0'                           , 'Is conditie meting aanwezig {0 | 1}')
DEFINE_SETTING('PRS', 0001, 'WEB_FACTAB', 'badgenum_kenmerk_key'                  , 'number'                      , '-1'                          , 'PRS_KENMERK_KEY of property badge number')
DEFINE_SETTING('QVW', 0001, 'WEB_FACFAC', 'qvw_enabled'                           , 'number'                      , '0'                           , 'Number of licensed Qlikview users {0 | n}')
DEFINE_SETTING('QVW', 0001, 'WEB_FACFAC', 'qvw_ajaxzfcpath'                       , 'string'                      , 'https://qv.facilitor.nl/QvAjaxZfc/', 'Root prefix to QlikView Analyzer Zero Footprint Client (must end with /)')
DEFINE_SETTING('QVW', 0001, 'WEB_FACFAC', 'qvw_docfolder'                         , 'string'                      , 'cust/'                       , 'path to the QVW-docs on the server (must end with /)')
DEFINE_SETTING('QVW', 0001, 'WEB_FACFAC', 'qv_ticket_prefix'                      , 'string'                      , ''                            , 'Ticket name prefix.')
DEFINE_SETTING('QVW', 0000, 'WEB_FACFAC', 'qv_ticket_auth'                        , 'string'                      , 'Basic UVZfRkNMVDpDczJxbnRQSFdKeExNdUxjWWRwRQ==', 'Qlikview server authentication.') // base64("QV_FCLT:<secret>")
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_descript_required'                 , 'boolean'                     , 'false'                       , 'require description field for reservation')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_default_alg_ruimte_key'            , 'number'                      , '-1'                          , 'Standard roomkey for catering')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_block'                             , 'float'                       , '1'                           , 'Minimal reservation duration (hours)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_bo_status_key'                     , 'number'                      , '5'                           , 'status of reservations to be considered as Closed')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_dur'                               , 'float'                       , '2'                           , 'initial reserving duration (hours)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_reservering_limiet'                , 'number'                      , '-1'                          , 'max number of days from now that reservations are allowed, in past or future {-1 = no limit}')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_fe_reservering_limiet'             , 'number'                      , '-1'                          , 'possible overrule of res_reservering_limiet for fe users')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_h'                                 , 'float'                       , '0.5'                         , 'reservation interval (hours)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_default_fe_status_key'             , 'number'                      , '2'                           , '(5i)Default reservation status for FE (1=optie, 2=definitief)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_default_fo_status_key'             , 'number'                      , '2'                           , 'Default reservation status for FO (1=optie, 2=definitief)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_t1'                                , 'float'                       , '8'                           , 'reservation day start (hour)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_t2'                                , 'float'                       , '18'                          , 'reservation day end (hour)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_cat_t1'                            , 'float'                       , '-1'                          , 'Catering day start (hour), -1 is take res_t1')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_cat_t2'                            , 'float'                       , '-1'                          , 'Catering day end (hour), -1 is take res_t2')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_rap_t1'                            , 'float'                       , '-1'                          , 'Occupation report day start (hour), -1 is take res_t1')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_rap_t2'                            , 'float'                       , '-1'                          , 'Occupation report day end (hour), -1 is take res_t2')
DEFINE_SETTING('RES', 0001, 'WEB_FACTAB', 'res_pda_room_times'                    , 'array'                       , '30,60,120'                   , 'Proposed reservation times pda rooms')
DEFINE_SETTING('RES', 0001, 'WEB_FACTAB', 'res_pda_deel_times'                    , 'array'                       , '15,30,60,120,240'            , 'Proposed reservation times pda objects')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_t_middag'                          , 'float'                       , '-1'                          , 'Start time for afternoon tarif for rooms (hour), -1 is one price over the day')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_t_avond'                           , 'float'                       , '-1'                          , 'Start time for evening tarif for rooms (hour),   -1 is one price over the day')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_roompricingmethod'                 , 'number'                      , '1'                           , 'Method for room price calculation {1|2|3|n}')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_roompricingkorting'                , 'number'                      , '0'                           , 'Show editable korting field (0=hide, +1=FO, +2=BO, +4=catering too)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_roompricingtotaal'                 , 'number'                      , '0'                           , 'Show fixed totaal field (0=hide, +1=FO, +2=BO, +4=catering too)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_fo_default_user'                   , 'boolean'                     , 'true'                        , 'Res user current user a default caller, { true=user default | false=empty default }')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_hide_remark'                       , 'number'                      , '0'                           , 'Hide remark field in reservation screen ( 0=show | 1=hide | 2=hide only at add)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_copy_to_bez'                       , 'number'                      , '3'                           , 'Duplicate properties to visitors {0=none | 1=remark | 2=flex | 3=remark and flex | &4=at all changes}')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_bo_show_telnr'                     , 'number'                      , '1'                           , 'Show telephonenumber column in res bo list (0=no show | 1=show)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_bo_show_kpn'                       , 'number'                      , '1'                           , 'Show account number column in res bo list (0=no show | 1=show)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_bo_show_host'                      , 'number'                      , '1'                           , 'Show host column in res bo list (0=no show | 1=show)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_fe_edit_option_only'               , 'number'                      , '0'                           , 'FE can only edit ''Optional'' reservations (0=opties+definitieve (default) 1=alleen opties)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_fe_late_edit_vis'                  , 'number'                      , '0'                           , 'FE can edit visitors and (room-)configuration after the room expires {0=No (default) | 1=Yes}')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_fo_list_days'                      , 'number'                      , '0'                           , 'Default number of days in FO overview (working days)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_fe_list_days'                      , 'number'                      , '5'                           , 'Default number of days in FE overview')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_fe_init_host_empty'                , 'boolean'                     , 'false'                       , 'Define how FE reservation host is set initially { false=same as user/caller | true=empty }')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_247organisation'                   , 'number'                      , '0'                           , '24/7 organisation (1= weekends are working days 0= weekends are holidays)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_fe_discs_only_in_res'              , 'number'                      , '-1'                          , 'List of disciplines that can only be reserved in RES_ROOMS')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_search_require_locatie'            , 'number'                      , '0'                           , '(5i)Require selection of a location (for large users) for res_search or not (1=require | 0=dont require)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_default_CVAB_mode'                 , 'number'                      , '1'                           , '0 (00)=Te kiezen&default Afhalen, 1 (01)=Te kiezen, default Bezorgen (default), 2 (10)=Vast     &default Afhalen  3 (11)=Vast,      default Bezorgen')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_fe_allow_dirty'                    , 'number'                      , '1'                           , '0=fe kan niets opslaan wat iets dirty zou maken, 1=het mag wel')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_noshow_detailed'                   , 'number'                      , '1'                           , 'No-show is a checkbox (0) or a number (1)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_vcalendar_link'                    , 'number'                      , '1'                           , 'Download naar ''Outlook''')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_room_order'                        , 'number'                      , '0'                           , 'Planbord sorted by capacity or description (0=capacity (default) | 1=description)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'res_plan_max_bezet'                    , 'number'                      , '0'                           , 'Maximum planbord ''occupied'' fields. AiAi timeout prevention (future use)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_xml_max_rsv_ruimte'                , 'number'                      , '60'                          , 'Maximum number of non-concise rsv_ruimte nodes in reserering node')
DEFINE_SETTING('RES', 0001, 'WEB_FACFAC', 'res_image_path'                        , 'string'                      , NULL                          , 'path to folder storing res_ruimte pictures')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_with_mld'                          , 'number'                      , '0'                           , 'Reservering kan meldingen hebben {0=Nee (default) | 1=Ja}')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_delete_ask_kosten'                 , 'number'                      , '1'                           , 'Aks for recharge costs at delete (0=never ask, 1=ask after, 2=ask only final, 3=ask only final after)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_delete_charge_perc'                , 'array'                       , ''                            , 'Aks for charge costs percentage at delete (array of integer values)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_pool_early'                        , 'number'                      , '30'                          , 'Minutes for early pool-visitors')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_pool_late'                         , 'number'                      , '30'                          , 'Minutes for late pool-visitors')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_bez_desk_refresh'                  , 'number'                      , '180'                         , 'Seconds for autorefresh res_bez_desk.asp')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_allow_for_others'                  , 'number'                      , '1'                           , 'Can I make reservations for others ? {0=no | 1=yes}')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_reservering_flags'                 , 'number'                      , '0'                           , 'Number of flags fo/bo can define on reservation. Max 10')
DEFINE_SETTING('RES', 0001, 'WEB_FACFAC', 'res_remoteurl_refuse'                  , 'string'                      , ''                            , 'Regexp, do not jump to these remote url (future use)')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_strict_locfilter'                  , 'boolean'                     , 'false'                       , 'Do not show locations without catering. Can be extremely slow!')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_cat_with_expired_room'             , 'boolean'                     , 'false'                       , 'Can catering be edited when room is expired {false | true}')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_cat_reject_stdmld'                 , 'number'                      , -1                            , 'Standard call key when rejecting catering')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_allow_multi_cat'                   , 'boolean'                     , 'false'                       , 'Can catering be done on multi day reservation {false | true}')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_allow_undelete'                    , 'boolean'                     , 'false'                       , 'Deleted reservations can be undeleted {false | true}')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_appointment_action'                , 'boolean'                     , 'false'                       , 'Visitor action at reservation available')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_approval'                          , 'number'                      , '0'                           , 'Reserveringsgoedkeuring door aanvrager {0=Uit (default) | 1=Na afloop | 2=Na Afmelden}')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_reminder_noti_blocked'             , 'boolean'                     , 'true'                        , 'Notification when reservation blocked {true=yes (default) | false=no}')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_fo_catering_scopeless'             , 'boolean'                     , 'false'                       , 'Ignore catering-scope for FO-users {true=yes | false=no (default)}')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_suppress_warnbo'                   , 'boolean'                     , 'false'                       , 'Suppress the warning popup lcl_res_warnBO {true=suppress | false=dont suppress (default)}')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_h'                                 , 'float'                       , '0.25'                        , 'time stepsize')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_t1'                                , 'float'                       , '8'                           , 'visitors day start (hour)')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_t2'                                , 'float'                       , '18'                          , 'visitors day end (hour)')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_t1_std'                            , 'float'                       , '8'                           , 'standard visiting begin time of visitors (hour)')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_t2_std'                            , 'float'                       , '18'                          , 'standard visiting end time of visitors (hour)')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_afspraak_limiet'                   , 'number'                      , '-1'                          , 'max number of days from now that visitors are allowed, in past or future {-1 = no limit}')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_fe_afspraak_limiet'                , 'number'                      , '180'                         , 'max number of days from now that visitors are allowed by FE, in past or future {-1 = no limit}')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_checkout_enable'                   , 'number'                      , '1'                           , 'register checkout of visitors by BO {0=no | 1=yes}')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_badgeprint_enable'                 , 'number'                      , '1'                           , 'print {0=no | 1=print at check in | 2=show print button | 4=only when bez_actie autobadge, 3=both 1 and 2 etc. | 8=location/building}')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_autobadgeletters'                  , 'string'                      , ''                            , 'eg. ABCDEFG: Cycle through these letters daily')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_autobadgestart'                    , 'number'                      , '1'                           , 'Daily autobadge start')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_autobadgelength'                   , 'number'                      , '3'                           , 'Autobadge digits')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_user_history'                      , 'number'                      , '7'                           , 'number of days in the past the FE can see his vistors')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_expire'                            , 'number'                      , '0'                           , 'number of days in the future from which the FE can delete de visitors')
DEFINE_SETTING('BEZ', 0001, 'WEB_FACFAC', 'vis_afspraak_onrgoed_uses_keys'        , 'number'                      , '0'                           , 'listboxes location until room instead of only a room text field; INITIEEL INRICHTEN (BEZ-tabellen leeg)!')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_mandatory_alg_level'               , 'string'                      , 'L'                           , 'alg level ''L'' (location), ''G'' (building, ''V'' (floor) or ''R'' (room)')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_show_alg_level'                    , 'string'                      , 'L'                      , 'Show alg level ''L'' (location), ''G'' (building, ''V'' (floor) or ''R'' (room)')
DEFINE_SETTING('BEZ', 0001, 'WEB_FACFAC', 'vis_afspraak_host_uses_keys'           , 'number'                      , '0'                           , 'the field "Bezoek voor" is a listbox (1 = true) otherwise a textfield (0 or 2 for required). INITIEEL INRICHTEN (BEZ-tabellen leeg)!')
DEFINE_SETTING('BEZ', 0001, 'WEB_FACTAB', 'vis_afspraak_tel_required'             , 'number'                      , '0'                           , 'when vis_afspraak_host_uses_keys==0, is phone required?')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_bo_end_interval'                   , 'float'                       , '12'                          , 'standard bo end time interval')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_bo_uses_badgenrs'                  , 'number'                      , '0'                           , 'the BO enters and uses badgenr registration { 0=no | 1=yes }')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'bez_sel_contactpersoon'                , 'number'                      , '1'                           , 'can I select contactpersonen { 0=no | 1=yes | 2=yes, but depending on location}')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'bez_show_flex_in_list'                 , 'number'                      , '7'                           , 'Show flex properties in visitor-lists { 0=none | 1=FE | 2=FO | 3=FE&FO | 4=BO | 5=FE&BO | 6=FO&BO | 7=FE&FO&BO }')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'bez_sel_internpersoon'                 , 'number'                      , '0'                           , 'can I select internal persons { 0=no | 1=yes }')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'bez_closeafteradd'                     , 'number'                      , '0'                           , '0=not, 1=bo, 2=fo, 3=bo&fo')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_allow_check_all'                   , 'number'                      , '1'                           , 'multiple-checkin visitors { 0=no | 1=yes }')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_allow_uncheck'                     , 'number'                      , '0'                           , 'allow uncheck visitors { 0=no | 1=yes }')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'bez_multiday'                          , 'number'                      , '0'                           , 'Can user enter an end-date for an appointment')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_bo_show_all'                       , 'number'                      , '0'                           , 'On entry: Are all checkboxes selected')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_bo_search_host'                    , 'number'                      , '0'                           , 'Show field ''Host'' for VIS BO to search on')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_warning_limit'                     , 'string'                      , '-1'                          , 'After this time, show alert when visitor reservation is for the next day after this day, which is actually too late (-1 = geen tijdswaarde, format = 16:00)')
DEFINE_SETTING('BEZ', 0001, 'WEB_FACFAC', 'vis_park_image'                        , 'string'                      , '../Pictures/vis_park.gif'    , 'location and filename of visitors parking image.')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_park_text'                         , 'string'                      , ''                            , 'Text to replace image in register_input')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_future_checkin'                    , 'number'                      , '0'                           , 'How many days before visit can a visitor be checked in (days)')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_default_number'                    , 'number'                      , '4'                           , 'Default number of visitors (= nr of lines to be filled out) for new appointment')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_increment_number'                  , 'number'                      , '1'                           , 'Number of visitors (= nr of lines to be filled out) to be added with one click')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'bez_bo_orderby'                        , 'number'                      , '0'                           , 'Bezoekersbalie na datumtijd sorteren op { 0=Naam van de bezoeker | 1=Naam van de gastheer}')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'bez_gastheer_telfnr'                   , 'number'                      , '1'                           , 'In bezoekersbalie telfoon nummer van gastheer ook tonen { 0=Nee | 1=Ja}')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'bez_max_flex_on_line'                  , 'number'                      , '0'                           , 'Max aantal flexkenmerken op een bezoekersregel')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'bez_use_buildinghours'                 , 'number'                      , '0'                           , 'Gebouwtijden als tijdgrenzen van afspraken gebruiken {0=Nee (default), 1=Ja}')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'vis_remark'                            , 'number'                      , '0'                           , 'Show field remark for visitor {0=dont show | 1=show | 2=show at register visitor | 3=readonly}')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'bez_show_progress_prop'                , 'number'                      , '1'                           , 'Tonen afhandelings kenmerken (>900) voor bezoekers {0=nooit | 1=popup tijdens inchecken bezoekers(default) | 2=Inline actie | 4=Uitsluitend tonen in popup}')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'bez_show_resname'                      , 'boolean'                     , 'false'                       , 'Show room name instead of real estate name {false=show real estate name | true=show room name}')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'bez_bezoekers_flags'                   , 'number'                      , '0'                           , 'Number of flags fo/bo can define for visitors. Max 10')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'bez_can_send_sms'                      , 'boolean'                     , 'false'                       , 'Option to send sms to host from visitors list')
DEFINE_SETTING('SLE', 0001, 'WEB_PRSSYS', 'cil_ins_srt_groep_key'                 , 'number'                      , '-1'                          , 'INS_SRTDEEL_KEY of object type Cylinders')
DEFINE_SETTING('SLE', 0001, 'WEB_PRSSYS', 'sle_ins_srt_groep_key'                 , 'number'                      , '-1'                          , 'INS_SRTDEEL_KEY of object type Keys')
DEFINE_SETTING('SLE', 0001, 'WEB_PRSSYS', 'sle_cil_koppelen'                      , 'number'                      , '1'                           , 'Sleutels en cilinders zijn door bo handmatig te koppelen {0=nee, 1=ja(default)}')
DEFINE_SETTING('MRK', 0001, 'WEB_PRSSYS', 'mrk_message_expire_days'               , 'number'                      , '30'                          , 'Message automatically expires after ')
DEFINE_SETTING('MRK', 0001, 'WEB_FACFAC', 'mrk_image_path'                        , 'string'                      , NULL                          , 'path to folder storing marketplace pictures')
DEFINE_SETTING('MSG', 0001, 'WEB_PRSSYS', 'msg_reply_enabled'                     , 'number'                      , '1'                           , 'Only show answer button if msg_reply_enabled=1 (default).')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'help_window'                           , 'boolean'                     , 'false'                       , 'New window for Help')
DEFINE_SETTING('ALG', 0001, 'WEB_PRSSYS', 'alg_flexcolumns'                       , 'number'                      , '2'                           , 'number of flexcolumns for ALG [1|2]')
DEFINE_SETTING('BES', 0001, 'WEB_PRSSYS', 'bes_flexcolumns'                       , 'number'                      , '1'                           , 'number of flexcolumns for BES [1|2]')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'bez_flexcolumns'                       , 'number'                      , '1'                           , 'number of flexcolumns for BEZ [1|2]')
DEFINE_SETTING('CNT', 0001, 'WEB_PRSSYS', 'cnt_flexcolumns'                       , 'number'                      , '2'                           , 'number of flexcolumns for CNT [1|2]')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'faq_flexcolumns'                       , 'number'                      , '2'                           , 'number of flexcolumns for FAQ [1|2]')
DEFINE_SETTING('FIN', 0001, 'WEB_PRSSYS', 'fin_flexcolumns'                       , 'number'                      , '1'                           , 'number of flexcolumns for FIN [1|2]')
DEFINE_SETTING('INS', 0001, 'WEB_PRSSYS', 'ins_flexcolumns'                       , 'number'                      , '2'                           , 'number of flexcolumns for INS [1|2]')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_flexcolumns'                       , 'number'                      , '1'                           , 'number of flexcolumns for MLD [1|2]')
DEFINE_SETTING('PRS', 0001, 'WEB_PRSSYS', 'prs_flexcolumns'                       , 'number'                      , '2'                           , 'number of flexcolumns for PRS [1|2]')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_flexcolumns'                       , 'number'                      , '1'                           , 'number of flexcolumns for RES [1|2]')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'sml_photo_size'                        , 'string'                      , 'r200x150'                    , 'Resize uploads to this maximum SML photo size. Ex: r200x150')
DEFINE_SETTING('BES', 0001, 'WEB_PRSSYS', 'bes_photo_size'                        , 'string'                      , 'r512x512'                    , 'Resize uploads to this maximum BES photo size. Ex: r200x150')
DEFINE_SETTING('INS', 0001, 'WEB_PRSSYS', 'ins_photo_size'                        , 'string'                      , 'r512x512'                    , 'Resize uploads to this maximum INS photo size. Ex: r200x150')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_photo_size'                        , 'string'                      , 'r512x512'                    , 'Resize uploads to this maximum MLD photo size. Ex: r200x150')
DEFINE_SETTING('RES', 0001, 'WEB_PRSSYS', 'res_photo_size'                        , 'string'                      , 'r512x512'                    , 'Resize uploads to this maximum RES photo size. Ex: r200x150')
DEFINE_SETTING('MRK', 0001, 'WEB_PRSSYS', 'mrk_photo_size'                        , 'string'                      , 'r512x512'                    , 'Resize uploads to this maximum MRK photo size. Ex: r200x150')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_disable_continuation'              , 'boolean'                     , 'false'                       , 'Disable creating continuation calls { false | true }')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_afrond_canflex'                    , 'boolean'                     , 'false'                       , 'Change flex of completed issue with MLDAFR ')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'mld_afrond_canremark'                  , 'boolean'                     , 'false'                       , 'Change remark of completed issue with MLDAFR ')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'fac_api_key_in_url'                    , 'boolean'                     , 'false'                       , 'Is APIKEY= in url also allowed (unsafe)? Default is header X-FACILITOR-API-Key only')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'fac_api_allow_impersonate'             , 'boolean'                     , 'false'                       , 'Allow impersonation through X-FACILITOR-Switch-user (future use)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'fac_api_limit'                         , 'number'                      , '100'                         , 'Default maximum number of records to return using the REST API')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'fac_api_limit2'                        , 'number'                      , '5000'                        , 'Ultime maximum number of records to return using the REST API')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'prs_bulk_mail_max'                     , 'number'                      , '0'                           , 'Maximum number of persons to be mailed')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'fac_pdf_printer'                       , 'number'                      , '0'                           , 'PDF Printer support bits (future use)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'progress_notification_for'             , 'boolean'                     , 'false'                       , 'Send progress notification to [false=prs_perslid_key | true=prs_perslid_key_voor]')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'xd_secundarydomains'                   , 'json'                        , '' /* moet leeg!*/            , 'Object of related secondary domains {id: {name, url}} (for XD-module)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'xd_primary_bedrijfkey'                 , 'number'                      , '-1'                          , 'bedrijf_key of this Service Organisation (for XD-module)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'xd_add2deeplinkurl'                    , 'string'                      , '&sso=2'                      , 'parameters to be added to the XD-deeplink calls (for XD-module)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'fac_favicon_folder'                    , 'string'                      , 'appl/pictures/'              , 'Folder for favorite/bookmark icons')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'excel_mode'                            , 'number'                      , '0'                           , 'Save Excel as {0=html-table | 1=as CSV (not supported)| 2=native XLS (future use)}')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'fac_usrrap_mode'                       , 'number'                      , '0'                           , 'User reports mode {0=default, 1=advanced}')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'fac_usrrap_safe_view_regexp'           , 'string'                      , ''                            , 'User reports safe views regexp')
DEFINE_SETTING('MLD', 0001, 'WEB_PRSSYS', 'show_perslidselector_by_mail'          , 'number'                      , '1'                           , 'Show person selector at sending mail {1=true | 0=false}')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'basic_auth_realm'                      , 'string'                      , ''                            , 'Realm for Basic Authentication (API only) (future use)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'auth_edit_advanced'                    , 'boolean'                     , 'false'                       , 'Start autorisation popup dialog in advanced mode')
DEFINE_SETTING('BGT', 0001, 'WEB_FACTAB', 'bgt_enabled'                           , 'number'                      , '0'                           , 'Is FACILITOR Budgetting module available {0 | 1}')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'queuemail_sender_order'                , 'string'                      , 'URC'                         , 'Order in which senders are shown {default URC: Useraddress, Replyaddress, Catalogaddress}')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'udr_graph_default_json'                , 'string'                      , ''                            , 'Default json options for report graphs (string!)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'udr_graph_gauge_colors'                , 'string'                      , '[''red'',''orange'',''green'']' , 'Colors being used for gaugemeter charts (string!)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'udr_graph_pie_colors'                  , 'string'                      , '[''#003478'',''#6685ae'',''#e37b00'',''#0b94f9'',''#81ce58'',''#f3d736'',''#acaa65'',''#a222c4'',''#5b9bc3'',''#1c40eb'',''#037011'',''#d192e7'',''#f88625'',''#93b89f'',''#bf6b87'',''#a2b41a'',''#f76979'',''#f41181'',''#73eb59'',''#32d1d0'',''#a00bed'',''#66fe6b'',''#b94d5b'']' , 'Colors being used for pie charts (string!)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'udr_graph_colors1'                     , 'string'                      , '[''#003478'',''#6685ae'',''#e37b00'',''#0b94f9'',''#81ce58'',''#f3d736'',''#acaa65'',''#a222c4'',''#5b9bc3'',''#1c40eb'',''#037011'',''#d192e7'',''#f88625'',''#93b89f'',''#bf6b87'',''#a2b41a'',''#f76979'',''#f41181'',''#73eb59'',''#32d1d0'',''#a00bed'',''#66fe6b'',''#b94d5b'']' , 'Color used for single bar /line graphs (string!)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'udr_graph_colors2'                     , 'string'                      , '[''#003478'',''#6685ae'',''#e37b00'',''#0b94f9'',''#81ce58'',''#f3d736'',''#acaa65'',''#a222c4'',''#5b9bc3'',''#1c40eb'',''#037011'',''#d192e7'',''#f88625'',''#93b89f'',''#bf6b87'',''#a2b41a'',''#f76979'',''#f41181'',''#73eb59'',''#32d1d0'',''#a00bed'',''#66fe6b'',''#b94d5b'']' , 'Colors used for stacked bar /line graphs (string!)')

DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'inline_actions_hamburger'              , 'number'                      , '0'                           , 'Use a hamburger-icon to view the inline actions {0=No | 1=Yes, onClick | 2=Yes, onMouseOver}')

DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'buttons_in_hamburger'                  , 'array'                       , 'print.png,email.png,csv.png,fa-print,excel.png,fa-table,fa-refresh,page_refresh.png,legenda.png', 'Hide these frameheader buttons behind a hamburger.')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'show_issuer_phone'                     , 'number'                      , '0'                           , 'Show the issuer/requestor phone number. {0=never; &1=only MLD; &2=only BES; 3=always}')

DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'show_header_productsearch'             , 'boolean'                     , 'true'                        , 'Display the product search bar in the header')

DEFINE_SETTING('PDA', 0001, 'WEB_PRSSYS', 'pda_list_show_filter_from'             , 'number'                      , '7'                           , 'PDA result sets will include a filter from this many results on')

DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'fac_reserved_number1'                  , 'number'                      , '0'                           , 'reserved_number1 (reserved and unused)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'fac_reserved_number2'                  , 'number'                      , '0'                           , 'reserved_number2 (reserved and unused)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'fac_reserved_string1'                  , 'string'                      , ''                            , 'reserved_string1 (reserved and unused)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'fac_reserved_string2'                  , 'string'                      , ''                            , 'reserved_string2 (reserved and unused)')
DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'anonymize_period'                      , 'number'                      , '365'                         , 'Period before data wil be anonymized')

/*
 *
 *      The GENERAL SETTINGS (will be extended in future)
 *
 */
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'fac_server_timezone',  'string', 'Europe/Amsterdam', 'The timezone of the database-server')

DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'fac_t_startofworkday', 'float',  '8', 'Start time (hour, decimal) of a working day')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'fac_t_endofworkday' ,  'float', '17', 'End time (hour, decimal) of a working day')

DEFINE_SETTING('MLD', 0001, 'WEB_FACTAB', 'defaultstdmelding',         'number', '-1', 'The stdmeldingkey for generic calls received by e-mail')
DEFINE_SETTING('MLD', 0001, 'WEB_FACTAB', 'mld_reply_subject_regexp',  'string', '[[:alpha:]]*[[:digit:]]{3,}', 'The regexp for recognizing reply melding numbers (future use)')

DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_mld_vraag1','number', '-1','Kenmerk-key Vraag1 bij KTO van een melding')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_mld_vraag2','number', '-1','Kenmerk-key Vraag2 bij KTO van een melding')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_mld_vraag3','number', '-1','Kenmerk-key Vraag3 bij KTO van een melding')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_mld_vraag4','number', '-1','Kenmerk-key Vraag4 bij KTO van een melding')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_mld_vraag5','number', '-1','Kenmerk-key Vraag5 bij KTO van een melding')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_mld_cijfer1','number', '-1','Kenmerk-key Cijfer1 bij KTO van een melding')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_mld_cijfer2','number', '-1','Kenmerk-key Cijfer2 bij KTO van een melding')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_mld_cijfer3','number', '-1','Kenmerk-key Cijfer3 bij KTO van een melding')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_mld_cijfer4','number', '-1','Kenmerk-key Cijfer4 bij KTO van een melding')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_mld_cijfer5','number', '-1','Kenmerk-key Cijfer5 bij KTO van een melding')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_mld_toelicht1','number', '-1','Kenmerk-key Toelichting1 bij KTO van een melding')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_mld_toelicht2','number', '-1','Kenmerk-key Toelichting2 bij KTO van een melding')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_mld_toelicht3','number', '-1','Kenmerk-key Toelichting3 bij KTO van een melding')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_mld_toelicht4','number', '-1','Kenmerk-key Toelichting4 bij KTO van een melding')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_mld_toelicht5','number', '-1','Kenmerk-key Toelichting5 bij KTO van een melding')

---- Fac_Settings voor KTO-RES -- For Future Use

DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_res_vraag1','number', '-1','Kenmerk-key Vraag1 bij KTO van een reservering')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_res_vraag2','number', '-1','Kenmerk-key Vraag2 bij KTO van een reservering')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_res_vraag3','number', '-1','Kenmerk-key Vraag3 bij KTO van een reservering')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_res_vraag4','number', '-1','Kenmerk-key Vraag4 bij KTO van een reservering')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_res_vraag5','number', '-1','Kenmerk-key Vraag5 bij KTO van een reservering')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_res_cijfer1','number', '-1','Kenmerk-key Cijfer1 bij KTO van een reservering')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_res_cijfer2','number', '-1','Kenmerk-key Cijfer2 bij KTO van een reservering')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_res_cijfer3','number', '-1','Kenmerk-key Cijfer3 bij KTO van een reservering')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_res_cijfer4','number', '-1','Kenmerk-key Cijfer4 bij KTO van een reservering')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_res_cijfer5','number', '-1','Kenmerk-key Cijfer5 bij KTO van een reservering')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_res_toelicht1','number', '-1','Kenmerk-key Toelichting1 bij KTO van een reservering')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_res_toelicht2','number', '-1','Kenmerk-key Toelichting2 bij KTO van een reservering')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_res_toelicht3','number', '-1','Kenmerk-key Toelichting3 bij KTO van een reservering')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_res_toelicht4','number', '-1','Kenmerk-key Toelichting4 bij KTO van een reservering')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_res_toelicht5','number', '-1','Kenmerk-key Toelichting5 bij KTO van een reservering')

---- Fac_Settings voor KTO-BES -- For Future Use

DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_bes_vraag1','number', '-1','Kenmerk-key Vraag1 bij KTO van een bestelling')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_bes_vraag2','number', '-1','Kenmerk-key Vraag2 bij KTO van een bestelling')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_bes_vraag3','number', '-1','Kenmerk-key Vraag3 bij KTO van een bestelling')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_bes_vraag4','number', '-1','Kenmerk-key Vraag4 bij KTO van een bestelling')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_bes_vraag5','number', '-1','Kenmerk-key Vraag5 bij KTO van een bestelling')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_bes_cijfer1','number', '-1','Kenmerk-key Cijfer1 bij KTO van een bestelling')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_bes_cijfer2','number', '-1','Kenmerk-key Cijfer2 bij KTO van een bestelling')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_bes_cijfer3','number', '-1','Kenmerk-key Cijfer3 bij KTO van een bestelling')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_bes_cijfer4','number', '-1','Kenmerk-key Cijfer4 bij KTO van een bestelling')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_bes_cijfer5','number', '-1','Kenmerk-key Cijfer5 bij KTO van een bestelling')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_bes_toelicht1','number', '-1','Kenmerk-key Toelichting1 bij KTO van een bestelling')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_bes_toelicht2','number', '-1','Kenmerk-key Toelichting2 bij KTO van een bestelling')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_bes_toelicht3','number', '-1','Kenmerk-key Toelichting3 bij KTO van een bestelling')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_bes_toelicht4','number', '-1','Kenmerk-key Toelichting4 bij KTO van een bestelling')
DEFINE_SETTING('KTO', 0001, 'WEB_FACTAB', 'kto_bes_toelicht5','number', '-1','Kenmerk-key Toelichting5 bij KTO van een bestelling')

DEFINE_SETTING('BEZ', 0001, 'WEB_FACTAB', 'vis_parking_key' , 'number', '-1', 'Catalog key (res_discipline_key) for Parking places')
DEFINE_SETTING('BEZ', 0001, 'WEB_PRSSYS', 'bez_set_remote_flags' , 'number', '0', 'Flags to set with remote-checkbox')

---- Fac_Settings voor PutOrders --

DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_notificationinmailbody' , 'boolean' , 'false'                                     , 'false = as attachments, true = in body')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_mailbodycharset'        , 'string'  , 'unicode-1-1-utf-8'                         , 'Putorders e-mail charset')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_notificationxsl'        , 'string'  , 'xsl/cust.xsl'                              , 'stylesheet to be applied for notifications')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_system2systemxsl'       , 'string'  , 'xsl/system2system.xsl'                     , 'Stylesheet to be applied for system 2 system notifications')
DEFINE_SETTING('PUO', 0001, 'WEB_PRSSYS', 'puo_subjectprefix'          , 'string'  , 'Facilitor bestelling: Bestelopdracht nr.'  , 'Mail subject prefix for BES orders (to be followed by ordernr)')
DEFINE_SETTING('PUO', 0001, 'WEB_PRSSYS', 'puo_subjectprefixmld'       , 'string'  , 'Facilitor opdracht: Opdracht nr.'          , 'Mail subject prefix for MLD orders')
DEFINE_SETTING('PUO', 0001, 'WEB_PRSSYS', 'puo_subjectprefixcnt'       , 'string'  , 'Facilitor contract nr.'                    , 'Mail subject prefix for CNT')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_fromaddress'            , 'string'  , ''                                          , 'The fixed From address for Facilitor orders')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_replyaddress'           , 'string'  , ''                                          , 'Optional reply address if that is different from FromAddress')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_usesenderasreplyto'     , 'boolean' , 'false'                                     , 'If false the sender will be the sender, if true the sender will be FromAddress and ReplyAddress will be the sender')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_receiptto'              , 'string'  , ''                                          , 'Address to send the receipt confirmation to for ORDERS only')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_cc'                     , 'string'  , ''                                          , 'Copy email address for ORDERS only')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_bcc'                    , 'string'  , ''                                          , 'Blind copy email address for ORDERS only')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_loglevel'               , 'number'  , '1'                                         , 'Level of logging (0-3) for troubleshooting purposes')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_connectionflag'         , 'number'  , '0'                                         , 'INTERNET_FLAG_PASSIVE = 0x8000000, else = 0')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_useproxy'               , 'boolean' , 'false'                                     , 'true = Use Proxy Server (recognizes TIS FTP gateway only), false = don''t use Proxy')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_proxyserveripaddress'   , 'string'  , '127.0.0.1:8888'                            , 'Proxy Server IP Address, only used when UseProxy = true')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_logdestination'         , 'number'  , '1'                                         , 'Where to log: 1=file, 2 = database, 3=both')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_emergencymailaddress'   , 'string'  , ''                                          , 'Fallback e-mail address if database cannot be reached')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_custorders'             , 'boolean' , 'false'                                     , 'true = use customer orderqueue')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_forcemailaddress'       , 'string'  , ''                                          , 'Force this email address for test purposes eg john@example.com')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_forceorderaddress'      , 'string'  , ''                                          , 'Force this order address for test purposes eg mailto://john@example.com')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_forcenotiaddress'       , 'string'  , ''                                          , 'Force the notification adress for test purposes eg. "http://facilitordev.azurewebsites.net')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_forcefromaddress'       , 'string'  , ''                                          , 'Force the from and reply address for test purposes eg john@example.com')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_forcemobile'            , 'string'  , ''                                          , 'Force this mobile number for test purposes eg 31612345678')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_smsprovider'            , 'number'  , '0'                                         , '0=wireless-services.nl, 1=Aareon.nl')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_smsprotocol'            , 'string'  , 'HTTP'                                      , 'HTTP or SMTP(*)')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_smsaccount'             , 'string'  , ''                                          , 'SMS email address for protocol SMTP')
DEFINE_SETTING('PUO', 0000, 'WEB_FACTAB', 'puo_uid'                    , 'string'  , ''                                          , 'SMS provider user id')
DEFINE_SETTING('PUO', 0000, 'WEB_FACTAB', 'puo_pwd'                    , 'string'  , ''                                          , 'SMS provider user password')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_replyphone'             , 'string'  , 'FACILITOR'                                 , 'Include country code')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_sendusing'              , 'number'  , '1'                                         , '1=cdoSendUsingPickup (IIS SMTP Service must be installed), 2=cdoSendUsingPort')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_smtpserver'             , 'string'  , ''                                          , 'Server when sendusing cdoSendUsingPort')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_smtpserverport'         , 'number'  , '25'                                        , 'Serverport when sendusing cdoSendUsingPort')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_smtpconnectiontimeout'  , 'number'  , '30'                                        , 'SMTP timeout in seconds (future use)')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_smtpusessl'             , 'boolean' , 'false'                                     , 'Use SSL when sending to port (future use)')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_smtpauthenticate'       , 'number'  , '0'                                         , 'Authentication when sendusing cdoSendUsingPort 0=cdoAnonymous, 1=cdoBasic, 2=cdoNTLM')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_sendusername'           , 'string'  , ''                                          , 'Username when puo_smtpauthenticate=cdoBasic')
DEFINE_SETTING('PUO', 0000, 'WEB_FACTAB', 'puo_sendpassword'           , 'string'  , ''                                          , 'Password when puo_smtpauthenticate=cdoBasic')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_flags'                  , 'number'  , '255'                                       , '+1=send notifications, +2=send orders, +4=all orders Immediate')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_order_flexfiles'        , 'number'  , '0'                                         , 'Include flexfiles with sent orders')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_apppushurl'             , 'string'  , ''                                          , 'URL for pushing APP notifications')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_failalert_threshold'    , 'number'  , '240'                                       , 'Minimum minutes after first failed send-attempts before an alert is sent to the (PRSSYS) application manager(s)')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_faildelayincrement'     , 'number'  , '10'                                        , 'Delay retry of failed orders up to failures*10 minutes')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_faildelaymax'           , 'number'  , '120'                                       , 'Maximum delay of failed orders in minutes')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_failextralogging'       , 'number'  , '3'                                         , 'At the 3rd failure logging is increased automatically once')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'bdradrfiles_path'           , 'string'  , NULL                                        , 'Technische adressen bijlagen folder')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_lcl_friendly_mailto'    , 'string'  , 'Opdracht per e-mail gestuurd naar {0}'     , 'Friendly text for mail tracking')
DEFINE_SETTING('PUO', 0001, 'WEB_PRSSYS', 'puo_lcl_friendly_http'      , 'string'  , 'Opdracht per SOAP gestuurd naar {0}'       , 'Friendly text for http tracking')
DEFINE_SETTING('PUO', 0001, 'WEB_PRSSYS', 'puo_lcl_friendly_ftp'       , 'string'  , 'Opdracht per ftp gestuurd naar {0}'        , 'Friendly text for ftp tracking, also port {1} folder {2}')
DEFINE_SETTING('PUO', 0001, 'WEB_PRSSYS', 'puo_lcl_friendly_file'      , 'string'  , 'Opdracht naar bestand in {0} gestuurd'     , 'Friendly text for file tracking')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_fclt_web_url'           , 'string'  , ''                                          , 'Url to the FACILITOR software (webserver internal address)')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_fclt_web_apikey'        , 'string'  , ''                                          , 'Putorders APIKEY to the FACILITOR software')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_sendtimeout'            , 'number'  , '30'                                        , 'Default send timeout for http-communication. Increase for large attachments')
DEFINE_SETTING('PUO', 0001, 'WEB_FACTAB', 'puo_receivetimeout'         , 'number'  , '30'                                        , 'Default receive timeout for http-communication. Increase for slow servers')

// Vervallen settings opruimen
DELETE FROM fac_setting
      WHERE fac_setting_name NOT IN
              (SELECT fac_setting_name FROM tmp_set);
COMMIT;

// Gewijzigde settings bijwerken
UPDATE fac_setting fs
   SET (fac_setting_module,
       fac_setting_flags,
       fac_functie_key,
       fac_setting_type,
       fac_setting_default,
       fac_setting_description,
       fac_setting_comment
       ) =
          (SELECT fac_setting_module,
                  fac_setting_flags,
                  fac_functie_key,
                  fac_setting_type,
                  fac_setting_default,
                  fac_setting_description,
                  fac_setting_comment
             FROM tmp_set
            WHERE fs.fac_setting_name = tmp_set.fac_setting_name)
 WHERE fs.fac_setting_name IN (SELECT fac_setting_name FROM tmp_set);
COMMIT;

// Nieuwe settings toevoegen
INSERT INTO fac_setting (fac_setting_module,
                         fac_setting_flags,
                         fac_functie_key,
                         fac_setting_name,
                         fac_setting_type,
                         fac_setting_default,
                         fac_setting_description,
                         fac_setting_comment)
                  SELECT fac_setting_module,
                         fac_setting_flags,
                         fac_functie_key,
                         fac_setting_name,
                         fac_setting_type,
                         fac_setting_default,
                         fac_setting_description,
                         fac_setting_comment
     FROM tmp_set
    WHERE tmp_set.fac_setting_name NOT IN
                (SELECT fac_setting_name
                   FROM fac_setting);
COMMIT;

-- Bij elke klant anders, moet dus in pvalue
-- Alleen effectief bij de CREA

UPDATE fac_setting
   SET fac_setting_pvalue =
        (SELECT prs_perslid_apikey
           FROM prs_perslid
          WHERE prs_perslid_oslogin = '_PUTORDERS')
 WHERE fac_setting_pvalue IS NULL
   AND fac_setting_name = 'puo_fclt_web_apikey';

COMMIT;

TRUNCATE TABLE tmp_set;
DROP TABLE tmp_set PURGE;

REGISTERONCE('$Id$')
