27require
'../../main.inc.php';
30$langs->loadLangs(array(
"install",
"user",
"admin"));
44llxHeader(
'',
'',
'',
'', 0, 0,
'',
'',
'',
'mod-admin page-system_constall');
49print
load_fiche_titre($langs->trans(
"ConfigurationFile").
' ('.$conffiletoshowshort.
')');
51$configfileparameters = array(
52 'dolibarr_main_url_root',
53 'dolibarr_main_url_root_alt',
54 'dolibarr_main_document_root',
55 'dolibarr_main_document_root_alt',
56 'dolibarr_main_data_root',
58 'dolibarr_main_db_host',
59 'dolibarr_main_db_port',
60 'dolibarr_main_db_name',
61 'dolibarr_main_db_type',
62 'dolibarr_main_db_user',
63 'dolibarr_main_db_pass',
64 'dolibarr_main_db_character_set',
65 'dolibarr_main_db_collation',
66 '?dolibarr_main_db_prefix',
68 'dolibarr_main_authentication',
70 '?dolibarr_main_auth_ldap_login_attribute',
71 '?dolibarr_main_auth_ldap_host',
72 '?dolibarr_main_auth_ldap_port',
73 '?dolibarr_main_auth_ldap_version',
74 '?dolibarr_main_auth_ldap_dn',
75 '?dolibarr_main_auth_ldap_admin_login',
76 '?dolibarr_main_auth_ldap_admin_pass',
77 '?dolibarr_main_auth_ldap_debug',
79 '?dolibarr_lib_FPDF_PATH',
80 '?dolibarr_lib_TCPDF_PATH',
81 '?dolibarr_lib_FPDI_PATH',
82 '?dolibarr_lib_TCPDI_PATH',
83 '?dolibarr_lib_NUSOAP_PATH',
84 '?dolibarr_lib_GEOIP_PATH',
85 '?dolibarr_lib_ODTPHP_PATH',
86 '?dolibarr_lib_ODTPHP_PATHTOPCLZIP',
87 '?dolibarr_js_CKEDITOR',
88 '?dolibarr_js_JQUERY',
89 '?dolibarr_js_JQUERY_UI',
90 '?dolibarr_font_DOL_DEFAULT_TTF',
91 '?dolibarr_font_DOL_DEFAULT_TTF_BOLD',
93 '?dolibarr_mailing_limit_sendbyweb',
94 '?dolibarr_mailing_limit_sendbycli',
95 '?dolibarr_mailing_limit_sendbyday',
96 '?dolibarr_strict_mode'
98$configfilelib = array(
100 $langs->trans(
"URLRoot"),
101 $langs->trans(
"URLRoot").
' (alt)',
102 $langs->trans(
"DocumentRootServer"),
103 $langs->trans(
"DocumentRootServer").
' (alt)',
104 $langs->trans(
"DataRootServer"),
106 $langs->trans(
"DatabaseServer"),
107 $langs->trans(
"DatabasePort"),
108 $langs->trans(
"DatabaseName"),
109 $langs->trans(
"DriverType"),
110 $langs->trans(
"DatabaseUser"),
111 $langs->trans(
"DatabasePassword"),
112 $langs->trans(
"DBStoringCharset"),
113 $langs->trans(
"DBSortingCharset"),
114 $langs->trans(
"Prefix"),
116 $langs->trans(
"AuthenticationMode"),
118 'dolibarr_main_auth_ldap_login_attribute',
119 'dolibarr_main_auth_ldap_host',
120 'dolibarr_main_auth_ldap_port',
121 'dolibarr_main_auth_ldap_version',
122 'dolibarr_main_auth_ldap_dn',
123 'dolibarr_main_auth_ldap_admin_login',
124 'dolibarr_main_auth_ldap_admin_pass',
125 'dolibarr_main_auth_ldap_debug',
127 'dolibarr_lib_TCPDF_PATH',
128 'dolibarr_lib_FPDI_PATH',
129 'dolibarr_lib_NUSOAP_PATH',
130 'dolibarr_lib_GEOIP_PATH',
131 'dolibarr_lib_ODTPHP_PATH',
132 'dolibarr_lib_ODTPHP_PATHTOPCLZIP',
133 'dolibarr_js_CKEDITOR',
134 'dolibarr_js_JQUERY',
135 'dolibarr_js_JQUERY_UI',
136 'dolibarr_font_DOL_DEFAULT_TTF',
137 'dolibarr_font_DOL_DEFAULT_TTF_BOLD',
139 'Limit nb of email sent by page',
140 'Strict mode is on/off'
143print
'<table class="noborder centpercent">';
144print
'<tr class="liste_titre"><td width="280">'.$langs->trans(
"Label").
'</td>';
145print
'<td>'.$langs->trans(
"Parameter").
'</td>';
149foreach ($configfileparameters as $key) {
152 if ($key ==
'dolibarr_main_url_root_alt' && empty(${$key})) {
155 if ($key ==
'dolibarr_main_document_root_alt' && empty(${$key})) {
159 if (empty($ignore)) {
160 $newkey = preg_replace(
'/^\?/',
'', $key);
162 if (preg_match(
'/^\?/', $key) && empty(${$newkey})) {
167 if ($newkey ==
'separator' && $lastkeyshown ==
'separator') {
172 print
'<tr class="oddeven">';
173 if ($newkey ==
'separator') {
174 print
'<td colspan="3"> </td>';
177 print
"<td>".$configfilelib[$i].
'</td>';
179 print
'<td>'.$newkey.
'</td>';
182 if ($newkey ==
'dolibarr_main_db_pass') {
183 print preg_replace(
'/./i',
'*', ${$newkey});
184 } elseif ($newkey ==
'dolibarr_main_url_root' && preg_match(
'/__auto__/', ${$newkey})) {
185 print ${$newkey}.
' => '.constant(
'DOL_MAIN_URL_ROOT');
189 if ($newkey ==
'dolibarr_main_url_root' && ${$newkey} != DOL_MAIN_URL_ROOT) {
190 print
' (currently overwritten by autodetected value: '.DOL_MAIN_URL_ROOT.
')';
195 $lastkeyshown = $newkey;
206print
'<table class="noborder">';
207print
'<tr class="liste_titre">';
208print
'<td>'.$langs->trans(
"Parameter").
'</td>';
210if (!isModEnabled(
'multicompany') || !$user->entity) {
211 print
'<td>'.$langs->trans(
"Entity").
'</td>';
217$sql .=
", ".$db->decrypt(
'name').
" as name";
218$sql .=
", ".$db->decrypt(
'value').
" as value";
222$sql .=
" FROM ".MAIN_DB_PREFIX.
"const";
223if (!isModEnabled(
'multicompany')) {
225 $sql .=
" WHERE entity IN (0,".$conf->entity.
")";
229 $sql .=
" WHERE entity IN (".$db->sanitize($user->entity.
",".$conf->entity).
")";
232$sql .=
" ORDER BY entity, name ASC";
233$resql = $db->query($sql);
235 $num = $db->num_rows($resql);
239 $obj = $db->fetch_object($resql);
241 print
'<tr class="oddeven">';
242 print
'<td>'.$obj->name.
'</td>'.
"\n";
243 print
'<td>'.$obj->value.
'</td>'.
"\n";
244 if (!isModEnabled(
'multicompany') || !$user->entity) {
245 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.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.