mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-15 22:51:37 -07:00
Update systeminfo.php
Code cleanup in the "Storage" section
This commit is contained in:
@@ -341,12 +341,8 @@ for ($x = 0; $x < sizeof($storage_lsblk_line); $x++) {
|
|||||||
$temp = explode("#", $storage_lsblk_line[$x]);
|
$temp = explode("#", $storage_lsblk_line[$x]);
|
||||||
$storage_lsblk_line[$x] = $temp;
|
$storage_lsblk_line[$x] = $temp;
|
||||||
}
|
}
|
||||||
// echo '<pre>';
|
|
||||||
// print_r($storage_lsblk_line);
|
|
||||||
// echo '</pre>';
|
|
||||||
|
|
||||||
for ($x = 0; $x < sizeof($storage_lsblk_line); $x++) {
|
for ($x = 0; $x < sizeof($storage_lsblk_line); $x++) {
|
||||||
//if (stristr($hdd_devices[$x], '/dev/')) {
|
|
||||||
echo '<div class="row">';
|
echo '<div class="row">';
|
||||||
if (preg_match('~[0-9]+~', $storage_lsblk_line[$x][0])) {
|
if (preg_match('~[0-9]+~', $storage_lsblk_line[$x][0])) {
|
||||||
echo '<div class="col-sm-4 sysinfo_storage_a">"' . lang('Systeminfo_Storage_Mount') . ' ' . $storage_lsblk_line[$x][3] . '"</div>';
|
echo '<div class="col-sm-4 sysinfo_storage_a">"' . lang('Systeminfo_Storage_Mount') . ' ' . $storage_lsblk_line[$x][3] . '"</div>';
|
||||||
@@ -357,7 +353,6 @@ for ($x = 0; $x < sizeof($storage_lsblk_line); $x++) {
|
|||||||
echo '<div class="col-sm-2 sysinfo_storage_b">' . lang('Systeminfo_Storage_Size') . ' ' . $storage_lsblk_line[$x][1] . '</div>';
|
echo '<div class="col-sm-2 sysinfo_storage_b">' . lang('Systeminfo_Storage_Size') . ' ' . $storage_lsblk_line[$x][1] . '</div>';
|
||||||
echo '<div class="col-sm-2 sysinfo_storage_b">' . lang('Systeminfo_Storage_Type') . ' ' . $storage_lsblk_line[$x][2] . '</div>';
|
echo '<div class="col-sm-2 sysinfo_storage_b">' . lang('Systeminfo_Storage_Type') . ' ' . $storage_lsblk_line[$x][2] . '</div>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
echo ' </div>
|
echo ' </div>
|
||||||
</div>';
|
</div>';
|
||||||
|
|||||||
Reference in New Issue
Block a user