$xml .= created_by(); $xml .= "<phpsysinfo>\n"; $xml .= " <Generation version=\"{$VERSION}\" timestamp=\"" . time() . "\"/>\n"; $xml .= xml_vitals(); $xml .= xml_network(); $xml .= xml_hardware(); $xml .= xml_memory(); $xml .= xml_filesystems(); if (!empty($GO_CONFIG->sensor_program)) { $xml .= xml_mbtemp(); $xml .= xml_mbfans(); $xml .= xml_mbvoltage(); } $xml .= "</phpsysinfo>"; echo $xml; $phpsysinfo = text_to_xml($xml); //var_dump($si_xml); //$phpsysinfo = $si_xml->get_child ("phpsysinfo"); $page_title = $menu_sysinfo; require $GO_THEME->theme_path . "header.inc"; ?> <table border="0" cellpadding="0" cellspacing="10"> <tr> <td valign="top"> <table border="0" cellpadding="0" cellspacing="0" class="TableBorder" width="100%"> <tr> <td valign="top"> <table border="0" cellpadding="1" cellspacing="1" width="100%"> <tr> <td colspan="99" class="TableHead"><?php echo $text['vitals'];
function inc_export_xml($row, $table, $prim, $serveur) { global $chercher_logo ; if ($chercher_logo) { $on = $chercher_logo($row[$prim], $prim, 'on'); $off = $chercher_logo($row[$prim], $prim, 'off'); } else $on = $off = ""; foreach ($row as $k => $v) { $row[$k] = "<$k>" . text_to_xml($v) . "</$k>"; } return "<$table" . ($on ? " on='$on[3]'" : '') . ($off ? " off='$off[3]'" : '') . ">\n" . join("\n", $row) . "\n</$table>\n\n"; }