26require
'../../main.inc.php';
29$langs->loadLangs(array(
"install",
"user",
"admin"));
46print
load_fiche_titre($langs->trans(
"ConfigurationFile").
' ('.$conffiletoshowshort.
')');
48$configfileparameters = array(
49 'dolibarr_main_url_root',
50 'dolibarr_main_url_root_alt',
51 'dolibarr_main_document_root',
52 'dolibarr_main_document_root_alt',
53 'dolibarr_main_data_root',
55 'dolibarr_main_db_host',
56 'dolibarr_main_db_port',
57 'dolibarr_main_db_name',
58 'dolibarr_main_db_type',
59 'dolibarr_main_db_user',
60 'dolibarr_main_db_pass',
61 'dolibarr_main_db_character_set',
62 'dolibarr_main_db_collation',
63 '?dolibarr_main_db_prefix',
65 'dolibarr_main_authentication',
67 '?dolibarr_main_auth_ldap_login_attribute',
68 '?dolibarr_main_auth_ldap_host',
69 '?dolibarr_main_auth_ldap_port',
70 '?dolibarr_main_auth_ldap_version',
71 '?dolibarr_main_auth_ldap_dn',
72 '?dolibarr_main_auth_ldap_admin_login',
73 '?dolibarr_main_auth_ldap_admin_pass',
74 '?dolibarr_main_auth_ldap_debug',
76 '?dolibarr_lib_FPDF_PATH',
77 '?dolibarr_lib_TCPDF_PATH',
78 '?dolibarr_lib_FPDI_PATH',
79 '?dolibarr_lib_TCPDI_PATH',
80 '?dolibarr_lib_NUSOAP_PATH',
81 '?dolibarr_lib_GEOIP_PATH',
82 '?dolibarr_lib_ODTPHP_PATH',
83 '?dolibarr_lib_ODTPHP_PATHTOPCLZIP',
84 '?dolibarr_js_CKEDITOR',
85 '?dolibarr_js_JQUERY',
86 '?dolibarr_js_JQUERY_UI',
87 '?dolibarr_font_DOL_DEFAULT_TTF',
88 '?dolibarr_font_DOL_DEFAULT_TTF_BOLD',
90 '?dolibarr_mailing_limit_sendbyweb',
91 '?dolibarr_mailing_limit_sendbycli',
92 '?dolibarr_mailing_limit_sendbyday',
93 '?dolibarr_strict_mode'
95$configfilelib = array(
97 $langs->trans(
"URLRoot"),
98 $langs->trans(
"URLRoot").
' (alt)',
99 $langs->trans(
"DocumentRootServer"),
100 $langs->trans(
"DocumentRootServer").
' (alt)',
101 $langs->trans(
"DataRootServer"),
103 $langs->trans(
"DatabaseServer"),
104 $langs->trans(
"DatabasePort"),
105 $langs->trans(
"DatabaseName"),
106 $langs->trans(
"DriverType"),
107 $langs->trans(
"DatabaseUser"),
108 $langs->trans(
"DatabasePassword"),
109 $langs->trans(
"DBStoringCharset"),
110 $langs->trans(
"DBSortingCharset"),
111 $langs->trans(
"Prefix"),
113 $langs->trans(
"AuthenticationMode"),
115 'dolibarr_main_auth_ldap_login_attribute',
116 'dolibarr_main_auth_ldap_host',
117 'dolibarr_main_auth_ldap_port',
118 'dolibarr_main_auth_ldap_version',
119 'dolibarr_main_auth_ldap_dn',
120 'dolibarr_main_auth_ldap_admin_login',
121 'dolibarr_main_auth_ldap_admin_pass',
122 'dolibarr_main_auth_ldap_debug',
124 'dolibarr_lib_TCPDF_PATH',
125 'dolibarr_lib_FPDI_PATH',
126 'dolibarr_lib_NUSOAP_PATH',
127 'dolibarr_lib_GEOIP_PATH',
128 'dolibarr_lib_ODTPHP_PATH',
129 'dolibarr_lib_ODTPHP_PATHTOPCLZIP',
130 'dolibarr_js_CKEDITOR',
131 'dolibarr_js_JQUERY',
132 'dolibarr_js_JQUERY_UI',
133 'dolibarr_font_DOL_DEFAULT_TTF',
134 'dolibarr_font_DOL_DEFAULT_TTF_BOLD',
136 'Limit nb of email sent by page',
137 'Strict mode is on/off'
140print
'<table class="noborder centpercent">';
141print
'<tr class="liste_titre"><td width="280">'.$langs->trans(
"Label").
'</td>';
142print
'<td>'.$langs->trans(
"Parameter").
'</td>';
143print
'<td>'.$langs->trans(
"Value").
'</td>';
146foreach ($configfileparameters as $key) {
149 if ($key ==
'dolibarr_main_url_root_alt' && empty(${$key})) {
152 if ($key ==
'dolibarr_main_document_root_alt' && empty(${$key})) {
156 if (empty($ignore)) {
157 $newkey = preg_replace(
'/^\?/',
'', $key);
159 if (preg_match(
'/^\?/', $key) && empty(${$newkey})) {
164 if ($newkey ==
'separator' && $lastkeyshown ==
'separator') {
169 print
'<tr class="oddeven">';
170 if ($newkey ==
'separator') {
171 print
'<td colspan="3"> </td>';
174 print
"<td>".$configfilelib[$i].
'</td>';
176 print
'<td>'.$newkey.
'</td>';
179 if ($newkey ==
'dolibarr_main_db_pass') {
180 print preg_replace(
'/./i',
'*', ${$newkey});
181 } elseif ($newkey ==
'dolibarr_main_url_root' && preg_match(
'/__auto__/', ${$newkey})) {
182 print ${$newkey}.
' => '.constant(
'DOL_MAIN_URL_ROOT');
186 if ($newkey ==
'dolibarr_main_url_root' && ${$newkey} != DOL_MAIN_URL_ROOT) {
187 print
' (currently overwritten by autodetected value: '.DOL_MAIN_URL_ROOT.
')';
192 $lastkeyshown = $newkey;
203print
'<table class="noborder">';
204print
'<tr class="liste_titre">';
205print
'<td>'.$langs->trans(
"Parameter").
'</td>';
206print
'<td>'.$langs->trans(
"Value").
'</td>';
207if (!isModEnabled(
'multicompany') || !$user->entity) {
208 print
'<td>'.$langs->trans(
"Entity").
'</td>';
214$sql .=
", ".$db->decrypt(
'name').
" as name";
215$sql .=
", ".$db->decrypt(
'value').
" as value";
219$sql .=
" FROM ".MAIN_DB_PREFIX.
"const";
220if (!isModEnabled(
'multicompany')) {
222 $sql .=
" WHERE entity IN (0,".$conf->entity.
")";
226 $sql .=
" WHERE entity IN (".$db->sanitize($user->entity.
",".$conf->entity).
")";
229$sql .=
" ORDER BY entity, name ASC";
230$resql = $db->query($sql);
232 $num = $db->num_rows($resql);
236 $obj = $db->fetch_object($resql);
238 print
'<tr class="oddeven">';
239 print
'<td>'.$obj->name.
'</td>'.
"\n";
240 print
'<td>'.$obj->value.
'</td>'.
"\n";
241 if (!isModEnabled(
'multicompany') || !$user->entity) {
242 print
'<td>'.$obj->entity.
'</td>'.
"\n";
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.