From 8a33cd9a89c6f80355e334e2555768a8dcdb2871 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Fri, 5 Jul 2024 21:34:34 +0700 Subject: [PATCH] add Dummy Devices --- .gitignore | 2 ++ system/devices/Dummy.php | 60 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 system/devices/Dummy.php diff --git a/.gitignore b/.gitignore index c6733569..5a9167ba 100644 --- a/.gitignore +++ b/.gitignore @@ -42,7 +42,9 @@ system/lan/** *.zip system/devices/** !system/devices/readme.md +!system/devices/Dummy.php !system/devices/Radius.php +!system/devices/RadiusRest.php !system/devices/MikrotikPppoe.php !system/devices/MikrotikHotspot.php /.vs diff --git a/system/devices/Dummy.php b/system/devices/Dummy.php new file mode 100644 index 00000000..e2c76b88 --- /dev/null +++ b/system/devices/Dummy.php @@ -0,0 +1,60 @@ + 'Dummy', + 'description' => 'This devices is just dummy and do nothing, good if you just want to use billing only without doing something to device', + 'author' => 'ibnu maksum', + 'url' => [ + 'Github' => 'https://github.com/hotspotbilling/phpnuxbill/', + 'Telegram' => 'https://t.me/ibnux', + 'Donate' => 'https://paypal.me/ibnux' + ] + ]; + } + + // Add Customer to Mikrotik/Device + function add_customer($customer, $plan) + { + } + + // Remove Customer to Mikrotik/Device + function remove_customer($customer, $plan) + { + } + + // Add Plan to Mikrotik/Device + function add_plan($plan) + { + } + + // Update Plan to Mikrotik/Device + function update_plan($old_name, $plan) + { + } + + // Remove Plan from Mikrotik/Device + function remove_plan($plan) + { + } + + // check if customer is online + function online_customer($customer, $router_name) + { + } + + // make customer online + function connect_customer($customer, $ip, $mac_address, $router_name) + { + } + + // make customer disconnect + function disconnect_customer($customer, $router_name) + { + } + +} \ No newline at end of file