mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-30 14:49:25 +02:00
add Dummy Devices
This commit is contained in:
parent
8d8270544f
commit
8a33cd9a89
2 changed files with 62 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -42,7 +42,9 @@ system/lan/**
|
||||||
*.zip
|
*.zip
|
||||||
system/devices/**
|
system/devices/**
|
||||||
!system/devices/readme.md
|
!system/devices/readme.md
|
||||||
|
!system/devices/Dummy.php
|
||||||
!system/devices/Radius.php
|
!system/devices/Radius.php
|
||||||
|
!system/devices/RadiusRest.php
|
||||||
!system/devices/MikrotikPppoe.php
|
!system/devices/MikrotikPppoe.php
|
||||||
!system/devices/MikrotikHotspot.php
|
!system/devices/MikrotikHotspot.php
|
||||||
/.vs
|
/.vs
|
||||||
|
|
60
system/devices/Dummy.php
Normal file
60
system/devices/Dummy.php
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class Dummy {
|
||||||
|
|
||||||
|
// show Description
|
||||||
|
function description()
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'title' => '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)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue