Subversion Repositories ALCASAR

Rev

Rev 2229 | Rev 2856 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2229 Rev 2266
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: stats.php 2229 2017-05-15 11:46:48Z richard $
2
# $Id: stats.php 2266 2017-06-03 22:02:19Z tom.houdayer $
3
 
3
 
4
require('/etc/freeradius-web/config.php');
4
require('/etc/freeradius-web/config.php');
5
require('../lib/sql/nas_list.php');
5
require('../lib/sql/nas_list.php');
6
require_once('../lib/xlat.php');
6
require_once('../lib/xlat.php');
7
?>
7
?>
Line 72... Line 72...
72
$message['download'] = 'downloads';
72
$message['download'] = 'downloads';
73
if ($config['general_stats_use_totacct'] == 'yes'){
73
if ($config['general_stats_use_totacct'] == 'yes'){
74
	$sql_val['sessions'] = 'connnum';
74
	$sql_val['sessions'] = 'connnum';
75
	$sql_val['usage'] = 'conntotduration';
75
	$sql_val['usage'] = 'conntotduration';
76
	$sql_val['upload'] = 'outputoctets'; # invert with 'inputoctets' in order to display it more logically
76
	$sql_val['upload'] = 'outputoctets'; # invert with 'inputoctets' in order to display it more logically
77
	$sql_val['download'] = 'intputoctets';
77
	$sql_val['download'] = 'inputoctets';
78
}
78
}
79
else{
79
else{
80
	$sql_val['usage'] = 'acctsessiontime';
80
	$sql_val['usage'] = 'acctsessiontime';
81
	$sql_val['upload'] = 'acctinputoctets';
81
	$sql_val['upload'] = 'acctinputoctets';
82
	$sql_val['download'] = 'acctoutputoctets';
82
	$sql_val['download'] = 'acctoutputoctets';