28require
'../../main.inc.php';
43$langs->loadLangs(array(
"install",
"user",
"admin"));
57llxHeader(
'',
'',
'',
'', 0, 0,
'',
'',
'',
'mod-admin page-system_constall');
63$configfileparameters = array(
64 'dolibarr_main_url_root',
65 'dolibarr_main_url_root_alt',
66 'dolibarr_main_document_root',
67 'dolibarr_main_document_root_alt',
68 'dolibarr_main_data_root',
70 'dolibarr_main_db_host',
71 'dolibarr_main_db_port',
72 'dolibarr_main_db_name',
73 'dolibarr_main_db_type',
74 'dolibarr_main_db_user',
75 'dolibarr_main_db_pass',
76 'dolibarr_main_db_character_set',
77 'dolibarr_main_db_collation',
78 '?dolibarr_main_db_prefix',
80 'dolibarr_main_authentication',
82 '?dolibarr_main_auth_ldap_login_attribute',
83 '?dolibarr_main_auth_ldap_host',
84 '?dolibarr_main_auth_ldap_port',
85 '?dolibarr_main_auth_ldap_version',
86 '?dolibarr_main_auth_ldap_dn',
87 '?dolibarr_main_auth_ldap_admin_login',
88 '?dolibarr_main_auth_ldap_admin_pass',
89 '?dolibarr_main_auth_ldap_debug',
91 '?dolibarr_lib_FPDF_PATH',
92 '?dolibarr_lib_TCPDF_PATH',
93 '?dolibarr_lib_FPDI_PATH',
94 '?dolibarr_lib_TCPDI_PATH',
95 '?dolibarr_lib_NUSOAP_PATH',
96 '?dolibarr_lib_GEOIP_PATH',
97 '?dolibarr_lib_ODTPHP_PATH',
98 '?dolibarr_lib_ODTPHP_PATHTOPCLZIP',
99 '?dolibarr_js_CKEDITOR',
100 '?dolibarr_js_JQUERY',
101 '?dolibarr_js_JQUERY_UI',
102 '?dolibarr_font_DOL_DEFAULT_TTF',
103 '?dolibarr_font_DOL_DEFAULT_TTF_BOLD',
105 '?dolibarr_mailing_limit_sendbyweb',
106 '?dolibarr_mailing_limit_sendbycli',
107 '?dolibarr_mailing_limit_sendbyday',
108 '?dolibarr_strict_mode'
110$configfilelib = array(
112 $langs->trans(
"URLRoot"),
113 $langs->trans(
"URLRoot").
' (alt)',
114 $langs->trans(
"DocumentRootServer"),
115 $langs->trans(
"DocumentRootServer").
' (alt)',
116 $langs->trans(
"DataRootServer"),
118 $langs->trans(
"DatabaseServer"),
119 $langs->trans(
"DatabasePort"),
120 $langs->trans(
"DatabaseName"),
121 $langs->trans(
"DriverType"),
122 $langs->trans(
"DatabaseUser"),
123 $langs->trans(
"DatabasePassword"),
124 $langs->trans(
"DBStoringCharset"),
125 $langs->trans(
"DBSortingCharset"),
126 $langs->trans(
"Prefix"),
128 $langs->trans(
"AuthenticationMode"),
130 'dolibarr_main_auth_ldap_login_attribute',
131 'dolibarr_main_auth_ldap_host',
132 'dolibarr_main_auth_ldap_port',
133 'dolibarr_main_auth_ldap_version',
134 'dolibarr_main_auth_ldap_dn',
135 'dolibarr_main_auth_ldap_admin_login',
136 'dolibarr_main_auth_ldap_admin_pass',
137 'dolibarr_main_auth_ldap_debug',
139 'dolibarr_lib_TCPDF_PATH',
140 'dolibarr_lib_FPDI_PATH',
141 'dolibarr_lib_NUSOAP_PATH',
142 'dolibarr_lib_GEOIP_PATH',
143 'dolibarr_lib_ODTPHP_PATH',
144 'dolibarr_lib_ODTPHP_PATHTOPCLZIP',
145 'dolibarr_js_CKEDITOR',
146 'dolibarr_js_JQUERY',
147 'dolibarr_js_JQUERY_UI',
148 'dolibarr_font_DOL_DEFAULT_TTF',
149 'dolibarr_font_DOL_DEFAULT_TTF_BOLD',
151 'Limit nb of email sent by page',
152 'Strict mode is on/off'
155print
'<table class="noborder centpercent">';
156print
'<tr class="liste_titre"><td width="280">'.$langs->trans(
"Label").
'</td>';
157print
'<td>'.$langs->trans(
"Parameter").
'</td>';
161foreach ($configfileparameters as $key) {
162 if ($key ==
'dolibarr_main_url_root_alt' && empty($dolibarr_main_url_root_alt)) {
165 if ($key ==
'dolibarr_main_document_root_alt' && empty($dolibarr_main_document_root_alt)) {
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>';
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";
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";
254 print
'<td>'.$obj->entity.
'</td>'.
"\n";
llxFooter($comment='', $zone='private', $disabledoutputofmessages=0)
Empty footer.
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='', $morecssonpicto='widthpictotitle')
Load a title with picto.
isModEnabled($module)
Is Dolibarr module enabled.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.