Initial commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user