| Line 1... |
Line 1... |
| 1 |
<?php
|
1 |
<?php
|
| 2 |
# $Id: user_edit.php 2341 2017-07-21 20:01:36Z tom.houdayer $
|
2 |
# $Id: user_edit.php 2349 2017-07-22 12:20:21Z tom.houdayer $
|
| 3 |
|
3 |
|
| 4 |
//gestion de la langue
|
4 |
//gestion de la langue
|
| 5 |
if (is_file("../lib/langues.php"))
|
5 |
if (is_file("../lib/langues.php"))
|
| 6 |
include("../lib/langues.php");
|
6 |
include("../lib/langues.php");
|
| 7 |
|
7 |
|
| Line 148... |
Line 148... |
| 148 |
if ($group_change && $config['general_lib_type'] == 'sql' && $config['sql_show_all_groups'] == 'true'){
|
148 |
if ($group_change && $config['general_lib_type'] == 'sql' && $config['sql_show_all_groups'] == 'true'){
|
| 149 |
include("../lib/$config[general_lib_type]/group_change.php");
|
149 |
include("../lib/$config[general_lib_type]/group_change.php");
|
| 150 |
include("../lib/defaults.php");
|
150 |
include("../lib/defaults.php");
|
| 151 |
}
|
151 |
}
|
| 152 |
# Disconnecting user for re-authentication
|
152 |
# Disconnecting user for re-authentication
|
| 153 |
$mac=exec("sudo /usr/sbin/chilli_query list | grep ".escapeshellarg(" $login ")." | awk '{print $1}'");
|
153 |
$mac = exec("sudo /usr/sbin/chilli_query list | grep ".escapeshellarg(" $login ")." | awk '{print $1}'");
|
| - |
|
154 |
if (!empty($mac)) {
|
| 154 |
exec("sudo /usr/sbin/chilli_query logout ".escapeshellarg($mac));
|
155 |
exec("sudo /usr/sbin/chilli_query logout ".escapeshellarg($mac));
|
| - |
|
156 |
}
|
| 155 |
}
|
157 |
}
|
| 156 |
else{
|
158 |
else{
|
| 157 |
if (is_file("../lib/$config[general_lib_type]/group_info.php"))
|
159 |
if (is_file("../lib/$config[general_lib_type]/group_info.php"))
|
| 158 |
include("../lib/$config[general_lib_type]/group_info.php");
|
160 |
include("../lib/$config[general_lib_type]/group_info.php");
|
| 159 |
# Disconnecting all users from the selected group for re-authentication
|
161 |
# Disconnecting all users from the selected group for re-authentication
|
| 160 |
if (isset($group_members)){
|
162 |
if (isset($group_members)){
|
| 161 |
foreach ($group_members as $g_member => $member){
|
163 |
foreach ($group_members as $g_member => $member){
|
| 162 |
$mac=exec("sudo /usr/sbin/chilli_query list | grep ".escapeshellarg(" $member ")." | awk '{print $1}'");
|
164 |
$mac = exec("sudo /usr/sbin/chilli_query list | grep ".escapeshellarg(" $member ")." | awk '{print $1}'");
|
| - |
|
165 |
if (!empty($mac)) {
|
| 163 |
exec("sudo /usr/sbin/chilli_query logout ".escapeshellarg($mac));
|
166 |
exec("sudo /usr/sbin/chilli_query logout ".escapeshellarg($mac));
|
| - |
|
167 |
}
|
| 164 |
}
|
168 |
}
|
| 165 |
}
|
169 |
}
|
| 166 |
}
|
170 |
}
|
| 167 |
}
|
171 |
}
|
| 168 |
else if ($badusers == 1){
|
172 |
else if ($badusers == 1){
|