2
0
forked from Wavyzz/dolibarr

Fix: convert line delimiters !!

This commit is contained in:
Regis Houssin
2012-09-30 21:26:58 +02:00
parent d23188c64a
commit bcf46d00f0
16 changed files with 148 additions and 148 deletions

View File

@@ -23,7 +23,7 @@
*/
require '../../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
$langs->load("admin");
@@ -40,22 +40,22 @@ llxHeader();
$title='InfoPHP';
if (isset($title))
{
print_fiche_titre($langs->trans($title), '', 'setup');
}
if (isset($title))
{
print_fiche_titre($langs->trans($title), '', 'setup');
}
// Get php_info array
// Get php_info array
$phparray=phpinfo_array();
foreach($phparray as $key => $value)
{
//print_titre($key);
print '<table class="noborder">';
print '<tr class="liste_titre">';
print '<table class="noborder">';
print '<tr class="liste_titre">';
//print '<td width="220px">'.$langs->trans("Parameter").'</td>';
print '<td width="220px">'.$key.'</td>';
print '<td colspan="2">'.$langs->trans("Value").'</td>';
print "</tr>\n";
print '<td width="220px">'.$key.'</td>';
print '<td colspan="2">'.$langs->trans("Value").'</td>';
print "</tr>\n";
$var=true;
//var_dump($value);
@@ -65,10 +65,10 @@ foreach($phparray as $key => $value)
{
$var=!$var;
print '<tr '.$bc[$var].'>';
print '<td>'.$keyparam.'</td>';
print '<td>'.$keyparam.'</td>';
$valtoshow=$keyvalue;
if ($keyparam == 'X-ChromePhp-Data') $valtoshow=dol_trunc($keyvalue,80);
print '<td colspan="2">'.$valtoshow.'</td>';
print '<td colspan="2">'.$valtoshow.'</td>';
print '</tr>';
}
else
@@ -77,13 +77,13 @@ foreach($phparray as $key => $value)
print '<tr '.$bc[$var].'>';
print '<td>'.$keyparam.'</td>';
$i=0;
foreach($keyvalue as $keyparam2 => $keyvalue2)
foreach($keyvalue as $keyparam2 => $keyvalue2)
{
print '<td>';
$valtoshow=$keyvalue2;
if ($keyparam == 'disable_functions') $valtoshow=join(', ',explode(',',trim($valtoshow)));
//print $keyparam2.' = ';
print $valtoshow;
print $valtoshow;
$i++;
print '</td>';
}
@@ -92,7 +92,7 @@ foreach($phparray as $key => $value)
}
print '</table><br>';
}
llxFooter();