wrong variable pool $d and $b

This commit is contained in:
Ibnu Maksum 2024-06-21 20:53:39 +07:00
parent baffadc005
commit efe7b8b8f8
No known key found for this signature in database
GPG key ID: 7FC82848810579E5
2 changed files with 7 additions and 8 deletions

View file

@ -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);

View file

@ -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"
}