mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-04 18:24:32 +02:00
Show is Customer Online in the customer list
This commit is contained in:
parent
da1341d971
commit
3407571474
3 changed files with 52 additions and 10 deletions
|
@ -109,9 +109,10 @@ class MikrotikHotspot
|
|||
$client = $this->getClient($mikrotik['ip_address'], $mikrotik['username'], $mikrotik['password']);
|
||||
$printRequest = new RouterOS\Request(
|
||||
'/ip hotspot active print',
|
||||
RouterOS\Query::where('name', $customer['username'])
|
||||
RouterOS\Query::where('user', $customer['username'])
|
||||
);
|
||||
return $client->sendSync($printRequest)->getProperty('.id');
|
||||
$id = $client->sendSync($printRequest)->getProperty('.id');
|
||||
return $id;
|
||||
}
|
||||
|
||||
function connect_customer($customer, $ip, $mac_address, $router_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue