mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-06 10:02:49 +08:00
324 lines
16 KiB
PHP
324 lines
16 KiB
PHP
<link rel="stylesheet" href="__STATIC__/admin/css/welcome.css?v={:time()}" media="all">
|
|
<div class="layuimini-container">
|
|
<div class="layuimini-main">
|
|
<div class="layui-row layui-col-space15">
|
|
<div class="layui-col-md12">
|
|
<div class="layui-card">
|
|
<div class="layui-card-header"><i class="fa fa-info-circle icon"></i>系统概览</div>
|
|
<div class="layui-card-body">
|
|
<table class="layui-table">
|
|
<colgroup>
|
|
<col width="120">
|
|
<col width="150">
|
|
<col width="120">
|
|
<col>
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<td>框架名称</td>
|
|
<td>{$systemInfo.framework}</td>
|
|
<td>框架版本</td>
|
|
<td>{$systemInfo.version}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Layui版本</td>
|
|
<td>{$systemInfo.layui_version}</td>
|
|
<td>ThinkPHP版本</td>
|
|
<td>{$systemInfo.thinkphp_version}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>PHP版本</td>
|
|
<td>{$systemInfo.php_version}</td>
|
|
<td>服务器时间</td>
|
|
<td>{$systemInfo.server_time}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>时区</td>
|
|
<td colspan="3">{$systemInfo.timezone}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-col-md6">
|
|
<div class="layui-card">
|
|
<div class="layui-card-header"><i class="fa fa-server icon icon-blue"></i>服务器环境</div>
|
|
<div class="layui-card-body">
|
|
<table class="layui-table">
|
|
<colgroup>
|
|
<col width="120">
|
|
<col>
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<td>服务器软件</td>
|
|
<td data-toggle="copy-text" data-clipboard-text="{$serverInfo.server_software}">
|
|
{$serverInfo.server_software} <i class="fa fa-copy"></i>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>操作系统</td>
|
|
<td data-toggle="copy-text" data-clipboard-text="{$serverInfo.os}">
|
|
{$serverInfo.os} <i class="fa fa-copy"></i>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>运行模式</td>
|
|
<td>{$serverInfo.sapi}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>服务器IP</td>
|
|
<td>{$serverInfo.ip}:{$serverInfo.port}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-col-md6">
|
|
<div class="layui-card">
|
|
<div class="layui-card-header"><i class="fa fa-database icon icon-green"></i>数据库状态</div>
|
|
<div class="layui-card-body">
|
|
<table class="layui-table">
|
|
<colgroup>
|
|
<col width="100">
|
|
<col>
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<td>数据库类型</td>
|
|
<td>{$databaseInfo.type}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>连接状态</td>
|
|
<td>
|
|
{if $databaseInfo.status == 'connected'}
|
|
<span class="layui-badge layui-bg-green">正常</span>
|
|
{elseif $databaseInfo.status == 'error'}
|
|
<span class="layui-badge layui-bg-red">异常</span>
|
|
{else/}
|
|
<span class="layui-badge layui-bg-gray">未知</span>
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>数据库版本</td>
|
|
<td>{$databaseInfo.version}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>数据库名称</td>
|
|
<td>{$databaseInfo.database}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>表前缀</td>
|
|
<td>{$databaseInfo.prefix}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>数据表数量</td>
|
|
<td>{$databaseInfo.table_count}</td>
|
|
</tr>
|
|
{if $databaseInfo.status == 'error'}
|
|
<tr>
|
|
<td>错误信息</td>
|
|
<td class="layui-text-red">{$databaseInfo.error}</td>
|
|
</tr>
|
|
{/if}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-col-md6">
|
|
<div class="layui-card">
|
|
<div class="layui-card-header"><i class="fa fa-hdd-o icon icon-orange"></i>存储状态</div>
|
|
<div class="layui-card-body">
|
|
<table class="layui-table">
|
|
<colgroup>
|
|
<col width="100">
|
|
<col>
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<td>根目录</td>
|
|
<td data-toggle="copy-text" data-clipboard-text="{$storageInfo.root_path}">
|
|
{$storageInfo.root_path} <i class="fa fa-copy"></i>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>总容量</td>
|
|
<td>{$storageInfo.total}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>已用空间</td>
|
|
<td>{$storageInfo.used}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>可用空间</td>
|
|
<td>{$storageInfo.free}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>使用率</td>
|
|
<td>
|
|
<div class="layui-progress" lay-showpercent="true" lay-filter="storage">
|
|
<div class="layui-progress-bar" lay-percent="{$storageInfo.usage_percent}%"></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-col-md6">
|
|
<div class="layui-card">
|
|
<div class="layui-card-header"><i class="fa fa-bolt icon icon-yellow"></i>缓存配置</div>
|
|
<div class="layui-card-body">
|
|
<table class="layui-table">
|
|
<colgroup>
|
|
<col width="100">
|
|
<col>
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<td>默认驱动</td>
|
|
<td>{$cacheInfo.default_driver}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>驱动类型</td>
|
|
<td>{$cacheInfo.type}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>缓存路径</td>
|
|
<td>{$cacheInfo.path}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>缓存前缀</td>
|
|
<td>{$cacheInfo.prefix}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>有效期</td>
|
|
<td>{$cacheInfo.expire == 0 ? '永久' : $cacheInfo.expire . '秒'}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>状态</td>
|
|
<td>
|
|
{if $cacheInfo.status == 'available'}
|
|
<span class="layui-badge layui-bg-green">可用</span>
|
|
{elseif $cacheInfo.status == 'error'}
|
|
<span class="layui-badge layui-bg-red">异常</span>
|
|
{else/}
|
|
<span class="layui-badge layui-bg-gray">未知</span>
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
{if $cacheInfo.status == 'error'}
|
|
<tr>
|
|
<td>错误信息</td>
|
|
<td class="layui-text-red">{$cacheInfo.error}</td>
|
|
</tr>
|
|
{/if}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-col-md6">
|
|
<div class="layui-card">
|
|
<div class="layui-card-header"><i class="fa fa-code icon icon-purple"></i>PHP配置</div>
|
|
<div class="layui-card-body">
|
|
<table class="layui-table">
|
|
<colgroup>
|
|
<col width="140">
|
|
<col>
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<td>上传文件限制</td>
|
|
<td>{$phpConfigInfo.upload_max_filesize}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>POST最大限制</td>
|
|
<td>{$phpConfigInfo.post_max_size}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>内存限制</td>
|
|
<td>{$phpConfigInfo.memory_limit}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>最大执行时间</td>
|
|
<td>{$phpConfigInfo.max_execution_time}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>最大输入时间</td>
|
|
<td>{$phpConfigInfo.max_input_time}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>文件上传</td>
|
|
<td>{$phpConfigInfo.file_uploads}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Allow URL Fopen</td>
|
|
<td>{$phpConfigInfo.allow_url_fopen}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>禁用函数</td>
|
|
<td class="layui-text-gray" title="{$phpConfigInfo.disabled_functions}">
|
|
{php}echo mb_strlen($phpConfigInfo['disabled_functions']) > 50 ? mb_substr($phpConfigInfo['disabled_functions'], 0, 50) . '...' : $phpConfigInfo['disabled_functions'];{/php}
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-col-md6">
|
|
<div class="layui-card">
|
|
<div class="layui-card-header"><i class="fa fa-tachometer icon icon-cyan"></i>性能指标</div>
|
|
<div class="layui-card-body">
|
|
<table class="layui-table">
|
|
<colgroup>
|
|
<col width="120">
|
|
<col>
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<td>内存使用</td>
|
|
<td>{$performanceInfo.memory_usage}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>内存限制</td>
|
|
<td>{$performanceInfo.memory_limit}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>内存使用率</td>
|
|
<td>
|
|
<div class="layui-progress" lay-showpercent="true" lay-filter="memory">
|
|
<div class="layui-progress-bar" lay-percent="{$performanceInfo.memory_percent}%"></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>峰值内存</td>
|
|
<td>{$performanceInfo.peak_memory}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>系统负载</td>
|
|
<td>{$performanceInfo.load_average}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|