Line 103... |
Line 103... |
103 |
include("../lib/$config[general_lib_type]/user_info.php");
|
103 |
include("../lib/$config[general_lib_type]/user_info.php");
|
104 |
if ($group_change && $config[general_lib_type] == 'sql' && $config[sql_show_all_groups] == 'true'){
|
104 |
if ($group_change && $config[general_lib_type] == 'sql' && $config[sql_show_all_groups] == 'true'){
|
105 |
include("../lib/sql/group_change.php");
|
105 |
include("../lib/sql/group_change.php");
|
106 |
include("../lib/defaults.php");
|
106 |
include("../lib/defaults.php");
|
107 |
}
|
107 |
}
|
- |
|
108 |
# Disconnecting user for re-authentication
|
- |
|
109 |
$mac=exec("sudo /usr/sbin/chilli_query list | grep \" $login \" | awk '{print $1}'");
|
- |
|
110 |
exec("sudo /usr/sbin/chilli_query logout $mac");
|
108 |
}
|
111 |
}
|
109 |
else{
|
112 |
else{
|
110 |
if (is_file("../lib/$config[general_lib_type]/group_info.php"))
|
113 |
if (is_file("../lib/$config[general_lib_type]/group_info.php"))
|
111 |
include("../lib/$config[general_lib_type]/group_info.php");
|
114 |
include("../lib/$config[general_lib_type]/group_info.php");
|
- |
|
115 |
# Disconnecting all users from the selected group for re-authentication
|
- |
|
116 |
if (isset($group_members)){
|
- |
|
117 |
foreach ($group_members as $g_member => $member){
|
- |
|
118 |
$mac=exec("sudo /usr/sbin/chilli_query list | grep \" $member \" | awk '{print $1}'");
|
- |
|
119 |
exec("sudo /usr/sbin/chilli_query logout $mac");
|
- |
|
120 |
}
|
- |
|
121 |
}
|
112 |
}
|
122 |
}
|
113 |
}
|
123 |
}
|
114 |
else if ($badusers == 1){
|
124 |
else if ($badusers == 1){
|
115 |
if (is_file("../lib/add_badusers.php"))
|
125 |
if (is_file("../lib/add_badusers.php"))
|
116 |
include("../lib/add_badusers.php");
|
126 |
include("../lib/add_badusers.php");
|
Line 255... |
Line 265... |
255 |
case 'WISPr-Redirection-URL' :
|
265 |
case 'WISPr-Redirection-URL' :
|
256 |
$advanced=1;
|
266 |
$advanced=1;
|
257 |
$help_link="help/wispr_redirection_url_help.html";
|
267 |
$help_link="help/wispr_redirection_url_help.html";
|
258 |
$desc=$l_wispr_redirection;
|
268 |
$desc=$l_wispr_redirection;
|
259 |
break;
|
269 |
break;
|
- |
|
270 |
case 'Filter-Id' :
|
- |
|
271 |
$advanced=1;
|
- |
|
272 |
$help_link="help/filtering_help.html";
|
- |
|
273 |
$desc=$l_filtering;
|
- |
|
274 |
break;
|
260 |
default:
|
275 |
default:
|
261 |
$advanced=1;
|
276 |
$advanced=1;
|
262 |
break;
|
277 |
break;
|
263 |
}
|
278 |
}
|
264 |
print <<<EOM
|
279 |
print <<<EOM
|
Line 309... |
Line 324... |
309 |
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><input type=text name=\"$name1\" value=\"$val\" size=20></td>";
|
324 |
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><input type=text name=\"$name1\" value=\"$val\" size=20></td>";
|
310 |
break;
|
325 |
break;
|
311 |
case 'WISPr-Redirection-URL' :
|
326 |
case 'WISPr-Redirection-URL' :
|
312 |
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><input type=text name=\"$name1\" value=\"$val\" size=20></td>";
|
327 |
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><input type=text name=\"$name1\" value=\"$val\" size=20></td>";
|
313 |
break;
|
328 |
break;
|
- |
|
329 |
case 'Filter-Id' :
|
- |
|
330 |
switch($val)
|
- |
|
331 |
{
|
- |
|
332 |
case "00000001":
|
- |
|
333 |
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><select name=\"$name1\"><option>$l_filtering_none</option><option value=\"00000001\" selected=\"selected\">$l_filtering_havp</option><option value=\"00000011\">$l_filtering_havp_bl</option><option value=\"00000101\">$l_filtering_havp_wl</option></select></td>";
|
- |
|
334 |
break;
|
- |
|
335 |
case "00000011":
|
- |
|
336 |
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><select name=\"$name1\"><option>$l_filtering_none</option><option value=\"00000001\">$l_filtering_havp</option><option value=\"00000011\" selected=\"selected\">$l_filtering_havp_bl</option><option value=\"00000101\">$l_filtering_havp_wl</option></select></td>";
|
- |
|
337 |
break;
|
- |
|
338 |
case "00000101":
|
- |
|
339 |
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><select name=\"$name1\"><option>$l_filtering_none</option><option value=\"00000001\">$l_filtering_havp</option><option value=\"00000011\">$l_filtering_havp_bl</option><option value=\"00000101\" selected=\"selected\">$l_filtering_havp_wl</option></select></td>";
|
- |
|
340 |
break;
|
- |
|
341 |
default :
|
- |
|
342 |
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><select name=\"$name1\"><option selected=\"selected\">$l_filtering_none</option><option value=\"00000001\">$l_filtering_havp</option><option value=\"00000011\">$l_filtering_havp_bl</option><option value=\"00000101\">$l_filtering_havp_wl</option></select></td>";
|
- |
|
343 |
break;
|
- |
|
344 |
}
|
- |
|
345 |
break;
|
314 |
default :
|
346 |
default :
|
315 |
print <<<EOM
|
347 |
print <<<EOM
|
316 |
<td>
|
348 |
<td>
|
317 |
<select name=$oper_name>
|
349 |
<select name=$oper_name>
|
318 |
<option $selected[$op_eq] value="=">=
|
350 |
<option $selected[$op_eq] value="=">=
|