root/trunk/wifidog-auth/wifidog/admin/user_stats.php @ 411

Revision 411, 2.0 KB (checked in by aprilp, 8 years ago)

*** empty log message ***

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1<?php
2  /********************************************************************\
3   * This program is free software; you can redistribute it and/or    *
4   * modify it under the terms of the GNU General Public License as   *
5   * published by the Free Software Foundation; either version 2 of   *
6   * the License, or (at your option) any later version.              *
7   *                                                                  *
8   * This program is distributed in the hope that it will be useful,  *
9   * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
10   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
11   * GNU General Public License for more details.                     *
12   *                                                                  *
13   * You should have received a copy of the GNU General Public License*
14   * along with this program; if not, contact:                        *
15   *                                                                  *
16   * Free Software Foundation           Voice:  +1-617-542-5942       *
17   * 59 Temple Place - Suite 330        Fax:    +1-617-542-2652       *
18   * Boston, MA  02111-1307,  USA       gnu@gnu.org                   *
19   *                                                                  *
20   \********************************************************************/
21  /**@file node_list.php
22   * Network status page
23   * @author Copyright (C) 2004 Benoit Gr�goire
24   */
25define('BASEPATH','../');
26require_once 'admin_common.php';
27require_once BASEPATH.'classes/Statistics.php';
28
29$smarty->assign("total_users",  $stats->getNumUsers());
30$smarty->assign("total_valid",  $stats->getNumValidUsers());
31
32$smarty->assign("registrations", Statistics::getRegistrationsPerMonth());
33$smarty->assign("most_mobile_users", Statistics::getMostMobileUsers(10));
34$smarty->assign("most_frequent_users", Statistics::getMostFrequentUsers(10));
35$smarty->assign("most_greedy_users", Statistics::getMostGreedyUsers(10));
36$smarty->display("admin/templates/user_stats.html");
37?>
Note: See TracBrowser for help on using the browser.