phpnuxbill/system/devices/Dummy.php
2024-07-18 09:48:22 +07:00

66 lines
1.4 KiB
PHP

<?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/phpnuxbill',
'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)
{
}
// customer change username
public function change_username($from, $to)
{
}
// 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)
{
}
}