5 * Copyright 1999-2001 (c) VA Linux Systems
6 * Copyright 2010 (c) FusionForge Team
7 * Copyright (C) 2010 Alain Peyrat - Alcatel-Lucent
8 * http://fusionforge.org
10 * This file is part of FusionForge. FusionForge is free software;
11 * you can redistribute it and/or modify it under the terms of the
12 * GNU General Public License as published by the Free Software
13 * Foundation; either version 2 of the Licence, or (at your option)
16 * FusionForge is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License along
22 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 require_once('../env.inc.php');
27 require_once $gfcommon.'include/pre.php';
28 require_once $gfwww.'stats/site_stats_utils.php';
30 session_require_global_perm ('forge_stats', 'read') ;
32 $HTML->header(array('title'=>sprintf(_('%1$s Sitewide Aggregate Statistics'), forge_get_config ('forge_name'))));
35 // BEGIN PAGE CONTENT CODE
42 <table class="fullwidth">
43 <tr class="align-center">
44 <td><strong><?php echo _('OVERVIEW STATS'); ?></strong></td>
45 <td><a href="projects.php"><?php echo _('PROJECT STATS'); ?></a></td>
46 <td><a href="graphs.php"><?php echo _('SITE GRAPHS'); ?></a></td>
54 stats_site_aggregate();
56 stats_site_projects_daily( 7 );
58 stats_site_projects_monthly( );
60 echo '<h2>'._('Other statistics').'</h2>';
61 echo '<ul><li><a href="i18n.php">'.("I18n Statistics").'</a></li></ul>';
64 // END PAGE CONTENT CODE
67 $HTML->footer( array() );