File: index.php

package info (click to toggle)
gforge 4.5.14-22etch13
  • links: PTS
  • area: main
  • in suites: etch
  • size: 13,004 kB
  • ctags: 11,918
  • sloc: php: 36,047; sql: 29,050; sh: 10,538; perl: 6,496; xml: 3,810; makefile: 341; python: 263; ansic: 256
file content (62 lines) | stat: -rw-r--r-- 1,467 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/**
  *
  * SourceForge Sitewide Statistics
  *
  * SourceForge: Breaking Down the Barriers to Open Source Development
  * Copyright 1999-2001 (c) VA Linux Systems
  * http://sourceforge.net
  *
  * @version   $Id: index.php 1737 2003-02-17 15:45:38Z rspisser $
  *
  */


require_once('pre.php');
require_once('site_stats_utils.php');

// require you to be a member of the sfstats group
session_require( array('group'=>$sys_stats_group) );

$HTML->header(array('title'=>$Language->getText('stats','title',array($GLOBALS['sys_name']))));

//
// BEGIN PAGE CONTENT CODE
//

echo "\n\n";

print '<div align="center">' . "\n";
print '<h3>'.$Language->getText('stats_index','sitewide_aggregate_statistics
').'</h3><br />' . "\n";
?>

<hr />

<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr align="center">
<td><strong><?php echo $Language->getText('stats_index','overview_stats'); ?></strong></td>
<td><a href="projects.php"><?php echo $Language->getText('stats_index','project_stats'); ?></a></td>
<td><a href="graphs.php"><?php echo $Language->getText('stats_index','site_graphs'); ?></a></td>
</tr>
</table>

<hr />

<?php

stats_site_aggregate();
print '<br /><br />';
stats_site_projects_daily( 7 );
print '<br /><br />';
stats_site_projects_monthly( );
print '<br /><br />' . "\n";
print '</div>' . "\n";
echo '<p>'.$Language->getText('stats_index','other_statistics').'</p>';

//
// END PAGE CONTENT CODE
//

$HTML->footer( array() );
?>