25 require
'../../main.inc.php';
28 $langs->loadLangs(array(
"install",
"user",
"admin"));
46 $configfileparameters = array(
47 'dolibarr_main_url_root',
48 'dolibarr_main_url_root_alt',
49 'dolibarr_main_document_root',
50 'dolibarr_main_document_root_alt',
51 'dolibarr_main_data_root',
53 'dolibarr_main_db_host',
54 'dolibarr_main_db_port',
55 'dolibarr_main_db_name',
56 'dolibarr_main_db_type',
57 'dolibarr_main_db_user',
58 'dolibarr_main_db_pass',
59 'dolibarr_main_db_character_set',
60 'dolibarr_main_db_collation',
61 '?dolibarr_main_db_prefix',
63 'dolibarr_main_authentication',
65 '?dolibarr_main_auth_ldap_login_attribute',
66 '?dolibarr_main_auth_ldap_host',
67 '?dolibarr_main_auth_ldap_port',
68 '?dolibarr_main_auth_ldap_version',
69 '?dolibarr_main_auth_ldap_dn',
70 '?dolibarr_main_auth_ldap_admin_login',
71 '?dolibarr_main_auth_ldap_admin_pass',
72 '?dolibarr_main_auth_ldap_debug',
74 '?dolibarr_lib_ADODB_PATH',
75 '?dolibarr_lib_FPDF_PATH',
76 '?dolibarr_lib_TCPDF_PATH',
77 '?dolibarr_lib_FPDI_PATH',
78 '?dolibarr_lib_TCPDI_PATH',
79 '?dolibarr_lib_NUSOAP_PATH',
80 '?dolibarr_lib_GEOIP_PATH',
81 '?dolibarr_lib_ODTPHP_PATH',
82 '?dolibarr_lib_ODTPHP_PATHTOPCLZIP',
83 '?dolibarr_js_CKEDITOR',
84 '?dolibarr_js_JQUERY',
85 '?dolibarr_js_JQUERY_UI',
86 '?dolibarr_font_DOL_DEFAULT_TTF',
87 '?dolibarr_font_DOL_DEFAULT_TTF_BOLD',
89 '?dolibarr_mailing_limit_sendbyweb',
90 '?dolibarr_mailing_limit_sendbycli',
91 '?dolibarr_strict_mode'
93 $configfilelib = array(
95 $langs->trans(
"URLRoot"),
96 $langs->trans(
"URLRoot").
' (alt)',
97 $langs->trans(
"DocumentRootServer"),
98 $langs->trans(
"DocumentRootServer").
' (alt)',
99 $langs->trans(
"DataRootServer"),
101 $langs->trans(
"DatabaseServer"),
102 $langs->trans(
"DatabasePort"),
103 $langs->trans(
"DatabaseName"),
104 $langs->trans(
"DriverType"),
105 $langs->trans(
"DatabaseUser"),
106 $langs->trans(
"DatabasePassword"),
107 $langs->trans(
"DBStoringCharset"),
108 $langs->trans(
"DBSortingCharset"),
109 $langs->trans(
"Prefix"),
111 $langs->trans(
"AuthenticationMode"),
113 'dolibarr_main_auth_ldap_login_attribute',
114 'dolibarr_main_auth_ldap_host',
115 'dolibarr_main_auth_ldap_port',
116 'dolibarr_main_auth_ldap_version',
117 'dolibarr_main_auth_ldap_dn',
118 'dolibarr_main_auth_ldap_admin_login',
119 'dolibarr_main_auth_ldap_admin_pass',
120 'dolibarr_main_auth_ldap_debug',
122 'dolibarr_lib_ADODB_PATH',
123 'dolibarr_lib_TCPDF_PATH',
124 'dolibarr_lib_FPDI_PATH',
125 'dolibarr_lib_NUSOAP_PATH',
126 'dolibarr_lib_GEOIP_PATH',
127 'dolibarr_lib_ODTPHP_PATH',
128 'dolibarr_lib_ODTPHP_PATHTOPCLZIP',
129 'dolibarr_js_CKEDITOR',
130 'dolibarr_js_JQUERY',
131 'dolibarr_js_JQUERY_UI',
132 'dolibarr_font_DOL_DEFAULT_TTF',
133 'dolibarr_font_DOL_DEFAULT_TTF_BOLD',
135 'Limit nb of email sent by page',
136 'Strict mode is on/off'
139 print '<table class="noborder centpercent">';
140 print
'<tr class="liste_titre"><td width="280">'.$langs->trans(
"Label").
'</td>';
141 print
'<td>'.$langs->trans(
"Parameter").
'</td>';
142 print
'<td>'.$langs->trans(
"Value").
'</td>';
145 foreach ($configfileparameters as $key)
149 if ($key ==
'dolibarr_main_url_root_alt' && empty(${$key})) $ignore = 1;
150 if ($key ==
'dolibarr_main_document_root_alt' && empty(${$key})) $ignore = 1;
154 $newkey = preg_replace(
'/^\?/',
'', $key);
156 if (preg_match(
'/^\?/', $key) && empty(${$newkey}))
162 if ($newkey ==
'separator' && $lastkeyshown ==
'separator')
168 print
'<tr class="oddeven">';
169 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') print preg_replace(
'/./i',
'*', ${$newkey});
180 elseif ($newkey ==
'dolibarr_main_url_root' && preg_match(
'/__auto__/', ${$newkey})) print ${$newkey}.
' => '.constant(
'DOL_MAIN_URL_ROOT');
181 else print ${$newkey};
182 if ($newkey ==
'dolibarr_main_url_root' && ${$newkey} != DOL_MAIN_URL_ROOT) print
' (currently overwritten by autodetected value: '.DOL_MAIN_URL_ROOT.
')';
186 $lastkeyshown = $newkey;
197 print
'<table class="noborder">';
198 print
'<tr class="liste_titre">';
199 print
'<td>'.$langs->trans(
"Parameter").
'</td>';
200 print
'<td>'.$langs->trans(
"Value").
'</td>';
201 if (empty($conf->multicompany->enabled) || !$user->entity) print
'<td>'.$langs->trans(
"Entity").
'</td>';
206 $sql .=
", ".$db->decrypt(
'name').
" as name";
207 $sql .=
", ".$db->decrypt(
'value').
" as value";
211 $sql .=
" FROM ".MAIN_DB_PREFIX.
"const";
212 if (empty($conf->multicompany->enabled))
215 $sql .=
" WHERE entity IN (0,".$conf->entity.
")";
218 if ($user->entity) $sql .=
" WHERE entity IN (".$user->entity.
",".$conf->entity.
")";
220 $sql .=
" ORDER BY entity, name ASC";
221 $resql = $db->query($sql);
224 $num = $db->num_rows(
$resql);
229 $obj = $db->fetch_object(
$resql);
231 print
'<tr class="oddeven">';
232 print
'<td>'.$obj->name.
'</td>'.
"\n";
233 print
'<td>'.$obj->value.
'</td>'.
"\n";
234 if (empty($conf->multicompany->enabled) || !$user->entity) print
'<td>'.$obj->entity.
'</td>'.
"\n";
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 Calling this function terminate execution ...
print
Draft customers invoices.
if(!empty($conf->facture->enabled)&&$user->rights->facture->lire) if((!empty($conf->fournisseur->enabled)&&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)||!empty($conf->supplier_invoice->enabled))&&$user->rights->fournisseur->facture->lire) if(!empty($conf->don->enabled)&&$user->rights->don->lire) if(!empty($conf->tax->enabled)&&$user->rights->tax->charges->lire) if(!empty($conf->facture->enabled)&&!empty($conf->commande->enabled)&&$user->rights->commande->lire &&empty($conf->global->WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER)) if(!empty($conf->facture->enabled)&&$user->rights->facture->lire) if((!empty($conf->fournisseur->enabled)&&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)||!empty($conf->supplier_invoice->enabled))&&$user->rights->fournisseur->facture->lire) $resql
Social contributions to pay.