160,9 → 160,6 |
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)) { |
exec('sudo /usr/sbin/chilli_query login mac '.escapeshellarg($mac).' username '.escapeshellarg($mac)." password 'password'"); |
190,9 → 187,6 |
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'"); |