Update systeminfo.php

Code cleanup in the "Storage" section
This commit is contained in:
Carlos V
2023-09-06 16:38:45 +02:00
committed by GitHub
parent e44bceaed5
commit 274f954b8a

View File

@@ -341,12 +341,8 @@ for ($x = 0; $x < sizeof($storage_lsblk_line); $x++) {
$temp = explode("#", $storage_lsblk_line[$x]);
$storage_lsblk_line[$x] = $temp;
}
// echo '<pre>';
// print_r($storage_lsblk_line);
// echo '</pre>';
for ($x = 0; $x < sizeof($storage_lsblk_line); $x++) {
//if (stristr($hdd_devices[$x], '/dev/')) {
echo '<div class="row">';
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>';
@@ -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_Type') . ' ' . $storage_lsblk_line[$x][2] . '</div>';
echo '</div>';
//}
}
echo ' </div>
</div>';