72 lines
1.4 KiB
Markdown
Raw Normal View History

# How To add new Devices
just follow the template
```php
<?php
class FileName {
2024-07-05 21:31:23 +07:00
// show Description
function description()
{
return [
'title' => 'Device',
'description' => '',
'author' => 'ibnu maksum',
'url' => [
'Github' => 'https://github.com/hotspotbilling/phpnuxbill/',
'Telegram' => 'https://t.me/ibnux',
'Donate' => 'https://paypal.me/ibnux',
'any text' => 'Any Url'
]
];
}
2024-06-20 14:02:36 +07:00
// Add Customer to Mikrotik/Device
2024-06-05 17:19:24 +07:00
function add_customer($customer, $plan)
{
}
2024-06-20 14:02:36 +07:00
// Remove Customer to Mikrotik/Device
2024-06-05 17:19:24 +07:00
function remove_customer($customer, $plan)
{
}
2024-07-18 09:48:22 +07:00
// customer change username
public function change_username($from, $to)
{
}
2024-06-20 14:02:36 +07:00
// Add Plan to Mikrotik/Device
function add_plan($plan)
{
}
2024-06-20 14:02:36 +07:00
// Update Plan to Mikrotik/Device
function update_plan($old_name, $plan)
{
}
2024-06-20 14:02:36 +07:00
// Remove Plan from Mikrotik/Device
function remove_plan($plan)
{
}
2024-06-20 14:02:36 +07:00
// check if customer is online
2024-06-05 17:19:24 +07:00
function online_customer($customer, $router_name)
{
}
2024-06-20 14:02:36 +07:00
// make customer online
2024-06-05 17:19:24 +07:00
function connect_customer($customer, $ip, $mac_address, $router_name)
{
}
2024-06-20 14:02:36 +07:00
// make customer disconnect
2024-06-05 17:19:24 +07:00
function disconnect_customer($customer, $router_name)
{
}
2024-06-05 17:19:24 +07:00
}
```