From 0c7fd548da546a432a650794a3a6f54c1e59d0a0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 20 Dec 2010 11:12:19 +0000 Subject: [PATCH] Add more information on system info --- htdocs/admin/system/constall.php | 43 ++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/htdocs/admin/system/constall.php b/htdocs/admin/system/constall.php index 4d25541fcad..7db835a9723 100644 --- a/htdocs/admin/system/constall.php +++ b/htdocs/admin/system/constall.php @@ -111,28 +111,33 @@ print ''."\n"; $i=0; foreach($configfileparameters as $key) { - if ($key == 'dolibarr_main_url_root_alt' && empty(${$key})) continue; - if ($key == 'dolibarr_main_document_root_alt' && empty(${$key})) continue; + $ignore=0; + + if ($key == 'dolibarr_main_url_root_alt' && empty(${$key})) $ignore=1; + if ($key == 'dolibarr_main_document_root_alt' && empty(${$key})) $ignore=1; - $var=!$var; - print ""; - if ($key == 'separator') + if (empty($ignore)) { - print ' '; + $var=!$var; + print ""; + if ($key == 'separator') + { + print ' '; + } + else + { + // Label + print "".$configfilelib[$i].''; + // Key + print ''.$key.''; + // Value + print ""; + if ($key == 'dolibarr_main_db_pass') print preg_replace('/./i','*',${$key}); + else print ${$key}; + print ""; + } + print "\n"; } - else - { - // Label - print "".$configfilelib[$i].''; - // Key - print ''.$key.''; - // Value - print ""; - if ($key == 'dolibarr_main_db_pass') print preg_replace('/./i','*',${$key}); - else print ${$key}; - print ""; - } - print "\n"; $i++; } print '';