-
Notifications
You must be signed in to change notification settings - Fork 0
/
status_hardware.php
69 lines (64 loc) · 3.03 KB
/
status_hardware.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<table class="box">
<tr>
<td class="box-headline">>> <?php echo $GLOBALS['language']['status']['hw_hardware']; ?></td>
</tr>
<tr>
<td>
<table class="box" style="border-style: none;">
<?php
$cpu_info = $system -> get_hardware_cpu();
if (sizeof($cpu_info) != 0) {
echo '<tr><td colspan="3" class="box-subheadspace" style="line-height: 10px;"> </td></tr>';
echo '<tr><td colspan="3" class="box-subheadline">' . $GLOBALS['language']['status']['hw_processor'];
if (sizeof($cpu_info) != 1) echo 's';
echo '</td></tr>';
foreach($cpu_info as $cpu => $cpu_info) {
echo '<tr><td colspan="3" class="box-subheadspace" style="line-height: 10px;"> </td></tr>';
echo '<tr><td colspan="3" class="box-subheadspace" style="line-height: 10px;"> </td></tr>';
echo '<tr><td colspan="3" class="box-pl" style="line-height: 10px;">' . $GLOBALS['language']['status']['hw_processor'] . ' ' . $cpu;
if (isset($cpu_info['model name'])) echo ': ' . $cpu_info['model name'];
echo '</td></tr>';
print_info($cpu_info);
}
}
$pci_info = $system -> get_hardware_pci();
if (sizeof($pci_info) != 0) {
echo '<tr><td colspan="3" class="box-subheadspace" style="line-height: 10px;"> </td></tr>';
echo '<tr><td colspan="3" class="box-subheadline">' . $GLOBALS['language']['status']['hw_pci'] . '</td></tr>';
echo '<tr>';
echo ' <td width="140" class="box-pl" align="center">' . $GLOBALS['language']['status']['hw_pciadress'] . '</td>';
echo ' <td width="*" colspan="2" class="box-pl" align="center">' . $GLOBALS['language']['status']['hw_pcivalue'] . '</td>';
echo '</tr>';
print_info($pci_info);
}
$ide_info = $system -> get_hardware_ide();
if (sizeof($ide_info) != 0) {
echo '<tr><td colspan="3" class="box-subheadspace" style="line-height: 10px;"> </td></tr>';
echo '<tr><td colspan="3" class="box-subheadline">' . $GLOBALS['language']['status']['hw_ide'] . '</td></tr>';
echo '<tr>';
echo ' <td width="140" class="box-pl" align="center">' . $GLOBALS['language']['status']['hw_idedevice'] . '</td>';
echo ' <td width="*" class="box-pl" align="center">' . $GLOBALS['language']['status']['hw_idefield'] . '</td>';
echo ' <td width="300" class="box-pl" align="center">' . $GLOBALS['language']['status']['hw_idevalues'] . '</td>';
echo '</tr>';
foreach($ide_info as $ide => $ide_info) {
$device = $ide;
$field = '';
$value = '';
foreach ($ide_info as $device_field => $device_value) {
$field .= $device_field . '<br>';
$value .= $device_value . '<br>';
}
echo '<tr onmouseover="if (typeof(this.style) != \'undefined\') this.className = \'overRow\';" onmouseout="if (typeof(this.style) != \'undefined\') this.className = \'\'">';
echo '<td width="140" class="box-sel" align="left" valign="top">' . $device . '</td>';
echo '<td width="*" class="box-sel" align="left">' . $field . '</td>';
echo '<td width="300" class="box-sel" align="left">' . $value . '</td>';
echo '</tr>';
}
}
?>
</table>
</td>
</tr>
</table>
<?php
?>