"' // Set it to an empty string only if you explicitly want to allow all characters. // Set it to 'MAIN_LOGIN_BADCHARUNAUTHORIZED' only if you explicitly trust the Dolibarr hidden setup value. // Examples: // $dolibarr_login_badcharunauthorized=',@<>"\''; // $dolibarr_login_badcharunauthorized=''; // $dolibarr_login_badcharunauthorized='MAIN_LOGIN_BADCHARUNAUTHORIZED'; // dolibarr_main_restrict_os_commands // ================================== // To restrict commands you can execute by the backup feature, enter allowed command here. // Note: If you can, defining permission on OS linux (using SELinux for example) may be a better choice. // Default value: 'mysqldump, mysql, pg_dump, pgrestore, mariadb, mariadb-dump' // Examples: // $dolibarr_main_restrict_os_commands='mysqldump, /usr/local/bin/otherdumptool'; // $dolibarr_main_restrict_os_commands='mariadb-dump, mariadb, mysqldump, mysql, pg_dump, pg_restore, clamdscan, clamdscan.exe'; // $dolibarr_main_restrict_os_commands='mariadb-dump, mariadb, mysqldump, mysql, pg_dump, pg_restore, clamdscan, clamdscan.exe'; // dolibarr_main_restrict_eval_methods // =================================== // A whitelist of functions and methods to restrict the commands you can execute in a custom calculated fields, like "computed fields" of // extrafields or string conditions of extrafields. // Default value: 'getDolGlobalString, getDolGlobalInt, getDolCurrency, getDolEntity, getDolDBType, fetchNoCompute, hasRight, isAdmin, isModEnabled, isStringVarMatching, abs, round, dol_now, preg_match' // Examples: // $dolibarr_main_restrict_eval_methods='getDolGlobalString, getDolGlobalInt, getDolCurrency, getDolEntity, getDolDBType, fetchNoCompute, hasRight, isAdmin, isModEnabled, isStringVarMatching, abs, min, max, round, dol_now, dol_concat, preg_match'; // $dolibarr_main_restrict_eval_methods='getDolGlobalString, getDolGlobalInt, getDolCurrency, getDolEntity, getDolDBType, fetchNoCompute, hasRight, isAdmin, isModEnabled, isStringVarMatching, abs, min, max, round, dol_now, preg_match'; // dolibarr_main_disabled_modules // ================================== // To restrict the activation and use of certain potentially security-sensitive modules. // TODO Not yet implemented // Default value: array() // Examples: // $dolibarr_main_disabled_modules = array('dav', 'api'); // // $dolibarr_main_disabled_modules = array(); // dolibarr_main_restrict_ip // ========================= // To restrict access to backoffice to some ip addresses only. Use a comma to separate values. Possible to use IPv4 and IPv6 addresses. // Networks can be covered with CIDR notation. // Note: Pages that does not need login (like public pages, web site) are not protected with this. // Default value: '' // Examples: // $dolibarr_main_restrict_ip='127.0.0.1, ::1, 192.168.0.1, 192.168.0.0/24, 2a01:e0a:123:456::/64'; // $dolibarr_main_restrict_ip=''; // dolibarr_nocsrfcheck // ==================== // This parameter can be used to disable CSRF protection. // This might be required for debug purpose or if you access Dolibarr behind a proxy that make bad URL rewriting, to avoid false alarms. // In most cases, you should always keep this to 0. // Default value: 0 // Possible values: 0 or 1 (no strict CSRF test, only test on referrer) or 2 (no CSRF test at all) // Examples: // $dolibarr_nocsrfcheck='0'; // $dolibarr_nocsrfcheck='0'; // dolibarr_api_count_always_enabled // ================================= // Set this value to 1 so disabling the count of each API call will not be possible from the admin setup pages. // In most cases, you should always keep this to 0. // Default value: 0 // Possible values: 0 or 1 (API is always enabled, can't be disabled from admin setup) // Examples: // $dolibarr_api_count_always_enabled='1'; // // $dolibarr_api_count_always_enabled='1'; // dolibarr_cron_allow_cli // ======================= // If set to 1, you will be able to define some command line in the internal Job scheduler module. // Default value: '0' // Examples: '1' // $dolibarr_cron_allow_cli='0'; // dolibarr_mailing_limit_sendbyweb // ================================ // Can set a limit for mailing send by web. This overwrite database value. Can be used to restrict on system level. // Default value: '25' // Examples: '-1' (sending by web is forbidden) // // $dolibarr_mailing_limit_sendbyweb='25'; // dolibarr_mailing_limit_sendbycli // ================================ // Can set a limit for mailing send by cli. This overwrite database value. Can be used to restrict on system level. // Default value: '0' (no hard limit, use soft database value if exists) // Examples: '-1' (sending by cli is forbidden) // // $dolibarr_mailing_limit_sendbycli='0'; // dolibarr_main_stream_to_disable // ================================ // Can set a list of PHP stream to disable. // Default value: array('compress.zlib', 'compress.bzip2', 'ftp', 'ftps', 'glob', 'data', 'expect', 'ogg', 'rar', 'zip', 'zlib') // Examples: array('ftp', 'ftps') // // $dolibarr_main_stream_to_disable = array('compress.zlib', 'compress.bzip2', 'ftp', 'ftps', 'glob', 'data', 'expect', 'ogg', 'rar', 'zip', 'zlib'); // $dolibarr_website_allow_custom_php // ================================== // By default for security purpose, it is not possible to add or edit PHP dynamic content into a website (even if user has permission for this). To be able // to edit PHP content in website page, you must first allow this globally, by setting this parameter to 1 or 2. // 0 will disallow use of dynamic PHP inside the website features. Only HTML and js will be possible. // 1 will allow custom PHP inside website features, but only if all RCE PHP functions in the "exec" family are disabled (using the PHP disable_functions parameter) // 2 will allow custom PHP inside website features, even if RCE PHP functions in the "exec" family are enabled (this may be dangerous if you don't have a RCE protection like SELinux or Apparmor). // Default value: '0' // Examples: '0', '1' or '2' // // $dolibarr_website_allow_custom_php='0'; // dolibarr_allow_localurl_for_webhooks // ==================================== // Allow webhooks to use a local url // Default value: '0' // Examples: '1' // // $dolibarr_allow_localurl_for_webhooks = '0'; // dolibarr_allow_unsecured_select_in_extrafields_filter // ===================================================== // Allow the use of subrequests inside USF IN filters // Default value: '0' // Examples: '1' // // $dolibarr_allow_unsecured_select_in_extrafields_filter = '0'; // php_session_save_handler // ======================== // Try to use the Dolibarr internal session handler that uses a database instead of the PHP handler (experimental). // If you enable this feature to 'db', you may also want to enable the following constants: // $dolibarr_session_db_type, $dolibarr_session_db_host, $dolibarr_session_db_user, $dolibarr_session_db_pass // $dolibarr_session_db_pass, $dolibarr_session_db_name, $dolibarr_session_db_type = $dolibarr_main_db_port // Default value: '' // Example: 'db'; // // $php_session_save_handler=''; // force_install_lockinstall // ========================= // If this value is set to a value, it forces the creation of a file install.lock once an upgrade process into a new version end. // The value is the octal value of permission to set on created file. // The file install.lock prevents the use of the install and upgrade process another time. You will have to delete it manually for // next install process or create a upgrade.unlock for next upgrade. // Default value: '0' // Example: '444'; // $force_install_lockinstall='440'; // MAIN_ANTIVIRUS_COMMAND (as a constant) // ====================== // Force a value for the antivirus command line tool so setup for admin user interface has no effect. // Default value: '' // Example: '/usr/bin/clamdscan'; // define('MAIN_ANTIVIRUS_COMMAND', '/usr/bin/clamdscan'); // MAIN_ANTIVIRUS_PARAM (as a constant) // ==================== // Force a value for the antivirus parameters on command line so setup for admin user interface has no effect. // Default value: '' // Example: '--fdpass'; // define('MAIN_ANTIVIRUS_PARAM', '--fdpass'); //################## // Other //################## // dolibarr_main_db_prefix // ======================= // This parameter contains prefix of Dolibarr database. // Default value: 'llx_' if not defined // Examples: // $dolibarr_main_db_prefix='llx_'; // dolibarr_main_limit_users // ========================= // Can set a limit on the number of users it will be possible to create // (the superadmin not included). Can be used for a restricted mode. // Default value: 0 (unlimited) // Examples: // $dolibarr_main_limit_users='0'; // dolibarr_strict_mode // ==================== // Set this to 1 to enable the PHP strict mode. For dev environment only. // Default value: 0 (use database value if exist) // Examples: // $dolibarr_strict_mode=0; // dolibarr_allow_download_external_modules // ======================================== // Provide a link to download the zip of an external modules, installed into custom directory, from the web admin. // Default value: 0 // Examples: // $dolibarr_allow_download_external_modules=0; //################################# // Path to external libraries/fonts //################################# // Value to overwrite path to use shared libraries instead of embedded one //$dolibarr_lib_TCPDF_PATH='/usr/share/php/tcpdf'; //$dolibarr_lib_FPDI_PATH='/usr/share/php/fpdi'; //$dolibarr_lib_FPDF_PATH='/usr/share/php/fpdf'; //$dolibarr_lib_GEOIP_PATH=''; //$dolibarr_lib_NUSOAP_PATH='/usr/share/php/nusoap'; //$dolibarr_lib_ODTPHP_PATH=''; //$dolibarr_lib_ODTPHP_PATHTOPCLZIP="/usr/share/php/libphp-pclzip"; // Value to overwrite path to use shared javascript instead of embedded one //$dolibarr_js_CKEDITOR='/javascript/ckeditor'; //$dolibarr_js_JQUERY='/javascript/jquery'; //$dolibarr_js_JQUERY_UI='/javascript/jquery-ui'; // Value to overwrite some path to use font instead of embedded one //$dolibarr_font_DOL_DEFAULT_TTF="/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf"; //$dolibarr_font_DOL_DEFAULT_TTF_BOLD="/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf"; //############################## // External modules //##############################