28require
'../../main.inc.php';
39$langs->loadLangs(array(
"install",
"user",
"admin"));
53llxHeader(
'',
'',
'',
'', 0, 0,
'',
'',
'',
'mod-admin page-system_constall');
58print
load_fiche_titre($langs->trans(
"ConfigurationFile").
' ('.$conffiletoshowshort.
')');
60$configfileparameters = array(
61 'dolibarr_main_url_root',
62 'dolibarr_main_url_root_alt',
63 'dolibarr_main_document_root',
64 'dolibarr_main_document_root_alt',
65 'dolibarr_main_data_root',
67 'dolibarr_main_db_host',
68 'dolibarr_main_db_port',
69 'dolibarr_main_db_name',
70 'dolibarr_main_db_type',
71 'dolibarr_main_db_user',
72 'dolibarr_main_db_pass',
73 'dolibarr_main_db_character_set',
74 'dolibarr_main_db_collation',
75 '?dolibarr_main_db_prefix',
77 'dolibarr_main_authentication',
79 '?dolibarr_main_auth_ldap_login_attribute',
80 '?dolibarr_main_auth_ldap_host',
81 '?dolibarr_main_auth_ldap_port',
82 '?dolibarr_main_auth_ldap_version',
83 '?dolibarr_main_auth_ldap_dn',
84 '?dolibarr_main_auth_ldap_admin_login',
85 '?dolibarr_main_auth_ldap_admin_pass',
86 '?dolibarr_main_auth_ldap_debug',
88 '?dolibarr_lib_FPDF_PATH',
89 '?dolibarr_lib_TCPDF_PATH',
90 '?dolibarr_lib_FPDI_PATH',
91 '?dolibarr_lib_TCPDI_PATH',
92 '?dolibarr_lib_NUSOAP_PATH',
93 '?dolibarr_lib_GEOIP_PATH',
94 '?dolibarr_lib_ODTPHP_PATH',
95 '?dolibarr_lib_ODTPHP_PATHTOPCLZIP',
96 '?dolibarr_js_CKEDITOR',
97 '?dolibarr_js_JQUERY',
98 '?dolibarr_js_JQUERY_UI',
99 '?dolibarr_font_DOL_DEFAULT_TTF',
100 '?dolibarr_font_DOL_DEFAULT_TTF_BOLD',
102 '?dolibarr_mailing_limit_sendbyweb',
103 '?dolibarr_mailing_limit_sendbycli',
104 '?dolibarr_mailing_limit_sendbyday',
105 '?dolibarr_strict_mode'
107$configfilelib = array(
109 $langs->trans(
"URLRoot"),
110 $langs->trans(
"URLRoot").
' (alt)',
111 $langs->trans(
"DocumentRootServer"),
112 $langs->trans(
"DocumentRootServer").
' (alt)',
113 $langs->trans(
"DataRootServer"),
115 $langs->trans(
"DatabaseServer"),
116 $langs->trans(
"DatabasePort"),
117 $langs->trans(
"DatabaseName"),
118 $langs->trans(
"DriverType"),
119 $langs->trans(
"DatabaseUser"),
120 $langs->trans(
"DatabasePassword"),
121 $langs->trans(
"DBStoringCharset"),
122 $langs->trans(
"DBSortingCharset"),
123 $langs->trans(
"Prefix"),
125 $langs->trans(
"AuthenticationMode"),
127 'dolibarr_main_auth_ldap_login_attribute',
128 'dolibarr_main_auth_ldap_host',
129 'dolibarr_main_auth_ldap_port',
130 'dolibarr_main_auth_ldap_version',
131 'dolibarr_main_auth_ldap_dn',
132 'dolibarr_main_auth_ldap_admin_login',
133 'dolibarr_main_auth_ldap_admin_pass',
134 'dolibarr_main_auth_ldap_debug',
136 'dolibarr_lib_TCPDF_PATH',
137 'dolibarr_lib_FPDI_PATH',
138 'dolibarr_lib_NUSOAP_PATH',
139 'dolibarr_lib_GEOIP_PATH',
140 'dolibarr_lib_ODTPHP_PATH',
141 'dolibarr_lib_ODTPHP_PATHTOPCLZIP',
142 'dolibarr_js_CKEDITOR',
143 'dolibarr_js_JQUERY',
144 'dolibarr_js_JQUERY_UI',
145 'dolibarr_font_DOL_DEFAULT_TTF',
146 'dolibarr_font_DOL_DEFAULT_TTF_BOLD',
148 'Limit nb of email sent by page',
149 'Strict mode is on/off'
152print
'<table class="noborder centpercent">';
153print
'<tr class="liste_titre"><td width="280">'.$langs->trans(
"Label").
'</td>';
154print
'<td>'.$langs->trans(
"Parameter").
'</td>';
158foreach ($configfileparameters as $key) {
161 if ($key ==
'dolibarr_main_url_root_alt' && empty(${$key})) {
164 if ($key ==
'dolibarr_main_document_root_alt' && empty(${$key})) {
168 if (empty($ignore)) {
169 $newkey = preg_replace(
'/^\?/',
'', $key);
171 if (preg_match(
'/^\?/', $key) && empty(${$newkey})) {
176 if ($newkey ==
'separator' && $lastkeyshown ==
'separator') {
181 print
'<tr class="oddeven">';
182 if ($newkey ==
'separator') {
183 print
'<td colspan="3"> </td>';
186 print
"<td>".$configfilelib[$i].
'</td>';
188 print
'<td>'.$newkey.
'</td>';
191 if ($newkey ==
'dolibarr_main_db_pass') {
192 print preg_replace(
'/./i',
'*', ${$newkey});
193 } elseif ($newkey ==
'dolibarr_main_url_root' && preg_match(
'/__auto__/', ${$newkey})) {
194 print ${$newkey}.
' => '.constant(
'DOL_MAIN_URL_ROOT');
198 if ($newkey ==
'dolibarr_main_url_root' && ${$newkey} != DOL_MAIN_URL_ROOT) {
199 print
' (currently overwritten by autodetected value: '.DOL_MAIN_URL_ROOT.
')';
204 $lastkeyshown = $newkey;
215print
'<table class="noborder">';
216print
'<tr class="liste_titre">';
217print
'<td>'.$langs->trans(
"Parameter").
'</td>';
219if (!isModEnabled(
'multicompany') || !$user->entity) {
220 print
'<td>'.$langs->trans(
"Entity").
'</td>';
226$sql .=
", ".$db->decrypt(
'name').
" as name";
227$sql .=
", ".$db->decrypt(
'value').
" as value";
231$sql .=
" FROM ".MAIN_DB_PREFIX.
"const";
232if (!isModEnabled(
'multicompany')) {
234 $sql .=
" WHERE entity IN (0,".$conf->entity.
")";
238 $sql .=
" WHERE entity IN (".$db->sanitize($user->entity.
",".
$conf->entity).
")";
241$sql .=
" ORDER BY entity, name ASC";
242$resql = $db->query($sql);
244 $num = $db->num_rows($resql);
248 $obj = $db->fetch_object($resql);
250 print
'<tr class="oddeven">';
251 print
'<td>'.$obj->name.
'</td>'.
"\n";
252 print
'<td>'.$obj->value.
'</td>'.
"\n";
253 if (!isModEnabled(
'multicompany') || !$user->entity) {
254 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($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.