mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-15 06:09:58 +08:00
59 lines
2.3 KiB
PHP
59 lines
2.3 KiB
PHP
<?php
|
|
/**
|
|
* @Author: printempw
|
|
* @Date: 2016-02-03 14:39:50
|
|
* @Last Modified by: printempw
|
|
* @Last Modified time: 2016-04-03 07:59:57
|
|
*/
|
|
require "../libraries/session.inc.php";
|
|
if (!$user->is_admin) Utils::redirect('../index.php?msg=看起来你并不是管理员');
|
|
View::show('admin/header', array('page_title' => "仪表盘"));
|
|
$db = new Database\Database('users');
|
|
?>
|
|
<!-- Content Wrapper. Contains page content -->
|
|
<div class="content-wrapper">
|
|
<!-- Content Header (Page header) -->
|
|
<section class="content-header">
|
|
<h1>
|
|
仪表盘
|
|
<small>Dashboard</small>
|
|
</h1>
|
|
</section>
|
|
|
|
<!-- Main content -->
|
|
<section class="content">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="info-box">
|
|
<a href="manage.php">
|
|
<span class="info-box-icon bg-aqua"><i class="fa fa-users"></i></span>
|
|
<div class="info-box-content">
|
|
<span class="info-box-text">注册用户</span>
|
|
<span class="info-box-number"><?php echo $db->getRecordNum();?></span>
|
|
</div><!-- /.info-box-content -->
|
|
</a>
|
|
</div><!-- /.info-box -->
|
|
|
|
<div class="info-box">
|
|
<span class="info-box-icon bg-green"><i class="fa fa-files-o"></i></span>
|
|
<div class="info-box-content">
|
|
<span class="info-box-text">上传材质总数</span>
|
|
<span class="info-box-number"><?php echo Utils::getFileNum(BASE_DIR."/textures/");?></span>
|
|
</div><!-- /.info-box-content -->
|
|
</div><!-- /.info-box -->
|
|
|
|
<div class="info-box">
|
|
<span class="info-box-icon bg-yellow"><i class="fa fa-hdd-o"></i></span>
|
|
<div class="info-box-content">
|
|
<span class="info-box-text">占用空间大小</span>
|
|
<span class="info-box-number"><?php echo floor(Utils::getDirSize(BASE_DIR."/textures/")/1024)."KB";?></span>
|
|
</div><!-- /.info-box-content -->
|
|
</div><!-- /.info-box -->
|
|
</div>
|
|
</div>
|
|
|
|
</section><!-- /.content -->
|
|
</div><!-- /.content-wrapper -->
|
|
<?php
|
|
View::show('footer'); ?>
|