Exemple #1
0
<?php

require_once '_main.php';
$ssmin = new \Ss\Etc\Ana();
// $smarty->assign('ssmin',$ssmin);
$smarty->assign('time', date("Y-m-d H:i", time()));
// 当前时间
$smarty->assign('getTrafficGB', $ssmin->getTrafficGB());
// 已经产生流量
$smarty->assign('allUserCount', $ssmin->allUserCount());
// 注册用户
$smarty->assign('activedUserCount', $ssmin->activedUserCount());
// 已经有n个用户使用了服务
$smarty->assign('checkinUser', $ssmin->checkinUser(time()));
// 签到用户
$smarty->assign('CheckInUser_24', $ssmin->CheckInUser(3600 * 24));
// 24小时签到用户
$smarty->assign('onlineUserCount_1_h', $ssmin->onlineUserCount(3600));
// 过去1小时在线人数
$smarty->assign('onlineUserCount_5_i', $ssmin->onlineUserCount(300));
// 过去5分钟在线人数
$smarty->assign('onlineUserCount_1_i', $ssmin->onlineUserCount(60));
// 过去1分钟在线人数
$smarty->assign('onlineUserCount', $ssmin->onlineUserCount(10));
// 实时在线人数
$smarty->assign('onlineUserCount_24_h', $ssmin->onlineUserCount(3600 * 24));
// 过去24小时在线人数
$smarty->display('user/sys.tpl');
Exemple #2
0
<?php

require_once '_main.php';
$ssmin = new \Ss\Etc\Ana();
$mt = $ssmin->getMonthTraffic();
$mt = $mt / $togb;
$mt = round($mt, 3);
$active_user = $ssmin->activedUserCount();
$all_user = $ssmin->allUserCount();
$node_count = $ssmin->nodeCount();
?>

    <!-- =============================================== -->

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                用户中心
                <small>User Center</small>
            </h1>
        </section>

        <!-- Main content -->
        <section class="content">
            <!-- Small boxes (Stat box) -->
            <div class="row">
                <div class="col-lg-3 col-xs-6">
                    <!-- small box -->
                    <div class="small-box bg-aqua">
Exemple #3
0
echo date("Y-m-d H:i", time());
?>
</p>
			                <p>当前版本:<code><?php 
echo $version;
?>
</code></p>
                            <p><?php 
echo $site_name;
?>
已经产生流量<code><?php 
echo $ssmin->getTrafficGB();
?>
</code>GB。</p>
                            <p>注册用户:<code><?php 
echo $ssmin->allUserCount();
?>
 </code></p>
                            <p>已经有<code><?php 
echo $ssmin->activedUserCount();
?>
</code>个用户使用了<?php 
echo $site_name;
?>
服务。</p>
                            <p>签到用户:<code><?php 
echo $ssmin->checkinUser(time());
?>
</code></p>
                            <p>24小时签到用户:<code><?php 
echo $ssmin->CheckInUser(3600 * 24);