cpu_info(); $ar_buf = $sysinfo->pci(); if (count($ar_buf)) { for ($i=0;$i'; } } else { $pci_devices .= ''. $text['none'] . ''; } $ar_buf = $sysinfo->ide(); ksort($ar_buf); if (count($ar_buf)) { while (list($key, $value) = each($ar_buf)) { $ide_devices .= $key . ': ' . $ar_buf[$key]['model']; if (isset($ar_buf[$key]['capacity'])) { $ide_devices .= ' (' . $text['capacity'] . ': ' . format_bytesize($ar_buf[$key]['capacity']/2).')'; } $ide_devices .= '
'; } } else { $ide_devices .= '' . $text['none']. ''; } $ar_buf = $sysinfo->scsi(); if (count($ar_buf)) { for ($i=0;$i'; } } else { $scsi_devices .= '' . $text['none'] . ''; } $_text = '' . '' . '' . '' . '' . '' . '' . '' . '' . '
'. $text['numcpu'] .'' . $sys['cpus'] . '
'. $text['cpumodel'] .'' . $sys['model'] . '
'. $text['mhz'] .'' . $sys['mhz'] . ' MHz
'. $text['cache'] .'' . $sys['cache'] . '
'. $text['bogomips'] .'' . $sys['bogomips'] . '
'. $text['pci'] .'' . $pci_devices . '
'. $text['ide'] .'' . $ide_devices . '
'. $text['scsi'] .'' . $scsi_devices . '
'; $tpl->set_var('hardware', makebox($text['hardware'], $_text, '100%')); ?>