| Line 1... |
Line 1... |
| 1 |
<?php
|
1 |
<?php
|
| 2 |
//gestion de la langue
|
2 |
//gestion de la langue
|
| 3 |
$origine='user_accounting';
|
- |
|
| 4 |
if (is_file("../lib/langues.php"))
|
3 |
if (is_file("../lib/langues.php"))
|
| 5 |
include("../lib/langues.php");
|
4 |
include("../lib/langues.php");
|
| 6 |
require('/etc/freeradius-web/config.php');
|
5 |
require('/etc/freeradius-web/config.php');
|
| 7 |
require('../lib/functions.php');
|
6 |
require('../lib/functions.php');
|
| 8 |
require('../lib/sql/functions.php');
|
7 |
require('../lib/sql/functions.php');
|
| Line 14... |
Line 13... |
| 14 |
include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
|
13 |
include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
|
| 15 |
else{
|
14 |
else{
|
| 16 |
echo <<<EOM
|
15 |
echo <<<EOM
|
| 17 |
<html>
|
16 |
<html>
|
| 18 |
<head>
|
17 |
<head>
|
| 19 |
<title>$l_title</title>
|
18 |
<title>User accounting</title>
|
| 20 |
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
|
19 |
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
|
| 21 |
<link rel="stylesheet" href="/css/style.css">
|
20 |
<link rel="stylesheet" href="/css/style.css">
|
| 22 |
</head>
|
21 |
</head>
|
| 23 |
<body>
|
22 |
<body>
|
| 24 |
<center>
|
23 |
<center>
|
| Line 53... |
Line 52... |
| 53 |
|
52 |
|
| 54 |
|
53 |
|
| 55 |
echo <<<EOM
|
54 |
echo <<<EOM
|
| 56 |
<html>
|
55 |
<html>
|
| 57 |
<head>
|
56 |
<head>
|
| 58 |
<title>i$l_title</title>
|
57 |
<title>iUser accounting</title>
|
| 59 |
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
|
58 |
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
|
| 60 |
<link rel="stylesheet" href="/css/style.css">
|
59 |
<link rel="stylesheet" href="/css/style.css">
|
| 61 |
</head>
|
60 |
</head>
|
| 62 |
<body>
|
61 |
<body>
|
| 63 |
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
|
62 |
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 64 |
<tr><th>$l_frame_top</th></tr>
|
63 |
<tr><th>$l_users_managment</th></tr>
|
| 65 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
|
64 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
|
| 66 |
height="2"></td></tr>
|
65 |
height="2"></td></tr>
|
| 67 |
</TABLE>
|
66 |
</TABLE>
|
| 68 |
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
|
67 |
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
|
| 69 |
<tr bgcolor="#666666"><td>
|
68 |
<tr bgcolor="#666666"><td>
|
| Line 191... |
Line 190... |
| 191 |
$colspan--;
|
190 |
$colspan--;
|
| 192 |
echo <<<EOM
|
191 |
echo <<<EOM
|
| 193 |
<tr bgcolor="lightyellow" align="center">
|
192 |
<tr bgcolor="lightyellow" align="center">
|
| 194 |
<td colspan=$colspan><b>Total</b></td>
|
193 |
<td colspan=$colspan><b>Total</b></td>
|
| 195 |
EOM;
|
194 |
EOM;
|
| 196 |
if ($acct_attrs[ua][3] != '') echo "<td><b>$acct_sessiontime_sum</td>\n";
|
195 |
if ($acct_attrs[ua][3] != '') echo "<td><b>$acct_sessiontime_sum</b></td>\n";
|
| 197 |
if ($acct_attrs[ua][4] != '') echo "<td> </td>\n";
|
196 |
if ($acct_attrs[ua][4] != '') echo "<td> </td>\n";
|
| 198 |
if ($acct_attrs[ua][5] != '') echo "<td><b>$acct_upload_sum</td>\n";
|
197 |
if ($acct_attrs[ua][5] != '') echo "<td><b>$acct_upload_sum</b></td>\n";
|
| 199 |
if ($acct_attrs[ua][6] != '') echo "<td><b>$acct_download_sum</td>\n";
|
198 |
if ($acct_attrs[ua][6] != '') echo "<td><b>$acct_download_sum</b></td>\n";
|
| 200 |
// if ($acct_attrs[ua][7] != '') echo "<td> </td>\n";
|
199 |
// if ($acct_attrs[ua][7] != '') echo "<td> </td>\n";
|
| 201 |
if ($acct_attrs[ua][8] != '') echo "<td> </td>\n";
|
200 |
if ($acct_attrs[ua][8] != '') echo "<td> </td>\n";
|
| 202 |
// if ($acct_attrs[ua][9] != '') echo "<td> </td>\n";
|
201 |
// if ($acct_attrs[ua][9] != '') echo "<td> </td>\n";
|
| 203 |
?>
|
202 |
?>
|
| 204 |
</tr>
|
203 |
</tr>
|
| Line 209... |
Line 208... |
| 209 |
<form action="user_accounting.php" method="get" name="master">
|
208 |
<form action="user_accounting.php" method="get" name="master">
|
| 210 |
<table border=0>
|
209 |
<table border=0>
|
| 211 |
<tr><td colspan=6></td>
|
210 |
<tr><td colspan=6></td>
|
| 212 |
</tr>
|
211 |
</tr>
|
| 213 |
<tr valign="bottom">
|
212 |
<tr valign="bottom">
|
| 214 |
<td><small><b><?php echo "$l_user";?></td><td><small><b>from</td><td><small><b>to</td><td><small><b>nbr./page</td><td><b>order</td>
|
213 |
<td><?php echo "$l_user";?></td><td>from</td><td>to</td><td>nbr./page</td><td>order</td>
|
| 215 |
<tr valign="middle"><td>
|
214 |
<tr valign="middle"><td>
|
| 216 |
<?php
|
215 |
<?php
|
| 217 |
echo <<<EOM
|
216 |
echo <<<EOM
|
| 218 |
<input type="text" name="login" size="11" value="$login"></td>
|
217 |
<input type="text" name="login" size="11" value="$login"></td>
|
| 219 |
<td><input type="text" name="prev_str" size="11" value="$prev_str"></td>
|
218 |
<td><input type="text" name="prev_str" size="11" value="$prev_str"></td>
|