mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-02-23 15:07:19 +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");
|
||||
}
|
||||
|
||||
require_once $DEVICE_PATH . DIRECTORY_SEPARATOR . "MikrotikPppoe.php";
|
||||
require_once $DEVICE_PATH . DIRECTORY_SEPARATOR . 'MikrotikPppoe' . '.php';
|
||||
|
||||
switch ($action) {
|
||||
case 'list':
|
||||
|
@ -99,17 +99,15 @@ switch ($action) {
|
|||
$msg .= Lang::T('Pool Name Already Exist') . '<br>';
|
||||
}
|
||||
if ($msg == '') {
|
||||
if ($routers != 'radius') {
|
||||
(new MikrotikPppoe())->add_pool($pool);
|
||||
}
|
||||
|
||||
$b = ORM::for_table('tbl_pool')->create();
|
||||
$d->local_ip = $local_ip;
|
||||
$b->local_ip = $local_ip;
|
||||
$b->pool_name = $name;
|
||||
$b->range_ip = $ip_address;
|
||||
$b->routers = $routers;
|
||||
if ($routers != 'radius') {
|
||||
(new MikrotikPppoe())->add_pool($b);
|
||||
}
|
||||
$b->save();
|
||||
|
||||
r2(U . 'pool/list', 's', Lang::T('Data Created Successfully'));
|
||||
} else {
|
||||
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",
|
||||
"Period": "Periode",
|
||||
"Rate": "Kecepatan",
|
||||
"Burst": "Meletus"
|
||||
"Burst": "Meletus",
|
||||
"Router_Name___Location": "Nama\/Lokasi Router"
|
||||
}
|
Loading…
Reference in a new issue