Subversion Repositories ALCASAR

Rev

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

Rev 2817 Rev 2854
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: user_stats.php 2817 2020-05-09 09:35:56Z rexy $
2
# $Id: user_stats.php 2854 2020-07-20 22:08:05Z 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');
8
?>
8
?>
9
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
9
<!DOCTYPE html>
10
<html>
10
<html>
11
<?php
11
<?php
12
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php"))
12
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php"))
13
	include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
13
	include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
14
else{
14
else{
Line 48... Line 48...
48
	$l_from			= "Du";
48
	$l_from			= "Du";
49
	$l_to			= "au";
49
	$l_to			= "au";
50
	$l_server		= "Serveur";
50
	$l_server		= "Serveur";
51
	$l_login		= "Identifiant";
51
	$l_login		= "Identifiant";
52
	$l_user_edit		= "Éditer l'utilisateur";
52
	$l_user_edit		= "Éditer l'utilisateur";
-
 
53
} else if($Language == 'es') {
-
 
54
    $l_title		= "Estadísticas de conexiones de los Usuarios";
-
 
55
	$l_start_date		= "Desde fecha";
-
 
56
	$l_end_date		= "Hasta fecha";
-
 
57
	$l_number_result	= "Nro de resultados / páginas";
-
 
58
	$l_order_by		= "Ordenados por";
-
 
59
	$l_sorted_order		= "Ordenar resultados";
-
 
60
	$l_all			= "Todos";
-
 
61
	$l_con_number		= "Números de conexiones";
-
 
62
	$l_con_length		= "Duración de la conexión";
-
 
63
	$l_ascending		= "Ascendente";
-
 
64
	$l_descending		= "Descendente";
-
 
65
	$l_server		= "En el servidor";
-
 
66
	$l_user			= "Filtrar por usuario (en blanco para todos los usuarios)";
-
 
67
	$l_show			= "Mostrar";
-
 
68
	$l_from			= "Desde";
-
 
69
	$l_to			= "hasta";
-
 
70
	$l_server		= "Servidor";
-
 
71
	$l_login		= "Usuario";
-
 
72
	$l_user_edit		= "Modificar usuario";
53
} else {
73
} else {
54
	$l_title		= "Statistics of users connexions";
74
	$l_title		= "Statistics of users connexions";
55
	$l_start_date		= "Start date";
75
	$l_start_date		= "Start date";
56
	$l_end_date		= "End date";
76
	$l_end_date		= "End date";
57
	$l_number_result	= "Nb results / page";
77
	$l_number_result	= "Nb results / page";
Line 83... Line 103...
83
<head>
103
<head>
84
<title><?php echo "$l_title";?></title>
104
<title><?php echo "$l_title";?></title>
85
<link rel="stylesheet" href="/css/acc.css" type="text/css">
105
<link rel="stylesheet" href="/css/acc.css" type="text/css">
86
</head>
106
</head>
87
<body>
107
<body>
88
<center>
108
<div class="panel">
-
 
109
	<div class="panel-header"><?= $l_title ?></div>
-
 
110
	<div class="panel-row">
89
<table width="100%" border="0" cellspacing="0" cellpadding="0">
111
<table width="100%" border="0" cellspacing="0" cellpadding="0">
90
	<tr><th>
-
 
91
	<font color="white"><?echo "$l_title";?></font>
-
 
92
	</th></tr>
-
 
93
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
-
 
94
</table>
-
 
95
<table width="100%" border="1" cellspacing="0" cellpadding="0">
-
 
96
<?php
112
<?php
97
if(isset($pagesize))
113
if(isset($pagesize))
98
{	
114
{	
99
	echo <<<EOM
115
	echo <<<EOM
100
<tr align="center"><td colspan="9">
116
<tr align="center"><td colspan="9">
Line 200... Line 216...
200
		}
216
		}
201
	}
217
	}
202
	echo <<<EOM
218
	echo <<<EOM
203
</table>
219
</table>
204
<hr>
220
<hr>
205
<table width="100%" border="1" cellspacing="0" cellpadding="0">
221
<table width="100%" border="0" cellspacing="0" cellpadding="0">
206
EOM;
222
EOM;
207
}
223
}
208
else
224
else
209
{
225
{
210
	//create dummy selected
226
	//create dummy selected
Line 291... Line 307...
291
<td><input type="text" name="login" size="11" value="<?php if(!isset($login)){echo "";}else{ echo $login;} ?>"></td>
307
<td><input type="text" name="login" size="11" value="<?php if(!isset($login)){echo "";}else{ echo $login;} ?>"></td>
292
</tr>
308
</tr>
293
</table>
309
</table>
294
</form>
310
</form>
295
</td></tr></table>
311
</td></tr></table>
-
 
312
	</div>
-
 
313
</div>
296
</body>
314
</body>
297
</html>
315
</html>