30 lines
579 B
PHP
30 lines
579 B
PHP
<?php
|
|
require "block_devices.php";
|
|
|
|
$devices = get_devices();
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<link rel="stylesheet" href="sakura.css">
|
|
<title>Server Status</title>
|
|
</head>
|
|
<body>
|
|
<h1><?php system("hostname"); ?></h1>
|
|
<ul>
|
|
<li><a href="zpool.php">ZFS Pool Status</a></li>
|
|
<?php foreach ($devices as $device) {
|
|
|
|
$name = $device->name;
|
|
if (str_starts_with($name, "zram")) {
|
|
continue;
|
|
}
|
|
?>
|
|
<li><a href="device.php?name=<?= $name ?>"><?= $name ?></a></li>
|
|
<?php
|
|
} ?>
|
|
</ul>
|
|
</body>
|
|
</html>
|