Subversion Repositories ALCASAR

Rev

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

Rev 2856 Rev 2858
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: stats.php 2856 2020-07-21 22:11:44Z rexy $
2
# $Id: stats.php 2858 2020-08-01 09:40:49Z rexy $
3
 
3
 
4
require('/etc/freeradius-web/config.php');
4
require('/etc/freeradius-web/config.php');
5
require('../lib/functions.php');
5
require('../lib/functions.php');
6
require('../lib/sql/nas_list.php');
6
require('../lib/sql/nas_list.php');
7
require_once('../lib/xlat.php');
7
require_once('../lib/xlat.php');
Line 14... Line 14...
14
$Language = 'en';
14
$Language = 'en';
15
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
15
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
16
	$Langue		= explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
16
	$Langue		= explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
17
	$Language	= strtolower(substr(chop($Langue[0]),0,2)); }
17
	$Language	= strtolower(substr(chop($Langue[0]),0,2)); }
18
if($Language == 'fr'){
18
if($Language == 'fr'){
-
 
19
	$l_Pagename		= "Usage quotidien";
19
	$l_title		= "Analyse journalière";
20
	$l_title		= "Analyse journalière";
20
	$l_sessions		= "Sessions";
21
	$l_sessions		= "Sessions";
21
	$l_usage		= "temps d'utilisation total";
22
	$l_usage		= "temps d'utilisation total";
22
	$l_uploads		= "Données sortantes";
23
	$l_uploads		= "Données sortantes";
23
	$l_downloads	= "Données entrantes";
24
	$l_downloads	= "Données entrantes";
-
 
25
	$l_from			= "Du";
-
 
26
	$l_to			= "au";
-
 
27
	$l_user			= "utilisateur";
-
 
28
	$l_onserver		= "sur le serveur";
24
} else if($Language == 'es') {
29
} else if($Language == 'es') {
-
 
30
	$l_Pagename		= "Uso diario";
25
	$l_title		= "SAnálisis diario";
31
	$l_title		= "SAnálisis diario";
26
	$l_sessions		= "sesiones";
32
	$l_sessions		= "sesiones";
27
	$l_usage		= "total usage time";
33
	$l_usage		= "total usage time";
28
	$l_uploads		= "Datos de salida";
34
	$l_uploads		= "Datos de salida";
29
	$l_downloads	= "Datos entrantes";
35
	$l_downloads	= "Datos entrantes";
-
 
36
	$l_from			= "Del";
-
 
37
	$l_to			= "al";
-
 
38
	$l_user			= "usuario";
-
 
39
	$l_onserver		= "en el servidor";
30
} else {
40
} else {
-
 
41
	$l_Pagename		= "Daily use";
31
	$l_title		= "Daily analysis";
42
	$l_title		= "Daily analysis";
32
	$l_sessions		= "Sessions";
43
	$l_sessions		= "Sessions";
33
	$l_usage		= "tiempo total de uso";
44
	$l_usage		= "tiempo total de uso";
34
	$l_uploads		= "Uploads";
45
	$l_uploads		= "Uploads";
35
	$l_downloads	= "Downloads";
46
	$l_downloads	= "Downloads";
-
 
47
	$l_from			= "From";
-
 
48
	$l_to			= "to";
-
 
49
	$l_user			= "user";
-
 
50
	$l_onserver		= "on the server";
36
}
51
}
37
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php"))
52
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php"))
38
	include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
53
	include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
39
else{
54
else{
40
	echo <<<EOM
55
	echo <<<EOM