| Line 1... |
Line 1... |
| 1 |
<?php
|
1 |
<?php
|
| 2 |
//gestion de la langue
|
2 |
//gestion de la langue
|
| 3 |
if (is_file("../lib/langues.php"))
|
3 |
if (is_file("../lib/langues.php"))
|
| 4 |
include("../lib/langues.php");
|
4 |
include("../lib/langues.php");
|
| 5 |
require('/etc/freeradius-web/config.php');
|
5 |
require('/etc/freeradius-web/config.php');
|
| - |
|
6 |
if(!isset($selected))
|
| - |
|
7 |
{
|
| - |
|
8 |
$selected['username'] = '';
|
| - |
|
9 |
$selected['name'] = '';
|
| - |
|
10 |
$selected['department'] = '';
|
| - |
|
11 |
$selected['radius'] = '';
|
| - |
|
12 |
$selected['Expiration'] = '';
|
| - |
|
13 |
$selected['Max-All-Session'] = '';
|
| - |
|
14 |
$selected['Session-Timeout'] = '';
|
| - |
|
15 |
$selected['Max-Daily-Session'] = '';
|
| - |
|
16 |
$selected['Max-Monthly-Session'] = '';
|
| - |
|
17 |
$selected['Simultaneous-Use'] = '';
|
| - |
|
18 |
$selected['Login-Time'] = '';
|
| - |
|
19 |
$selected['ChilliSpot-Max-Input-Octets'] = '';
|
| - |
|
20 |
$selected['ChilliSpot-Max-Total-Octets'] = '';
|
| - |
|
21 |
$selected['ChilliSpot-Bandwidth-Max-Up'] = '';
|
| - |
|
22 |
$selected['ChilliSpot-Bandwidth-Max-Down'] = '';
|
| - |
|
23 |
$selected['ChilliSpot-Max-Output-Octets'] = '';
|
| - |
|
24 |
$selected['WISPr-Redirection-URL'] = '';
|
| - |
|
25 |
}
|
| 6 |
if (isset($search_IN)) $selected[$search_IN] = 'selected';
|
26 |
if (isset($search_IN)) $selected[$search_IN] = 'selected';
|
| 7 |
if (isset ($radius_attr)) $selected[$radius_attr] = 'selected';
|
27 |
if (isset ($radius_attr)) $selected[$radius_attr] = 'selected';
|
| 8 |
if (isset ($max_results)){ $max = ($max_results) ? $max_results : 40;}
|
28 |
if (isset ($max_results)){ $max = ($max_results) ? $max_results : 40;}
|
| 9 |
?>
|
29 |
?>
|
| 10 |
<html>
|
30 |
<html>
|
| Line 14... |
Line 34... |
| 14 |
<link rel="stylesheet" href="/css/style.css">
|
34 |
<link rel="stylesheet" href="/css/style.css">
|
| 15 |
</head>
|
35 |
</head>
|
| 16 |
<body>
|
36 |
<body>
|
| 17 |
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
|
37 |
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 18 |
<tr><th><?php echo "$l_users_managment";?></th></tr>
|
38 |
<tr><th><?php echo "$l_users_managment";?></th></tr>
|
| 19 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
|
39 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
|
| 20 |
height="2"></td></tr>
|
40 |
height="2"></td></tr>
|
| 21 |
</TABLE>
|
41 |
</TABLE>
|
| 22 |
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
|
42 |
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
|
| 23 |
<tr bgcolor="#666666"><td>
|
43 |
<tr bgcolor="#666666"><td>
|
| 24 |
<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
|
44 |
<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
|
| Line 44... |
Line 64... |
| 44 |
unset($found_users);
|
64 |
unset($found_users);
|
| 45 |
if (is_file("../lib/$config[general_lib_type]/find.php"))
|
65 |
if (is_file("../lib/$config[general_lib_type]/find.php"))
|
| 46 |
include("../lib/$config[general_lib_type]/find.php");
|
66 |
include("../lib/$config[general_lib_type]/find.php");
|
| 47 |
if (isset($found_users)){
|
67 |
if (isset($found_users)){
|
| 48 |
$num = 0;
|
68 |
$num = 0;
|
| - |
|
69 |
$msg ='';
|
| 49 |
$msg .= <<<EOM
|
70 |
$msg .= <<<EOM
|
| 50 |
|
71 |
|
| 51 |
<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
|
72 |
<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
|
| 52 |
<tr bgcolor="#d0ddb0">
|
73 |
<tr bgcolor="#d0ddb0">
|
| 53 |
<th>#</th><th>$l_user</th><th>Actions</th><th>$l_group_member</th>
|
74 |
<th>#</th><th>$l_user</th><th>Actions</th><th>$l_group_member</th>
|
| Line 73... |
Line 94... |
| 73 |
<a href="user_accounting.php?login=$User" title="$l_connections"><img src=/images/graph.gif></a>
|
94 |
<a href="user_accounting.php?login=$User" title="$l_connections"><img src=/images/graph.gif></a>
|
| 74 |
<a href="clear_opensessions.php?login=$User" title="$l_open_sessions"><img src=/images/state_ok.gif></a>
|
95 |
<a href="clear_opensessions.php?login=$User" title="$l_open_sessions"><img src=/images/state_ok.gif></a>
|
| 75 |
<a href="user_delete.php?login=$User" title="$l_remove"><img src=/images/state_error.gif></a></td><td>
|
96 |
<a href="user_delete.php?login=$User" title="$l_remove"><img src=/images/state_error.gif></a></td><td>
|
| 76 |
EOM;
|
97 |
EOM;
|
| 77 |
if (isset($member_groups)) foreach ($member_groups as $group) { $msg .= "$group";}
|
98 |
if (isset($member_groups)) foreach ($member_groups as $group) { $msg .= "$group";}
|
| 78 |
else $msg .= " ";
|
99 |
else $msg .= " ";
|
| 79 |
$msg .= "</td>";
|
100 |
$msg .= "</td>";
|
| 80 |
}
|
101 |
}
|
| 81 |
$msg .= "</tr></table>\n";
|
102 |
$msg .= "</tr></table>\n";
|
| 82 |
}
|
103 |
}
|
| 83 |
else
|
104 |
else
|
| Line 119... |
Line 140... |
| 119 |
<select name="radius_attr" editable>
|
140 |
<select name="radius_attr" editable>
|
| 120 |
EOM;
|
141 |
EOM;
|
| 121 |
foreach($show_attrs as $key => $desc)
|
142 |
foreach($show_attrs as $key => $desc)
|
| 122 |
switch ($key)
|
143 |
switch ($key)
|
| 123 |
{
|
144 |
{
|
| 124 |
case 'Simultaneous-Use' :
|
145 |
case 'Simultaneous-Use' :
|
| 125 |
$desc=$l_simultaneous_use;
|
146 |
$desc=$l_simultaneous_use;
|
| 126 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
147 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
| 127 |
break;
|
148 |
break;
|
| 128 |
case 'Max-All-Session' :
|
149 |
case 'Max-All-Session' :
|
| 129 |
$desc=$l_max_all_session;
|
150 |
$desc=$l_max_all_session;
|
| 130 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
151 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
| 131 |
break;
|
152 |
break;
|
| 132 |
case 'Session-Timeout' :
|
153 |
case 'Session-Timeout' :
|
| 133 |
$desc=$l_session_timeout;
|
154 |
$desc=$l_session_timeout;
|
| 134 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
155 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
| 135 |
break;
|
156 |
break;
|
| 136 |
case 'Max-Daily-Session' :
|
157 |
case 'Max-Daily-Session' :
|
| 137 |
$desc=$l_daily_timeout;
|
158 |
$desc=$l_daily_timeout;
|
| 138 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
159 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
| 139 |
break;
|
160 |
break;
|
| 140 |
case 'Max-Monthly-Session' :
|
161 |
case 'Max-Monthly-Session' :
|
| 141 |
$desc=$l_monthly_timeout;
|
162 |
$desc=$l_monthly_timeout;
|
| 142 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
163 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
| 143 |
break;
|
164 |
break;
|
| 144 |
case 'Login-Time' :
|
165 |
case 'Login-Time' :
|
| 145 |
$desc=$l_login_time;
|
166 |
$desc=$l_login_time;
|
| 146 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
167 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
| 147 |
break;
|
168 |
break;
|
| 148 |
case 'Expiration' :
|
169 |
case 'Expiration' :
|
| 149 |
$desc=$l_expiration;
|
170 |
$desc=$l_expiration;
|
| 150 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
171 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
| 151 |
break;
|
172 |
break;
|
| 152 |
case 'ChilliSpot-Max-Input-Octets' :
|
173 |
case 'ChilliSpot-Max-Input-Octets' :
|
| 153 |
$desc=$l_max_input_octets;
|
174 |
$desc=$l_max_input_octets;
|
| 154 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
175 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
| 155 |
break;
|
176 |
break;
|
| 156 |
case 'ChilliSpot-Max-Output-Octets' :
|
177 |
case 'ChilliSpot-Max-Output-Octets' :
|
| 157 |
$desc=$l_max_output_octets;
|
178 |
$desc=$l_max_output_octets;
|
| 158 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
179 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
| 159 |
break;
|
180 |
break;
|
| 160 |
case 'ChilliSpot-Max-Total-Octets' :
|
181 |
case 'ChilliSpot-Max-Total-Octets' :
|
| 161 |
$desc=$l_max_total_octets;
|
182 |
$desc=$l_max_total_octets;
|
| 162 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
183 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
| 163 |
break;
|
184 |
break;
|
| 164 |
case 'ChilliSpot-Bandwidth-Max-Up' :
|
185 |
case 'ChilliSpot-Bandwidth-Max-Up' :
|
| 165 |
$desc=$l_max_bandwidth_up;
|
186 |
$desc=$l_max_bandwidth_up;
|
| 166 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
187 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
| 167 |
break;
|
188 |
break;
|
| 168 |
case 'ChilliSpot-Bandwidth-Max-Down' :
|
189 |
case 'ChilliSpot-Bandwidth-Max-Down' :
|
| 169 |
$desc=$l_max_bandwidth_down;
|
190 |
$desc=$l_max_bandwidth_down;
|
| 170 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
191 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
| 171 |
break;
|
192 |
break;
|
| 172 |
case 'WISPr-Redirection-URL' :
|
193 |
case 'WISPr-Redirection-URL' :
|
| 173 |
$desc=$l_wispr_redirection;
|
194 |
$desc=$l_wispr_redirection;
|
| 174 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
195 |
echo "<option $selected[$key] value=\"$key\">$desc\n";
|
| 175 |
break;
|
196 |
break;
|
| 176 |
}
|
197 |
}
|
| 177 |
echo <<<EOM
|
198 |
echo <<<EOM
|
| 178 |
</select>
|
199 |
</select>
|
| 179 |
</td>
|
200 |
</td>
|
| Line 195... |
Line 216... |
| 195 |
Nombre de résultats Max.
|
216 |
Nombre de résultats Max.
|
| 196 |
</td>
|
217 |
</td>
|
| 197 |
<td>
|
218 |
<td>
|
| 198 |
<input type=text name="max_results" value="<?php echo $max ?>" size=25>
|
219 |
<input type=text name="max_results" value="<?php echo $max ?>" size=25>
|
| 199 |
</td>
|
220 |
</td>
|
| 200 |
</tr> -->
|
221 |
</tr> -->
|
| 201 |
</table>
|
222 |
</table>
|
| 202 |
<br>
|
223 |
<br>
|
| 203 |
<input type=submit class=button value="<?php echo"$l_search";?>" OnClick="this.form.find_user.value=1">
|
224 |
<input type=submit class=button value="<?php echo"$l_search";?>" OnClick="this.form.find_user.value=1">
|
| 204 |
</form>
|
225 |
</form>
|
| 205 |
<?php
|
226 |
<?php
|