<!DOCTYPE html>
<html>
{include file="public/head" /}
<body>
<div class="z-content">
    <div class="row">
        <div class="col-md-4">
            <div class="z-card-body">
                <p>使用 <span class="text-pink">uumBlog(PHP版)</span> 博客</p>
                
                <table class="table mb-0">
                    <thead>
                    <tr>
                        <th class="pl-0">名称</th>
                        <th class="text-right">信息</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td class="pl-0">服务器系统</td>
                        <td class="pr-0 text-right"><div class="badge badge-primary"><?php echo php_uname('s');  ?></div></td>
                    </tr>
                    <tr>
                        <td class="pl-0">WEB运行环境</td>
                        <td class="pr-0 text-right"><div class="badge badge-info"><?php echo function_exists('apache_get_version')?apache_get_version():$_SERVER["SERVER_SOFTWARE"];  ?></div></td>
                    </tr>
                    <tr>
                        <td class="pl-0">运行PHP版本</td>
                        <td class="pr-0 text-right"><div class="badge badge-danger"><?php echo 'PHP'.phpversion();?></div></td>
                    </tr>
                    <tr>
                        <td class="pl-0">数据库信息</td>
                        <td class="pr-0 text-right"><div class="badge badge-success"><?php echo function_exists('mysqli_get_server_info') ? mysqli_get_server_info(mysqli_connect(config("database.hostname"),config("database.username"),config("database.password"))) : '';?></div></td>
                    </tr>
                    <tr>
                        <td class="pl-0">上传大小限制</td>
                        <td class="pr-0 text-right"><div class="badge badge-warning"><?php echo ini_get('upload_max_filesize');?></div></td>
                    </tr>
                    <tr>
                        <td class="pl-0">POST大小限制</td>
                        <td class="pr-0 text-right"><div class="badge badge-info"><?php echo ini_get('post_max_size');?></div></td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
</body>
</html>
