31,003
edits
m (→Global options) |
m (→Global options) |
||
| Line 54: | Line 54: | ||
* MAIN_LOGTOHTML => If this constants is defined, it is possible to have logs inside pages by adding the parameter &logtohtml=1 into URL. | * MAIN_LOGTOHTML => If this constants is defined, it is possible to have logs inside pages by adding the parameter &logtohtml=1 into URL. | ||
* MAIN_AUTOFILL_DATE => If this constant is defined (to something else than 0), the date of invoice, proposal, order or payment are filled with current date. It is highly recommended to NOT ENABLE this feature. This create a lot of input errors with no validated data by users. This lead in bad values saved in database giving headaches when you have to do your accountancy reports ! However some users want it, so we provide it. | |||
* MAIN_AUTOFILL_DATE => | |||
* MAIN_AUTOFILL_TOWNFROMZIP => | * MAIN_AUTOFILL_TOWNFROMZIP => This will fill automatically the town from a zip value. Javascript/Ajax must not be disabled for this feature to work. | ||
* MAIN_MAIL_ALLOW_SENDMAIL_F => | * MAIN_MAIL_ALLOW_SENDMAIL_F => On Linux or BSD system, PHP email function use the command sendmail local to server. In some cases, the sender email must be provided on command line of sendmail with option -f. This option is here to ask Dolibarr to call the function '''mail''' of PHP by adding value for the option -f. Note that in most cases, even with sendmail, sender email is correctly managed as it is added in the email technical header. This option is here only for rare setup of sendmail that ask the -f option to be mandatory. | ||
* MAIN_MAIL_NO_FULL_EMAIL => Recipient email and sender are | * MAIN_MAIL_NO_FULL_EMAIL => Recipient email and sender are cleaned to be on form "<email>" instead of "Name <email>". This might solve problem of compatibility with very old mailers. | ||
* MAIN_MAIL_DEBUG => Write content with header of last mail into file dolibarr_mail.log into directory dolibarr_main_data_root. | * MAIN_MAIL_DEBUG => Write content with header of last mail into file dolibarr_mail.log into directory dolibarr_main_data_root. | ||
* MAIN_USE_HOURMIN_IN_DATE_RANGE => | * MAIN_USE_HOURMIN_IN_DATE_RANGE => On all entities lines (invoice, order, contract...), it is possible to add hour and minutes with date on fields "date start" and "date end". | ||
* MAIN_REMOVE_INSTALL_WARNING => Remove all security warning that appears to administrator users if URL /install is public. You shoud solve the problem if warning occurs instead of removing this warning. For this, put a file called install.lock into Dolibarr root directory. This will remove warning but also make the page /install not possible to use to protect your installation. | * MAIN_REMOVE_INSTALL_WARNING => Remove all security warning that appears to administrator users if URL /install is public. You shoud solve the problem if warning occurs instead of removing this warning. For this, put a file called install.lock into Dolibarr root directory. This will remove warning but also make the page /install not possible to use to protect your installation. | ||
* MAIN_DISABLE_FORCE_SAVEAS => If your browser ask always to save downloaded files on disk (like PDF), try to add this option. File might appears directly into your | * MAIN_DISABLE_FORCE_SAVEAS => If your browser ask always to save downloaded files on disk (like PDF), try to add this option. File might appears directly into your browser. | ||
* MAIN_DISABLE_PDF_COMPRESSION => Disable PDF compression. | * MAIN_DISABLE_PDF_COMPRESSION => Disable PDF compression. | ||