159,6 → 159,9 |
include("../lib/$config[general_lib_type]/group_change.php"); |
include("../lib/defaults.php"); |
} |
|
if (is_file("../lib/$config[general_lib_type]/user_info.php")) |
include("../lib/$config[general_lib_type]/user_info.php"); |
|
// Reconnect allowed MAC |
if (!empty($mac) && ($login === $mac)) { |
187,6 → 190,9 |
if (is_file("../lib/$config[general_lib_type]/change_attrs.php")) |
include("../lib/$config[general_lib_type]/change_attrs.php"); |
|
if (is_file("../lib/$config[general_lib_type]/group_info.php")) |
include("../lib/$config[general_lib_type]/group_info.php"); |
|
// Reconnect allowed MAC from the selected group |
foreach ($group_macs as $mac) { |
exec('sudo /usr/sbin/chilli_query login mac '.escapeshellarg($mac).' username '.escapeshellarg($mac)." password 'password'"); |