mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 17:18:13 +01:00
Tamper proofed the process by not relying on POST values for forced fields. Disabled all fields set when $force_install_noedit is set. Added a full-featured forced install config file template. On the side: Improved Dolibarr root and url detection. Prevent install locking if install was not successful. Added missing translation on failed administrator creation. Better escaping of posted values.
74 lines
2.3 KiB
PHP
74 lines
2.3 KiB
PHP
<?php
|
|
/* Copyright (C) 2016 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/** @var bool Hide PHP informations */
|
|
$force_install_nophpinfo = true;
|
|
|
|
/** @var int 1 = Lock and hide environment variables, 2 = Lock all set variables */
|
|
$force_install_noedit = 2;
|
|
|
|
/** @var string Information message */
|
|
$force_install_message = 'Welcome to your Dolibarr install';
|
|
|
|
/** @var string Data root absolute path (documents folder) */
|
|
$force_install_main_data_root = null;
|
|
|
|
/** @var bool Force HTTPS */
|
|
$force_install_mainforcehttps = true;
|
|
|
|
/** @var string Database name */
|
|
$force_install_database = 'dolibarr';
|
|
|
|
/** @var string Database driver (mysql|mysqli|pgsql|mssql|sqlite|sqlite3) */
|
|
$force_install_type = 'mysqli';
|
|
|
|
/** @var string Database server host */
|
|
$force_install_dbserver = 'localhost';
|
|
|
|
/** @var int Database server port */
|
|
$force_install_port = 3306;
|
|
|
|
/** @var string Database tables prefix */
|
|
$force_install_prefix = 'llx_';
|
|
|
|
/** @var bool Force database creation */
|
|
$force_install_createdatabase = true;
|
|
|
|
/** @var string Database username */
|
|
$force_install_databaselogin = 'root';
|
|
|
|
/** @var string Database password */
|
|
$force_install_databasepass = '';
|
|
|
|
/** @var bool Force database user creation */
|
|
$force_install_createuser = false;
|
|
|
|
/** @var string Database root username */
|
|
$force_install_databaserootlogin = 'root';
|
|
|
|
/** @var string Database root password */
|
|
$force_install_databaserootpass = '';
|
|
|
|
/** @var string Dolibarr super-administrator username */
|
|
$force_install_dolibarrlogin = 'admin';
|
|
|
|
/** @var bool Force install locking */
|
|
$force_install_lockinstall = true;
|
|
|
|
/** @var string Enable module(s) (Comma separated class names list) */
|
|
$force_install_module = 'modSociete,modFournisseur,modFacture';
|