bandwith 0=unlimited
add bandwith 0=unlimited or null for device MikrotikHotspot and MikrotikPppoe
This commit is contained in:
parent
c74d2bf7ec
commit
cf9abbfb45
@ -122,6 +122,9 @@ class MikrotikHotspot
|
||||
if (!empty(trim($bw['burst']))) {
|
||||
$rate .= ' ' . $bw['burst'];
|
||||
}
|
||||
if ($bw['rate_up'] == '0' || $bw['rate_down'] == '0') {
|
||||
$rate = '';
|
||||
}
|
||||
$addRequest = new RouterOS\Request('/ip/hotspot/user/profile/add');
|
||||
$client->sendSync(
|
||||
$addRequest
|
||||
@ -202,6 +205,9 @@ class MikrotikHotspot
|
||||
if (!empty(trim($bw['burst']))) {
|
||||
$rate .= ' ' . $bw['burst'];
|
||||
}
|
||||
if ($bw['rate_up'] == '0' || $bw['rate_down'] == '0') {
|
||||
$rate = '';
|
||||
}
|
||||
$setRequest = new RouterOS\Request('/ip/hotspot/user/profile/set');
|
||||
$client->sendSync(
|
||||
$setRequest
|
||||
|
@ -149,6 +149,9 @@ class MikrotikPppoe
|
||||
if(!empty(trim($bw['burst']))){
|
||||
$rate .= ' '.$bw['burst'];
|
||||
}
|
||||
if ($bw['rate_up'] == '0' || $bw['rate_down'] == '0') {
|
||||
$rate = '';
|
||||
}
|
||||
$pool = ORM::for_table("tbl_pool")->where("pool_name", $plan['pool'])->find_one();
|
||||
$addRequest = new RouterOS\Request('/ppp/profile/add');
|
||||
$client->sendSync(
|
||||
@ -205,6 +208,9 @@ class MikrotikPppoe
|
||||
if(!empty(trim($bw['burst']))){
|
||||
$rate .= ' '.$bw['burst'];
|
||||
}
|
||||
if ($bw['rate_up'] == '0' || $bw['rate_down'] == '0') {
|
||||
$rate = '';
|
||||
}
|
||||
$pool = ORM::for_table("tbl_pool")->where("pool_name", $new_plan['pool'])->find_one();
|
||||
$setRequest = new RouterOS\Request('/ppp/profile/set');
|
||||
$client->sendSync(
|
||||
|
Loading…
x
Reference in New Issue
Block a user