Exemplo n.º 1
0
                    $day = 0;
                    for ($i = 0; $i < count($list); ++$i) {
                        if (time() - 24 * 60 * 60 < $list[$i]["regdate"]) {
                            $day++;
                        }
                        if (time() - 24 * 60 * 60 * 7 < $list[$i]["regdate"]) {
                            $week++;
                        }
                        if (time() - 24 * 60 * 60 * 30 < $list[$i]["regdate"]) {
                            $month++;
                        }
                    }
                    $MDL->Load("smadbis");
                    $BILL = new CBilling($GV["dbhost"], $GV["dbname"], $GV["dblogin"], $GV["dbpassword"]);
                    $inlist = $BILL->GetOnlineUsersList();
                    $onlist = $USR->GetOnlineUsersList();
                    ?>
      <table width=100%>
      <tr><td width=80%><font style="font-size:9px">всего пользователей:</font></td><td style="font-size:9px"><?php 
                    OUT(count($list));
                    ?>
</td></tr>
      <tr><td width=80%><font style="font-size:9px">новых сегодня:</font></td><td style="font-size:9px"><?php 
                    OUT($day);
                    ?>
</td></tr>
      <tr><td width=80%><font style="font-size:9px">новых за неделю:</font></td ><td style="font-size:9px"><?php 
                    OUT($week);
                    ?>
</td></tr>
      <tr><td width=80%><font style="font-size:9px">новых за месяц:</font></td><td style="font-size:9px"><?php