2020-07-29 09:35:57 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
include('includes/sysstats.php');
|
|
|
|
|
|
|
|
?>
|
|
|
|
<!-- basic tab -->
|
|
|
|
<div role="tabpanel" class="tab-pane active" id="basic">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-6">
|
|
|
|
<h4 class="mt-3"><?php echo _("System Information"); ?></h4>
|
2021-05-02 17:12:50 +02:00
|
|
|
<div class="row ml-1">
|
|
|
|
<div class="col-sm">
|
|
|
|
<div class="row mb-1">
|
|
|
|
<div class="info-item col-xs-3"><?php echo _("Hostname"); ?></div><div class="info-value col-xs-3"><?php echo htmlspecialchars($hostname, ENT_QUOTES); ?></div>
|
|
|
|
</div>
|
|
|
|
<div class="row mb-1">
|
2023-09-16 10:43:05 +02:00
|
|
|
<div class="info-item col-xs-3"><?php echo _("Pi Revision"); ?></div><div class="info-value col-xs-3"><?php echo htmlspecialchars($revision, ENT_QUOTES); ?></div>
|
2021-05-02 17:12:50 +02:00
|
|
|
</div>
|
2022-06-08 19:22:52 +02:00
|
|
|
<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>
|
2021-05-02 17:12:50 +02:00
|
|
|
<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>
|
2023-06-04 17:27:54 +02:00
|
|
|
</div>
|
|
|
|
<div class="row mb-1">
|
|
|
|
<div class="info-item col-xs-3"><?php echo _("System Time"); ?></div><div class="info-value col-xs-3"><?php echo htmlspecialchars($systime, ENT_QUOTES); ?></div>
|
2021-05-02 17:12:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-07-29 09:35:57 +02:00
|
|
|
<div class="mb-1"><?php echo _("Memory Used"); ?></div>
|
|
|
|
<div class="progress mb-2" style="height: 20px;">
|
|
|
|
<div class="progress-bar bg-<?php echo htmlspecialchars($memused_status, ENT_QUOTES); ?>"
|
|
|
|
role="progressbar" aria-valuenow="<?php echo htmlspecialchars($memused, ENT_QUOTES); ?>" aria-valuemin="0" aria-valuemax="100"
|
|
|
|
style="width: <?php echo htmlspecialchars($memused, ENT_QUOTES); ?>%"><?php echo htmlspecialchars($memused, ENT_QUOTES); ?>%
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="mb-1"><?php echo _("CPU Load"); ?></div>
|
|
|
|
<div class="progress mb-2" style="height: 20px;">
|
|
|
|
<div class="progress-bar bg-<?php echo htmlspecialchars($cpuload_status, ENT_QUOTES); ?>"
|
|
|
|
role="progressbar" aria-valuenow="<?php echo htmlspecialchars($cpuload, ENT_QUOTES); ?>" aria-valuemin="0" aria-valuemax="100"
|
|
|
|
style="width: <?php echo htmlspecialchars($cpuload, ENT_QUOTES); ?>%"><?php echo htmlspecialchars($cpuload, ENT_QUOTES); ?>%
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="mb-1"><?php echo _("CPU Temp"); ?></div>
|
|
|
|
<div class="progress mb-4" style="height: 20px;">
|
|
|
|
<div class="progress-bar bg-<?php echo htmlspecialchars($cputemp_status, ENT_QUOTES); ?>"
|
|
|
|
role="progressbar" aria-valuenow="<?php echo htmlspecialchars($cputemp, ENT_QUOTES); ?>" aria-valuemin="0" aria-valuemax="100"
|
|
|
|
style="width: <?php echo htmlspecialchars(($cputemp*1.2), ENT_QUOTES); ?>%"><?php echo htmlspecialchars($cputemp, ENT_QUOTES); ?>°C
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-12-15 14:48:51 +01:00
|
|
|
<form action="system_info" method="POST">
|
2020-07-29 09:35:57 +02:00
|
|
|
<?php echo CSRFTokenFieldTag() ?>
|
|
|
|
<?php if (!RASPI_MONITOR_ENABLED) : ?>
|
2023-10-08 19:21:43 +02:00
|
|
|
<input type="button" class="btn btn-warning" id="js-sys-reboot" data-action="reboot" value="<?php echo _("Reboot"); ?>" />
|
|
|
|
<input type="button" class="btn btn-warning" id="js-sys-shutdown" data-action="shutdown" value="<?php echo _("Shutdown"); ?>" />
|
2020-07-29 09:35:57 +02:00
|
|
|
<?php endif ?>
|
2021-02-02 13:26:14 +01:00
|
|
|
<button type="button" onClick="window.location.reload();" class="btn btn-outline btn-primary"><i class="fas fa-sync-alt"></i> <?php echo _("Refresh") ?></a>
|
2020-07-29 09:35:57 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|