mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Display os + kernel info on system > basic tab
This commit is contained in:
parent
b5886882ee
commit
affc0396f1
@ -159,6 +159,8 @@ function DisplaySystem()
|
|||||||
$hostname = $system->hostname();
|
$hostname = $system->hostname();
|
||||||
$uptime = $system->uptime();
|
$uptime = $system->uptime();
|
||||||
$cores = $system->processorCount();
|
$cores = $system->processorCount();
|
||||||
|
$os = $system->operatingSystem();
|
||||||
|
$kernel = $system->kernelVersion();
|
||||||
|
|
||||||
// mem used
|
// mem used
|
||||||
$memused = $system->usedMemory();
|
$memused = $system->usedMemory();
|
||||||
@ -215,6 +217,8 @@ function DisplaySystem()
|
|||||||
"hostname",
|
"hostname",
|
||||||
"uptime",
|
"uptime",
|
||||||
"cores",
|
"cores",
|
||||||
|
"os",
|
||||||
|
"kernel",
|
||||||
"memused",
|
"memused",
|
||||||
"memused_status",
|
"memused_status",
|
||||||
"memused_led",
|
"memused_led",
|
||||||
|
@ -16,6 +16,12 @@ include('includes/sysstats.php');
|
|||||||
<div class="row mb-1">
|
<div class="row mb-1">
|
||||||
<div class="info-item col-xs-3"><?php echo _("Pi Revision"); ?></div><div class="info-value col-xs-3"><?php echo htmlspecialchars(RPiVersion(), ENT_QUOTES); ?></div>
|
<div class="info-item col-xs-3"><?php echo _("Pi Revision"); ?></div><div class="info-value col-xs-3"><?php echo htmlspecialchars(RPiVersion(), ENT_QUOTES); ?></div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<div class="info-item col-xs-3"><?php echo _("OS"); ?></div><div class="info-value col-xs-3"><?php echo htmlspecialchars($os, ENT_QUOTES); ?></div>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-1">
|
||||||
|
<div class="info-item col-xs-3"><?php echo _("Kernel"); ?></div><div class="info-value col-xs-3"><?php echo htmlspecialchars($kernel, ENT_QUOTES); ?></div>
|
||||||
|
</div>
|
||||||
<div class="row mb-1">
|
<div class="row mb-1">
|
||||||
<div class="info-item col-xs-3"><?php echo _("Uptime"); ?></div><div class="info-value col-xs-3"><?php echo htmlspecialchars($uptime, ENT_QUOTES); ?></div>
|
<div class="info-item col-xs-3"><?php echo _("Uptime"); ?></div><div class="info-value col-xs-3"><?php echo htmlspecialchars($uptime, ENT_QUOTES); ?></div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user