mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-02-23 23:17:05 +08:00
wrong variable pool $d and $b
This commit is contained in:
parent
baffadc005
commit
efe7b8b8f8
2 changed files with 7 additions and 8 deletions
|
@ -16,7 +16,7 @@ if (!in_array($admin['user_type'], ['SuperAdmin', 'Admin'])) {
|
||||||
_alert(Lang::T('You do not have permission to access this page'), 'danger', "dashboard");
|
_alert(Lang::T('You do not have permission to access this page'), 'danger', "dashboard");
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once $DEVICE_PATH . DIRECTORY_SEPARATOR . "MikrotikPppoe.php";
|
require_once $DEVICE_PATH . DIRECTORY_SEPARATOR . 'MikrotikPppoe' . '.php';
|
||||||
|
|
||||||
switch ($action) {
|
switch ($action) {
|
||||||
case 'list':
|
case 'list':
|
||||||
|
@ -99,17 +99,15 @@ switch ($action) {
|
||||||
$msg .= Lang::T('Pool Name Already Exist') . '<br>';
|
$msg .= Lang::T('Pool Name Already Exist') . '<br>';
|
||||||
}
|
}
|
||||||
if ($msg == '') {
|
if ($msg == '') {
|
||||||
if ($routers != 'radius') {
|
|
||||||
(new MikrotikPppoe())->add_pool($pool);
|
|
||||||
}
|
|
||||||
|
|
||||||
$b = ORM::for_table('tbl_pool')->create();
|
$b = ORM::for_table('tbl_pool')->create();
|
||||||
$d->local_ip = $local_ip;
|
$b->local_ip = $local_ip;
|
||||||
$b->pool_name = $name;
|
$b->pool_name = $name;
|
||||||
$b->range_ip = $ip_address;
|
$b->range_ip = $ip_address;
|
||||||
$b->routers = $routers;
|
$b->routers = $routers;
|
||||||
|
if ($routers != 'radius') {
|
||||||
|
(new MikrotikPppoe())->add_pool($b);
|
||||||
|
}
|
||||||
$b->save();
|
$b->save();
|
||||||
|
|
||||||
r2(U . 'pool/list', 's', Lang::T('Data Created Successfully'));
|
r2(U . 'pool/list', 's', Lang::T('Data Created Successfully'));
|
||||||
} else {
|
} else {
|
||||||
r2(U . 'pool/add', 'e', $msg);
|
r2(U . 'pool/add', 'e', $msg);
|
||||||
|
|
|
@ -510,5 +510,6 @@
|
||||||
"When_Expired__customer_will_be_move_to_selected_internet_plan": "Ketika Expired, pelanggan akan dipindahkan ke paket internet yang dipilih",
|
"When_Expired__customer_will_be_move_to_selected_internet_plan": "Ketika Expired, pelanggan akan dipindahkan ke paket internet yang dipilih",
|
||||||
"Period": "Periode",
|
"Period": "Periode",
|
||||||
"Rate": "Kecepatan",
|
"Rate": "Kecepatan",
|
||||||
"Burst": "Meletus"
|
"Burst": "Meletus",
|
||||||
|
"Router_Name___Location": "Nama\/Lokasi Router"
|
||||||
}
|
}
|
Loading…
Reference in a new issue