2024-04-09 19:01:34 +08:00
|
|
|
<?php
|
|
|
|
/* @var $this yii\web\View */
|
|
|
|
|
2024-04-12 16:15:43 +08:00
|
|
|
/* @var $systemInfo SystemInfoHelper */
|
|
|
|
|
2024-04-09 19:01:34 +08:00
|
|
|
use app\assets\FontAwesomeAsset;
|
2024-04-12 16:15:43 +08:00
|
|
|
use app\utils\SystemInfoHelper;
|
2024-04-09 19:01:34 +08:00
|
|
|
use yii\bootstrap5\Html;
|
|
|
|
|
|
|
|
FontAwesomeAsset::register($this);
|
|
|
|
$this->title = '系统信息';
|
|
|
|
?>
|
|
|
|
|
|
|
|
<div class="system-info">
|
|
|
|
|
|
|
|
<h1><?= Html::encode($this->title) ?></h1>
|
2024-04-12 19:53:34 +08:00
|
|
|
<?php if ($systemInfo->EnableTimeRecords): ?>
|
|
|
|
<div>
|
|
|
|
<p>Time Records Helper</p>
|
|
|
|
<?php
|
|
|
|
print_r($systemInfo->timeRecords);
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
2024-04-09 19:01:34 +08:00
|
|
|
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<h2>
|
|
|
|
<i class="fa-solid fa-server"></i>
|
2024-04-12 16:15:43 +08:00
|
|
|
<?= $systemInfo->hostname ?>
|
2024-04-09 19:01:34 +08:00
|
|
|
</h2>
|
|
|
|
<p>
|
|
|
|
OS:
|
2024-04-12 16:15:43 +08:00
|
|
|
<strong><?= $systemInfo->os ?></strong>
|
2024-04-09 19:01:34 +08:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
CPU:
|
2024-04-12 16:15:43 +08:00
|
|
|
<strong><?= $systemInfo->cpu ?></strong>
|
2024-04-09 19:01:34 +08:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
RAM:
|
2024-04-12 16:15:43 +08:00
|
|
|
<strong><?= $systemInfo->ram ?></strong>
|
2024-04-09 19:01:34 +08:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
Server Time:
|
2024-04-12 16:15:43 +08:00
|
|
|
<strong><?= $systemInfo->serverTime ?></strong>
|
2024-04-09 19:01:34 +08:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
Server Up Time:
|
2024-04-12 16:15:43 +08:00
|
|
|
<strong><?= $systemInfo->serverUpTime ?></strong>
|
2024-04-09 19:01:34 +08:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div>
|
2024-04-12 16:15:43 +08:00
|
|
|
<?php if ($systemInfo->osType === 2): ?>
|
|
|
|
<div>
|
|
|
|
<h2>
|
|
|
|
<i class="fa-solid fa-bars-progress"></i>
|
|
|
|
Load
|
|
|
|
</h2>
|
|
|
|
<!-- Load Graph -->
|
|
|
|
<p>
|
|
|
|
Load Average: <?= $systemInfo->load ?> (Last 1 min)
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
2024-04-09 19:01:34 +08:00
|
|
|
<div>
|
|
|
|
<h2>
|
|
|
|
<i class="fa-solid fa-microchip"></i>
|
|
|
|
CPU
|
|
|
|
</h2>
|
|
|
|
<!-- CPU Graph -->
|
|
|
|
<p>
|
2024-04-12 16:15:43 +08:00
|
|
|
CPU Usage: <?= $systemInfo->cpuUsage ?>%
|
2024-04-09 19:01:34 +08:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h2>
|
|
|
|
<i class="fa-solid fa-memory"></i>
|
2024-04-12 16:15:43 +08:00
|
|
|
Memory
|
2024-04-09 19:01:34 +08:00
|
|
|
</h2>
|
2024-04-12 16:15:43 +08:00
|
|
|
<!-- Memory Graph -->
|
2024-04-09 19:01:34 +08:00
|
|
|
<p>
|
|
|
|
<!-- RAM value -->
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<!-- SWAP value -->
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<h2>
|
|
|
|
<i class="fa-solid fa-hard-drive"></i>
|
|
|
|
Disk
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<!-- disk chart -->
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h3>Data</h3>
|
|
|
|
Mount:
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->dataMountPoint ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
<br>
|
|
|
|
File System:
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->mp_fs ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
<br>
|
|
|
|
Size:
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->mp_size ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
<br>
|
|
|
|
Free:
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->mp_avail ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
<br>
|
|
|
|
Used:
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->mp_used ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div>
|
|
|
|
<h2>
|
|
|
|
<i class="fa-solid fa-ethernet"></i>
|
|
|
|
Network
|
|
|
|
</h2>
|
|
|
|
<p>
|
|
|
|
Hostname:
|
2024-04-12 16:15:43 +08:00
|
|
|
<?= $systemInfo->hostname ?>
|
2024-04-09 19:01:34 +08:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
DNS:
|
2024-04-12 16:15:43 +08:00
|
|
|
<?= $systemInfo->dns ?>
|
2024-04-09 19:01:34 +08:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
Gateway:
|
2024-04-12 16:15:43 +08:00
|
|
|
<?= $systemInfo->gateway ?>
|
2024-04-09 19:01:34 +08:00
|
|
|
</p>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<div>
|
2024-04-12 16:15:43 +08:00
|
|
|
<h3><?= $systemInfo->nic['interfaceName'] ?></h3>
|
2024-04-12 19:53:34 +08:00
|
|
|
MAC:
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->nic['mac'] ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
<br>
|
|
|
|
Speed:
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->nic['speed'] ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
<br>
|
|
|
|
IPv4:
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->nic['ipv4'] ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
<br>
|
|
|
|
IPv6:
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->nic['ipv6'] ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div>
|
|
|
|
<h2>
|
|
|
|
<i class="fa-solid fa-users"></i>
|
|
|
|
Active Users
|
|
|
|
</h2>
|
|
|
|
<div>
|
|
|
|
All:
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->users ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
<br>
|
|
|
|
Active (within 24h):
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->activeUsers ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<h2>
|
|
|
|
<i class="fa-solid fa-share-nodes"></i>
|
|
|
|
Share
|
|
|
|
</h2>
|
|
|
|
<div>
|
|
|
|
Link:
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->shares ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h2>
|
|
|
|
<i class="fa-solid fa-paper-plane"></i>
|
|
|
|
Collection
|
|
|
|
</h2>
|
|
|
|
<div>
|
|
|
|
Collection:
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->collections ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<h2>
|
|
|
|
<i class="fa-brands fa-php"></i>
|
|
|
|
PHP
|
|
|
|
</h2>
|
|
|
|
<div>
|
|
|
|
Version:
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->phpVersion ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
<br>
|
|
|
|
Memory Limit:
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->memoryLimit ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
<br>
|
|
|
|
Max Execution Time:
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->maxExecutionTime ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
<br>
|
|
|
|
Upload Max Filesize:
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->uploadMaxFilesize ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
<br>
|
|
|
|
Post Max Size:
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->postMaxSize ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
<br>
|
|
|
|
Extension:
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->extensions ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h2>
|
|
|
|
<i class="fa-solid fa-database"></i>
|
|
|
|
Database
|
|
|
|
</h2>
|
|
|
|
<div>
|
|
|
|
Type:
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->dbType ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
<br>
|
|
|
|
Version:
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->dbVersion ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
<br>
|
|
|
|
Size:
|
2024-04-12 16:15:43 +08:00
|
|
|
<span><?= $systemInfo->dbSize ?></span>
|
2024-04-09 19:01:34 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|