Add more information on system info

This commit is contained in:
Laurent Destailleur 2010-12-20 11:03:01 +00:00
parent 8957f0aca6
commit 03e5f2d372

View File

@ -20,7 +20,7 @@
/** /**
* \file htdocs/admin/system/constall.php * \file htdocs/admin/system/constall.php
* \brief Page d'info de toutes les constantes * \brief Page to show all Dolibarr setup (config file and database constants)
* \version $Id$ * \version $Id$
*/ */
@ -50,6 +50,7 @@ $configfileparameters=array(
// 'separator', // 'separator',
'dolibarr_main_url_root', 'dolibarr_main_url_root',
'dolibarr_main_document_root', 'dolibarr_main_document_root',
'dolibarr_main_document_root_alt',
'dolibarr_main_data_root', 'dolibarr_main_data_root',
'separator', 'separator',
'dolibarr_main_db_host', 'dolibarr_main_db_host',
@ -76,6 +77,7 @@ $configfilelib=array(
// 'separator', // 'separator',
$langs->trans("URLRoot"), $langs->trans("URLRoot"),
$langs->trans("DocumentRootServer"), $langs->trans("DocumentRootServer"),
$langs->trans("DocumentRootServer").' (alt)',
$langs->trans("DataRootServer"), $langs->trans("DataRootServer"),
'separator', 'separator',
$langs->trans("DatabaseServer"), $langs->trans("DatabaseServer"),
@ -107,6 +109,8 @@ print '</tr>'."\n";
$i=0; $i=0;
foreach($configfileparameters as $key) foreach($configfileparameters as $key)
{ {
if ($key == 'dolibarr_main_document_root_alt' && empty(${$key})) continue;
$var=!$var; $var=!$var;
print "<tr ".$bc[$var].">"; print "<tr ".$bc[$var].">";
if ($key == 'separator') if ($key == 'separator')
@ -115,16 +119,14 @@ foreach($configfileparameters as $key)
} }
else else
{ {
print "<td>".$configfilelib[$i].'</td><td>'.$key.'</td>'; // Label
print "<td>".$configfilelib[$i].'</td>';
// Key
print '<td>'.$key.'</td>';
// Value
print "<td>"; print "<td>";
if ($key == 'dolibarr_main_db_pass') print preg_replace('/./i','*',${$key}); if ($key == 'dolibarr_main_db_pass') print preg_replace('/./i','*',${$key});
else print ${$key}; else print ${$key};
// TODO Afficher charset effectif de base $db
if ($key == 'dolibarr_main_db_charset')
{
}
print "</td>"; print "</td>";
} }
print "</tr>\n"; print "</tr>\n";