$nd_count = sizeof($nd_list); for ($i = 0; $i < $nd_count; $i++) { $data = array(); if (empty($nd_list[$i]['port'])) { $nd_list[$i]['port'] = '8728'; } if (empty($nd_list[$i]['login'])) { $nd_list[$i]['login'] = '******'; } $nastype = intval($nd_list[$i]['nastype']); if ($nastype === 1 || $nastype === 15) { $hostek = $nd_list[$i]['ipaddr']; if (!empty($nd_list['port'])) { $hostek .= ':' . $nd_list[$i]['port']; } $result = $LMS->WIFI_GetAllSignal($hostek, $nd_list[$i]['login']); if ($result) { $data = $result; } else { $data = array(); } } if ($nastype === 14) { $MT->debug = false; $MT->port = $nd_list[$i]['port']; if ($connect = $MT->connect($nd_list[$i]['ipaddr'], $nd_list[$i]['login'], $nd_list[$i]['passwd'])) { $MT->write('/interface/wireless/registration-table/print'); $result = $MT->read(); $MT->disconnect(); if ($result) { for ($k = 0; $k < sizeof($result); $k++) {