| 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 | */ |
|---|
| 25 | define('BASEPATH','../'); |
|---|
| 26 | require_once 'admin_common.php'; |
|---|
| 27 | require_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 | ?> |
|---|