mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Fix: convert line delimiters !!
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user